:root{--admin-border:#e2e2e2;--admin-bg:#f7f7f8;--admin-text:#1a1a1a;--admin-muted:#6b7280;--admin-accent:#1d4ed8;--admin-danger:#b91c1c}*{box-sizing:border-box}body{color:var(--admin-text);background:var(--admin-bg);margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif}.admin-loading{color:var(--admin-muted);padding:2rem}.admin-shell{min-height:100vh;display:flex}.admin-sidebar{color:#f9fafb;background:#111827;flex-shrink:0;width:220px;padding:1.5rem 1rem}.admin-brand{margin-bottom:1.5rem;font-weight:700}.admin-sidebar nav ul{margin:0;padding:0;list-style:none}.admin-sidebar nav li+li{margin-top:.25rem}.admin-sidebar nav a{color:#d1d5db;border-radius:6px;padding:.5rem .75rem;font-size:.9rem;text-decoration:none;display:block}.admin-sidebar nav a:hover,.admin-sidebar nav a.active{color:#fff;background:#1f2937}.admin-main{flex-direction:column;flex:1;min-width:0;display:flex}.admin-topbar{border-bottom:1px solid var(--admin-border);background:#fff;justify-content:space-between;align-items:center;padding:.75rem 1.5rem;font-size:.9rem;display:flex}.admin-content{flex:1;padding:1.5rem}.admin-page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.admin-page-header h1{margin:0;font-size:1.25rem}.admin-page-header .admin-actions{align-items:center;margin:0}.admin-locale-badges{flex-wrap:wrap;gap:.25rem;display:inline-flex}.admin-locale-badge{text-align:center;color:#374151;background:#e5e7eb;border-radius:4px;min-width:1.9rem;padding:.1rem .35rem;font-size:.75rem;text-decoration:none;display:inline-block}.admin-locale-badge.missing{border:1px dashed var(--admin-border);color:#b0b4ba;background:0 0}.admin-locale-badge.status-published{color:#166534;background:#dcfce7}.admin-locale-badge.status-in_review{color:#854d0e;background:#fef9c3}.admin-locale-badge.status-archived{color:#991b1b;background:#fee2e2}a.admin-locale-badge:hover{outline:1px solid}.admin-back-link{color:var(--admin-muted);margin-bottom:.5rem;font-size:.85rem;text-decoration:none;display:inline-block}.admin-back-link:hover{color:var(--admin-text)}.admin-status-dropdown{position:relative}.admin-status-toggle{color:#374151;background:#e5e7eb;border-color:#0000;border-radius:999px;padding:.3rem .8rem;font-weight:600}.admin-status-prefix{margin-right:.35rem;font-weight:400}.admin-status-toggle.status-published{color:#166534;background:#dcfce7}.admin-status-toggle.status-in_review{color:#854d0e;background:#fef9c3}.admin-status-toggle.status-archived{color:#991b1b;background:#fee2e2}.admin-status-menu{z-index:20;border:1px solid var(--admin-border);background:#fff;border-radius:8px;min-width:11rem;margin:0;padding:.25rem;list-style:none;position:absolute;top:calc(100% + .25rem);right:0;box-shadow:0 6px 20px #0000001f}.admin-status-menu button{text-align:left;background:0 0;border:none;border-radius:6px;width:100%;display:block}.admin-status-menu button:hover,.admin-status-menu button:focus-visible{background:#f3f4f6}.admin-status-menu button:before{content:"";background:#9ca3af;border-radius:50%;width:.55rem;height:.55rem;margin-right:.5rem;display:inline-block}.admin-status-menu button.status-published:before{background:#16a34a}.admin-status-menu button.status-in_review:before{background:#ca8a04}.admin-status-menu button.status-archived:before{background:#dc2626}.admin-search{border:1px solid var(--admin-border);border-radius:6px;width:18rem;max-width:100%;padding:.4rem .6rem;font-family:inherit;font-size:.85rem}table.admin-table{border-collapse:collapse;border:1px solid var(--admin-border);background:#fff;width:100%}table.admin-table th,table.admin-table td{text-align:left;border-bottom:1px solid var(--admin-border);padding:.5rem .75rem;font-size:.9rem}table.admin-table th{background:#fafafa;font-weight:600}table.admin-table tbody tr:hover{background:#fafafa}.admin-form.admin-form-wide{max-width:1100px}.admin-table-scroll{overflow-x:auto}.admin-table-scroll table.admin-table input:not([type=checkbox]){min-width:7rem}.admin-table-scroll .admin-field-checkbox{display:flex}.admin-form{border:1px solid var(--admin-border);background:#fff;border-radius:8px;max-width:640px;padding:1.25rem}.admin-field{flex-direction:column;gap:.25rem;margin-bottom:1rem;display:flex}.admin-field label{font-size:.85rem;font-weight:600}.admin-field input,.admin-field select,.admin-field textarea{border:1px solid var(--admin-border);border-radius:6px;padding:.4rem .5rem;font-family:inherit;font-size:.9rem}.admin-field-checkbox{flex-direction:row;align-items:center;gap:.5rem}.admin-actions{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}button,.admin-button{cursor:pointer;border:1px solid var(--admin-border);color:inherit;background:#fff;border-radius:6px;padding:.4rem .9rem;font-size:.85rem;text-decoration:none;display:inline-block}button.primary,.admin-button.primary{background:var(--admin-accent);border-color:var(--admin-accent);color:#fff}button.danger,.admin-button.danger{background:var(--admin-danger);border-color:var(--admin-danger);color:#fff}button:disabled{opacity:.5;cursor:not-allowed}.admin-error{color:var(--admin-danger);margin:.5rem 0;font-size:.85rem}.admin-empty{color:var(--admin-muted);text-align:center;padding:1rem}.admin-hint{color:var(--admin-muted);font-size:.8rem}.admin-pagination{align-items:center;gap:.5rem;margin-top:1rem;font-size:.85rem;display:flex}.admin-login-page{justify-content:center;align-items:center;min-height:100vh;display:flex}.admin-badge{background:#e5e7eb;border-radius:999px;padding:.1rem .5rem;font-size:.75rem;display:inline-block}.admin-badge.status-published{color:#166534;background:#dcfce7}.admin-badge.status-draft{color:#374151;background:#e5e7eb}.admin-badge.status-in_review{color:#854d0e;background:#fef9c3}.admin-badge.status-archived{color:#991b1b;background:#fee2e2}.admin-tabs{border-bottom:1px solid var(--admin-border);gap:.25rem;margin-bottom:1rem;display:flex}.admin-tabs button{background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0}.admin-tabs button.active{border-bottom-color:var(--admin-accent);font-weight:600}.admin-media-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem;display:grid}.admin-media-item{cursor:pointer;background:#fff;border:2px solid #0000;border-radius:6px;overflow:hidden}.admin-media-item.selected{border-color:var(--admin-accent)}.admin-media-item img{object-fit:cover;width:100%;height:90px;display:block}.admin-media-item .credit{color:var(--admin-muted);white-space:nowrap;text-overflow:ellipsis;padding:.25rem;font-size:.7rem;overflow:hidden}.admin-preview{border:1px solid var(--admin-border);background:#fff;border-radius:6px;max-width:640px;padding:1rem}.admin-color-field{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.admin-color-field input[type=color]{cursor:pointer;width:3rem;height:2.25rem;padding:.125rem}.admin-color-field input[type=text]{width:7rem;font-family:ui-monospace,monospace}.admin-color-preview{text-transform:uppercase;letter-spacing:.02em;padding:4px 8px;font-family:ui-monospace,monospace;font-size:11px;display:inline-block}.admin-color-swatch{vertical-align:middle;border:1px solid var(--admin-border);width:.875rem;height:.875rem;display:inline-block}.admin-notice{background:#fffbeb;border:1px solid #f59e0b;border-radius:6px;margin-bottom:1rem;padding:.5rem .75rem;font-size:.875rem}.rte{border:1px solid var(--admin-border);background:#fff;border-radius:6px;flex-direction:column;display:flex}.rte-loading{color:var(--admin-muted);padding:1rem}.rte-fullscreen{z-index:1000;border-radius:0;position:fixed;inset:0}.rte-toolbar{border-bottom:1px solid var(--admin-border);background:var(--admin-bg);z-index:2;border-radius:6px 6px 0 0;flex-wrap:wrap;align-items:center;gap:.25rem;padding:.375rem;display:flex;position:sticky;top:0}.rte-subtoolbar{background:#eef2ff;border-radius:0;position:static}.rte-group{border-right:1px solid var(--admin-border);align-items:center;gap:.125rem;margin-right:.125rem;padding-right:.375rem;display:flex}.rte-group:last-child,.rte-group-end{border-right:0}.rte-group-end{margin-left:auto}.rte .rte-btn{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;min-width:2rem;height:2rem;padding:0 .5rem;font-size:.875rem;line-height:1}.rte .rte-btn:hover:not(:disabled){border-color:var(--admin-border);background:#fff}.rte .rte-btn.is-active{color:var(--admin-accent);background:#dbeafe;border-color:#93c5fd}.rte .rte-btn:disabled{opacity:.4;cursor:default}.rte-btn-text{font-weight:600}.rte-select{height:2rem;font-size:.875rem}.rte-color{position:relative}.rte-color-label{border-bottom:3px solid #0000;padding-bottom:1px;font-weight:700;display:inline-block}.rte-color-menu{z-index:10;border:1px solid var(--admin-border);background:#fff;border-radius:6px;flex-direction:column;gap:.5rem;width:11rem;padding:.5rem;display:flex;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 8px 24px #0000001f}.rte-swatches{grid-template-columns:repeat(5,1fr);gap:.25rem;display:grid}.rte-swatch{cursor:pointer;border:1px solid #00000026;border-radius:4px;width:1.75rem;height:1.75rem;padding:0}.rte-color-custom{justify-content:space-between;align-items:center;font-size:.8rem;display:flex}.rte-prompt,.rte-import-panel{border-bottom:1px solid var(--admin-border);background:#f8fafc;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem;font-size:.875rem;display:flex}.rte-prompt input{flex:1;min-width:14rem}.rte-warning{color:#92400e;flex-basis:100%}.rte-content{overflow-wrap:anywhere;outline:none;min-height:24rem;padding:1rem 1.25rem;font-size:1rem;line-height:1.65}.rte-fullscreen .rte-content,.rte-fullscreen .rte-source{flex:1;width:100%;max-width:860px;margin:0 auto;overflow-y:auto}.rte-fullscreen>div:has(>.rte-content){flex:1;overflow-y:auto}.rte-source{resize:vertical;border:0;min-height:24rem;padding:1rem;font-family:ui-monospace,monospace;font-size:.8rem}.rte-footer{border-top:1px solid var(--admin-border);color:var(--admin-muted);justify-content:space-between;gap:1rem;padding:.375rem .75rem;font-size:.75rem;display:flex}.rte-content>*+*{margin-top:.75em}.rte-content h2{font-size:1.5rem}.rte-content h3{font-size:1.25rem}.rte-content h4{font-size:1.1rem}.rte-content ul,.rte-content ol{padding-left:1.5rem}.rte-content ul{list-style:outside}.rte-content ol{list-style:decimal}.rte-content blockquote{color:#374151;border-left:3px solid #137d41;padding-left:.75rem;font-style:italic}.rte-content a{color:var(--admin-accent);text-decoration:underline}.rte-content img{max-width:100%;height:auto;display:block}.rte-content img.ProseMirror-selectednode{outline:3px solid #93c5fd}.rte-content hr{border:0;border-top:1px solid var(--admin-border)}.rte-content pre{background:#f3f4f6;border-radius:4px;padding:.75rem;font-family:ui-monospace,monospace;font-size:.85rem;overflow-x:auto}.rte-content code{background:#f3f4f6;padding:0 .2em;font-family:ui-monospace,monospace;font-size:.9em}.rte-content table{border-collapse:collapse;table-layout:fixed;width:100%}.rte-content th,.rte-content td{vertical-align:top;border:1px solid #d1d5db;padding:.375rem .5rem;position:relative}.rte-content th{background:#f3f4f6;font-weight:700}.rte-content td>p,.rte-content th>p{margin:0}.rte-content .selectedCell:after{content:"";pointer-events:none;background:#3b82f626;position:absolute;inset:0}.rte-content div[data-youtube-video] iframe{aspect-ratio:16/9;border:0;width:100%;height:auto}.rte-content p.is-editor-empty:first-child:before{content:attr(data-placeholder);color:var(--admin-muted);float:left;pointer-events:none;height:0}.rte-dialog-backdrop{z-index:1100;background:#0006;justify-content:center;align-items:flex-start;padding:5vh 1rem;display:flex;position:fixed;inset:0;overflow-y:auto}.rte-dialog{background:#fff;border-radius:8px;width:min(720px,100%);padding:1rem 1.25rem}.rte-dialog .admin-media-item{text-align:left;cursor:pointer;padding:0}.rte .rte-btn{justify-content:center;align-items:center;gap:.25rem;display:inline-flex}.admin-media-delete{border:none;border-top:1px solid var(--admin-border);width:100%;color:var(--admin-danger);cursor:pointer;background:#fff;border-radius:0;padding:.3rem;font-size:.75rem;display:block}.admin-media-delete:hover:not(:disabled){background:#fef2f2}.admin-localized{border:none;min-width:0;margin:0 0 .75rem;padding:0}.admin-localized legend{margin-bottom:.25rem;font-size:.85rem;font-weight:600}.admin-localized-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.5rem;display:grid}.admin-localized-field{align-items:center;gap:.35rem;min-width:0;display:flex}.admin-localized-field span{color:var(--admin-muted);width:1.6rem;font-size:.7rem;font-weight:700}.admin-localized-field input{border:1px solid var(--admin-border);min-width:0;font:inherit;border-radius:6px;flex:1;padding:.35rem .45rem;font-size:.85rem}.admin-footer-section{border:1px solid var(--admin-border);background:#fff;border-radius:8px;margin-bottom:1rem;padding:1rem}.admin-footer-section-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.admin-footer-section-header h2{margin:0;font-size:1rem}.admin-footer-item{border:1px dashed var(--admin-border);border-radius:6px;margin-bottom:.75rem;padding:.75rem}.admin-footer-item-row{flex-wrap:wrap;align-items:flex-end;gap:.75rem;display:flex}.admin-footer-item-row .admin-field{margin-bottom:.5rem}.admin-footer-item-target{flex:1;min-width:220px}.admin-order-buttons{gap:.25rem;margin-bottom:.5rem;display:flex}
