:root,:root[data-theme=light]{--bg-primary: #ffffff;--bg-secondary: #f7f9fa;--bg-tertiary: #eff3f4;--bg-hover: rgba(15, 20, 25, .1);--text-primary: #0f1419;--text-secondary: #536471;--text-tertiary: #8b98a5;--accent-primary: #1d9bf0;--accent-hover: #1a8cd8;--accent-light: #e8f5fd;--border-primary: #eff3f4;--border-secondary: #cfd9de;--error: #f4212e;--success: #00ba7c;--bg: var(--bg-secondary);--card-bg: var(--bg-primary);--text: var(--text-primary);--muted: var(--text-secondary);--border: var(--border-primary);--primary: var(--accent-primary)}:root[data-theme=dark]{--bg-primary: #15202b;--bg-secondary: #192734;--bg-tertiary: #22303c;--bg-hover: rgba(255, 255, 255, .1);--text-primary: #f7f9f9;--text-secondary: #8b98a5;--text-tertiary: #6e767d;--accent-primary: #1d9bf0;--accent-hover: #1a8cd8;--accent-light: #1e3a5f;--border-primary: #2f3336;--border-secondary: #3f4447;--error: #f4212e;--success: #00ba7c;--bg: var(--bg-secondary);--card-bg: var(--bg-primary);--text: var(--text-primary);--muted: var(--text-secondary);--border: var(--border-primary);--primary: var(--accent-primary)}:root[data-theme=sepia]{--bg-primary: #f4ecd8;--bg-secondary: #e8dcc4;--bg-tertiary: #dcc9a8;--bg-hover: rgba(92, 64, 35, .1);--text-primary: #3e2723;--text-secondary: #5d4037;--text-tertiary: #795548;--accent-primary: #8b6914;--accent-hover: #705510;--accent-light: #fef3c7;--border-primary: #d7cbb1;--border-secondary: #c4b59a;--error: #c62828;--success: #2e7d32;--bg: var(--bg-secondary);--card-bg: var(--bg-primary);--text: var(--text-primary);--muted: var(--text-secondary);--border: var(--border-primary);--primary: var(--accent-primary)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Helvetica Neue,Arial,Noto Sans,sans-serif;color:var(--text-primary);background:var(--bg-secondary);line-height:1.5;font-size:15px;transition:background-color .3s ease,color .3s ease}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.app-layout{display:block;min-height:100vh;width:100%}@media (min-width: 768px){.app-layout{display:flex}}.container{width:100%;padding:0;margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.pill,.tag{display:inline-flex;align-items:center;padding:4px 12px;background:var(--bg-tertiary);color:var(--text-secondary);border-radius:9999px;font-size:.875rem;font-weight:500}.chapter-detail-page{padding:16px;max-width:100%}.chapter-header{background:var(--bg-secondary);padding:24px;border-radius:12px;margin-bottom:24px}.chapter-meta{display:flex;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:16px;margin-bottom:16px}.chapter-meta h1{margin:0;font-size:2rem}.author-byline{font-weight:400;color:var(--text-secondary);font-size:1.25rem;margin-left:12px}.chapter-actions{display:flex;gap:8px}.chapter-content{background:var(--bg-primary);padding:32px;border-radius:12px;margin-bottom:24px;border:1px solid var(--border-primary)}.chapter-navigation{margin:24px 0;background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:12px;padding:1.25rem;box-shadow:0 2px 8px #0000000d}.chapter-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:1.5rem;font-size:.875rem;padding-bottom:1rem;border-bottom:1px solid var(--border-primary)}.chapter-breadcrumb a{color:var(--accent-primary);text-decoration:none;font-weight:500;transition:color .2s ease}.chapter-breadcrumb a:hover{color:var(--accent-hover);text-decoration:underline}.breadcrumb-separator{color:var(--text-tertiary);font-weight:300}.current-chapter{font-weight:600;color:var(--text-primary)}@media (max-width: 767px){.chapter-navigation{padding:1rem;margin:1rem 0 2rem}.chapter-breadcrumb{font-size:.8125rem;margin-bottom:1rem;padding-bottom:.75rem}}.chapter-nav-cards{display:flex;flex-direction:column;gap:1.25rem}@media (max-width: 767px){.chapter-nav-cards{gap:1rem}}.nav-section{background:var(--bg-secondary);padding:20px;border-radius:12px;border:1px solid var(--border-primary)}.nav-section-title{margin:0 0 16px;font-size:1.125rem;font-weight:600;color:var(--text-primary)}@media (max-width: 767px){.nav-section{padding:1rem}.nav-section-title{font-size:1rem;margin-bottom:.75rem}}.nav-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}.nav-card{display:block;padding:16px;background:var(--bg-primary);border:2px solid var(--border-primary);border-radius:10px;text-decoration:none;color:inherit;transition:all .2s ease;min-height:80px}.nav-card:hover{background:var(--bg-tertiary);border-color:var(--accent-primary);transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.nav-card.compact{padding:12px;min-height:64px}.nav-card.featured{border-color:var(--accent-primary);background:var(--accent-light)}@media (max-width: 767px){.nav-card{padding:1rem;min-height:72px}.nav-card.compact{padding:.875rem;min-height:60px}.nav-cards-grid{grid-template-columns:1fr}}.nav-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;flex-wrap:wrap;gap:.5rem}.chapter-label{font-weight:600;font-size:1rem;color:var(--text-primary)}.nav-card-title{font-style:italic;font-size:.9375rem;color:var(--text-primary);margin-bottom:.5rem;font-weight:500;line-height:1.3}.nav-card-meta{display:flex;gap:8px;font-size:.875rem;color:var(--text-secondary);flex-wrap:wrap;align-items:center}.nav-card-meta span{white-space:nowrap}@media (max-width: 767px){.chapter-label{font-size:.9375rem}.nav-card-title{font-size:.875rem;margin-bottom:.375rem}.nav-card-meta{font-size:.8125rem;gap:6px}}.badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:.75rem;font-weight:600}.badge-new{background:var(--success);color:#fff}.badge-primary{background:var(--accent-primary);color:#fff}.badge-warning{background:var(--warning);color:var(--text-primary)}.end-of-branch{text-align:center;padding:32px;color:var(--text-secondary)}.submissions-section{background:var(--bg-secondary);padding:24px;border-radius:12px;margin-top:24px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-header h2{margin:0}.submission-cta{margin-bottom:24px}.submissions-list h3{margin-bottom:16px}.submission-items{display:flex;flex-direction:column;gap:12px}.submission-item{padding:16px;background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:8px}.submission-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.submission-author{font-weight:600;color:var(--text-primary)}.submission-meta{font-size:.875rem;color:var(--text-secondary)}.submission-actions{display:flex;align-items:center;gap:16px}.vote-count{font-weight:600;color:var(--text-primary)}.btn-small{padding:6px 12px;font-size:.875rem}.story-tree-section{margin:24px 0}.story-tree-visual{position:relative;width:100%;min-height:600px;background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:12px;overflow:hidden}.tree-node-title,.tree-node-author,.tree-node-stats{font-family:inherit}.tree-legend{position:absolute;bottom:20px;right:20px;background:#fffffff2;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--border-primary);border-radius:12px;padding:12px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:0 4px 12px #0000001a}.legend-section{display:flex;flex-direction:column;gap:8px}.legend-hint{font-size:.75rem;color:var(--text-secondary);border-top:1px solid var(--border-primary);padding-top:8px;margin-top:4px}.hide-on-mobile{display:inline}.show-on-mobile{display:none}@media (max-width: 767px){.hide-on-mobile{display:none}.show-on-mobile{display:inline}}.legend-item{display:flex;align-items:center;gap:8px;font-size:.875rem;color:var(--text-secondary)}.legend-dot{width:16px;height:16px;border-radius:50%;flex-shrink:0}.tree-zoom-controls{position:absolute;top:20px;right:20px;display:flex;flex-direction:column;gap:4px;background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:8px;padding:4px}.zoom-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:6px;cursor:pointer;font-size:18px;font-weight:600;color:var(--text-primary);transition:all .2s ease}.zoom-btn:hover{background:var(--bg-hover);border-color:var(--accent-primary)}.zoom-btn:active{transform:scale(.95)}@media (max-width: 768px){.story-tree-visual{min-height:400px}.tree-legend{bottom:10px;right:10px;left:10px;padding:10px 12px}.legend-section{flex-direction:row;flex-wrap:wrap;gap:6px}.legend-item{font-size:.6875rem}.legend-hint{font-size:.6875rem;padding-top:6px;margin-top:2px}.tree-controls{flex-wrap:wrap}.tree-zoom-controls{top:10px;right:10px}.zoom-btn{width:32px;height:32px;font-size:16px}}.story-tree-container{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:12px;padding:1rem;margin:1rem 0;box-shadow:0 2px 8px #0000000d}@media (max-width: 767px){.story-tree-container{padding:.75rem;margin:.75rem 0 5rem;border-radius:10px}.tree-content{margin-top:.5rem}.story-tree-visual{min-height:400px;padding-bottom:60px}}@media (min-width: 768px){.story-tree-container{padding:1.5rem;margin:1.5rem 0}}.tree-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:.75rem}.tree-header-title{margin:0;font-size:1rem;font-weight:600;color:var(--text-primary);display:flex;align-items:center;gap:.5rem}.tree-header-icon{color:var(--accent-primary);flex-shrink:0}.tree-controls{display:flex;gap:4px;background:var(--bg-secondary);padding:4px;border-radius:10px;border:1px solid var(--border-primary)}.view-toggle{display:flex;align-items:center;gap:6px;padding:8px 12px;font-size:.875rem;font-weight:500;background:transparent;color:var(--text-secondary);border:none;border-radius:8px;cursor:pointer;transition:all .2s ease;min-height:40px}.view-toggle svg{flex-shrink:0}.view-toggle:hover:not(.active){background:var(--bg-hover);color:var(--text-primary)}.view-toggle.active{background:var(--accent-primary);color:#fff;box-shadow:0 2px 4px #1d9bf033}.tree-description{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-left:3px solid var(--accent-primary);padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:.875rem;color:var(--text-primary)}.tree-description p{margin:0;line-height:1.5}@media (max-width: 767px){.tree-header{flex-direction:column;align-items:flex-start}.tree-header-title{font-size:.9375rem}.tree-controls{width:100%;justify-content:space-between}.view-toggle{flex:1;padding:10px 8px;justify-content:center;min-height:44px}.view-toggle-label{display:none}.tree-description{padding:.625rem .875rem;font-size:.8125rem}}@media (min-width: 768px){.tree-header-title{font-size:1.125rem}.view-toggle-label{display:inline}.tree-description{font-size:.875rem}}.tree-view{padding:8px 0}.tree-node{margin-bottom:4px}.tree-node-content{display:flex;align-items:center;gap:8px;padding:12px;border-radius:10px;background:var(--bg-secondary);border:1px solid var(--border-primary);transition:all .2s ease;min-height:52px}.tree-node-content:hover{background:var(--bg-tertiary);border-color:var(--border-secondary);transform:translate(2px)}.tree-node-content.current{background:var(--accent-light);border:2px solid var(--accent-primary);box-shadow:0 2px 8px #1d9bf026}.tree-node-content.read{opacity:.65;background:var(--bg-primary)}.tree-node-content.read:after{content:"✓";color:var(--success);font-weight:700;margin-left:auto;font-size:1.125rem}.tree-node-content.in-path{background:#e0f2fe;border-color:var(--accent-primary);border-style:dashed}.tree-node-content.in-path .tree-node-path,.tree-node-content.in-path .tree-node-title-text{color:#0369a1}.tree-expand-btn{width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;background:var(--bg-primary);border:1px solid var(--border-secondary);border-radius:6px;font-size:18px;font-weight:700;color:var(--text-secondary);cursor:pointer;transition:all .2s ease;flex-shrink:0}.tree-expand-btn:hover{background:var(--accent-primary);color:#fff;border-color:var(--accent-primary);transform:scale(1.1)}.tree-expand-btn:active{transform:scale(.95)}@media (max-width: 767px){.tree-expand-btn{width:40px;height:40px;font-size:20px}}.tree-node-link{flex:1;text-decoration:none;color:inherit;display:block;min-height:44px;display:flex;flex-direction:column;justify-content:center}.tree-node-main{display:flex;align-items:center;gap:8px;margin-bottom:4px;flex-wrap:wrap}.tree-node-path{font-weight:600;color:var(--text-primary);font-size:.9375rem}.tree-node-title-text{font-style:italic;color:var(--text-primary);font-size:.875rem;font-weight:500}.tree-node-author{color:var(--text-secondary);font-size:.8125rem}.tree-node-stats{display:flex;gap:6px;font-size:.8125rem;color:var(--text-tertiary);flex-wrap:wrap;align-items:center}.tree-node-stats>span{white-space:nowrap}@media (max-width: 767px){.tree-node{margin-bottom:6px}.tree-node-content{padding:10px;min-height:56px}.tree-node-main{flex-direction:column;align-items:flex-start;gap:4px}.tree-node-path{font-size:.875rem}.tree-node-author{font-size:.75rem}.tree-node-stats{font-size:.75rem;gap:4px}.tree-node-stats>span:not(.badge){font-size:.6875rem}}.tree-children{margin-top:4px}.chapter-list{display:flex;flex-direction:column;gap:8px}.chapter-list-item{display:block;padding:1rem;background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:10px;text-decoration:none;color:inherit;transition:all .2s ease;min-height:64px}.chapter-list-item:hover{background:var(--bg-tertiary);border-color:var(--border-secondary);transform:translateY(-2px);box-shadow:0 4px 12px #00000014}.chapter-list-item.current{background:var(--accent-light);border:2px solid var(--accent-primary);box-shadow:0 2px 8px #1d9bf026}.chapter-list-item.read{opacity:.65;background:var(--bg-primary)}.chapter-list-item.read .chapter-path:after{content:" ✓";color:var(--success);font-weight:700}.chapter-list-item.in-path{background:#e0f2fe;border-color:var(--accent-primary);border-style:dashed}.chapter-list-item.in-path .chapter-path{color:#0369a1;font-weight:700}.chapter-list-title{font-style:italic;font-size:.875rem;color:var(--text-primary);margin:.25rem 0;font-weight:500}@media (max-width: 767px){.chapter-list-title{font-size:.8125rem}}.chapter-list-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.chapter-path{font-weight:600;color:var(--text-primary)}.chapter-depth{font-size:.75rem;padding:2px 8px;background:var(--bg-tertiary);border-radius:12px;color:var(--text-secondary)}.chapter-list-info{display:flex;gap:12px;font-size:.875rem}.chapter-author{color:var(--text-secondary)}.chapter-stats{color:var(--text-tertiary)}.tree-loading{text-align:center;padding:32px;color:var(--text-secondary)}@media (prefers-color-scheme: dark){:root{--bg-primary: #000000;--bg-secondary: #16181c;--bg-tertiary: #212327;--bg-hover: rgba(255, 255, 255, .03);--text-primary: #e7e9ea;--text-secondary: #71767b;--text-tertiary: #575b5f;--border-primary: #2f3336;--border-secondary: #3e4144;--accent-light: #031018}.main-header{background:#000000a6}}@media (max-width: 900px){.container>div[style*=grid]{grid-template-columns:1fr!important}.container{padding:16px}}.card{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:12px;overflow:hidden;box-shadow:0 1px 3px #0000001a;transition:all .2s ease;cursor:pointer}.card:hover{background:var(--bg-hover);box-shadow:0 4px 6px #0000001a;transform:translateY(-2px)}.card-body{padding:20px}.clamp-3{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.clamp-4{display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}table{width:100%}th,td{font-size:14px}thead th{background:#f8fafc}tbody tr:nth-child(2n){background:#fafafa}tbody tr:hover{background:#f1f5f9}.table-sticky thead th{position:sticky;top:0;z-index:1}@media (max-width: 720px){.hide-sm{display:none}th,td{font-size:13px;padding:6px 8px}}.sidebar{display:none}.sidebar-logo{padding:0 12px;margin-bottom:16px}.logo-text{font-size:1.875rem;font-weight:700;color:var(--accent-primary)}.logo-link{text-decoration:none}.sidebar-nav{list-style:none;padding:0;margin:0}.sidebar-nav-item{margin-bottom:4px}.sidebar-nav-link{display:flex;align-items:center;gap:20px;padding:12px;border-radius:9999px;color:var(--text-primary);font-size:1.25rem;transition:background-color .2s ease;text-decoration:none}.sidebar-nav-link:hover{background:var(--bg-hover);text-decoration:none}.sidebar-nav-link.active{font-weight:700}.sidebar-nav-icon{width:1.75rem;height:1.75rem}.sidebar-user{margin-top:auto;padding-top:16px}.user-menu{width:100%;position:relative}.user-menu-trigger{display:flex;align-items:center;gap:12px;padding:12px;border-radius:9999px;width:100%;cursor:pointer;transition:background-color .2s ease}.user-menu-trigger:hover{background:var(--bg-hover)}.user-dropdown{position:absolute;bottom:100%;left:0;right:0;margin-bottom:8px;background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:12px;box-shadow:0 4px 12px #0000001a;padding:8px;z-index:1000}.dropdown-item{display:flex;align-items:center;gap:12px;padding:10px 16px;border-radius:8px;color:var(--text-primary);text-decoration:none;transition:background-color .2s ease;width:100%;border:none;background:none;font-size:14px;cursor:pointer;text-align:left}.dropdown-item:hover{background:var(--bg-hover)}.dropdown-item.logout{color:var(--error)}.dropdown-divider{height:1px;background:var(--border-primary);margin:8px 0}.dropdown-icon{width:20px;height:20px;opacity:.7}.user-info{flex:1;min-width:0}.user-name{font-weight:700;color:var(--text-primary)}.user-email{color:var(--text-secondary);font-size:.875rem}.card-image{width:100%;height:140px;max-width:100%;object-fit:cover;display:block;border-radius:8px 8px 0 0}.badge{display:inline-block;background:#eef2ff;color:#4338ca;padding:2px 8px;border-radius:999px;font-size:12px}.badge-branches{background:var(--accent-light);color:var(--accent-primary);font-weight:600}.badge-read{background:#d1fae5;color:#065f46;font-weight:600}@media (max-width: 767px){.badge,.badge-branches,.badge-read{font-size:.6875rem;padding:3px 8px}}.badge-new{background:#fef3c7;color:#92400e}.chip{display:inline-block;background:#eef2ff;color:#4338ca;padding:2px 6px;border-radius:999px;font-size:11px}.pill{display:inline-block;background:#f1f5f9;color:#334155;padding:2px 8px;border-radius:999px;font-size:12px}.read-layout{display:grid;grid-template-columns:1fr 320px;gap:16px}.read-content{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:8px;padding:12px;line-height:1.7;color:var(--text-primary)}.reader-frame{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:12px;min-height:480px;height:70vh;padding:24px;box-shadow:0 2px 6px #0000000f;display:block;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;color:var(--text-primary)}.reader-page{line-height:1.8;font-size:18px;max-width:none;margin:0 auto;overflow:visible;word-wrap:break-word;overflow-wrap:anywhere;padding-bottom:28px;color:var(--text-primary)}.reader-page img{max-width:100%;height:auto;max-height:400px;object-fit:contain;margin:1rem auto;display:block;border-radius:8px}.reader-spread{display:grid;grid-template-columns:1fr 24px 1fr;gap:0}.reader-gutter{background:repeating-linear-gradient(90deg,transparent,transparent 22px,rgba(0,0,0,.04) 22px,rgba(0,0,0,.04) 24px)}.reader-spread .reader-page{max-width:none;margin:0}.reader-spread .reader-gutter+.reader-page{padding-left:20px}.reader-fullscreen .reader-spread .reader-gutter+.reader-page{padding-left:28px}.reader-nav{display:flex;justify-content:space-between;margin-top:12px}.reader-bar{display:flex;align-items:center;gap:8px;padding:8px 0;color:var(--text-primary)}.reader-bar a{color:var(--text-primary);text-decoration:none;font-weight:500}.reader-bar a:hover{color:var(--accent-primary)}.reader-bar button{background:var(--accent-primary);color:#fff;border:none;padding:.5rem 1rem;border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s ease}.reader-bar button:hover{background:var(--accent-hover)}.reader-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--bg-secondary);z-index:9999;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}.reader-fullscreen .container{display:flex;flex-direction:column;height:100vh;max-height:100vh}.reader-fullscreen .reader-bar{flex-shrink:0}.reader-fullscreen .reader-frame{flex:1;height:auto;max-height:calc(100vh - 80px);width:100%;margin:0 auto}@media (max-width: 767px){.reader-fullscreen .container{padding:.5rem}.reader-fullscreen .reader-frame{max-height:calc(100vh - 60px)}}@media (min-width: 768px) and (max-width: 1200px){.reader-fullscreen .container{max-width:90%!important}}@media (min-width: 1201px){.reader-fullscreen .container{max-width:1400px!important}}.reader-nav-overlay{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:0;transition:opacity .2s ease}.reader-nav-overlay.visible{opacity:1}.reader-nav-zone{position:absolute;top:0;bottom:0;width:33.3333%;display:flex;align-items:center;pointer-events:auto}.reader-nav-zone.left{left:0;justify-content:flex-start}.reader-nav-zone.right{right:0;justify-content:flex-end}.reader-nav-btn{background:#11111140;border:2px solid rgba(255,255,255,.45);color:#fff;font-size:42px;width:72px;height:72px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;margin:0 16px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.reader-nav-btn:hover{filter:brightness(1.1)}.right-sidebar{display:none}.widget{background:var(--bg-secondary);border-radius:16px;margin-bottom:16px;overflow:hidden}.widget-header{padding:16px;border-bottom:1px solid var(--border-primary)}.widget-title{font-size:1.25rem;font-weight:800;margin:0}.widget-content{padding:16px}.story-feed-item{display:flex;gap:16px;padding:16px;border-bottom:1px solid var(--border-primary);cursor:pointer;transition:background-color .2s ease}.story-feed-item:hover{background:var(--bg-hover)}.story-author-avatar{flex-shrink:0}.story-content{flex:1;min-width:0}.story-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.story-author-name{font-weight:700;color:var(--text-primary)}.story-timestamp{color:var(--text-secondary);font-size:.875rem}.story-title-link{color:var(--text-primary);font-size:1.125rem;font-weight:700;text-decoration:none;display:block;margin-bottom:8px}.story-title-link:hover{text-decoration:underline}.story-summary{color:var(--text-primary);margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.story-image{width:120px;height:120px;border-radius:12px;object-fit:cover;flex-shrink:0}.story-actions{display:flex;align-items:center;gap:16px;margin-top:12px;flex-wrap:wrap}.story-action{display:flex;align-items:center;gap:6px;padding:6px 12px;border-radius:9999px;color:var(--text-secondary);font-size:.875rem;cursor:pointer;transition:all .2s ease;background:transparent;border:1px solid transparent;text-decoration:none;min-height:36px}.story-action:hover{background:var(--bg-hover);color:var(--text-primary);border-color:var(--border-secondary)}.story-action svg{width:1.25rem;height:1.25rem;flex-shrink:0}.story-action.active{color:var(--accent-primary);background:var(--accent-light);border-color:var(--accent-primary)}.story-action.active.favorite{color:#ef4444;background:#fef2f2;border-color:#fecaca}.story-action.active.favorite:hover{background:#fee2e2;color:#dc2626}@media (max-width: 767px){.story-actions{gap:12px;margin-top:10px}.story-action{padding:8px 12px;font-size:.8125rem;min-height:40px}.story-action svg{width:18px;height:18px}.story-action span{white-space:nowrap}}.mobile-top-bar{display:flex;align-items:center;justify-content:space-between;padding:1rem;background:var(--bg-primary);border-bottom:1px solid var(--border-primary);position:fixed;top:0;left:0;right:0;z-index:999;box-shadow:0 2px 4px #0000000d}.mobile-logo h1{font-size:1.5rem;font-weight:700;color:var(--accent-primary);margin:0;text-decoration:none}.mobile-menu-btn{width:44px;height:44px;padding:10px;border:none;background:transparent;cursor:pointer;border-radius:8px;transition:background .2s ease;display:flex;align-items:center;justify-content:center}.mobile-menu-btn:hover{background:#f3f4f6}.mobile-menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1000;animation:fadeIn .2s ease}.mobile-menu{position:fixed;top:0;right:0;bottom:0;width:85%;max-width:320px;background:var(--bg-primary);box-shadow:-4px 0 16px #0003;animation:slideInRight .3s ease;overflow-y:auto}@keyframes slideInRight{0%{transform:translate(100%)}to{transform:translate(0)}}.mobile-menu-header{padding:2rem 1.5rem;background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff}.mobile-menu-user{display:flex;align-items:center;gap:1rem}.mobile-menu-user-name{font-size:1.125rem;font-weight:700;margin-bottom:.25rem}.mobile-menu-user-email{font-size:.875rem;opacity:.9}.mobile-menu-nav{padding:1rem 0}.mobile-menu-item{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;text-decoration:none;color:#374151;font-size:1rem;font-weight:500;transition:background .2s ease;border:none;background:none;width:100%;text-align:left;cursor:pointer;min-height:44px}.mobile-menu-item:hover,.mobile-menu-item:active{background:#f3f4f6}.mobile-menu-item.logout{color:#ef4444}.mobile-menu-divider{height:1px;background:#e5e7eb;margin:.5rem 1.5rem}@media (min-width: 768px){.mobile-top-bar,.mobile-menu-overlay,.mobile-menu{display:none}}@media (max-width: 767px){.sidebar{display:block;position:fixed;bottom:0;left:0;right:0;height:auto;width:100%;border-right:none;border-top:1px solid var(--border-primary);background:var(--bg-primary);padding:8px;z-index:100;box-shadow:0 -2px 8px #0000000d}.sidebar-nav{display:flex;justify-content:space-around;align-items:center}.sidebar-nav-link{flex-direction:column;gap:4px;font-size:.675rem;padding:10px 12px;min-width:64px;min-height:44px;align-items:center;justify-content:center}.sidebar-nav-icon{width:24px!important;height:24px!important}.sidebar-nav-link span,.sidebar-logo,.sidebar-user{display:none}}@media (max-width: 768px){.max-w-6xl,.max-w-4xl{padding-left:1rem;padding-right:1rem}.story-card{margin-bottom:1rem}.card-body,.story-feed-item{padding:1rem}.story-image{width:100%;height:180px}.card-image{height:160px}.content-rating-info{padding:1rem}.factors-grid{grid-template-columns:1fr}.metrics-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}.metric-card{padding:1rem}label{font-size:1rem;margin-bottom:.5rem}input[type=text],input[type=email],input[type=password],textarea{padding:.875rem;font-size:1rem;border-radius:8px}.chapter-nav-card{padding:1rem}.container{padding:0 1rem}.reader-bar{padding:.75rem 1rem;font-size:.875rem;flex-wrap:wrap;gap:.5rem}.reader-nav{padding:.75rem;gap:.75rem}.reader-nav button{padding:.75rem 1.25rem;font-size:.95rem;min-height:44px}.story-tree-visual{min-height:350px}.tree-node{min-width:140px}}.story-feed-item{flex-direction:column;padding:12px}.story-image{width:100%;height:200px}@media (min-width: 768px){.sidebar{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;width:200px;border-right:1px solid var(--border-primary);border-top:none;padding:16px;overflow-y:auto}.sidebar-nav{flex-direction:column}.sidebar-nav-link{flex-direction:row;gap:12px;font-size:1rem;padding:12px}.sidebar-nav-link span{display:inline}.sidebar-logo,.sidebar-user{display:block}.story-feed-item{flex-direction:row;padding:16px}.story-image{width:120px;height:120px}}@media (min-width: 1024px){.sidebar{width:250px}.sidebar-nav-link{font-size:1.125rem;gap:16px}}@media (min-width: 1280px){.sidebar{width:275px}.right-sidebar{display:block;width:350px;padding:16px;overflow-y:auto}.sidebar-nav-link{font-size:1.25rem;gap:20px}}button{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;padding:8px 16px;border-radius:9999px;cursor:pointer;font-weight:500;font-size:.9375rem;transition:all .2s ease;display:inline-flex;align-items:center;gap:8px}.btn-primary{background:var(--accent-primary);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:transparent;color:var(--text-primary);border:1px solid var(--border-secondary)}.btn-secondary:hover{background:var(--bg-hover)}.btn-favorite{background:transparent;color:var(--text-secondary);padding:8px;border-radius:50%;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center}.btn-favorite:hover{background:var(--bg-hover);color:var(--error)}.btn-favorite.active{color:var(--error)}button:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{width:100%;border:1px solid var(--border-secondary);border-radius:8px;padding:12px 16px;background:var(--bg-primary);color:var(--text-primary);font-size:1rem;transition:border-color .2s ease;font-family:inherit}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--accent-primary)}textarea{min-height:120px;resize:vertical}.form-group{margin-bottom:20px}.form-label{display:block;font-weight:600;margin-bottom:8px;color:var(--text-primary)}.form-input,.form-select{width:100%}.form-row{display:grid;gap:16px;grid-template-columns:1fr}@media (min-width: 768px){.form-row{grid-template-columns:1fr 1fr}}.form-actions{margin-top:32px;display:flex;gap:12px;justify-content:flex-end}.create-story-container{padding:1rem;max-width:100%;margin:0 auto}.create-story-header{text-align:center;margin-bottom:1.5rem}.create-story-header h1{margin-bottom:.5rem;font-size:1.5rem}.create-story-header .subtitle{color:var(--text-secondary);font-size:.875rem}.create-story-form{max-width:800px;margin:0 auto}@media (max-width: 767px){.create-story-container{padding:.75rem}.create-story-header{margin-bottom:1rem}.create-story-header h1{font-size:1.25rem}.create-story-form>div,.create-story-form>.form-group{margin-bottom:1rem}.create-story-form input:not([type=checkbox]):not([type=radio]),.create-story-form select,.create-story-form .form-input,.create-story-form .form-select{font-size:16px;padding:.75rem}.create-story-form button:not(.btn-large){padding:.625rem 1rem;font-size:.875rem}.create-story-form .pill{font-size:.75rem;padding:.375rem .75rem}.create-story-form .word-count,.create-story-form small{font-size:.75rem}.create-story-form .form-label,.create-story-form label{font-size:.875rem;font-weight:600;margin-bottom:.5rem;display:block}.create-story-form>div>div[style*=flex]{flex-direction:column!important;align-items:stretch!important}.create-story-form>div>div[style*=flexWrap] button{flex:1 1 auto;min-width:calc(50% - 3px)}.create-story-form button:not([class]){background:var(--accent-primary);color:#fff;border:none;border-radius:8px;padding:.625rem 1rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:background .2s ease;min-height:44px}.create-story-form button:not([class]):hover{background:var(--accent-hover)}.create-story-form input:not([class]):not([type=checkbox]):not([type=radio]){width:100%;padding:.75rem;border:1px solid var(--border-secondary);border-radius:8px;font-size:16px;font-family:inherit;transition:border-color .2s ease}.create-story-form input:not([class]):focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px #1d9bf01a}}.story-reference{background:var(--bg-secondary);padding:12px 16px;border-radius:8px;margin-bottom:16px}.word-count{margin-top:8px;font-size:.875rem;color:var(--text-secondary)}@media (min-width: 768px){.create-story-container{padding:2rem}.create-story-header h1{font-size:2rem}.create-story-header .subtitle{font-size:1.125rem}}@media (min-width: 1024px){.create-story-container{padding:2.5rem}.create-story-form{max-width:900px}.create-story-header{margin-bottom:2.5rem}.create-story-form>div,.create-story-form>.form-group{margin-bottom:1.5rem}.create-story-form .rich-text-editor-container .ql-container{height:500px;max-height:500px}.create-story-form .rich-text-editor-container .ql-editor{min-height:500px}}.writer-dashboard{padding:16px;width:100%}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;flex-wrap:wrap;gap:12px}.dashboard-header h1{margin:0}.metrics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin-bottom:32px}.metric-card{background:var(--bg-secondary);padding:20px;border-radius:12px;text-align:center}.metric-label{font-size:.875rem;color:var(--text-secondary);margin-bottom:8px}.metric-value{font-size:2rem;font-weight:700;color:var(--text-primary)}.dashboard-section{margin-bottom:32px}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-title{font-size:1.5rem;font-weight:700}.filter-tabs{display:flex;gap:4px;overflow-x:auto;padding-bottom:4px;margin-bottom:16px}.filter-tab{padding:8px 16px;background:transparent;border:none;color:var(--text-secondary);font-weight:500;white-space:nowrap;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s ease}.filter-tab:hover{color:var(--text-primary)}.filter-tab.active{color:var(--accent-primary);border-bottom-color:var(--accent-primary)}@media (min-width: 768px){.writer-dashboard{padding:24px}.metrics-grid{grid-template-columns:repeat(4,1fr)}}@media (min-width: 1024px){.writer-dashboard{padding:32px}}.main-content{width:100%;min-height:100vh;padding-top:60px;padding-bottom:70px;border-right:none}@media (min-width: 768px){.main-content{flex:1;min-width:0;border-right:1px solid var(--border-primary);padding-top:0;padding-bottom:0}}.main-header{background:var(--bg-primary);border-bottom:1px solid var(--border-primary);padding:16px;margin-bottom:1rem}.main-header h1{font-size:1.25rem;font-weight:700;margin:0}.feed-tabs{display:flex;margin-top:16px;border-bottom:1px solid var(--border-primary)}.feed-tab{flex:1;padding:16px;text-align:center;color:var(--text-secondary);font-weight:500;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s ease}.feed-tab:hover{background:var(--bg-hover)}.feed-tab.active{color:var(--text-primary);font-weight:700;border-bottom-color:var(--accent-primary)}.feed{min-height:100vh}.feed-item{padding:16px;border-bottom:1px solid var(--border-primary);transition:background-color .2s ease}.feed-item:hover{background:var(--bg-hover)}.avatar{width:48px;height:48px;border-radius:50%;overflow:hidden;flex-shrink:0;background:var(--bg-tertiary)}.avatar-small{width:32px;height:32px}.avatar-large{width:64px;height:64px}.avatar img{width:100%;height:100%;object-fit:cover}.avatar-placeholder{width:100%;height:100%;background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--text-secondary)}.preferences-container{max-width:800px;margin:0 auto;padding:2rem}.preferences-container h1{font-size:2rem;font-weight:700;margin-bottom:2rem;color:var(--text-primary)}.preferences-section{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:12px;padding:2rem;margin-bottom:1.5rem}.preferences-section h2{font-size:1.25rem;font-weight:600;margin-bottom:.5rem;color:var(--text-primary)}.section-description{color:var(--text-secondary);margin-bottom:1.5rem;line-height:1.5}.rating-options{display:flex;flex-direction:column;gap:1rem}.rating-option{display:flex;align-items:flex-start;gap:1rem;padding:1rem;border:2px solid var(--border-primary);border-radius:8px;cursor:pointer;transition:all .2s ease}.rating-option:hover{border-color:var(--accent-primary);background:var(--bg-hover)}.rating-option input[type=radio]{margin-top:4px}.rating-option input[type=radio]:checked+.rating-option-content{color:var(--accent-primary)}.rating-option-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.25rem}.rating-label{font-weight:600;font-size:1.1rem}.rating-description{color:var(--text-secondary);font-size:.9rem}.checkbox-option{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;cursor:pointer}.checkbox-option input[type=checkbox]{width:18px;height:18px;cursor:pointer}.subsection-label{font-weight:500;margin-bottom:.75rem;color:var(--text-secondary)}.factors-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem}.factor-option{display:flex;align-items:center;gap:.5rem;cursor:pointer}.preference-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.preference-row label{font-weight:500;color:var(--text-primary)}.font-size-control{display:flex;align-items:center;gap:1rem}.font-size-control button{width:32px;height:32px;border-radius:6px;border:1px solid var(--border-primary);background:var(--bg-secondary);font-size:1.25rem;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.font-size-control button:hover:not(:disabled){background:var(--accent-primary);color:#fff;border-color:var(--accent-primary)}.font-size-control button:disabled{opacity:.5;cursor:not-allowed}.font-size-value{min-width:50px;text-align:center;font-weight:500}.preferences-actions{display:flex;justify-content:flex-end;margin-top:2rem}.error-message{background:#fee;border:1px solid #fcc;color:var(--error);padding:1rem;border-radius:8px;margin-bottom:1rem}.success-message{background:#d1fae5;border:1px solid #a7f3d0;color:#065f46;padding:1rem;border-radius:8px;margin-bottom:1rem}.moderation-list{display:flex;flex-direction:column;gap:1rem}.moderation-item{background:var(--bg-primary);border:1px solid var(--border-primary);border-radius:8px;padding:1.5rem}.moderation-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.flag-info,.appeal-info{font-weight:600;color:var(--text-primary)}.status-badge{padding:4px 12px;border-radius:999px;font-size:.875rem;font-weight:500}.status-pending{background:#fef3c7;color:#92400e}.status-reviewed{background:#d1fae5;color:#065f46}.status-dismissed{background:#e5e7eb;color:#4b5563}.status-approved{background:#d1fae5;color:#065f46}.status-rejected{background:#fee2e2;color:#991b1b}.moderation-content{display:flex;flex-direction:column;gap:1rem}.flag-reason,.appeal-reason{padding:1rem;background:var(--bg-secondary);border-radius:6px}.flag-comment,.appeal-reason p{margin-top:.5rem;font-style:italic;color:var(--text-secondary)}.chapter-info{padding:1rem;background:var(--bg-tertiary);border-radius:6px}.chapter-info p{margin:.25rem 0}.rating-change{display:flex;align-items:center;gap:1rem;padding:1rem;background:var(--bg-secondary);border-radius:6px}.moderation-actions{display:flex;gap:.75rem;margin-top:1rem}.admin-note{padding:1rem;background:#f3f4f6;border-left:3px solid var(--accent-primary);border-radius:4px;font-size:.9rem}.tree-branch-btn,.list-branch-btn{padding:4px 12px;background:var(--accent-primary);color:#fff;border:none;border-radius:6px;font-size:.875rem;cursor:pointer;transition:all .2s ease}.tree-branch-btn:hover,.list-branch-btn:hover{background:var(--accent-hover);transform:scale(1.05)}.tree-branch-btn:active,.list-branch-btn:active{transform:scale(.95)}.chapter-list-item-wrapper{display:flex;align-items:center;gap:.5rem;margin-bottom:8px}@media (max-width: 767px){.chapter-list{gap:10px}.chapter-list-item{padding:.875rem;min-height:72px}.chapter-list-header{margin-bottom:.5rem}.chapter-path{font-size:.875rem;font-weight:600}.chapter-list-info,.chapter-author{font-size:.75rem}.chapter-stats{font-size:.6875rem}.list-branch-btn{padding:.5rem .75rem;font-size:.75rem;min-height:40px}}@media (min-width: 768px){.chapter-list-item{padding:1.25rem}.chapter-path{font-size:1rem}.chapter-list-info{font-size:.875rem}}.prose,.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{color:var(--text-primary)}.prose a{color:var(--accent-primary)}.prose code{background:var(--bg-tertiary);color:var(--text-primary);padding:.2em .4em;border-radius:3px}.prose pre{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-primary);border-radius:8px;padding:1rem;overflow-x:auto}.prose blockquote{border-left:4px solid var(--accent-primary);color:var(--text-secondary);padding-left:1rem;margin-left:0}.prose img{max-width:100%;height:auto;max-height:500px;object-fit:contain;margin:1rem auto;display:block;border-radius:8px}.story-cover-image{max-width:100%;max-height:400px;width:auto;height:auto;object-fit:contain;margin:0 auto;display:block;border-radius:12px}img{max-width:100%;height:auto}.avatar img,.avatar-small img{max-width:100%;max-height:100%;object-fit:cover}.rating-widget{display:flex;flex-direction:column;gap:.5rem}.rating-widget-label{font-size:.875rem;font-weight:600;color:#374151;margin:0}.rating-widget-loading{font-size:.875rem;color:#2563eb;margin:0;font-style:italic}.rating-widget-hint{font-size:.875rem;color:#6b7280;margin:0}.star-rating-container{display:inline-flex;align-items:center;gap:.75rem}.star-rating-stars{display:inline-flex;align-items:center;gap:.25rem}.star-button{width:36px;height:36px;border-radius:50%;background:#f3f4f6;border:none;display:inline-flex;align-items:center;justify-content:center;font-size:20px;line-height:1;transition:all .2s ease;padding:0;cursor:pointer}.star-button.star-filled{color:#f59e0b;background:#fef3c7}.star-button.star-empty{color:#d1d5db;background:#f3f4f6}.star-button:not(.star-disabled):hover{transform:scale(1.15);box-shadow:0 2px 12px #f59e0b66;background:#fef3c7;color:#f59e0b}.star-button:not(.star-disabled):active{transform:scale(1.05)}.star-button.star-disabled{cursor:default;opacity:.9}.star-rating-text{color:#6b7280;font-size:.875rem;font-weight:500;white-space:nowrap}.story-detail-card{background:var(--bg-primary);border-radius:16px;box-shadow:0 2px 8px #0000001a;padding:2rem;margin-bottom:1.5rem;border:1px solid var(--border-primary)}.story-detail-header{display:flex;flex-direction:column-reverse;gap:2rem}@media (min-width: 768px){.story-detail-header{flex-direction:row;gap:3rem}}.story-detail-content{flex:1;min-width:0}.story-detail-cover{flex-shrink:0;width:100%;max-width:300px;margin:0 auto}@media (min-width: 768px){.story-detail-cover{width:280px;margin:0}}.story-detail-cover img{width:100%;height:auto;max-height:400px;object-fit:cover;border-radius:12px;box-shadow:0 4px 12px #00000026}.story-detail-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.story-detail-title{font-size:2rem;font-weight:700;line-height:1.2;margin:0 0 .5rem;color:var(--text-primary)}@media (min-width: 768px){.story-detail-title{font-size:2.5rem}}.story-detail-author{color:#6b7280;font-size:1rem;margin:0}.story-detail-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.favorite-button{padding:.625rem;border-radius:9999px;border:2px solid transparent;background:transparent;cursor:pointer;transition:all .2s ease;color:#9ca3af;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}.favorite-button svg{width:24px;height:24px}.favorite-button:hover{background:#f3f4f6;border-color:#e5e7eb;transform:scale(1.1)}.favorite-button.favorited{color:#ef4444;background:#fef2f2;border-color:#fecaca}.favorite-button.favorited:hover{background:#fee2e2;transform:scale(1.15)}@media (max-width: 767px){.favorite-button{min-width:48px;min-height:48px}.favorite-button svg{width:28px;height:28px}}.story-detail-rating{margin-bottom:1.25rem}.story-detail-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}.story-tag{padding:.5rem 1rem;background:#f3f4f6;color:#374151;border-radius:9999px;font-size:.875rem;font-weight:500}.story-detail-summary{margin-bottom:1.5rem;color:#374151;line-height:1.6}.story-detail-summary p{margin-bottom:.75rem}.story-detail-buttons{display:flex;flex-wrap:wrap;gap:.75rem}.btn-primary,.btn-secondary,.btn-danger{padding:.75rem 1.5rem;border-radius:8px;font-weight:600;font-size:.95rem;border:none;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;white-space:nowrap}@media (max-width: 768px){.btn-primary,.btn-secondary,.btn-danger,.btn-outline{padding:.875rem 1.25rem;font-size:1rem;width:100%}.chapter-actions,.story-detail-buttons{flex-direction:column}.btn-icon{width:20px;height:20px}}.btn-primary{background:#2563eb;color:#fff}.btn-primary:hover{background:#1d4ed8;box-shadow:0 4px 12px #2563eb4d}.btn-secondary{background:#10b981;color:#fff}.btn-secondary:hover{background:#059669;box-shadow:0 4px 12px #10b9814d}.btn-danger{background:#ef4444;color:#fff}.btn-danger:hover{background:#dc2626;box-shadow:0 4px 12px #ef44444d}.btn-outline{padding:.75rem 1.5rem;border-radius:8px;font-weight:600;font-size:.95rem;border:2px solid var(--border-secondary);cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;background:var(--bg-primary);color:var(--text-primary)}.btn-outline:hover{border-color:#2563eb;color:#2563eb;background:#eff6ff}.btn-favorited{border-color:#fecaca;color:#ef4444;background:#fef2f2}.btn-favorited:hover{border-color:#fca5a5;color:#dc2626;background:#fee2e2}.btn-icon{width:18px;height:18px;margin-right:.5rem}.chapter-detail-card{background:var(--bg-primary);border-radius:16px;box-shadow:0 2px 8px #0000001a;padding:2rem;margin-bottom:1.5rem;border:1px solid var(--border-primary)}.chapter-header-top{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap}.chapter-title-section{flex:1;min-width:0}.chapter-title{font-size:2rem;font-weight:700;line-height:1.2;margin:0 0 .5rem;color:var(--text-primary)}@media (min-width: 768px){.chapter-title{font-size:2.25rem}}.chapter-meta{color:var(--text-secondary);font-size:.95rem;margin:0}.chapter-badges{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.read-badge{padding:.5rem 1rem;background:#d1fae5;color:#065f46;border-radius:9999px;font-size:.875rem;font-weight:600;display:inline-flex;align-items:center;gap:.25rem}.chapter-rating-section{margin-bottom:1.25rem}.chapter-stats{display:flex;flex-wrap:wrap;gap:1.5rem;margin-bottom:1.5rem;padding:1rem;background:#f9fafb;border-radius:12px}.stat-item{display:inline-flex;align-items:center;gap:.5rem;color:#6b7280;font-size:.95rem;font-weight:500}.stat-icon{width:18px;height:18px;color:#9ca3af}.chapter-actions{display:flex;flex-wrap:wrap;gap:.75rem}.chapter-content-card{background:var(--bg-primary);border-radius:16px;box-shadow:0 2px 8px #0000001a;padding:3rem 2.5rem;margin-bottom:1.5rem;border:1px solid var(--border-primary);color:var(--text-primary)}@media (min-width: 768px){.chapter-content-card{padding:4rem 3.5rem}}.branches-section{background:var(--bg-primary);border-radius:16px;box-shadow:0 2px 8px #0000001a;padding:2rem;margin-bottom:1.5rem;border:1px solid var(--border-primary)}.branches-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:2px solid #f3f4f6;flex-wrap:wrap;gap:1rem}.branches-sort{display:flex;align-items:center}@media (max-width: 767px){.branches-header{flex-direction:column;align-items:flex-start}.branches-sort{width:100%}.branches-sort select{flex:1}}.branches-title{font-size:1.5rem;font-weight:700;color:var(--text-primary);display:flex;align-items:center;gap:.75rem;margin:0}.branches-icon{width:28px;height:28px;color:#2563eb}.branches-count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 .75rem;background:#dbeafe;color:#1e40af;border-radius:9999px;font-size:.875rem;font-weight:700}.branches-list{display:flex;flex-direction:column;gap:1rem}.branch-card{display:block;padding:1.5rem;border:2px solid var(--border-secondary);border-radius:12px;background:var(--bg-primary);transition:all .2s ease;text-decoration:none;color:inherit}.branch-card:hover{border-color:var(--accent-primary);background:var(--bg-tertiary);box-shadow:0 4px 12px #2563eb26;transform:translateY(-2px)}.branch-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.75rem}.branch-card-content{flex:1;min-width:0}.branch-card-title{font-size:1.125rem;font-weight:600;color:var(--text-primary);margin:0 0 .5rem;line-height:1.3}.branch-card-meta{display:flex;flex-wrap:wrap;gap:1rem}.meta-item{display:inline-flex;align-items:center;gap:.375rem;color:#6b7280;font-size:.875rem}.meta-icon{width:14px;height:14px;color:#9ca3af;flex-shrink:0}.branch-card-badges{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.reads-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.375rem .75rem;background:#f3f4f6;color:#6b7280;border-radius:9999px;font-size:.875rem;font-weight:600}.reads-icon{width:14px;height:14px}.branch-card-preview{color:#4b5563;font-size:.95rem;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.content-rating-info{background:var(--bg-secondary);border:1px solid var(--border-primary);border-radius:12px;padding:1rem;margin-bottom:1rem}.rating-info-content{display:flex;align-items:flex-start;gap:1rem}.rating-info-details{flex:1;min-width:0}.rating-info-title{font-weight:600;font-size:1rem;margin:0 0 .5rem;color:var(--text-primary)}.rating-info-description{font-size:.875rem;color:var(--text-secondary);margin:0 0 .75rem;line-height:1.5}.rating-info-factors{margin-top:.75rem}.rating-factors-title{font-size:.875rem;font-weight:600;color:var(--text-primary);margin:0 0 .5rem}.rating-factors-list{margin:0;padding-left:1.5rem;font-size:.875rem;color:var(--text-secondary);list-style:disc}.rating-factors-list li{margin-bottom:.25rem}.rating-info-e .rating-info-title{color:#059669}.rating-info-pg13 .rating-info-title{color:#d97706}.rating-info-r .rating-info-title{color:#ea580c}.rating-info-m .rating-info-title{color:#dc2626}@media (max-width: 767px){.content-rating-info{padding:.875rem}.rating-info-content{flex-direction:column;gap:.75rem}.rating-info-title{font-size:.9375rem}.rating-info-description,.rating-factors-title,.rating-factors-list{font-size:.8125rem}}.no-branches-card{background:var(--bg-tertiary);border:2px solid var(--border-secondary);border-radius:16px;padding:3rem 2rem;margin-bottom:1.5rem;text-align:center}.no-branches-icon{width:64px;height:64px;color:var(--accent-primary);margin:0 auto 1rem}.no-branches-text{color:var(--text-primary);font-size:1.125rem;font-weight:500;margin:0 0 1.5rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-container{background:var(--bg-primary);border-radius:16px;min-width:320px;max-width:900px;width:95%;max-height:90vh;overflow-y:auto;box-shadow:0 20px 50px #0000004d;animation:slideUp .3s ease-out;border:1px solid var(--border-primary)}@media (max-width: 768px){.modal-container{width:100%;height:100%;max-height:100vh;border-radius:0;animation:slideInFromBottom .3s ease-out}@keyframes slideInFromBottom{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-overlay{padding:0}}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.recommended-stories{background:var(--bg-primary);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid var(--border-primary)}.story-stats-card{background:var(--bg-primary);border-radius:12px;box-shadow:0 2px 8px #0000001a;padding:1.25rem;margin-bottom:1.5rem;border:1px solid var(--border-primary)}.story-stats-title{font-size:1.125rem;font-weight:700;margin:0 0 1rem;color:var(--text-primary)}.story-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.story-stat-item{background:var(--bg-secondary);border-radius:12px;padding:1rem;text-align:center;transition:transform .2s ease}.story-stat-item:hover{transform:translateY(-2px)}.story-stat-value{font-size:1.75rem;font-weight:700;margin-bottom:.5rem;display:flex;align-items:center;justify-content:center}.story-stat-label{font-size:.75rem;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;font-weight:500}.stat-blue{color:#3b82f6}.stat-green{color:#10b981}.stat-purple{color:#8b5cf6}.stat-orange{color:#f59e0b}@media (min-width: 640px){.story-stats-card{padding:1.5rem}.story-stats-grid{gap:1.25rem}.story-stat-item{padding:1.25rem}.story-stat-value{font-size:2rem}.story-stat-label{font-size:.8125rem}}@media (min-width: 768px){.story-stats-card{padding:2rem}.story-stats-title{font-size:1.25rem}.story-stats-grid{grid-template-columns:repeat(4,1fr);gap:1.5rem}.story-stat-item{padding:1.5rem}.story-stat-value{font-size:2.25rem}.story-stat-label{font-size:.875rem}}.home-filters{display:flex;gap:.75rem;margin-top:1rem;align-items:center;flex-wrap:wrap}.search-container{position:relative;flex:1;min-width:200px}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--text-tertiary);pointer-events:none}.search-input{width:100%;padding:.625rem .75rem .625rem 2.5rem;border:1px solid var(--border-secondary);border-radius:9999px;font-size:.9375rem;background:var(--bg-secondary);color:var(--text-primary);transition:all .2s ease}.search-input:focus{outline:none;border-color:var(--accent-primary);background:var(--bg-primary);box-shadow:0 0 0 3px #1d9bf01a}.search-input::placeholder{color:var(--text-tertiary)}.compact-filters{display:flex;gap:.5rem;flex-shrink:0}.filter-select{padding:.5rem .75rem;border:1px solid var(--border-secondary);border-radius:8px;font-size:.875rem;background:var(--bg-secondary);color:var(--text-primary);cursor:pointer;transition:all .2s ease;min-width:80px}.filter-select:hover{border-color:var(--accent-primary);background:var(--bg-primary)}.filter-select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 3px #1d9bf01a}.preference-banner{margin-top:.75rem;padding:.625rem .875rem;background:#e0f2fe;border-left:3px solid var(--accent-primary);border-radius:8px;font-size:.8125rem;color:#0369a1}.preference-banner a{color:var(--accent-primary);font-weight:600;text-decoration:underline}@media (max-width: 767px){.home-filters{flex-direction:column;gap:.625rem}.search-container{width:100%;min-width:unset}.search-input{padding:.75rem .75rem .75rem 2.75rem;font-size:16px}.compact-filters{width:100%;justify-content:space-between}.filter-select{flex:1;min-width:unset;font-size:16px;padding:.625rem .5rem}.preference-banner{font-size:.75rem;padding:.5rem .75rem}}.trending-chapters{background:var(--bg-primary);border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;border:1px solid var(--border-primary)}.trending-chapters-header{margin-bottom:1rem}.trending-chapters-title{font-size:1.25rem;font-weight:700;margin:0 0 .25rem;color:var(--text-primary)}.trending-chapters-subtitle{font-size:.75rem;color:var(--text-secondary);text-transform:capitalize}.trending-chapters-list{display:flex;flex-direction:column;gap:.75rem}.trending-chapter-item{display:flex;align-items:center;padding:.75rem;border-radius:8px;background:var(--bg-secondary);text-decoration:none;color:inherit;transition:all .2s ease;gap:.75rem}.trending-chapter-item:hover{background:var(--bg-tertiary);transform:translate(4px);text-decoration:none}.trending-chapter-rank{font-size:1.125rem;font-weight:700;color:var(--accent-primary);min-width:32px;text-align:center}.trending-chapter-main{flex:1;min-width:0}.trending-chapter-story{font-size:.6875rem;color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trending-chapter-title{font-size:.9375rem;font-weight:600;margin:0 0 .25rem;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trending-chapter-meta{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--text-secondary);flex-wrap:wrap}.trending-chapter-rating{display:inline-flex;align-items:center;gap:.25rem;font-weight:600}.trending-chapter-badge{flex-shrink:0}@media (max-width: 767px){.trending-chapters{padding:1rem;margin-bottom:1rem}.trending-chapters-title{font-size:1.125rem}.trending-chapter-item{padding:.625rem}.trending-chapter-rank{font-size:1rem;min-width:28px}.trending-chapter-title{font-size:.875rem}.trending-chapter-meta{font-size:.6875rem}}.recommended-title{font-size:1.25rem;font-weight:700;margin:0 0 1rem;color:var(--text-primary)}.recommended-list{display:flex;flex-direction:column;gap:.75rem}.recommended-item{display:flex;justify-content:space-between;align-items:center;padding:.75rem;border-radius:8px;background:var(--bg-secondary);text-decoration:none;color:inherit;transition:all .2s ease;gap:.75rem}.recommended-item:hover{background:var(--bg-tertiary);transform:translate(4px);text-decoration:none}.recommended-main{flex:1;min-width:0}.recommended-story-title{font-size:1rem;font-weight:600;margin:0 0 .25rem;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recommended-meta{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--text-secondary)}.meta-author{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta-separator{opacity:.5}.meta-chapters{white-space:nowrap}.recommended-badges{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.recommended-rating{display:flex;align-items:center;gap:.25rem;font-size:.875rem;font-weight:600;color:var(--text-primary)}@media (max-width: 767px){.recommended-stories{padding:1rem;margin-bottom:1rem}.recommended-title{font-size:1.125rem}.recommended-item{padding:.625rem}.recommended-story-title{font-size:.9375rem}.recommended-meta{font-size:.6875rem}}@keyframes shimmer{0%{background-position:-1000px 0}to{background-position:1000px 0}}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:2000px 100%;animation:shimmer 2s infinite linear;border-radius:4px}.skeleton-card{pointer-events:none;-webkit-user-select:none;user-select:none}.loading-spinner{display:inline-block;animation:spin 1s linear infinite}.spinner-svg{width:100%;height:100%}.spinner-circle{stroke:var(--accent-primary);stroke-linecap:round;stroke-dasharray:90,150;stroke-dashoffset:0;animation:spinner-dash 1.5s ease-in-out infinite}@keyframes spinner-dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.modal-header{padding:1.5rem 2rem;border-bottom:2px solid #f3f4f6;display:flex;align-items:center;justify-content:space-between;gap:1rem}.modal-title{font-size:1.5rem;font-weight:700;color:var(--text-primary);margin:0}.modal-close-btn{padding:.5rem;border:none;background:transparent;color:#6b7280;cursor:pointer;border-radius:8px;transition:all .2s ease;display:flex;align-items:center;justify-content:center;flex-shrink:0}.modal-close-btn:hover{background:var(--bg-hover);color:var(--text-primary)}.modal-content{padding:0}.modal-content .bg-white.p-6{padding:2rem;box-shadow:none;border-radius:0}.rich-text-editor-wrapper{width:100%}.rich-text-editor-container{border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.rich-text-editor-container .quill{display:flex;flex-direction:column}.rich-text-editor-container .ql-toolbar{border:none;border-bottom:1px solid #e5e7eb;background:#f9fafb}.rich-text-editor-container .ql-container{border:none;font-size:1rem;font-family:inherit;height:400px;max-height:400px;overflow-y:auto}.rich-text-editor-container .ql-editor{min-height:400px;padding:1rem;line-height:1.6}.rich-text-editor-container .ql-editor.ql-blank:before{font-style:normal;color:#9ca3af}.chapter-content-card{max-height:600px;overflow-y:auto}@media (max-width: 768px){.chapter-content-card{padding:2rem 1.5rem;max-height:none}.chapter-detail-card,.story-detail-card{padding:1.5rem;border-radius:12px}.chapter-title,.story-detail-title{font-size:1.75rem}.branches-section{padding:1.5rem}.branch-card{padding:1.25rem}.branch-card-meta{flex-direction:column;gap:.5rem}}@media (min-width: 768px){.chapter-content-card{max-height:700px}}@media (max-width: 768px){input,textarea,select,button{font-size:16px;min-height:44px}.form-actions,.chapter-actions{flex-direction:column}.card{margin:0 0 1rem}.modal-header{padding:1rem 1.5rem}.modal-content .bg-white.p-6{padding:1.5rem}.chapter-stats{flex-direction:column;gap:1rem}.stat-item{width:100%;justify-content:flex-start}.story-detail-header{gap:1.5rem}.story-detail-cover{max-width:100%}.branch-card-header{flex-direction:column;align-items:flex-start}.branch-card-badges{width:100%;justify-content:space-between}.star-button{width:44px;height:44px;font-size:24px}.star-rating-stars{gap:.5rem}.content-rating-badge{font-size:.75rem;padding:.375rem .625rem}.prose{font-size:1.05rem}.prose p{margin-bottom:1.25rem}.story-detail-cover img{max-height:300px}.no-branches-card{padding:2rem 1.5rem}.rich-text-editor-container .ql-container{height:300px;max-height:300px}.rich-text-editor-container .ql-editor{min-height:300px;font-size:16px;padding:.75rem}.rich-text-editor-container .ql-toolbar{overflow-x:auto;-webkit-overflow-scrolling:touch;padding:.5rem}.rich-text-editor-container .ql-toolbar button{min-width:28px;min-height:28px}.tabs{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tab{white-space:nowrap;min-width:120px}}.tabs{display:flex;gap:1rem;border-bottom:1px solid var(--border-primary);margin-bottom:1rem}.tab{padding:.5rem 1rem;background:none;border:none;border-bottom:2px solid transparent;color:var(--text-secondary);cursor:pointer;transition:all .2s ease;font-size:1rem;font-weight:500}.tab:hover{color:var(--text-primary)}.tab.active{color:var(--accent-primary);border-bottom-color:var(--accent-primary)}/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
