/* =========================================================
   RELICÁRIO LITERÁRIO
   TEMA GLOBAL: PAPEL DE LINHO + COURO / DESKTOP DE ESCRITA
   Versão: 20260709-linho-couro
   Mantém funcionalidades. Troca apenas a linguagem visual.
   ========================================================= */

:root{
    --linen:#f4eddd;
    --linen-2:#eee3cc;
    --paper:#fffaf0;
    --paper-2:#fbf2de;
    --paper-3:#f7ecd4;
    --rail:#ebe3d4;
    --line:#d9cbb3;
    --line-soft:#eadfca;
    --text:#2b2118;
    --text-2:#3e3024;
    --muted:#756856;
    --muted-2:#9a8b75;
    --leather:#8d2f24;
    --leather-2:#6f241c;
    --leather-3:#a75833;
    --gold:#b48a4a;
    --ink:#1f1a16;
    --shadow:0 10px 28px rgba(58,41,22,.12);
    --shadow-soft:0 3px 12px rgba(58,41,22,.08);
    --radius:10px;
    --radius-lg:16px;
    --font:"Segoe UI","Segoe UI Variable",Arial,sans-serif;
    --serif:Georgia,"Times New Roman",serif;

    /* compatibilidade com variáveis antigas */
    --azul:#3e3024;
    --azul2:#756856;
    --grena:#8d2f24;
    --vinho:#6f241c;
    --borda:#d9cbb3;
    --fundo:#f4eddd;
    --card:#fffaf0;
    --grad:linear-gradient(180deg,#fffaf0 0%,#f1e4ca 100%);
    --gradStrong:linear-gradient(180deg,#a64234 0%,#6f241c 100%);
}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{
    background:
        radial-gradient(circle at 18% 8%,rgba(255,255,255,.65),transparent 28%),
        linear-gradient(180deg,#f6efdf 0%,#e9ddc6 100%);
    color:var(--text);
    font-family:var(--font);
    font-size:14px;
}
body:before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.22;
    background-image:
        linear-gradient(90deg,rgba(105,82,48,.035) 1px,transparent 1px),
        linear-gradient(0deg,rgba(105,82,48,.025) 1px,transparent 1px);
    background-size:34px 34px;
}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:var(--font)}
img{max-width:100%}

/* =========================================================
   BOTÕES E FORMULÁRIOS
   ========================================================= */
button,.btn{
    min-height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:1px solid #bba98c;
    border-radius:7px;
    background:linear-gradient(180deg,#fff9eb 0%,#eadbbf 100%);
    color:#3c2b1f;
    padding:6px 12px;
    font-size:13px;
    font-weight:650;
    line-height:1.2;
    cursor:pointer;
    box-shadow:0 2px 5px rgba(67,43,23,.10);
    transition:background .12s ease,border-color .12s ease,transform .12s ease;
}
button:hover,.btn:hover{
    background:linear-gradient(180deg,#fffdf5 0%,#e5d2ad 100%);
    border-color:#a89168;
}
.btn-primary,button[type="submit"]{
    background:linear-gradient(180deg,#a54234 0%,#74241d 100%);
    border-color:#6c211a;
    color:#fff8ea;
}
.btn-primary:hover,button[type="submit"]:hover{
    background:linear-gradient(180deg,#93362b 0%,#641e18 100%);
}
.btn-soft{
    background:#fff8ea;
    border-color:var(--line);
    color:#3e3024;
}
.btn-danger{
    background:#fff7ee;
    color:#7d2a21;
    border-color:#d4a39a;
}
.mini-btn{
    min-height:28px;
    padding:4px 9px;
    font-size:12px;
}

label{
    display:grid;
    gap:5px;
    color:#4d3a2b;
    font-weight:650;
    font-size:13px;
}
input,select,textarea{
    width:100%;
    min-height:36px;
    border:1px solid var(--line);
    border-radius:8px;
    background:#fffdf6;
    color:var(--text);
    padding:8px 10px;
    outline:none;
    font-size:14px;
    box-shadow:inset 0 1px 1px rgba(70,45,20,.04);
}
textarea{min-height:130px;resize:vertical}
input:focus,select:focus,textarea:focus{
    border-color:#b48a4a;
    box-shadow:0 0 0 3px rgba(180,138,74,.16);
}

/* =========================================================
   LOGIN / PÚBLICAS INTERNAS
   ========================================================= */
.public{
    min-height:100vh;
    display:grid;
    place-items:center;
    background:
        radial-gradient(circle at 50% 0%,rgba(255,255,255,.65),transparent 30%),
        linear-gradient(180deg,#f7efdd 0%,#e8dcc4 100%);
    padding:30px;
}
.hero{width:100%;display:grid;place-items:center}
.auth-card{
    width:min(460px,100%);
    background:rgba(255,250,240,.96);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:28px;
}
.logo-placeholder{
    width:54px;height:54px;border-radius:12px;
    background:linear-gradient(180deg,#a54234,#70241c);
    color:#fff8ea;
    display:grid;place-items:center;
    font-weight:800;
    margin-bottom:16px;
    font-family:var(--serif);
}
.form-grid{display:grid;gap:14px}
.alert{
    padding:12px 14px;
    border-radius:10px;
    margin:12px 0;
    font-weight:650;
}
.alert-error{background:#fff0ec;color:#7d2a21;border:1px solid #e0b3aa}
.alert-ok{background:#edf8ee;color:#2f6b45;border:1px solid #c6e3cc}
.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:14px}

/* =========================================================
   SHELL DO SISTEMA
   ========================================================= */
.sidebar{
    position:fixed;
    left:0;top:0;bottom:0;
    width:246px;
    background:
        linear-gradient(180deg,rgba(255,250,240,.94),rgba(235,227,212,.96));
    border-right:1px solid #cfc0a7;
    box-shadow:8px 0 28px rgba(54,35,17,.08);
    padding:0;
    display:flex;
    flex-direction:column;
}
.brand{
    min-height:82px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 18px;
    background:rgba(255,250,240,.75);
    border-bottom:1px solid var(--line);
}
.brand-mark{
    width:42px;height:42px;border-radius:9px;
    display:grid;place-items:center;
    background:transparent;
    color:var(--leather);
    border:0;
    font-weight:900;
    font-size:23px;
    font-family:var(--serif);
    letter-spacing:-.05em;
}
.brand strong{
    display:block;
    font-family:var(--serif);
    font-size:21px;
    line-height:1;
    color:#3a241a;
}
.brand span{
    display:block;
    color:#6e2a22;
    font-weight:700;
}
.sidebar nav{
    padding:14px 10px;
    display:grid;
    gap:4px;
}
.sidebar nav a{
    padding:10px 11px;
    border-radius:9px;
    color:#4e3d2e;
    font-weight:650;
    border:1px solid transparent;
}
.sidebar nav a.active,
.sidebar nav a:hover{
    background:#fff7e6;
    border-color:#dfcfb1;
    color:#7a2a22;
    box-shadow:var(--shadow-soft);
}
.sidebar-footer{
    margin-top:auto;
    padding:16px 18px;
    color:#7b6a55;
    border-top:1px solid var(--line);
    display:grid;
    gap:8px;
}
.sidebar-footer a{color:#8d2f24;font-weight:800}

.app{
    margin-left:246px;
    min-height:100vh;
    padding:22px 28px 48px;
    background:transparent;
}
.topbar{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:16px;
}
.kicker{
    color:#8d2f24;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    font-weight:800;
    margin-bottom:5px;
}
.page-title{
    margin:0;
    font-family:var(--serif);
    font-size:34px;
    line-height:1.12;
    color:#24170f;
    font-weight:800;
    letter-spacing:-.035em;
}
.page-subtitle{
    margin:7px 0 0;
    color:var(--muted);
    line-height:1.58;
    max-width:900px;
}
.card,.editor-card{
    background:rgba(255,250,240,.96);
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:var(--shadow);
    padding:20px;
}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.stat{min-height:125px;display:grid;align-content:space-between}
.stat .label{color:var(--muted);font-weight:700}
.stat .num{
    font-family:var(--serif);
    font-size:38px;
    font-weight:900;
    color:#8d2f24;
}
.empty{text-align:center;color:var(--muted);padding:28px}

/* =========================================================
   LISTAS, TABELAS E BADGES
   ========================================================= */
.badge,.badge-grena{
    display:inline-flex;
    border-radius:999px;
    background:#f0e1c4;
    color:#6e4f2d;
    font-size:12px;
    font-weight:750;
    padding:5px 9px;
}
table{width:100%;border-collapse:collapse;background:#fffaf0;border-radius:12px;overflow:hidden}
th,td{padding:12px 11px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top}
th{
    background:#f3e7ce;
    color:#6b5135;
    text-transform:uppercase;
    font-size:11px;
    letter-spacing:.05em;
}
td{color:#4e3d2e}
.term,.chapter-item{
    display:block;
    background:#fffaf0;
    border:1px solid var(--line);
    border-radius:13px;
    padding:14px;
    box-shadow:0 2px 10px rgba(58,41,22,.05);
}
.term-list,.chapter-list{display:grid;gap:10px}
.term strong,.chapter-item strong{color:#2d1e14}
.term em{
    display:inline-block;
    font-style:normal;
    color:#8d2f24;
    font-weight:800;
    margin:4px 0;
}

/* =========================================================
   ADMIN
   ========================================================= */
.admin-top-alert,.warning-box{
    background:#fff4dd;
    border:1px solid #dcc59b;
    color:#6c4b23;
    border-radius:12px;
    padding:12px 14px;
    margin-bottom:14px;
    font-weight:700;
}
.success-box{background:#edf8ee;border:1px solid #c6e3cc;color:#2f6b45;border-radius:12px;padding:12px 14px}
.admin-table-actions,.searchbar{display:flex;gap:8px;flex-wrap:wrap}
.codebox{
    background:#fff7e6;
    border:1px solid var(--line);
    border-radius:8px;
    padding:10px;
    font-family:Consolas,monospace;
    word-break:break-all;
}

/* =========================================================
   GUIA EM ABAS
   ========================================================= */
.guide-tabs-card{padding:14px}
.guide-tabs-layout{display:grid;grid-template-columns:280px 1fr;gap:16px}
.guide-tabs-menu{
    position:sticky;
    top:16px;
    max-height:calc(100vh - 52px);
    overflow:auto;
    display:grid;
    gap:5px;
    background:#efe4d0;
    border:1px solid var(--line);
    border-radius:14px;
    padding:9px;
}
.guide-tab-btn{
    width:100%;
    justify-content:flex-start;
    text-align:left;
    background:#fffaf0;
    border:1px solid var(--line);
    box-shadow:none;
    color:#4e3d2e;
}
.guide-tab-btn.active,.guide-tab-btn:hover{
    background:#fff2d2;
    color:#8d2f24;
    border-color:#d5b46f;
}
.guide-tab-panel{display:none}
.guide-tab-panel.active{display:block}
.guide-panel-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:16px}
.guide-panel-text,.guide-panel-image{
    background:#fffaf0;
    border:1px solid var(--line);
    border-radius:14px;
    padding:20px;
    box-shadow:var(--shadow-soft);
}
.guide-panel-text h2{
    font-family:var(--serif);
    color:#3a241a;
}
.guide-panel-text p,.guide-panel-text li{color:var(--muted);line-height:1.72}
.guide-panel-image{margin:0}
.guide-panel-image img{
    width:100%;
    height:380px;
    object-fit:cover;
    border-radius:10px;
    background:#efe4d0;
    display:block;
}
.guide-panel-image figcaption{color:var(--muted);font-size:12px;margin-top:8px}

/* =========================================================
   EDITOR DESKTOP / SCRIVENER LINHO E COURO
   ========================================================= */
.scrivener-window{
    background:#fffaf0;
    border:1px solid #cbb89a;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 12px 34px rgba(50,31,12,.15);
}
.scrivener-menubar{
    height:32px;
    display:flex;
    align-items:center;
    gap:18px;
    padding:0 12px;
    background:#f2eadb;
    border-bottom:1px solid #d7c7aa;
    color:#2d2117;
    font-size:13px;
}
.scrivener-topbar{
    min-height:42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:5px 10px;
    background:#ebe2d2;
    border-bottom:1px solid #d1c0a3;
}
.tool-left,.tool-right{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.tool-icon{
    width:28px;
    min-width:28px;
    height:28px;
    min-height:28px;
    display:inline-grid;
    place-items:center;
    padding:0;
    border-radius:5px;
    background:#fffaf0;
    border:1px solid #cbb89a;
    color:#4a3524;
    font-size:14px;
    box-shadow:none;
}
.tool-icon:hover{background:#f6e8cc}
.editor-title-strip{
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fffaf0;
    border-bottom:1px solid #d7c7aa;
    color:#2d2117;
    font-size:13px;
    font-weight:650;
}
.formatbar{
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:wrap;
    padding:5px 8px;
    background:#f5ecd9;
    border-bottom:1px solid #d7c7aa;
}
.formatbar select,.formatbar input[type="number"]{
    min-height:28px;
    height:28px;
    padding:3px 7px;
    font-size:13px;
    border-radius:5px;
    background:#fffdf6;
}
.formatbar .style-select{width:150px}
.formatbar .font-select{width:160px}
.formatbar .size-select{width:64px}
.formatbar .zoom-select{width:70px}
.format-btn{
    width:28px;
    min-width:28px;
    height:28px;
    min-height:28px;
    padding:0;
    border-radius:5px;
    border:1px solid #cbb89a;
    background:#fffaf0;
    display:inline-grid;
    place-items:center;
    font-size:13px;
    font-weight:700;
    color:#2d2117;
}
.format-btn:hover,.format-btn.active{background:#f1dfbb}
.color-mini{
    width:28px;
    min-width:28px;
    height:28px;
    position:relative;
    overflow:hidden;
    padding:0;
    border:1px solid #cbb89a;
    border-radius:5px;
    background:#fffaf0;
    display:inline-grid;
    place-items:center;
    font-weight:800;
    color:#2d2117;
}
.color-mini input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;min-height:0;padding:0}
.scrivener-body{display:grid;grid-template-columns:220px 1fr;min-height:720px}
.binder{
    background:#e8dfd0;
    border-right:1px solid #cbb89a;
    padding:0;
}
.binder-header{
    height:31px;
    display:flex;
    align-items:center;
    padding:0 10px;
    border-bottom:1px solid #cbb89a;
    color:#3d2c1e;
    font-size:13px;
    font-weight:700;
}
.binder-list{padding:8px 0;font-size:13px}
.binder-item{
    display:flex;
    align-items:center;
    gap:7px;
    height:28px;
    padding:0 12px;
    color:#3a2a1e;
}
.binder-item.active{background:#d8c8aa}
.binder-item.indent{padding-left:28px}
.binder-item .box{width:12px;height:12px;border:1px solid #b79d73;background:#fffaf0}
.editor-workspace{background:#fffaf0;display:grid;grid-template-rows:auto 1fr auto}
.document-header{
    min-height:34px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:4px 10px;
    background:#f4ead9;
    border-bottom:1px solid #d7c7aa;
}
.doc-title-input{
    min-height:27px;
    height:27px;
    border:1px solid transparent;
    background:transparent;
    padding:3px 6px;
    font-weight:700;
}
.doc-title-input:focus{background:#fffdf6;border-color:#cbb89a}
.doc-status-select{width:130px;min-height:27px;height:27px;padding:3px 6px}
.editor-scroll{
    overflow:auto;
    background:#fffaf0;
    padding:30px 44px 50px;
}
.rich-editor{
    width:min(840px,100%);
    min-height:760px;
    margin:0 auto;
    background:#fffaf0;
    color:#1f160f;
    border:0;
    outline:none;
    padding:14px 0 80px;
    font-family:var(--serif);
    font-size:16px;
    line-height:1.75;
}
.rich-editor:focus{outline:none}
.rich-editor h1,.rich-editor h2,.rich-editor h3{font-family:var(--serif);color:#6f2a22}
.rich-editor blockquote{
    border-left:4px solid #c7a766;
    background:#f7ecd4;
    padding:10px 14px;
    color:#5e4d3a;
}
.rich-editor img{max-width:100%;height:auto}
.editor-table,.rich-editor table{border-collapse:collapse;width:100%;margin:14px 0}
.editor-table td,.rich-editor td,.rich-editor th{border:1px solid #cbb89a;padding:7px}
.statusbar{
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;
    background:#f2eadb;
    border-top:1px solid #d7c7aa;
    color:#756856;
    font-size:13px;
}
.save-status{font-weight:600;color:#756856}
.editor-focus-mode .sidebar,.editor-focus-mode .topbar{display:none!important}
.editor-focus-mode .app{margin-left:0;padding:0}
.editor-focus-mode .editor-card{padding:0;border:0;box-shadow:none;border-radius:0}
.editor-focus-mode .scrivener-window{border-radius:0;border:0;min-height:100vh}

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media(max-width:1050px){
    .sidebar{position:static;width:auto;height:auto}
    .app{margin-left:0;padding:14px}
    .grid-2,.grid-3,.guide-tabs-layout,.guide-panel-grid{grid-template-columns:1fr}
    .scrivener-body{grid-template-columns:1fr}
    .binder{display:none}
}
@media(max-width:680px){
    .formatbar{overflow:auto;flex-wrap:nowrap}
    .editor-scroll{padding:20px 18px}
    .page-title{font-size:28px}
}



/* Guia sem imagens */
.guide-panel-text-only{
    grid-template-columns:1fr !important;
}
.guide-panel-image,
.guide-figure,
.guide-gallery{
    display:none !important;
}
.guide-panel-text{
    max-width:100%;
}


/* Administração visual do site */
.admin-editor-tabs{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:14px;
}
.admin-editor-tab{
    background:#fff8ea;
    border:1px solid var(--line);
}
.admin-editor-tab.active{
    background:linear-gradient(180deg,#a54234 0%,#74241d 100%);
    color:#fff8ea;
    border-color:#6f241c;
}
.admin-editor-panel{
    display:none;
    margin-bottom:16px;
}
.admin-editor-panel.active{
    display:block;
}
.dropzone{
    position:relative;
    border:2px dashed #c9b796;
    border-radius:14px;
    background:#fff8ea;
    padding:22px;
    min-height:120px;
    display:grid;
    place-items:center;
    text-align:center;
    color:#6f604c;
    cursor:pointer;
}
.dropzone.small{
    min-height:92px;
    padding:14px;
}
.dropzone strong{
    display:block;
    color:#3a241a;
    margin-bottom:5px;
}
.dropzone input[type=file]{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
}
.dropzone.dragover{
    background:#fff1cc;
    border-color:#8d2f24;
}
.tool-admin-list{
    display:grid;
    gap:14px;
    margin-top:14px;
}
.tool-admin-item{
    background:#fffaf0;
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px;
    box-shadow:var(--shadow-soft);
}
.tool-admin-item.dragging{
    opacity:.55;
}
.drag-handle{
    cursor:grab;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:28px;
    border-radius:8px;
    background:#f0e1c4;
    color:#6e4f2d;
    margin-bottom:10px;
    font-weight:900;
}
.site-editor-form textarea{
    min-height:110px;
}


/* Editor corrigido sem menu Windows */
.scrivener-menubar{
    display:none !important;
}
.writer-window{
    background:#fffaf0;
    border:1px solid #cbb89a;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 12px 34px rgba(50,31,12,.15);
}
.writer-main-toolbar{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    padding:8px 10px;
    background:#f2eadb;
    border-bottom:1px solid #d7c7aa;
}
.writer-tool-group{
    display:flex;
    align-items:center;
    gap:5px;
    flex-wrap:wrap;
    padding:3px 6px;
    border-right:1px solid #d8c8aa;
}
.writer-tool-group:last-child{
    border-right:0;
}
.writer-tool,
.writer-icon-tool,
.writer-select,
.writer-color{
    min-height:30px;
    height:30px;
    border:1px solid #cbb89a;
    border-radius:6px;
    background:#fffaf0;
    color:#2d2117;
    padding:4px 9px;
    font-size:13px;
    font-weight:700;
    box-shadow:none;
}
.writer-icon-tool{
    width:30px;
    min-width:30px;
    padding:0;
    display:inline-grid;
    place-items:center;
}
.writer-tool:hover,
.writer-icon-tool:hover,
.writer-select:hover,
.writer-color:hover{
    background:#f1dfbb;
}
.save-tool{
    background:linear-gradient(180deg,#a54234 0%,#74241d 100%);
    color:#fff8ea;
    border-color:#6f241c;
}
.writer-select.style-select{width:140px}
.writer-select.font-select{width:150px}
.writer-select.size-select{width:66px}
.writer-color{
    width:30px;
    min-width:30px;
    padding:0;
    position:relative;
    display:inline-grid;
    place-items:center;
    overflow:hidden;
}
.writer-color input{
    position:absolute;
    inset:0;
    opacity:0;
    cursor:pointer;
    width:100%;
    height:100%;
    min-height:0;
    padding:0;
}
.writer-body{
    display:grid;
    grid-template-columns:220px 1fr;
    min-height:720px;
}
.writer-binder{
    background:#e8dfd0;
    border-right:1px solid #cbb89a;
}
.writer-binder-title{
    height:34px;
    display:flex;
    align-items:center;
    padding:0 10px;
    border-bottom:1px solid #cbb89a;
    color:#3d2c1e;
    font-size:13px;
    font-weight:800;
}
.writer-binder-item{
    display:flex;
    align-items:center;
    gap:7px;
    height:30px;
    padding:0 12px;
    color:#3a2a1e;
    font-size:13px;
}
.writer-binder-item.active{
    background:#d8c8aa;
}
.writer-binder-item.indent{
    padding-left:28px;
}
.writer-binder-item span{
    width:12px;
    height:12px;
    border:1px solid #b79d73;
    background:#fffaf0;
}
.writer-workspace{
    display:grid;
    grid-template-rows:auto 1fr auto;
    background:#fffaf0;
}
.writer-document-header{
    min-height:38px;
    display:flex;
    gap:10px;
    align-items:center;
    padding:5px 10px;
    background:#f4ead9;
    border-bottom:1px solid #d7c7aa;
}
.writer-scroll{
    overflow:auto;
    background:#fffaf0;
    padding:30px 44px 50px;
}
.writer-statusbar{
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;
    background:#f2eadb;
    border-top:1px solid #d7c7aa;
    color:#756856;
    font-size:13px;
}
.writer-window .rich-editor{
    width:min(840px,100%);
    min-height:760px;
    margin:0 auto;
    background:#fffaf0;
    color:#1f160f;
    border:0;
    outline:none;
    padding:14px 0 80px;
    font-family:Georgia,"Times New Roman",serif;
    font-size:16px;
    line-height:1.75;
}
.writer-window .rich-editor:focus{
    outline:none;
}
.writer-window .rich-editor h1,
.writer-window .rich-editor h2,
.writer-window .rich-editor h3{
    font-family:Georgia,"Times New Roman",serif;
    color:#6f2a22;
}
.writer-window .rich-editor blockquote{
    border-left:4px solid #c7a766;
    background:#f7ecd4;
    padding:10px 14px;
    color:#5e4d3a;
}
.writer-window .editor-table,
.writer-window .rich-editor table{
    border-collapse:collapse;
    width:100%;
    margin:14px 0;
}
.writer-window .editor-table td,
.writer-window .rich-editor td,
.writer-window .rich-editor th{
    border:1px solid #cbb89a;
    padding:7px;
}
.editor-focus-mode .writer-binder,
.editor-focus-mode .topbar,
.editor-focus-mode .sidebar{
    display:none !important;
}
.editor-focus-mode .app{
    margin-left:0 !important;
    padding:0 !important;
}
.editor-focus-mode .writer-editor-form{
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
}
.editor-focus-mode .writer-window{
    border-radius:0 !important;
    border:0 !important;
    min-height:100vh;
}
.editor-focus-mode .writer-body{
    grid-template-columns:1fr !important;
}
@media(max-width:1050px){
    .writer-body{
        grid-template-columns:1fr;
    }
    .writer-binder{
        display:none;
    }
}
@media(max-width:720px){
    .writer-main-toolbar{
        overflow:auto;
        flex-wrap:nowrap;
    }
    .writer-tool-group{
        flex-wrap:nowrap;
    }
    .writer-scroll{
        padding:20px 18px;
    }
}


/* Consolidação responsiva 2026-07-10 */
img{max-width:100%;height:auto}
.site-editor-form input,.site-editor-form textarea,.site-editor-form select{max-width:100%}
@media(max-width:900px){
  .sidebar{position:relative!important;width:100%!important;min-height:auto!important;display:block!important}
  .sidebar nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:8px}
  .sidebar nav a{flex:0 0 auto;white-space:nowrap}
  .sidebar-footer{display:flex;justify-content:space-between;align-items:center}
  .app{margin-left:0!important;width:100%!important;padding:18px!important}
  .topbar{align-items:flex-start;gap:12px}
  .grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-editor-tabs{overflow-x:auto;flex-wrap:nowrap}
  .admin-editor-tab{white-space:nowrap}
}
@media(max-width:620px){
  .app{padding:12px!important}
  .grid,.grid-2,.grid-3,.grid-4{grid-template-columns:1fr!important}
  .topbar{display:block}
  .topbar>.btn,.topbar>div+*{margin-top:12px}
  .card{padding:16px!important}
  .writer-document-header{display:grid!important;grid-template-columns:1fr!important}
  .doc-title-input,.doc-status-select{width:100%!important}
  table{display:block;overflow-x:auto;white-space:nowrap}
  .tool-admin-item{padding:14px!important}
}

/* Coautoria Premium */
.collaboration-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
.collaboration-row form{margin:0}
.collaboration-panels{margin-top:22px}
.activity-list{display:grid;gap:10px;margin-top:14px;max-height:520px;overflow:auto}
.activity-list article{border:1px solid rgba(91,62,37,.16);border-radius:10px;padding:12px;background:rgba(255,255,255,.48)}
.activity-list article p{margin:7px 0;white-space:pre-wrap}
.activity-list article small{display:block;opacity:.72;margin-bottom:8px}
.premium-gate{text-align:center;padding:36px}
@media(max-width:620px){.collaboration-row{align-items:flex-start;flex-direction:column}.collaboration-row form,.collaboration-row button{width:100%}}


/* Colaboração em tempo real */
.realtime-strip{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 14px;border-bottom:1px solid rgba(87,63,42,.18);background:#f7f0e5;font-size:13px}
.realtime-dot{width:9px;height:9px;border-radius:50%;background:#9b8b78;display:inline-block}.realtime-dot.online{background:#2f8a57}.realtime-dot.error{background:#b55045}
.realtime-users{display:flex;align-items:center;gap:6px;margin-left:auto}.realtime-avatar{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#70533b;color:white;font-weight:700;font-size:12px;border:2px solid #fff;box-shadow:0 1px 4px #0002}.realtime-user-label{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.remote-typing{font-style:italic;color:#795b44}
@media(max-width:700px){.realtime-users{width:100%;margin-left:0}.realtime-user-label{display:none}}

/* =========================================================
   RELICÁRIO LITERÁRIO — INTERFACE VIOLETA 2026
   Camada visual inspirada na prévia aprovada pelo usuário.
   ========================================================= */
:root{
    --violet-950:#24135f;
    --violet-900:#2f1a73;
    --violet-800:#3d248e;
    --violet-700:#5631bd;
    --violet-600:#6d3fe2;
    --violet-500:#8057eb;
    --violet-300:#bda8f7;
    --violet-200:#dcd2ff;
    --violet-100:#eee9ff;
    --violet-50:#f7f5ff;
    --surface:#ffffff;
    --surface-soft:#faf9ff;
    --page:#f7f7fc;
    --ink-strong:#171427;
    --ink-soft:#6f6b7f;
    --modern-line:#e8e6f0;
    --modern-shadow:0 8px 28px rgba(41,31,82,.07);
    --modern-radius:13px;

    --fundo:var(--page);
    --card:var(--surface);
    --borda:var(--modern-line);
    --text:var(--ink-strong);
    --muted:var(--ink-soft);
    --grena:var(--violet-600);
    --vinho:var(--violet-800);
    --azul:var(--violet-800);
    --azul2:var(--violet-600);
    --grad:linear-gradient(180deg,#fff 0%,#faf9ff 100%);
    --gradStrong:linear-gradient(135deg,var(--violet-600),var(--violet-800));
    --line:var(--modern-line);
    --line-soft:#f0eef5;
    --paper:#fff;
    --paper-2:#faf9ff;
    --paper-3:#f4f0ff;
    --linen:var(--page);
    --linen-2:#f0eef8;
    --leather:var(--violet-600);
    --leather-2:var(--violet-800);
    --gold:var(--violet-500);
    --shadow:var(--modern-shadow);
    --shadow-soft:0 3px 12px rgba(41,31,82,.055);
    --font:Inter,"Segoe UI","Segoe UI Variable",Arial,sans-serif;
    --serif:Georgia,"Times New Roman",serif;
}
html{background:var(--page)}
body{
    background:var(--page);
    color:var(--ink-strong);
    font-size:14px;
}
body:before{display:none}
button,.btn{
    min-height:38px;
    border:1px solid #dcd7eb;
    border-radius:9px;
    background:#fff;
    color:#302b43;
    padding:8px 14px;
    box-shadow:none;
    font-weight:700;
}
button:hover,.btn:hover{background:var(--violet-50);border-color:var(--violet-300);transform:translateY(-1px)}
.btn-primary,button[type="submit"]{background:linear-gradient(135deg,var(--violet-600),var(--violet-700));border-color:var(--violet-700);color:#fff;box-shadow:0 8px 18px rgba(109,63,226,.20)}
.btn-primary:hover,button[type="submit"]:hover{background:linear-gradient(135deg,#7548e7,#4d2aae);border-color:#4d2aae}
.btn-soft{background:#fff;color:var(--violet-700);border-color:var(--violet-200)}
input,select,textarea{background:#fff;border-color:#dedbe8;color:var(--ink-strong);border-radius:9px;box-shadow:none}
input:focus,select:focus,textarea:focus{border-color:var(--violet-500);box-shadow:0 0 0 3px rgba(109,63,226,.12)}
.card,.editor-card{background:#fff;border-color:var(--modern-line);box-shadow:var(--modern-shadow);border-radius:var(--modern-radius)}
.page-title{font-family:var(--font);color:var(--ink-strong);font-size:30px;letter-spacing:-.03em}
.page-subtitle{color:var(--ink-soft)}
.kicker{color:var(--violet-600)}
.badge,.badge-grena{background:var(--violet-100);color:var(--violet-700)}

.sidebar{
    width:250px;
    background:
        radial-gradient(circle at 20% 15%,rgba(139,92,246,.28),transparent 32%),
        linear-gradient(180deg,#2c196e 0%,#24145f 54%,#35217c 100%);
    border:0;
    box-shadow:8px 0 26px rgba(36,19,95,.14);
    color:#fff;
    z-index:1000;
}
.brand{min-height:102px;padding:20px 24px;background:transparent;border:0;gap:13px}
.brand-logo{max-width:185px;max-height:62px;object-fit:contain;filter:brightness(0) invert(1)}
.brand-mark{width:43px;height:43px;color:#fff;font-size:37px;transform:rotate(-7deg)}
.brand-copy strong{font-family:Georgia,serif;color:#fff;font-size:24px;line-height:1.05;letter-spacing:-.02em}
.brand-copy span{color:#fff;font-family:Georgia,serif;font-size:20px;font-weight:500;line-height:1.05}
.sidebar nav{padding:7px 18px;gap:5px}
.sidebar nav a{display:flex;align-items:center;gap:14px;min-height:47px;padding:11px 14px;border:0;color:rgba(255,255,255,.88);border-radius:9px;font-weight:620}
.sidebar nav a:hover{background:rgba(255,255,255,.09);color:#fff;box-shadow:none;border:0}
.sidebar nav a.active{background:linear-gradient(135deg,rgba(129,72,239,.92),rgba(92,47,205,.96));color:#fff;box-shadow:0 8px 20px rgba(16,7,58,.26);border:0}
.nav-icon{width:21px;height:21px;flex:0 0 21px}
.sidebar-plan{margin:auto 20px 12px;padding:15px;border-radius:11px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.07)}
.sidebar-plan>div{display:flex;justify-content:space-between;gap:10px;align-items:center;color:rgba(255,255,255,.75);font-size:12px}
.sidebar-plan strong{background:rgba(130,79,237,.62);padding:4px 8px;border-radius:999px;color:#fff;font-size:11px}
.sidebar-plan a{display:flex;justify-content:space-between;margin-top:14px;color:#fff;font-weight:700;font-size:13px}
.sidebar-footer{margin-top:0;padding:14px 20px 18px;border-color:rgba(255,255,255,.10);display:flex;align-items:center;justify-content:space-between;color:#fff}
.user-mini{display:flex;align-items:center;gap:10px;min-width:0}
.user-mini>div{display:grid;min-width:0}.user-mini strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:125px}.user-mini small{color:rgba(255,255,255,.62);font-size:11px}
.user-avatar,.header-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ede7ff,#bfaafd);color:#442297;font-weight:850}
.logout-link{color:#fff;opacity:.78}.logout-link:hover{opacity:1}.logout-link svg{width:20px;height:20px}

.app{margin-left:250px;padding:0 28px 42px;background:var(--page)}
.app-header{height:82px;margin:0 -28px 0;padding:0 30px;display:grid;grid-template-columns:1fr minmax(240px,310px) 42px 38px;align-items:center;gap:12px;background:#fff;border-bottom:1px solid var(--modern-line)}
.global-search{height:42px;display:flex;align-items:center;gap:10px;padding:0 13px;border:1px solid #dedbe8;border-radius:11px;background:#fff}
.global-search input{border:0;min-height:0;height:auto;padding:0;box-shadow:none;background:transparent}.global-search input:focus{box-shadow:none}.search-icon{width:19px;height:19px;color:#777287}
.header-icon-btn{position:relative;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--violet-50);color:#51436e}.header-icon-btn svg{width:20px;height:20px}.notification-dot{position:absolute;top:6px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--violet-600);border:2px solid #fff}
.header-avatar{width:38px;height:38px;background:linear-gradient(135deg,#19131f,#6c4c92);color:#fff;border:2px solid #efeaff}
.mobile-menu-btn,.sidebar-overlay{display:none}

.dashboard-welcome{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:27px 0 22px}
.dashboard-welcome h1{margin:0;font-size:25px;letter-spacing:-.025em}.dashboard-welcome p{margin:6px 0 0;color:var(--ink-soft)}
.dashboard-new{align-self:center}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.metric-card{min-height:112px;padding:18px;background:#fff;border:1px solid var(--modern-line);border-radius:12px;box-shadow:var(--modern-shadow);display:flex;gap:14px;align-items:flex-start;transition:.18s ease}
a.metric-card:hover{transform:translateY(-2px);border-color:var(--violet-200)}
.metric-icon{width:43px;height:43px;flex:0 0 43px;border-radius:10px;background:var(--violet-100);color:var(--violet-600);display:grid;place-items:center}.metric-icon svg{width:24px;height:24px}
.metric-card>span:last-child{display:flex;flex-direction:column;min-width:0}.metric-card small{color:#6e697c;font-size:12px}.metric-card strong{font-size:25px;line-height:1.15;margin:3px 0;color:#171427}.metric-card em{font-style:normal;color:#777284;font-size:11px}
.metric-card i,.work-info i{height:4px;margin-top:9px;border-radius:999px;background:#ebe9f1;overflow:hidden}.metric-card i b,.work-info i b{display:block;height:100%;background:linear-gradient(90deg,var(--violet-600),var(--violet-500));border-radius:inherit}
.metric-progress>span:last-child{flex:1}
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,.75fr);gap:16px;align-items:start}
.dashboard-main-column,.dashboard-side-column{display:grid;gap:16px}
.dashboard-card{background:#fff;border:1px solid var(--modern-line);border-radius:12px;box-shadow:var(--modern-shadow);overflow:hidden}
.dashboard-card-head{min-height:68px;padding:17px 19px;display:flex;justify-content:space-between;gap:15px;align-items:flex-start;border-bottom:1px solid #efedf4}.dashboard-card-head h2{margin:0;font-size:16px}.dashboard-card-head p{margin:4px 0 0;color:var(--ink-soft);font-size:12px}.dashboard-card-head>a{border:1px solid var(--violet-300);color:var(--violet-700);border-radius:8px;padding:6px 10px;font-size:11px;font-weight:750}
.works-list-modern{padding:0 18px}.work-row-modern{display:grid;grid-template-columns:58px minmax(0,1fr) auto 18px;gap:13px;align-items:center;padding:13px 0;border-bottom:1px solid #efedf4}.work-row-modern:last-child{border-bottom:0}.work-row-modern:hover .work-info>strong{color:var(--violet-700)}
.work-cover{width:48px;height:63px;border-radius:7px;display:grid;place-items:center;box-shadow:0 5px 12px rgba(21,12,48,.18);overflow:hidden;color:#fff;font-family:Georgia,serif;font-size:22px}.work-cover:before{content:"";position:absolute}.work-cover-1{background:linear-gradient(150deg,#28125f,#7a48dc)}.work-cover-2{background:linear-gradient(150deg,#123c59,#1d7192)}.work-cover-3{background:linear-gradient(150deg,#6d2e4e,#d38a72)}.work-cover-4{background:linear-gradient(150deg,#121f34,#41627f)}
.work-info{display:grid;min-width:0}.work-info>strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.15s}.work-info small{margin-top:4px;color:var(--ink-soft);font-size:11px}.work-info i{width:min(230px,100%)}
.work-meta{text-align:right;display:grid;gap:5px}.work-meta small{color:#837e8f;font-size:10px}.work-meta strong{color:var(--violet-600);font-size:11px}.work-arrow{font-size:24px;color:#aaa4b8}
.new-work-outline{height:37px;margin:0 18px 16px;border:1px solid var(--violet-300);border-radius:8px;color:var(--violet-700);display:grid;place-items:center;font-weight:750;font-size:12px}.new-work-outline:hover{background:var(--violet-50)}
.recent-chapters-list{padding:6px 18px 12px}.recent-chapters-list>a{min-height:48px;display:grid;grid-template-columns:31px minmax(0,1fr) 72px 100px;align-items:center;gap:10px;border-bottom:1px solid #f0eef5}.recent-chapters-list>a:last-child{border:0}.recent-chapters-list>a:hover strong{color:var(--violet-700)}.chapter-file{width:28px;height:28px;border-radius:7px;background:#f1eff7;color:#625b76;display:grid;place-items:center}.chapter-file svg{width:15px;height:15px}.recent-chapters-list>a>span:nth-child(2){display:grid}.recent-chapters-list strong{font-size:11px}.recent-chapters-list small{font-size:10px;color:var(--ink-soft)}.recent-chapters-list em{font-size:10px;color:#837e8f;font-style:normal}.recent-chapters-list>a>b{text-align:right;color:var(--violet-600);font-size:11px}
.dashboard-empty{padding:34px;text-align:center;display:grid;justify-items:center;gap:8px;color:var(--ink-soft)}.dashboard-empty>span{font-size:35px}.dashboard-empty strong{color:var(--ink-strong)}.dashboard-empty p{margin:0 0 8px}.compact-empty{padding:25px;text-align:center;color:var(--ink-soft)}
.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:16px}.quick-grid a{min-height:82px;padding:13px;border:1px solid #ece9f3;border-radius:10px;background:#fcfbff;display:grid;align-content:center;justify-items:start;gap:7px}.quick-grid a:hover{background:var(--violet-50);border-color:var(--violet-200)}.quick-grid span{font-size:20px}.quick-grid strong{font-size:11px}
.account-card{padding-bottom:16px}.plan-pill{margin:15px 16px 11px;padding:13px;border-radius:10px;background:linear-gradient(135deg,var(--violet-50),#eee8ff);display:flex;justify-content:space-between;align-items:center}.plan-pill span{font-size:11px;color:#746e83}.plan-pill strong{color:var(--violet-700);font-size:12px;background:#fff;padding:5px 8px;border-radius:999px}
.account-numbers{display:grid;grid-template-columns:1fr 1fr;padding:3px 16px 14px}.account-numbers>div{display:grid;text-align:center;border-right:1px solid #ece9f3}.account-numbers>div:last-child{border:0}.account-numbers strong{font-size:17px}.account-numbers span{font-size:10px;color:var(--ink-soft)}.account-manage{margin:0 16px;width:calc(100% - 32px)}
.privacy-card{padding:17px;display:flex;gap:12px;align-items:flex-start}.privacy-card>span{width:37px;height:37px;border-radius:9px;background:#ecf8f0;display:grid;place-items:center}.privacy-card strong{font-size:12px}.privacy-card p{margin:5px 0 0;color:var(--ink-soft);font-size:11px;line-height:1.5}
.literary-quote{margin:0;min-height:82px;padding:18px 25px;border-radius:12px;background:linear-gradient(90deg,#f1edff,#faf8ff);color:#7251c6;display:flex;align-items:center;gap:14px;border:1px solid #ece7ff}.literary-quote>span{font-family:Georgia,serif;font-size:47px;line-height:.7}.literary-quote p{margin:0;font-size:13px;flex:1}.literary-quote small{display:block;margin-top:6px}.literary-quote>b{font-size:28px;color:#9478de}

/* Harmonização das demais telas internas */
.topbar{margin-top:25px}.term,.chapter-item,table{background:#fff}.term,.chapter-item{border-color:var(--modern-line);box-shadow:var(--shadow-soft)}
th{background:#f5f2ff;color:#61567c}td{color:#403b4c}.auth-card{background:#fff;border-color:var(--modern-line)}.logo-placeholder{background:linear-gradient(135deg,var(--violet-600),var(--violet-800))}
.scrivener-window{border-color:var(--modern-line);box-shadow:var(--modern-shadow)}.scrivener-menubar,.scrivener-topbar,.formatbar,.statusbar{background:#f7f5fc;border-color:#e4e1ec}.editor-title-strip,.editor-workspace,.editor-scroll,.rich-editor{background:#fff}.binder{background:#f3f1f8;border-color:#ddd9e7}.binder-item.active{background:var(--violet-100)}.rich-editor h1,.rich-editor h2,.rich-editor h3{color:var(--violet-800)}

@media(max-width:1180px){
    .dashboard-stats{grid-template-columns:repeat(2,1fr)}
    .dashboard-layout{grid-template-columns:1fr}
    .dashboard-side-column{grid-template-columns:repeat(2,minmax(0,1fr))}.privacy-card{grid-column:1/-1}
}
@media(max-width:900px){
    .sidebar{position:fixed;transform:translateX(-105%);transition:transform .22s ease;width:250px}.sidebar-open .sidebar{transform:translateX(0)}
    .sidebar-overlay{display:block;position:fixed;inset:0;background:rgba(22,14,46,.45);z-index:900;opacity:0;pointer-events:none;transition:.2s}.sidebar-open .sidebar-overlay{opacity:1;pointer-events:auto}
    .mobile-menu-btn{display:grid;place-items:center;position:fixed;left:14px;top:18px;width:40px;height:40px;z-index:850;border-radius:10px;background:#fff;color:var(--violet-700);box-shadow:var(--modern-shadow)}.mobile-menu-btn svg{width:21px;height:21px}
    .app{margin-left:0;padding:0 16px 30px}.app-header{margin:0 -16px;padding:0 16px 0 68px;grid-template-columns:1fr 40px 38px}.app-header>div:first-child,.global-search{display:none}
    .grid-2,.grid-3,.guide-tabs-layout,.guide-panel-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
    .app-header{height:70px}.dashboard-welcome{padding:20px 0 16px}.dashboard-welcome h1{font-size:22px}.dashboard-new{display:none}
    .dashboard-stats{grid-template-columns:1fr 1fr;gap:10px}.metric-card{min-height:102px;padding:13px;gap:10px}.metric-icon{width:37px;height:37px;flex-basis:37px}.metric-card strong{font-size:20px}.metric-card em{display:none}
    .dashboard-side-column{grid-template-columns:1fr}.privacy-card{grid-column:auto}
    .work-row-modern{grid-template-columns:48px minmax(0,1fr) 16px}.work-cover{width:42px;height:56px}.work-meta{display:none}
    .recent-chapters-list>a{grid-template-columns:31px minmax(0,1fr) 70px}.recent-chapters-list>a>b{display:none}
    .literary-quote{padding:15px}.literary-quote>b{display:none}
    .page-title{font-size:25px}
}
@media(max-width:430px){.dashboard-stats{grid-template-columns:1fr}.metric-card{min-height:85px}.quick-grid{grid-template-columns:1fr 1fr}}

/* =========================================================
   TEMA MARROM E DOURADO — INTERFACE APROVADA
   ========================================================= */
:root{
 --modern-bg:#fbf8f3;--modern-line:#eadfd2;--modern-shadow:0 4px 18px rgba(58,31,12,.06);
 --ink-strong:#26170f;--ink-soft:#74665b;
 --violet-50:#f8efe4;--violet-100:#f3e4d2;--violet-200:#e7ccb0;--violet-300:#c99862;
 --violet-500:#9b5b20;--violet-600:#7a4216;--violet-700:#5b2e0d;--violet-800:#3b1d08;
}
body{background:#fbf8f3;color:#2b1a10}
body:before{display:none}
.sidebar{width:250px;background:linear-gradient(180deg,#321a0b 0%,#1d0e05 100%);border-right:1px solid #5d3519;box-shadow:none;color:#fff}
.brand{min-height:126px;padding:12px 18px;justify-content:center;background:transparent;border-bottom:0}
.brand-logo{width:205px;max-width:100%;height:105px;max-height:105px;object-fit:contain;filter:none!important}
.sidebar nav{padding:5px 16px;gap:5px}
.sidebar nav a{color:#fff5df;padding:11px 13px;border-radius:8px}
.sidebar nav a.active,.sidebar nav a:hover{background:linear-gradient(180deg,#8a501d,#64350f);border-color:#a66b2d;color:#fff;box-shadow:inset 0 1px rgba(255,255,255,.12)}
.nav-icon{color:#e8bb66}
.sidebar-plan{margin:auto 20px 14px!important;background:rgba(150,89,29,.18)!important;border:1px solid rgba(220,164,83,.24)!important}
.sidebar-plan strong{background:#8b4c13!important;color:#fff0cc!important}
.sidebar-footer{display:none}
.app{margin-left:250px;padding:0 28px 0;background:#fbf8f3;min-height:100vh}
.app-header{height:78px;margin:0 -28px;padding:0 28px;background:#fffdfa;border-bottom:1px solid #eee4db;grid-template-columns:1fr minmax(240px,320px) 42px 38px}
.global-search{border-color:#eadfd2;background:#fff}.header-icon-btn,.header-avatar{color:#5b2e0d}.header-avatar{background:#321a0b;color:#e5b85d}
.dashboard-welcome{padding:22px 0 20px}.dashboard-welcome h1{color:#2c190f}
.dashboard-layout{grid-template-columns:minmax(0,1.72fr) minmax(300px,.78fr);gap:14px}
.dashboard-card{border-color:#eadfd2;border-radius:8px;box-shadow:none;background:#fff}
.dashboard-card-head{min-height:52px;padding:13px 16px;border-bottom-color:#eee5dc}.dashboard-card-head h2{color:#2a180e}.dashboard-card-head p{display:none}.dashboard-card-head>a{border-color:#bf8b56;color:#6b3515;background:#fffdf9}
.work-row-modern{padding:10px 16px;border-bottom-color:#eee5dc}.work-cover{border-radius:5px}.work-info i,.metric-card i{background:#eee1d4}.work-info i b,.metric-card i b{background:linear-gradient(90deg,#6c330e,#b17a3b)}
.new-work-outline{border-color:#bd8955;color:#67320f;margin:8px 16px 13px}
.recent-chapters-list a{padding:7px 16px;border-color:#eee5dc}.recent-chapters-list b{color:#7b3d13}
.quick-card,.account-card,.privacy-card{display:none!important}
.dashboard-stats{order:5;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 16px}
.metric-card{background:#fff;border:1px solid #eadfd2;border-radius:8px;box-shadow:none;min-height:106px;padding:16px}
.metric-icon{background:#f7ede1;color:#6b3515}.metric-card strong{color:#1e130d}.metric-card em{color:#77685c}
.dashboard-empty>span{display:none}.quick-svg svg,.privacy-lock svg{width:22px;height:22px}
.app-footer{height:40px;margin:0 -28px;padding:0 28px;background:linear-gradient(180deg,#2e1708,#1d0e05);color:#f5dfb8;border-top:1px solid #70431f;display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px}
@media(max-width:900px){.sidebar{width:250px}.app{margin-left:0}.dashboard-layout{grid-template-columns:1fr}.dashboard-side-column{grid-template-columns:1fr}.dashboard-stats{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.dashboard-stats{grid-template-columns:1fr}.brand-logo{height:92px}.app-footer{margin:0 -16px;padding:10px 16px;height:auto}}
