body{margin:0;min-width:320px;min-height:100vh}#root{min-height:100vh;width:100%}:root{color-scheme:light;--bg: #f4f6fb;--card: #ffffff;--border: #d6dde8;--text: #0f172a;--muted: #516072;--accent: #1f6feb;--accent-soft: rgba(31, 111, 235, .12);--green: #d9f6e3;--red: #ffe3e0;--shadow: 0 10px 24px rgba(15, 23, 42, .08);--radius: 14px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Space Grotesk,Manrope,Noto Sans,Segoe UI,Helvetica Neue,sans-serif}#root{max-width:none;margin:0;padding:0}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:var(--bg);overflow-x:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-bottom:1px solid rgba(214,221,232,.7);background:#f4f6fbeb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.app-container{width:100%;max-width:1200px;margin:0 auto}.app-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.app-header-meta,.app-header-actions{display:flex;gap:8px;flex-wrap:wrap}.lang-select{border:1px solid var(--border);background:#fff;border-radius:10px;padding:6px 10px;font-size:12px;color:var(--muted);cursor:pointer}.lang-select:focus-visible{outline:2px solid var(--accent-soft);border-color:var(--accent)}.icon-button{width:32px;height:32px;border-radius:10px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.app-body{position:relative;padding:0 20px}.app-main{flex:1;display:flex;flex-direction:column;min-height:0;gap:16px;padding:16px 0 24px;width:100%}.draft-zone{display:flex;gap:16px;min-height:35vh;max-height:55vh;width:100%;position:relative;perspective:1200px}.draft-pane,.best-pane{flex:1;min-width:0;display:flex}.app-shell[data-compare-mode=single] .best-pane,.app-shell[data-compare-mode=split] .best-pane{display:none}.diff-zone{flex:1;min-height:0;display:flex;width:100%}.app{min-height:100vh;display:flex;flex-direction:column;gap:16px;padding:16px 20px 32px}.topbar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;gap:16px;align-items:center;padding:12px 4px;border-bottom:1px solid rgba(214,221,232,.7);background:#f4f6fbeb;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.brand-title{font-size:20px;font-weight:700;letter-spacing:.3px}.brand-subtitle{font-size:12px;color:var(--muted);margin-top:2px}.topbar-actions{display:flex;gap:8px;flex-wrap:wrap}.status-pill{font-size:11px;color:var(--muted);background:#f1f4f8;padding:4px 8px;border-radius:999px;white-space:nowrap}.tabs{display:none;gap:8px}.tabs button{flex:1;border:1px solid var(--border);background:#fff;border-radius:10px;padding:8px 10px;font-size:13px;cursor:pointer;color:var(--muted)}.tabs button.is-active{border-color:var(--accent);color:var(--accent)}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:16px}.panel{display:block}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;display:flex;flex-direction:column;gap:12px}.draft-card{flex:1;min-height:0}.card-header,.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.panel-subtitle{font-size:12px;color:var(--muted);margin-top:4px}.panel-actions{display:flex;flex-wrap:wrap;gap:8px}.label{font-weight:700;font-size:14px}.metrics{margin-top:6px;display:flex;flex-wrap:wrap;gap:6px;color:var(--muted);font-size:12px}.metrics span{background:#f1f4f8;border-radius:999px;padding:2px 8px}.editor-textarea{width:100%;min-height:260px;flex:1;resize:vertical;border-radius:12px;border:1px solid var(--border);padding:12px;font-size:14px;line-height:1.6;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;background:#fff}.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.action-buttons{display:flex;gap:8px;flex-wrap:wrap}.action-buttons button,.nav-buttons button,.best-card-actions button,.panel-actions button,.diff-header-actions button,.best-nav button,.diff-history-controls button,.diff-history-toolbar button{border:1px solid var(--border);background:#fff;border-radius:8px;padding:6px 10px;font-size:12px;color:var(--muted);cursor:pointer}.action-buttons button:hover,.nav-buttons button:hover,.best-card-actions button:hover,.panel-actions button:hover,.diff-header-actions button:hover,.best-nav button:hover,.diff-history-controls button:hover,.diff-history-toolbar button:hover{border-color:var(--accent);color:var(--accent)}.primary{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:10px;padding:8px 12px;font-size:12px;cursor:pointer}.ghost{border:1px solid var(--border);background:#fff;color:var(--muted);border-radius:10px;padding:8px 12px;font-size:12px;cursor:pointer}.notice{font-size:12px;color:var(--muted);min-height:16px}.draft-header-actions{display:flex;align-items:center;gap:8px}.pin-button{border:1px solid var(--border);background:#fff;border-radius:10px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;color:var(--muted)}.pin-button.is-pinned{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}.best-panel{gap:16px}.best-active{border:1px solid var(--border);border-radius:12px;background:#f9fbff;padding:12px;display:flex;flex-direction:column;gap:10px}.best-active-header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.best-active-meta{display:flex;gap:10px;font-size:12px;color:var(--muted);margin-top:4px;flex-wrap:wrap}.best-nav{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.best-active-text{width:100%;min-height:160px;border-radius:10px;border:1px solid var(--border);padding:10px;font-size:13px;line-height:1.5;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;background:#fff;resize:vertical}.best-preview-card{flex:1;min-height:0;background:#f9fbff;border-color:#e0e7f2}.best-preview{width:100%;flex:1;min-height:200px;border-radius:10px;border:1px solid var(--border);padding:10px;font-size:13px;line-height:1.5;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;background:#fff;resize:none}.best-title-row{display:flex;align-items:center;gap:10px}.pin-badge{width:34px;height:34px;border-radius:10px;background:var(--accent-soft);display:inline-flex;align-items:center;justify-content:center;font-size:18px;color:var(--accent)}.best-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;color:var(--accent);background:var(--accent-soft);margin-top:4px;width:fit-content}.diff-panel{flex:1;min-height:0;display:flex;flex-direction:column}.diff-panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.diff-title-row{display:flex;align-items:center;gap:8px}.diff-icon{font-size:16px}.diff-state{font-size:11px;padding:2px 8px;border-radius:999px;background:#eef2f8;color:var(--muted)}.diff-state.is-live{background:#e4f7ea;color:#1b7a3c}.diff-state.is-history{background:#f1f4f8;color:var(--muted)}.diff-compare-pill{display:inline-flex;align-items:center;gap:6px;margin-top:6px;padding:4px 8px;border-radius:999px;background:#f1f4f8;color:var(--muted);font-size:12px}.diff-panel-status{display:flex;align-items:center;gap:8px}.diff-panel-tabs{display:inline-flex;gap:8px;padding:4px;background:#f1f4f8;border-radius:999px;align-self:flex-start}.diff-panel-tabs button{border:none;background:transparent;padding:6px 12px;font-size:12px;border-radius:999px;cursor:pointer;color:var(--muted)}.diff-panel-tabs button.is-active{background:#fff;color:var(--accent);box-shadow:0 4px 12px #0f172a14}.diff-panel-body{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:auto}.diff-preview{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:12px;border:1px solid var(--border);background:#fff}.diff-history-panel{display:flex;flex-direction:column;gap:6px}.diff-history-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.diff-history-counter{margin-left:auto;font-size:12px;color:var(--muted)}.diff-history-list{display:flex;flex-direction:column;gap:10px;max-height:240px;overflow:auto;padding-right:4px}.diff-history-item{border:1px solid var(--border);background:#fff;border-radius:10px;padding:10px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px}.diff-history-item.is-active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.diff-history-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.diff-history-snippet{font-size:12px;color:var(--text)}.side-ad-slot{width:240px;position:fixed;right:24px;top:96px;z-index:2}.bottom-ad-slot{padding:0 20px 20px}.seo-anchor{padding:0 20px 24px}.ad-card{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;padding:14px;color:var(--muted);display:flex;flex-direction:column;gap:8px}.ad-label{font-size:10px;text-transform:uppercase;letter-spacing:.4px}.ad-title{font-size:14px;font-weight:700;color:var(--text)}.ad-copy{font-size:12px}.side-ad-card{min-height:280px}.bottom-ad-card{width:100%}.modal-backdrop{position:fixed;inset:0;background:#0f172a59;display:flex;justify-content:center;align-items:center;z-index:50;padding:16px}.modal-panel{width:min(820px,100%);max-height:90vh;background:#fff;border-radius:16px;box-shadow:0 18px 36px #0f172a2e;display:flex;flex-direction:column}.help-panel{width:min(880px,100%)}.help-body{display:flex;flex-direction:column;gap:20px}.help-section{display:flex;flex-direction:column;gap:10px}.help-copy{font-size:13px;color:var(--muted);display:grid;gap:6px}.comment-form{display:flex;flex-direction:column;gap:10px}.comment-input{width:100%;min-height:100px;border-radius:12px;border:1px solid var(--border);padding:10px;font-size:13px;line-height:1.6;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;background:var(--card);color:var(--text);resize:vertical}.comment-list{display:flex;flex-direction:column;gap:10px}.comment-item{border:1px solid var(--border);border-radius:12px;padding:10px;background:var(--card)}.comment-meta{font-size:11px;color:var(--muted);margin-bottom:6px}.comment-text{font-size:13px;color:var(--text);white-space:pre-wrap}.modal-header{padding:14px 16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal-body{padding:16px;overflow:auto}.best-modal-content{display:flex;flex-direction:column;gap:16px}.best-modal-actions{display:flex;gap:8px;flex-wrap:wrap}.best-modal-active{display:flex;flex-direction:column;gap:10px}.best-modal-active-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.best-modal-nav{display:flex;gap:8px}.best-modal-list{display:flex;flex-direction:column;gap:10px}.best-list{display:flex;flex-direction:column;gap:12px;max-height:680px;overflow:auto;padding-right:4px}.best-card{border:1px solid var(--border);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:10px;background:#fcfdff}.best-card.is-active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.best-card-header{display:flex;flex-direction:column;gap:6px}.best-title{border:1px solid var(--border);border-radius:8px;padding:6px 8px;font-size:13px;font-weight:600}.best-meta{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.best-card-body{font-size:12px;color:var(--muted)}.best-snippet{padding:8px 10px;background:#f7f9fc;border-radius:10px;border:1px solid var(--border);line-height:1.5}.best-card-actions{display:flex;gap:8px;flex-wrap:wrap}.diff-card,.diff-board{padding:0;overflow:hidden}.diff-board-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;background:#f9fafc;border-bottom:1px solid var(--border)}.diff-board-status{display:flex;flex-direction:column;gap:6px;align-items:flex-end;font-size:12px;color:var(--muted)}.saving-indicator{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--accent)}.saving-dot{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 6px #1f6feb1f}.saving-indicator.is-idle{color:var(--muted)}.saving-indicator.is-idle .saving-dot{background:#94a3b8;box-shadow:none}.saving-indicator.is-active .saving-dot{animation:pulse 1.4s ease infinite}.saving-hint{color:var(--muted)}.diff-board-preview{padding:16px;min-height:220px;max-height:50vh;overflow:auto;border-bottom:1px solid var(--border);background:#fff}.diff-preview-pre{margin:0;font-size:13px;line-height:1.6;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;white-space:pre-wrap;word-break:break-word}.diff-line{display:block;padding:0 4px}.diff-line.add{background:var(--green)}.diff-line.remove{background:var(--red)}.diff-line.equal{color:var(--muted)}.diff-board-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted)}.diff-summary{display:flex;gap:8px}.diff-count{font-weight:600}.diff-count-meta{display:inline-flex;margin-left:10px;color:var(--muted);font-weight:500}.diff-history{padding:12px 14px 16px;display:flex;flex-direction:column;gap:12px}.diff-history-header{display:flex;flex-direction:column;gap:4px}.diff-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.diff-history-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.diff-history-index{font-size:12px;color:var(--muted);margin-left:auto}.diff-entry-card{border:1px solid var(--border);background:#fff;border-radius:12px;padding:12px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:8px;box-shadow:0 6px 16px #0f172a0f;animation:card-in .22s ease;transition:transform .2s ease,box-shadow .2s ease}.diff-entry-card:hover{transform:translateY(-2px);box-shadow:0 10px 22px #0f172a1f}.diff-entry-header{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--muted)}.diff-entry-summary{display:flex;gap:10px;font-size:12px}.diff-entry-preview{margin:0;font-size:12px;line-height:1.5;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;max-height:160px;overflow:hidden}.diff-ellipsis{display:block;color:var(--muted);margin-top:4px}.diff-modal-backdrop{position:fixed;inset:0;background:#0f172a59;display:flex;justify-content:flex-end;z-index:50}.diff-modal-panel{width:min(640px,100%);height:100%;background:#fff;display:flex;flex-direction:column;box-shadow:-12px 0 30px #0f172a33;animation:slide-in .2s ease}.diff-modal-header{padding:16px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.diff-modal-meta{display:flex;gap:10px;margin-top:6px;font-size:12px;color:var(--muted)}.diff-modal-body{padding:16px;overflow:auto}.diff-modal-pre{margin:0;font-size:13px;line-height:1.6;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;white-space:pre-wrap;word-break:break-word}@keyframes card-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-in{0%{transform:translate(20px);opacity:.8}to{transform:translate(0);opacity:1}}@keyframes pulse{0%{transform:scale(1);opacity:1}70%{transform:scale(1.4);opacity:.4}to{transform:scale(1);opacity:1}}.diff-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;background:#f9fafc;border-bottom:1px solid var(--border)}.diff-header-left{display:flex;flex-direction:column;gap:4px}.diff-subtitle{font-size:12px;color:var(--muted)}.diff-header-actions{display:flex;gap:8px;flex-wrap:wrap}.diff-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 14px;border-bottom:1px solid var(--border)}.nav-buttons{display:flex;align-items:center;gap:8px}.nav-buttons button:disabled,.best-nav button:disabled{opacity:.5;cursor:not-allowed}.nav-count{font-size:12px;color:var(--muted)}.summary{display:flex;gap:8px;font-size:12px;color:var(--muted)}.summary-add{color:#1b7a3c}.summary-del{color:#b02a2a}.summary-eq{color:var(--muted)}.diff-body{padding:16px;min-height:220px;max-height:55vh;overflow:auto;font-size:14px;line-height:1.6;font-family:JetBrains Mono,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;white-space:pre-wrap;word-break:break-word}.diff-part{white-space:inherit}.diff-add{background:var(--green)}.diff-remove{background:var(--red)}.placeholder{color:var(--muted)}.diff-snapshots{padding:12px 14px 16px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:12px}.diff-cards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}.diff-card-item{border:1px solid var(--border);background:#fff;border-radius:10px;padding:10px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:6px}.diff-card-item.is-active{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.diff-card-title{font-size:12px;font-weight:600}.diff-card-summary{display:flex;gap:8px;font-size:12px}.empty-state{font-size:12px;color:var(--muted);padding:6px 0}.footer{text-align:center;color:var(--muted);font-size:12px;padding:12px 0 0}@media(max-width:980px){.topbar{flex-direction:column;align-items:flex-start}.topbar-actions{width:100%}}@media(max-width:820px){.workspace{grid-template-columns:1fr}}@media(min-width:769px){.app-shell[data-compare-mode=split] .best-pane{display:flex}}@media(max-width:768px){.app-header{flex-direction:column;align-items:flex-start}.app-body{padding:0 16px}.draft-zone{flex-direction:column;max-height:none}.best-pane{display:none}.app-shell[data-compare-mode=split] .draft-zone{flex-direction:row;width:200%;transition:transform .35s ease}.app-shell[data-compare-mode=split] .draft-pane,.app-shell[data-compare-mode=split] .best-pane{width:100%;transition:transform .35s ease}.app-shell[data-compare-mode=split][data-mobile-view=pinned] .draft-zone{transform:translate(-50%)}.app-shell[data-compare-mode=split][data-mobile-view=draft] .draft-zone{transform:translate(0)}.app-shell[data-compare-mode=split] .best-pane{display:flex}.app-shell[data-compare-mode=split][data-mobile-view=pinned] .draft-pane{transform:rotateY(-2deg)}.app-shell[data-compare-mode=split][data-mobile-view=pinned] .best-pane,.app-shell[data-compare-mode=split][data-mobile-view=draft] .draft-pane{transform:rotateY(2deg)}.app-shell[data-compare-mode=split][data-mobile-view=draft] .best-pane{transform:rotateY(-2deg)}.modal-backdrop{align-items:flex-end}.modal-panel{border-radius:16px 16px 0 0;width:100%;height:85vh}}.swipe-guide{position:absolute;top:10px;right:16px;background:#0f172ad9;color:#fff;font-size:12px;padding:6px 10px;border-radius:999px;pointer-events:auto;z-index:3}.mobile-only{display:none}@media(max-width:768px){.mobile-only{display:inline-flex}}
