.admin-layout{display:flex;min-height:100vh;background:#f6f7fb;color:#1f2937}.admin-sidebar{width:220px;background:#111827;color:#e5e7eb;padding:24px 16px}.admin-title{font-size:16px;font-weight:700;margin-bottom:20px}.admin-nav{display:flex;flex-direction:column;gap:10px}.admin-nav a{color:#9ca3af;text-decoration:none;padding:10px 12px;border-radius:8px;font-size:14px}.admin-nav a.active{color:#fff;background:#2563eb}.admin-topbar{display:flex;align-items:center;justify-content:flex-end;margin-bottom:16px}.admin-topbar-spacer{flex:1}.admin-user{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:8px;background:#fff;box-shadow:0 4px 12px #0f172a0f}.admin-user-name{font-size:13px;color:#111827;font-weight:600}.admin-user-role{font-size:12px;color:#6b7280}.admin-logout{border:none;background:#ef4444;color:#fff;padding:6px 8px;border-radius:6px;font-size:12px;cursor:pointer}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#0f172a}.login-card{background:#fff;padding:32px;border-radius:12px;width:320px;box-shadow:0 12px 30px #0f172a33}.login-card form{display:flex;flex-direction:column;gap:12px;margin-top:12px}.login-card input{padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px}.login-card button{padding:10px 12px;border:none;background:#2563eb;color:#fff;border-radius:8px;cursor:pointer}.login-error{color:#dc2626;font-size:12px}.admin-content{flex:1;padding:24px 28px}.admin-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin:16px 0 24px}.admin-card{background:#fff;border-radius:12px;padding:16px;box-shadow:0 4px 12px #0f172a0f}.admin-card .label{font-size:12px;color:#6b7280}.admin-card .value{font-size:24px;font-weight:700;margin-top:6px}.admin-publish{display:flex;align-items:center;gap:12px;margin-bottom:16px}.admin-publish-btn{padding:8px 12px;border:none;border-radius:8px;background:#16a34a;color:#fff;cursor:pointer;font-size:13px}.admin-publish-secondary{background:#2563eb}.admin-publish-text{font-size:12px;color:#6b7280}.admin-publish-toggle{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7280}.admin-publish-toggle input{width:14px;height:14px}.admin-section{margin-top:24px}.admin-table{background:#fff;border-radius:12px;padding:8px 0;box-shadow:0 4px 12px #0f172a0f}.admin-table-header,.admin-table-row{display:grid;gap:12px;padding:12px 16px;align-items:center}.admin-table-header{font-weight:600;font-size:13px;color:#6b7280;border-bottom:1px solid #e5e7eb}.admin-table-row{font-size:14px;border-bottom:1px solid #f3f4f6}.admin-table-row:last-child{border-bottom:none}.admin-table-builds{grid-template-columns:.3fr 2.2fr 1fr 1fr .6fr .8fr .6fr}.admin-table-glossary{grid-template-columns:1.5fr 1.5fr 1fr .6fr}.admin-table-users{grid-template-columns:1.2fr 1fr 1.2fr 1fr}.admin-table-operations{grid-template-columns:.5fr 1.2fr 1.6fr .8fr 1.6fr 1.6fr}.admin-operations-toggle{margin-left:8px;border:none;background:transparent;color:#2563eb;cursor:pointer;font-size:12px}.admin-operations-child span:first-child{color:#6b7280}.admin-status-tag{display:inline-flex;align-items:center;justify-content:center;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.4}.admin-status-edited{background:#fef3c7;color:#92400e}.admin-status-published{background:#dcfce7;color:#166534}.admin-status-pending{background:#e5e7eb;color:#374151}.admin-build-title{display:flex;flex-direction:column;gap:2px}.admin-build-id{font-size:11px;color:#6b7280;word-break:break-all}.admin-dropdown{position:relative;min-width:200px}.admin-dropdown-trigger{width:100%;text-align:left;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;font-size:14px;cursor:pointer}.admin-dropdown-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 12px 30px #0f172a26;z-index:20;max-height:260px;overflow-y:auto}.admin-dropdown-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;cursor:pointer}.admin-dropdown-item:hover{background:#f3f4f6}.admin-dropdown-add{color:#2563eb;font-weight:600}.admin-dropdown-actions{display:inline-flex;gap:6px}.icon-btn{border:none;background:transparent;padding:4px;cursor:pointer;color:#2563eb}.icon-btn svg{width:14px;height:14px;fill:currentColor}.icon-btn-danger{color:#ef4444}.admin-antd-dropdown{padding:8px}.admin-antd-dropdown-footer{border-top:1px solid #f0f0f0;padding:6px 8px}.admin-antd-dropdown-list{border-top:1px dashed #f0f0f0;margin-top:6px;padding-top:6px;display:flex;flex-direction:column;gap:6px}.admin-antd-dropdown-item{display:flex;align-items:center;justify-content:space-between;gap:8px}.admin-antd-dropdown-item.is-selected{background:#f5f5f5;border-radius:6px}.admin-operations-detail{grid-column:1 / -1;margin-top:6px;font-size:12px;color:#6b7280}.admin-operations-detail summary{cursor:pointer;color:#2563eb;margin-bottom:6px}.admin-operations-list{display:flex;flex-wrap:wrap;gap:6px}.admin-operations-tag{padding:4px 8px;border-radius:999px;background:#e5e7eb;font-size:11px}.admin-empty{padding:16px;color:#9ca3af}.admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px}.admin-form input{padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px}.admin-form select{padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.admin-table-row input,.admin-table-row select{padding:6px 8px;border:1px solid #e5e7eb;border-radius:6px;font-size:12px}.admin-actions-inline{display:flex;gap:8px}.admin-actions-inline button{padding:6px 10px;border:none;border-radius:6px;background:#2563eb;color:#fff;cursor:pointer;font-size:12px}.admin-actions-inline .btn-muted{background:#6b7280}.btn-muted{background:#6b7280;color:#fff}.admin-actions-inline .btn-danger{background:#ef4444}.btn-inline{margin-left:8px;padding:4px 8px;border:none;border-radius:6px;background:#2563eb;color:#fff;font-size:12px;cursor:pointer}.admin-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;z-index:50}.admin-modal-content{width:min(1100px,92vw);height:min(80vh,900px);background:#fff;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 45px #0f172a40}.admin-modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#f9fafb}.admin-modal-title{font-size:14px;font-weight:600;color:#111827}.admin-modal-close{border:none;background:#ef4444;color:#fff;padding:6px 10px;border-radius:6px;cursor:pointer;font-size:12px}.admin-modal-body{flex:1;background:#fff}.admin-modal-iframe{width:100%;height:100%;border:0}.admin-modal-content-sm{width:min(520px,90vw);height:auto}.admin-replace-dialog{width:min(480px,90vw);height:auto}.admin-replace-dialog input:focus{border-color:#1890ff;box-shadow:0 0 0 2px #1890ff33}.admin-modal-body-pad{padding:16px}.admin-modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:12px 16px;border-top:1px solid #e5e7eb;background:#f9fafb}.admin-form button{padding:10px 12px;border:none;border-radius:8px;background:#2563eb;color:#fff;cursor:pointer}.admin-editor{display:flex;flex-direction:column;gap:16px}.admin-editor-header{display:flex;justify-content:space-between;align-items:center}.admin-editor-meta{display:flex;gap:16px;font-size:13px;color:#6b7280}.admin-editor-body{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-editor-body-single{grid-template-columns:1fr}.admin-editor-pane{background:#fff;border-radius:12px;padding:12px;box-shadow:0 4px 12px #0f172a0f;display:flex;flex-direction:column;gap:8px;min-height:0;overflow:hidden}.admin-pane-title{font-size:13px;font-weight:600;color:#6b7280}.admin-iframe{border:1px solid #e5e7eb;border-radius:8px;width:100%;height:80vh}.admin-iframe.read-only{pointer-events:none}.admin-actions{display:flex;align-items:center;gap:8px}.admin-actions button{padding:8px 10px;border:none;background:#2563eb;color:#fff;border-radius:8px;cursor:pointer;font-size:12px}.admin-status{padding:6px 10px;border-radius:999px;font-size:12px;background:#e5e7eb}.admin-status-in_review{background:#fef3c7;color:#92400e}.admin-status-verified{background:#d1fae5;color:#065f46}.admin-status-published{background:#dbeafe;color:#1e40af}.admin-selection-menu{position:fixed;z-index:9999;background:#111827;color:#fff;padding:8px 12px;border-radius:8px;display:flex;align-items:center;gap:10px;box-shadow:0 4px 12px #0000004d}.admin-selection-text{font-size:12px;color:#9ca3af;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-selection-menu button{border:none;background:#2563eb;color:#fff;cursor:pointer;font-size:12px;padding:4px 10px;border-radius:4px}.admin-selection-menu button:hover{background:#1d4ed8}.admin-muted{font-size:12px;color:#6b7280}.admin-loading{display:flex;align-items:center;justify-content:center;height:80vh;color:#6b7280;font-size:14px}.admin-editor-body-review{grid-template-columns:65fr 35fr;align-items:stretch}.review-panel{display:flex;flex-direction:column;height:80vh;overflow:hidden;border:1px solid #e5e7eb;border-radius:8px}.review-panel-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 12px;border-bottom:1px solid #e5e7eb;background:#f9fafb;flex-shrink:0}.review-btn{border:none;border-radius:6px;padding:6px 14px;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s}.review-btn:disabled{opacity:.5;cursor:not-allowed}.review-btn-primary{background:#2563eb;color:#fff}.review-btn-primary:hover:not(:disabled){background:#1d4ed8}.review-btn-send{background:#2563eb;color:#fff;padding:8px 18px;font-size:13px}.review-btn-send:hover:not(:disabled){background:#1d4ed8}.review-btn-stop{background:#ef4444;color:#fff}.review-btn-stop:hover{background:#dc2626}.review-btn-muted{background:#e5e7eb;color:#374151}.review-btn-muted:hover:not(:disabled){background:#d1d5db}.review-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:16px}.review-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#9ca3af;text-align:center;gap:8px}.review-empty-icon{font-size:36px;margin-bottom:8px}.review-empty-text{font-size:14px;color:#6b7280}.review-empty-hint{font-size:12px;color:#9ca3af;max-width:260px;line-height:1.5}.review-bubble{display:flex;flex-direction:column;gap:4px}.review-bubble-label{font-size:11px;font-weight:600;color:#6b7280}.review-bubble-content{padding:10px 14px;border-radius:10px;font-size:13px;line-height:1.7;word-break:break-word}.review-bubble-user .review-bubble-content{background:#eff6ff;color:#1e3a5f;border:1px solid #dbeafe}.review-bubble-assistant .review-bubble-content{background:#f9fafb;color:#1f2937;border:1px solid #e5e7eb}.review-bubble-assistant .review-bubble-content h1,.review-bubble-assistant .review-bubble-content h2,.review-bubble-assistant .review-bubble-content h3,.review-bubble-assistant .review-bubble-content h4{margin:12px 0 6px;font-weight:700;line-height:1.4}.review-bubble-assistant .review-bubble-content h1{font-size:16px}.review-bubble-assistant .review-bubble-content h2{font-size:15px}.review-bubble-assistant .review-bubble-content h3{font-size:14px}.review-bubble-assistant .review-bubble-content p{margin:6px 0}.review-bubble-assistant .review-bubble-content ul,.review-bubble-assistant .review-bubble-content ol{margin:6px 0;padding-left:20px}.review-bubble-assistant .review-bubble-content li{margin:4px 0}.review-bubble-assistant .review-bubble-content code{background:#e5e7eb;padding:1px 5px;border-radius:4px;font-size:12px}.review-bubble-assistant .review-bubble-content pre{background:#1f2937;color:#e5e7eb;padding:10px 14px;border-radius:6px;overflow-x:auto;margin:8px 0}.review-bubble-assistant .review-bubble-content pre code{background:none;padding:0;color:inherit}.review-bubble-assistant .review-bubble-content blockquote{border-left:3px solid #d1d5db;padding-left:12px;margin:8px 0;color:#6b7280}.review-locatable{cursor:pointer;transition:border-color .2s,background .2s}.review-locatable:hover{border-left-color:#2563eb;background:#2563eb0d}.review-bubble-assistant .review-bubble-content table{border-collapse:collapse;width:100%;margin:8px 0;font-size:12px}.review-bubble-assistant .review-bubble-content th,.review-bubble-assistant .review-bubble-content td{border:1px solid #e5e7eb;padding:6px 10px;text-align:left}.review-bubble-assistant .review-bubble-content th{background:#f3f4f6;font-weight:600}.review-typing{color:#9ca3af;font-style:italic;animation:review-pulse 1.5s ease-in-out infinite}@keyframes review-pulse{0%,to{opacity:1}50%{opacity:.4}}.review-input-area{display:flex;gap:8px;padding:12px 16px;border-top:1px solid #e5e7eb;background:#f9fafb;flex-shrink:0;align-items:flex-end}.review-textarea{flex:1;border:1px solid #d1d5db;border-radius:8px;padding:8px 12px;font-size:13px;resize:none;font-family:inherit;line-height:1.5;outline:none;transition:border-color .15s}.review-textarea:focus{border-color:#2563eb;box-shadow:0 0 0 2px #2563eb26}.review-textarea:disabled{background:#f3f4f6;color:#9ca3af}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}h2{font-size:20px;font-weight:600;margin-bottom:16px}h3{font-size:16px;font-weight:600;margin-bottom:12px}
