html,body,#root{width:100%;min-height:100%;margin:0}button,input,textarea,select{font:inherit}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}body{color:#0f172a;background:#f3f5f8;font-family:Inter,Noto Sans TC,Microsoft JhengHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.login-shell{background:#eef2f7;place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:min(420px,100%);padding:28px;box-shadow:0 12px 28px #0f172a14}.login-card .brand-mark{margin-bottom:18px}.login-card h1{color:#0f172a;margin:0;font-size:24px}.login-card p{color:#64748b;margin:8px 0 20px;line-height:1.6}.login-form{gap:14px;display:grid}.login-form label{color:#334155;gap:7px;font-size:13px;font-weight:800;display:grid}.login-form input{color:#0f172a;border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:11px 12px}.login-form button{color:#fff;cursor:pointer;background:#2563eb;border-radius:8px;padding:12px 16px;font-weight:900}button,input,select,textarea{font:inherit}button{border:0}button:disabled{cursor:not-allowed;opacity:.6}a{color:#2563eb;font-weight:700;text-decoration:none}a:hover{text-decoration:underline}.layout{background:#f3f5f8;grid-template-columns:240px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{color:#f9fafb;background:#111827;border-right:1px solid #1f2937;height:100vh;padding:24px 16px;position:sticky;top:0}.brand{align-items:center;gap:12px;padding:0 0 24px;display:flex}.brand-mark{color:#fff;letter-spacing:0;background:#2563eb;border-radius:8px;place-items:center;width:40px;height:40px;font-weight:800;display:grid}.brand strong,.brand span{display:block}.brand strong{color:#fff;font-size:15px}.brand span{color:#cbd5e1;margin-top:3px;font-size:13px}.sidebar nav{gap:7px;display:grid}.sidebar nav button{color:#cbd5e1;text-align:left;cursor:pointer;background:0 0;border-radius:8px;width:100%;padding:12px 13px;font-weight:700}.sidebar nav button.active,.sidebar nav button:hover:not(:disabled){color:#fff;background:#1f2937}.sidebar nav button:disabled{color:#64748b}.content{min-width:0;padding:28px}.page-header{justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px;display:flex}.page-header h1{color:#0f172a;margin:0;font-size:28px;line-height:1.25}.page-header p{color:#64748b;margin:7px 0 0;line-height:1.5}.page-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.page-header button,.editor-form button[type=submit],.form-actions button,.dark-button{color:#fff;cursor:pointer;background:#2563eb;border-radius:8px;padding:11px 16px;font-weight:800}.dark-button{background:#111827}.user-chip{background:#fff;border:1px solid #e5e7eb;border-radius:8px;align-items:center;gap:8px;padding:4px;display:inline-flex}.user-chip span{color:#334155;padding:0 8px;font-size:13px;font-weight:900}.user-chip .ghost-button{padding:8px 10px}.ghost-button{color:#111827;cursor:pointer;background:#eef2f7;border-radius:8px;padding:10px 14px;font-weight:800}.danger-button{color:#991b1b;cursor:pointer;background:#fee2e2;border-radius:8px;padding:10px 14px;font-weight:800}.alert{border-radius:8px;margin-bottom:16px;padding:13px 15px;line-height:1.5}.alert.error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.alert.success{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.stat-card,.panel,.category-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 1px 2px #0f172a0a}.stat-card{padding:18px}.stat-card span{color:#64748b;font-size:13px;display:block}.stat-card strong{color:#0f172a;margin-top:9px;font-size:28px;line-height:1;display:block}.panel{margin-bottom:18px;overflow:hidden}.panel-header{background:#fff;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px;display:flex}.panel-header:not(.with-tabs){display:block}.panel-header h2{color:#0f172a;margin:0;font-size:18px}.panel-header p{color:#64748b;margin:6px 0 0;font-size:14px;line-height:1.5}.tabs{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.tabs button{color:#334155;cursor:pointer;background:#eef2f7;border-radius:8px;padding:9px 12px;font-weight:800}.tab-link{color:#334155;background:#eef2f7;border-radius:8px;align-items:center;padding:9px 12px;font-weight:800;text-decoration:none;display:inline-flex}.tabs button.active,.tabs button:hover:not(:disabled),.tab-link:hover{color:#fff;background:#111827;text-decoration:none}.table-wrap{width:100%;overflow-x:auto}.list-filter-bar{background:#f8fafc;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 20px;display:flex}.list-filter-bar button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:8px 12px;font-size:14px;font-weight:800}.list-filter-bar button.active,.list-filter-bar button:hover{color:#fff;background:#111827;border-color:#111827}table{border-collapse:collapse;background:#fff;width:100%}th,td{text-align:left;vertical-align:middle;color:#334155;white-space:nowrap;border-bottom:1px solid #eef2f7;padding:14px 16px}th{color:#64748b;background:#f9fafb;font-size:13px;font-weight:800}.post-cell{align-items:center;gap:12px;min-width:360px;display:flex}.post-cell img,.empty-thumb{object-fit:cover;border-radius:6px;flex:none;width:74px;height:50px}.empty-thumb{color:#64748b;background:#f1f5f9;place-items:center;font-size:12px;display:grid}.post-cell strong{color:#0f172a;white-space:normal;max-width:520px;line-height:1.45;display:block}.post-cell span{color:#64748b;margin-top:4px;font-size:13px;display:block}.status-pill{color:#374151;background:#f3f4f6;border-radius:999px;align-items:center;padding:5px 10px;font-size:13px;font-weight:800;display:inline-flex}.status-pill.publish{color:#166534;background:#dcfce7}.status-pill.draft{color:#92400e;background:#fef3c7}.status-pill.pending{color:#1d4ed8;background:#dbeafe}.status-pill.future{color:#6d28d9;background:#ede9fe}.row-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.actor-cell{color:#475569;gap:4px;min-width:220px;font-size:12px;line-height:1.35;display:grid}.actor-cell span{white-space:normal;display:block}.time-cell{min-width:150px}.time-cell strong,.time-cell span{display:block}.time-cell strong{color:#0f172a;font-size:14px;line-height:1.4}.time-cell span{color:#64748b;margin-top:3px;font-size:12px;font-weight:800}.link-button{color:#2563eb;cursor:pointer;background:0 0;padding:0;font-weight:800}.link-button:hover{text-decoration:underline}.publish-link{color:#16a34a;cursor:pointer;background:0 0;padding:0;font-weight:800}.publish-link:hover{text-decoration:underline}.duplicate-link{color:#7c3aed;cursor:pointer;background:0 0;padding:0;font-weight:800}.duplicate-link:hover{text-decoration:underline}.duplicate-link:disabled{color:#94a3b8;cursor:not-allowed;text-decoration:none}.restore-link{color:#15803d;cursor:pointer;background:0 0;padding:0;font-weight:800}.restore-link:hover{text-decoration:underline}.danger-link{color:#dc2626;cursor:pointer;background:0 0;padding:0;font-weight:800}.danger-link:hover{text-decoration:underline}.disabled-link{color:#94a3b8;white-space:nowrap;font-size:13px;font-weight:800}.category-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;padding:18px 20px;display:grid}.category-card{padding:16px}.category-card strong,.category-card span{display:block}.category-card strong{color:#0f172a}.category-card span{color:#64748b;margin-top:6px;font-size:14px}.panel-body{padding:18px 20px}.editor-form{background:#fff;gap:16px;padding:20px;display:grid}.editor-form.compact-form{border-bottom:1px solid #e2e8f0;padding:18px 20px}.editor-form label{gap:8px;display:grid}.editor-form label span{color:#334155;font-size:14px;font-weight:800}.editor-field{gap:8px;display:grid}.editor-field>span{color:#334155;font-size:14px;font-weight:800}.editor-form input,.editor-form select,.editor-form textarea{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;padding:11px 12px}.editor-form input:focus,.editor-form select:focus,.editor-form textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.editor-form textarea{resize:vertical}.rich-editor{background:#fff;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden}.rich-toolbar{background:#f8fafc;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;display:flex}.rich-toolbar select,.rich-toolbar button{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:auto;min-width:58px;height:38px;padding:0 12px;font-size:13px;font-weight:800;line-height:1}.rich-toolbar select{min-width:96px}.rich-toolbar button:hover,.rich-toolbar select:hover{color:#1d4ed8;border-color:#2563eb}.rich-toolbar .image-toolbar-button{color:#fff;background:#2563eb;border-color:#2563eb;min-width:86px;box-shadow:0 8px 18px #2563eb2e}.rich-toolbar .image-toolbar-button:hover{color:#fff;background:#1d4ed8;border-color:#1d4ed8}.rich-toolbar .color-control{color:#0f172a;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:8px;flex:none;justify-content:center;align-items:center;gap:10px;width:108px;height:40px;padding:0 9px;font-size:13px;font-weight:800;line-height:1;display:inline-flex;overflow:hidden}.rich-toolbar .color-control input{cursor:pointer;appearance:none;background:#fff;border:1px solid #cbd5e1;border-radius:4px;flex:0 0 24px;width:24px;min-width:24px;height:24px;padding:0}.rich-toolbar .color-control input::-webkit-color-swatch-wrapper{padding:2px}.rich-toolbar .color-control input::-webkit-color-swatch{border:0;border-radius:3px}.rich-toolbar .color-control input::-moz-color-swatch{border:0;border-radius:3px}.rich-editor-surface{color:#0f172a;outline:none;min-height:340px;padding:16px;line-height:1.8}.rich-editor-surface:empty:before{content:"請輸入文章內容";color:#94a3b8}.rich-editor-surface h1,.rich-editor-surface h2,.rich-editor-surface h3,.rich-editor-surface p,.rich-editor-surface ul,.rich-editor-surface ol{margin-top:0}.rich-editor-surface h1{font-size:32px;line-height:1.35}.rich-editor-surface h2{font-size:26px;line-height:1.4}.rich-editor-surface h3{font-size:21px;line-height:1.45}.rich-editor-surface a{color:#2563eb;text-decoration:underline}.rich-editor-surface figure.fs-content-image{margin:16px 0}.rich-editor-surface figure.fs-content-image img,.rich-editor-surface img{border-radius:8px;max-width:100%;height:auto}.rich-editor-surface img.selected-editor-image{outline-offset:3px;outline:3px solid #2563eb73}.editor-image-tools{background:#fbfdff;gap:12px;padding:14px;display:grid}.editor-image-backdrop{z-index:70}.editor-image-modal{background:#fff;border-radius:10px;width:min(1180px,100vw - 32px);max-height:calc(100vh - 48px);overflow:hidden;box-shadow:0 24px 60px #0f172a52}.editor-image-modal .editor-image-tools{background:#fff;max-height:calc(100vh - 48px);padding:18px;overflow-y:auto}.editor-image-tools-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.editor-image-tools-header strong,.editor-image-tools-header span{display:block}.editor-image-tools-header strong{color:#0f172a}.editor-image-tools-header span{color:#64748b;margin-top:4px;font-size:13px}.editor-image-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 12px;font-size:14px;font-weight:700}.editor-image-tools-header button,.editor-image-form button,.editor-image-filter button,.selected-image-tools button,.editor-image-selection-actions button{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:8px 11px;font-size:13px;font-weight:800}.editor-image-form{grid-template-columns:minmax(220px,1fr) minmax(260px,1.4fr) auto;align-items:end;gap:10px;display:grid}.editor-image-form label,.selected-image-tools label,.editor-image-selection-detail label{color:#334155;gap:6px;font-size:13px;font-weight:800;display:grid}.editor-image-form input,.selected-image-tools input,.editor-image-selection-detail input,.editor-image-selection-detail textarea{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:9px 10px}.editor-image-selection-detail textarea{resize:vertical;min-height:58px}.editor-image-filter{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.editor-image-filter button.active,.editor-image-filter button:hover,.editor-image-tools-header button:hover,.selected-image-tools button:hover,.editor-image-selection-actions button:hover{color:#fff;background:#111827;border-color:#111827}.selected-image-tools{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;grid-template-columns:minmax(220px,1fr) auto auto;align-items:end;gap:10px;padding:12px;display:grid}.editor-image-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;max-height:390px;padding-right:4px;display:grid;overflow-y:auto}.editor-image-card{cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:8px;transition:border-color .15s,box-shadow .15s,transform .15s;overflow:hidden}.editor-image-card:hover,.editor-image-card.selected{border-color:#2563eb;box-shadow:0 10px 22px #2563eb24}.editor-image-card.selected{transform:translateY(-1px)}.editor-image-card img{aspect-ratio:4/3;object-fit:cover;background:#f1f5f9;width:100%;display:block}.editor-image-card div{gap:6px;padding:10px;display:grid}.editor-image-card strong{color:#0f172a;word-break:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;line-height:1.35;display:-webkit-box;overflow:hidden}.editor-image-card span{color:#64748b;font-size:12px;line-height:1.35}.editor-image-select-hint{font-weight:800;color:#2563eb!important}.editor-image-empty{color:#64748b;text-align:center;border:1px dashed #cbd5e1;border-radius:8px;padding:20px}.editor-image-selection-bar{z-index:2;background:#f8fafcfa;border-top:1px solid #e5e7eb;grid-template-columns:1fr auto;align-items:end;gap:14px;margin:2px -18px -18px;padding:14px 18px;display:grid;position:sticky;bottom:-18px;box-shadow:0 -10px 24px #0f172a14}.editor-image-selection-detail{grid-template-columns:90px minmax(180px,.7fr) minmax(260px,1fr);align-items:end;gap:12px;display:grid}.editor-image-selection-detail img{object-fit:cover;background:#eef2f7;border-radius:8px;width:90px;height:68px}.editor-image-selection-empty{color:#64748b;font-size:14px}.editor-image-selection-actions{white-space:nowrap;justify-content:flex-end;gap:10px;display:flex}.editor-image-selection-actions .dark-button{color:#fff;background:#111827;border-color:#111827}.editor-image-selection-actions .dark-button:disabled{color:#64748b;cursor:not-allowed;background:#e2e8f0;border-color:#cbd5e1}.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-actions{justify-content:flex-end;gap:10px;display:flex}.form-actions.align-end{align-items:end}.form-toolbar{color:#1d4ed8;background:#eff6ff;border:1px solid #dbeafe;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;font-weight:800;display:flex}.publish-mode-row{background:#f8fbff;border:1px solid #dbeafe;border-radius:8px;flex-wrap:wrap;gap:8px;padding:10px;display:flex}.publish-mode-row button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:10px 14px;font-weight:800}.publish-mode-row button.active{color:#fff;background:#2563eb;border-color:#2563eb}.featured-box{background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;gap:12px;padding:16px;display:grid}.featured-box h3{color:#0f172a;margin:0;font-size:16px}.featured-box p{color:#64748b;margin:4px 0 0;font-size:14px;line-height:1.5}.featured-box strong{color:#0f172a;display:block}.featured-preview{object-fit:cover;background:#eef2f7;border-radius:8px;width:260px;max-width:100%;height:150px}.cover-library{border-top:1px solid #e5e7eb;gap:12px;margin-top:6px;padding-top:14px;display:grid}.cover-library.open{background:#f8fbff;border:1px solid #dbeafe;border-radius:8px;padding:14px}.cover-library-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.cover-library-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.cover-library-header h4{color:#0f172a;margin:0;font-size:15px}.cover-library-header p{color:#64748b;margin:4px 0 0;font-size:13px}.cover-filter-bar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.cover-filter-bar button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:7px 10px;font-size:13px;font-weight:800}.cover-filter-bar button.active,.cover-filter-bar button:hover{color:#fff;background:#111827;border-color:#111827}.cover-media-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;max-height:540px;padding-right:4px;display:grid;overflow-y:auto}.cover-media-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.cover-media-card.selected{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.cover-media-card img{aspect-ratio:4/3;object-fit:cover;background:#f1f5f9;width:100%;display:block}.cover-media-card div{gap:6px;padding:10px;display:grid}.cover-media-card strong{color:#0f172a;word-break:break-word;font-size:13px;line-height:1.35}.cover-media-card span{color:#64748b;font-size:12px}.cover-media-card button{color:#fff;cursor:pointer;background:#2563eb;border-radius:8px;padding:7px 9px;font-size:13px;font-weight:800}@media (width<=1400px){.cover-media-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (width<=1100px){.cover-media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.cover-media-card button:disabled{color:#64748b;background:#e2e8f0}.article-viewer{background:#fff;padding:24px}.article-title-row{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px;display:flex}.article-title-row h2{color:#0f172a;margin:0;font-size:24px;line-height:1.35}.article-title-row span:not(.status-pill){color:#64748b;margin-top:6px;font-size:14px;display:block}.article-cover{object-fit:cover;background:#eef2f7;border-radius:8px;width:100%;max-height:360px;margin-bottom:18px}.article-excerpt{color:#1e3a8a;background:#eff6ff;border-left:4px solid #2563eb;border-radius:0 8px 8px 0;margin-bottom:18px;padding:14px 16px;line-height:1.7}.article-content{color:#0f172a;font-size:16px;line-height:1.85}.article-content p{margin:0 0 16px}.article-content img{border-radius:8px;max-width:100%;height:auto}.article-meta{color:#64748b;border-top:1px solid #e5e7eb;margin-top:24px;padding-top:14px;font-size:14px}.article-actor-grid{border-top:1px solid #e5e7eb;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin-top:18px;padding-top:16px;display:grid}.article-actor-grid div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:12px}.article-actor-grid span,.article-actor-grid strong{display:block}.article-actor-grid span{color:#64748b;font-size:12px;font-weight:800}.article-actor-grid strong{color:#0f172a;margin-top:5px;font-size:13px;line-height:1.45}.media-result{background:#fff;border:1px solid #e5e7eb;border-radius:8px;align-items:center;gap:16px;margin:20px;padding:16px;display:flex}.media-result img{object-fit:cover;background:#f3f4f6;border-radius:8px;width:120px;height:90px}.media-result strong,.media-result span,.media-result a{margin-bottom:6px;display:block}.media-library-header{background:#f8fafc;border-top:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;display:flex}.media-library-header h3{color:#0f172a;margin:0;font-size:17px}.media-library-header p{color:#64748b;margin:5px 0 0;font-size:14px}.media-library-actions{align-items:center;gap:10px;display:flex}.media-filter-bar{background:#fff;border-bottom:1px solid #e5e7eb;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 20px;display:flex}.media-filter-bar button{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:8px 12px;font-size:14px;font-weight:800}.media-filter-bar button.active,.media-filter-bar button:hover{color:#fff;background:#111827;border-color:#111827}.media-grid{background:#fff;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;padding:20px;display:grid}.media-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.media-card img{aspect-ratio:4/3;object-fit:cover;background:#f1f5f9;width:100%;display:block}.media-card div{gap:5px;padding:12px;display:grid}.media-card strong{color:#0f172a;word-break:break-word;line-height:1.4}.media-card span{color:#64748b;font-size:13px}.media-card-action{width:fit-content;margin-top:6px;padding:8px 10px;font-size:13px}.empty-state{color:#64748b;text-align:center;background:#fff;padding:28px 20px}.modal-backdrop{z-index:50;background:#0f172a73;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-modal{background:#fff;border-radius:8px;width:min(440px,100%);padding:22px;box-shadow:0 20px 45px #0f172a40}.confirm-modal h2{color:#0f172a;margin:0;font-size:20px}.confirm-modal p{color:#475569;margin:10px 0 0;line-height:1.6}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.modal-actions button{min-width:auto;padding:8px 12px;font-size:14px;line-height:1.3}.list-tools{background:#fff;border-bottom:1px solid #e5e7eb;grid-template-columns:minmax(240px,1.2fr) minmax(160px,.75fr) minmax(140px,.65fr) minmax(120px,.45fr) auto;align-items:end;gap:12px;padding:16px 20px;display:grid}.list-tools label{color:#334155;gap:6px;font-size:13px;font-weight:800;display:grid}.list-tools input,.list-tools select{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:10px 12px}.list-tool-actions{justify-content:flex-end;gap:8px;display:flex}.pagination-bar{color:#64748b;background:#fff;border-top:1px solid #e5e7eb;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;font-size:14px;display:flex}.pagination-bar>div{gap:8px;display:flex}.post-preview-modal{background:#fff;border-radius:10px;width:min(980px,100vw - 32px);max-height:calc(100vh - 48px);overflow-y:auto;box-shadow:0 24px 70px #0f172a47}.post-preview-header{z-index:2;background:#fffffff5;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px;display:flex;position:sticky;top:0}.post-preview-header strong,.post-preview-header span{display:block}.post-preview-header span{color:#64748b;margin-top:4px;font-size:13px}@media (width<=900px){.layout{grid-template-columns:1fr}.sidebar{height:auto;position:static}.sidebar nav,.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-header,.page-header,.article-title-row,.form-toolbar{flex-direction:column;align-items:stretch}.editor-image-form,.selected-image-tools{grid-template-columns:1fr}.editor-image-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.editor-image-selection-bar,.editor-image-selection-detail{grid-template-columns:1fr}.editor-image-selection-actions{justify-content:stretch}.editor-image-selection-actions button{flex:1}}@media (width<=640px){.content{padding:18px}.sidebar nav,.stats-grid,.form-row{grid-template-columns:1fr}.tabs,.row-actions,.page-actions,.form-actions{flex-direction:column;align-items:stretch}.tabs button,.list-filter-bar button,.page-actions button,.rich-toolbar button,.rich-toolbar select,.form-actions button{width:100%}.rich-toolbar .color-control{justify-content:space-between;width:100%}th,td{padding:12px}.post-cell{min-width:280px}.media-result{flex-direction:column;align-items:flex-start}.media-library-header,.cover-library-header,.cover-library-actions,.cover-filter-bar{flex-direction:column;align-items:stretch}.cover-library-header button,.cover-library-actions button,.cover-filter-bar button{width:100%}.cover-media-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:620px}.editor-image-form,.selected-image-tools{grid-template-columns:1fr}.editor-image-modal{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.editor-image-modal .editor-image-tools{max-height:calc(100vh - 20px);padding:14px}.editor-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:620px}.editor-image-selection-bar{margin:2px -14px -14px;padding:12px 14px;bottom:-14px}.media-library-header button,.media-filter-bar button{width:100%}.media-filter-bar{flex-direction:column;align-items:stretch}}.editor-image-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr))}.editor-image-card,.cover-media-card{aspect-ratio:1;background:#f8fafc;display:block;position:relative;overflow:hidden}.editor-image-card>:not(img),.cover-media-card>:not(img){display:none!important}.editor-image-card img,.cover-media-card img{aspect-ratio:auto;object-fit:cover;width:100%;height:100%;display:block}.editor-image-card.selected:after,.cover-media-card.selected:after{content:"";pointer-events:none;border:2px solid #fff;border-radius:6px;position:absolute;inset:6px;box-shadow:0 0 0 3px #2563ebbf}.editor-image-selection-detail{grid-template-columns:96px minmax(220px,.8fr) minmax(260px,1fr)}.editor-image-selection-detail img{object-fit:contain;background:#eef2f7;width:96px;height:72px}.editor-image-grid{grid-auto-rows:auto;align-items:start;gap:14px}.editor-image-card,.cover-media-card{isolation:isolate;width:100%;min-width:0;min-height:0}.editor-image-card img,.cover-media-card img{object-fit:contain;padding:6px;position:absolute;inset:0}.editor-image-grid{justify-content:start;grid-template-columns:repeat(auto-fill,140px)!important;grid-auto-rows:140px!important;align-items:start!important;gap:16px!important;display:grid!important}.editor-image-card,.cover-media-card{box-shadow:none;background:#f8fafc;border:1px solid #dbe3ef;border-radius:8px;aspect-ratio:auto!important;width:140px!important;height:140px!important}.editor-image-card:hover,.editor-image-card.selected,.cover-media-card:hover,.cover-media-card.selected{border-color:#2563eb;transform:none;box-shadow:0 0 0 3px #2563eb24}.editor-image-card img,.cover-media-card img{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important}@media (width<=640px){.editor-image-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))!important;grid-auto-rows:120px!important}.editor-image-card,.cover-media-card{width:100%!important;height:120px!important}.list-tools,.pagination-bar{flex-direction:column;grid-template-columns:1fr;align-items:stretch}.list-tool-actions,.pagination-bar>div{justify-content:stretch}.list-tool-actions button,.pagination-bar button{flex:1}}
