@import"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap";:root{--polo-red: #e30613;--polo-red-soft: rgba(227, 6, 19, .08);--polo-red-hover: #c8050f;--polo-ink: #0f1623;--polo-ink-2: #344054;--polo-muted: #667085;--polo-border: #e4e7ec;--polo-soft: #f6f7f9;--polo-soft-2: #eef1f5;--polo-success: #16803c;--polo-warning: #b54708;--status-loading-bg: #eff6ff;--status-loading-border: #bfdbfe;--status-loading-text: #1e40af;--status-success-bg: #f0fdf4;--status-success-border: #bbf7d0;--status-success-text: #15803d;--status-error-bg: #fff1f2;--status-error-border: #fecaca;--status-error-text: #991b1b;--status-info-bg: #fffbeb;--status-info-border: #fde68a;--status-info-text: #92400e}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;width:100%;font-family:Space Grotesk,Arial,sans-serif;background:#f0f2f5;color:var(--polo-ink);font-weight:400;letter-spacing:-.01em;overflow-x:hidden}button,textarea,input,select{font-family:Space Grotesk,Arial,sans-serif}.auth-gate{min-height:100vh;display:grid;place-items:center;padding:16px;background:#f0f2f5}.auth-gate-panel{width:min(340px,100%);display:grid;justify-items:center;gap:10px;text-align:center;padding:24px 22px;border:1px solid var(--polo-border);border-radius:16px;background:#fff;box-shadow:0 8px 28px #0f162314}.auth-gate-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:var(--polo-red);color:#fff;font-weight:700;font-size:18px;box-shadow:0 6px 16px #e3061338}.auth-gate h1{margin:0;font-size:20px;line-height:1.15;letter-spacing:0}.auth-gate p,.auth-gate small{margin:0;color:var(--polo-muted);font-size:13px;line-height:1.4}.auth-gate-loader{width:100%;height:4px;margin-top:6px;border-radius:999px;overflow:hidden;background:var(--polo-soft-2)}.auth-gate-loader:before{content:"";display:block;width:38%;height:100%;border-radius:inherit;background:var(--polo-red);animation:slide-x 1.1s ease-in-out infinite}.auth-gate-action{width:100%;min-height:40px;margin-top:4px;border:0;border-radius:12px;background:var(--polo-red);color:#fff;cursor:pointer;font-size:13px;font-weight:600;box-shadow:0 6px 16px #e3061333}.auth-gate-action:hover{background:var(--polo-red-hover)}.app-shell{width:100%;max-width:100%;min-height:100vh;padding:10px;overflow-x:hidden;background:linear-gradient(180deg,rgba(227,6,19,.05) 0%,transparent 200px),#f0f2f5}.hero-card{width:100%;border:1px solid rgba(15,22,35,.07);border-top-width:4px;border-radius:18px;padding:14px;background:#fffffffa;box-shadow:0 12px 32px #0f162312}.brand-row{display:flex;align-items:center;gap:10px;margin-bottom:14px}.brand-mark{width:36px;height:36px;min-width:36px;border-radius:12px;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;box-shadow:0 8px 18px #e3061333;flex-shrink:0}.brand-info{flex:1;min-width:0}.brand-row h1{margin:0;font-size:17px;line-height:1.15;font-weight:700;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-row p{margin:2px 0 0;font-size:12px;color:var(--polo-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-badges{display:flex;gap:5px;flex-shrink:0;align-items:center}.mode-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;background:var(--polo-soft-2);color:var(--polo-ink-2);border:1px solid var(--polo-border);white-space:nowrap}.auth-badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;border:1px solid;white-space:nowrap}.auth-badge.auth-dev{background:#f59e0b1a;border-color:#f59e0b4d;color:#92400e}.auth-badge.auth-entra{background:#22c55e1f;border-color:#22c55e52;color:#15803d}.panel-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:4px;margin:0 0 14px;padding:4px;border:1px solid var(--polo-border);border-radius:13px;background:var(--polo-soft-2)}.panel-tabs button{min-height:34px;border:0;border-radius:10px;background:transparent;color:var(--polo-muted);font-size:12.5px;font-weight:600;cursor:pointer;transition:background .14s ease,color .14s ease,box-shadow .14s ease;letter-spacing:-.01em}.panel-tabs button.active{background:#fff;color:var(--polo-ink);box-shadow:0 2px 8px #0f162317}.panel-tabs button:not(.active):hover{color:var(--polo-ink)}.panel-view{display:grid;gap:10px}.primary-button,.secondary-button,.insert-button,.ghost-button{width:100%;min-height:42px;border:0;border-radius:13px;cursor:pointer;font-weight:600;font-size:13.5px;transition:transform .13s ease,opacity .13s ease,box-shadow .13s ease,filter .13s ease;display:inline-flex;align-items:center;justify-content:center;gap:7px;letter-spacing:-.01em}.primary-button{color:#fff;box-shadow:0 6px 16px #e3061333;grid-column:1 / -1}.primary-button:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px);box-shadow:0 8px 20px #e3061340}.secondary-button{background:var(--polo-ink);color:#fff}.secondary-button:hover:not(:disabled){background:#1a2740;transform:translateY(-1px)}.insert-button{background:var(--polo-success);color:#fff;box-shadow:0 4px 12px #16803c33}.insert-button:hover:not(:disabled){filter:brightness(1.06);transform:translateY(-1px)}.ghost-button{background:#fff;color:var(--polo-ink);border:1px solid rgba(15,23,42,.13);font-weight:500}.ghost-button:hover:not(:disabled){background:var(--polo-soft);border-color:#0f172a33}.primary-button:disabled,.secondary-button:disabled,.insert-button:disabled,.ghost-button:disabled{opacity:.5;cursor:not-allowed;transform:none;filter:none}.primary-button[data-loading=true]{background:var(--polo-ink-2)!important;box-shadow:none}.btn-spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}.button-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}.run-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border:1px solid #dbeafe;border-radius:12px;background:#eff6ff;font-size:12px;line-height:1.35}.run-summary-main{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.run-model-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;background:#1e3a8a;color:#fff;flex-shrink:0}.run-summary-main strong{font-weight:600;color:#1e3a8a;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.run-strategy{font-size:11.5px;color:#4169a8;font-style:italic;flex-shrink:0}.draft-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0}.draft-label{display:block;font-weight:600;font-size:12.5px;color:var(--polo-ink-2);margin:0}.copy-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border:1px solid var(--polo-border);border-radius:8px;background:var(--polo-soft);color:var(--polo-muted);font-size:11.5px;font-weight:600;cursor:pointer;transition:background .13s ease,color .13s ease,border-color .13s ease;white-space:nowrap;flex-shrink:0}.copy-btn:hover{background:#fff;color:var(--polo-ink);border-color:var(--polo-ink-2)}.draft-box{width:100%;min-height:240px;resize:vertical;padding:12px 14px;border:1px solid rgba(15,22,35,.11);border-radius:14px;font-family:Space Grotesk,Arial,sans-serif;font-size:13px;line-height:1.55;outline:none;background:#fff;color:var(--polo-ink);box-shadow:inset 0 1px 3px #0f16230a;transition:border-color .14s ease,box-shadow .14s ease}.draft-box:focus{border-color:var(--polo-red);box-shadow:0 0 0 3px #e3061317}.demo-thread-box{display:grid;gap:6px;padding:12px;border:1px dashed rgba(227,6,19,.25);border-radius:14px;background:var(--polo-red-soft)}.demo-thread-box .draft-label{color:var(--polo-red)}.demo-thread-box .draft-box{min-height:90px;background:#fff}.status-line{display:flex;align-items:center;gap:7px;margin:0;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid rgba(15,22,35,.08);font-size:12px;color:var(--polo-muted);transition:background .2s ease,border-color .2s ease,color .2s ease;min-height:38px}.status-line span{line-height:1.4}.status-line.status-loading{background:var(--status-loading-bg);border-color:var(--status-loading-border);color:var(--status-loading-text)}.status-line.status-success{background:var(--status-success-bg);border-color:var(--status-success-border);color:var(--status-success-text)}.status-line.status-error{background:var(--status-error-bg);border-color:var(--status-error-border);color:var(--status-error-text)}.status-line.status-info{background:var(--status-info-bg);border-color:var(--status-info-border);color:var(--status-info-text)}.status-spinner{display:inline-block;width:13px;height:13px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .65s linear infinite;flex-shrink:0;opacity:.7}.context-box{padding:12px;border-radius:14px;background:var(--polo-soft);border:1px solid var(--polo-border);font-size:12.5px;line-height:1.45;word-break:break-word;color:var(--polo-ink-2)}.context-box strong{display:block;margin-bottom:6px;font-weight:600;color:var(--polo-ink)}.meta-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px}.meta-pill{background:#fff;border:1px solid var(--polo-border);border-radius:13px;padding:8px 10px;display:grid;gap:2px}.meta-pill small{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--polo-muted);font-weight:600}.meta-pill strong{font-weight:600;font-size:13px;color:var(--polo-ink);letter-spacing:-.012em}.meta-pill em{font-style:normal;font-size:11px;color:var(--polo-muted)}.meta-pill.style{border-color:#e3061338;background:var(--polo-red-soft)}.meta-pill.style strong{color:var(--polo-red)}.meta-pill.warn{border-color:#fcd9b6;background:#fffbeb}.meta-pill.warn strong{color:var(--polo-warning)}.settings-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media (max-width: 360px){.settings-row{grid-template-columns:1fr}}.control-box{display:grid;gap:5px;padding:11px 12px;border:1px solid var(--polo-border);border-radius:14px;background:var(--polo-soft)}.control-box label{font-size:11.5px;font-weight:600;color:var(--polo-ink-2);text-transform:uppercase;letter-spacing:.04em}.control-box select{width:100%;min-height:36px;border:1px solid var(--polo-border);border-radius:10px;padding:6px 28px 6px 10px;background:#fff;color:var(--polo-ink);font-size:13px;cursor:pointer;outline:none;transition:border-color .13s ease,box-shadow .13s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.control-box select:focus{border-color:var(--polo-red);box-shadow:0 0 0 3px #e3061317}.control-box select:disabled{opacity:.55;cursor:not-allowed}.control-box small{font-size:11px;color:var(--polo-muted);line-height:1.35}.style-section{padding:14px;border:1px solid var(--polo-border);border-radius:16px;background:var(--polo-soft);display:grid;gap:10px;transition:border-color .2s ease,background .2s ease}.style-section.active{border-color:#16803c4d;background:#f0fdf4b3}.style-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.style-section-title{display:flex;flex-direction:column;gap:4px}.style-section-title strong{font-size:13.5px;font-weight:700;color:var(--polo-ink)}.style-source-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;border:1px solid;width:fit-content}.source-user{background:#16803c1a;border-color:#16803c4d;color:#15803d}.source-group{background:#2563eb17;border-color:#2563eb47;color:#1d4ed8}.source-tenant{background:#6b728017;border-color:#6b728040;color:#374151}.source-none{background:var(--polo-soft-2);border-color:var(--polo-border);color:var(--polo-muted)}.style-sample-count{font-size:11.5px;font-weight:600;color:var(--polo-muted);padding:3px 8px;background:#fff;border:1px solid var(--polo-border);border-radius:999px;white-space:nowrap;flex-shrink:0}.style-info{display:grid;gap:5px;padding:10px;background:#fff;border:1px solid var(--polo-border);border-radius:12px}.style-info-row{display:grid;grid-template-columns:72px 1fr;gap:8px;align-items:baseline;font-size:12px}.style-info-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--polo-muted);white-space:nowrap}.style-info-val{color:var(--polo-ink-2);font-size:12.5px;line-height:1.35;word-break:break-word}.style-empty-note{margin:0;font-size:12.5px;color:var(--polo-muted);line-height:1.45;padding:10px;background:#fff;border:1px dashed var(--polo-border);border-radius:12px}.style-actions{display:flex;gap:6px;flex-wrap:wrap}.style-actions .ghost-button{flex:1;min-width:0;min-height:36px;font-size:12.5px;padding:0 10px}.style-edit-form{display:grid;gap:9px;padding:12px;background:#fff;border:1px solid var(--polo-border);border-radius:14px}.style-edit-row{display:grid;gap:4px}.style-edit-row label{font-size:11.5px;font-weight:600;color:var(--polo-ink-2);text-transform:uppercase;letter-spacing:.04em}.style-edit-row select,.style-edit-row input[type=text]{width:100%;min-height:36px;border:1px solid var(--polo-border);border-radius:10px;padding:7px 10px;font-size:13px;color:var(--polo-ink);background:var(--polo-soft);outline:none;transition:border-color .13s ease,box-shadow .13s ease}.style-edit-row select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23667085' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-color:var(--polo-soft);padding-right:28px}.style-edit-row select:focus,.style-edit-row input[type=text]:focus{border-color:var(--polo-red);box-shadow:0 0 0 3px #e3061317;background:#fff}.style-edit-row small{font-size:11px;color:var(--polo-muted)}.style-edit-actions{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:4px}.style-edit-actions .primary-button{grid-column:auto;min-height:40px;font-size:13px}.style-edit-actions .ghost-button{min-height:40px;font-size:13px;width:auto;padding:0 14px}.danger-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;color:#b91c1c;font-weight:600;font-size:12.5px;padding:0 12px;min-height:36px;cursor:pointer;transition:background .13s ease,border-color .13s ease;white-space:nowrap}.danger-button:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.danger-button:disabled{opacity:.5;cursor:not-allowed}.license-note,.license-warning{padding:9px 12px;border-radius:12px;font-size:12px;line-height:1.35;border:1px solid}.license-note{border-color:#bfdbfe;background:#eff6ff;color:#1e3a8a}.license-warning{border-color:#fecaca;background:#fff1f2;color:#991b1b}.bottom-actions{display:flex;gap:8px;padding-top:6px;border-top:1px solid var(--polo-border);margin-top:4px}.bottom-actions .ghost,.diff-actions .ghost{display:inline-flex;align-items:center;justify-content:center;background:var(--polo-soft);color:var(--polo-ink);border:1px solid var(--polo-border);padding:0 14px;min-height:40px;border-radius:12px;font-weight:500;font-size:13px;cursor:pointer;transition:background .13s ease;white-space:nowrap}.bottom-actions .ghost:hover:not(:disabled),.diff-actions .ghost:hover:not(:disabled){background:var(--polo-soft-2)}.bottom-actions .ghost:disabled,.diff-actions .ghost:disabled{opacity:.45;cursor:not-allowed}.bottom-actions .insert-button{flex:1}.feedback-card{display:grid;gap:10px;padding:11px 12px;border:1px solid var(--polo-border);border-radius:14px;background:#fff}.feedback-toggle{width:100%;border:0;background:transparent;color:var(--polo-ink-2);font-weight:600;font-size:12.5px;text-align:left;cursor:pointer;padding:0}.feedback-toggle:hover{color:var(--polo-ink)}.feedback-form{display:grid;gap:9px}.feedback-choice{display:grid;grid-template-columns:1fr 1fr;gap:6px}.feedback-choice button{min-height:36px;border:1px solid var(--polo-border);border-radius:10px;background:var(--polo-soft);color:var(--polo-muted);font-weight:600;font-size:13px;cursor:pointer;transition:background .13s ease,color .13s ease,border-color .13s ease}.feedback-choice button.active{background:var(--polo-ink);border-color:var(--polo-ink);color:#fff}.feedback-form textarea{width:100%;min-height:80px;resize:vertical;border:1px solid var(--polo-border);border-radius:12px;padding:10px;font-size:12.5px;line-height:1.45;outline:none;color:var(--polo-ink);transition:border-color .13s ease,box-shadow .13s ease}.feedback-form textarea:focus{border-color:var(--polo-red);box-shadow:0 0 0 3px #e3061317}.diff-panel{padding:13px;border:1px solid var(--polo-border);border-radius:16px;background:#fff;display:grid;gap:10px}.diff-head{display:flex;justify-content:space-between;align-items:center}.diff-head strong{font-weight:600;font-size:13.5px}.diff-grid{display:grid;gap:10px;grid-template-columns:1fr}@media (min-width: 420px){.diff-grid{grid-template-columns:1fr 1fr}}.diff-grid small{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--polo-muted);margin-bottom:4px;font-weight:600}.diff-pane{margin:0;padding:10px;border-radius:12px;border:1px solid var(--polo-border);font-family:Space Grotesk,Arial,sans-serif;font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-word;max-height:200px;overflow-y:auto}.diff-before{background:var(--polo-soft);color:#6b7280}.diff-after{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}.diff-actions{display:flex;gap:8px}.diff-actions .insert-button{flex:1}.chip-remove{background:transparent;color:var(--polo-muted);border:0;font-size:20px;line-height:1;cursor:pointer;padding:2px 6px;border-radius:8px;transition:color .13s ease,background .13s ease}.chip-remove:hover{color:var(--polo-ink);background:#0000000f}.status-pill{display:inline-flex;margin:0;font-size:12px;color:var(--polo-ink-2);background:var(--polo-soft-2);border:1px solid var(--polo-border);border-radius:999px;padding:5px 10px;font-weight:500}.empty-state.compact{border:1px dashed var(--polo-border);border-radius:12px;padding:14px;text-align:center;color:var(--polo-muted);font-size:12.5px}.clean-preview{padding:10px 12px;border:1px solid var(--polo-border);border-radius:14px;background:#fff}.clean-preview summary{cursor:pointer;font-size:12.5px;font-weight:600;color:var(--polo-ink)}.clean-preview p{margin:8px 0 0;white-space:pre-wrap;font-size:12px;line-height:1.45}.clean-preview pre{white-space:pre-wrap;font-family:inherit;font-size:11.5px;line-height:1.45;background:var(--polo-soft);border:1px solid var(--polo-border);border-radius:10px;padding:10px;max-height:240px;overflow:auto;margin:6px 0 0}.clean-preview h4{margin:12px 0 4px;font-size:12px;font-weight:600;color:var(--polo-ink-2)}.context-reliability{margin:8px 0;padding:7px 10px;border-radius:10px;font-size:12px;background:var(--polo-soft);border:1px solid var(--polo-border)}.reliability-low{background:#fff7ed;border-color:#fed7aa}.reliability-medium{background:#fefce8;border-color:#fde68a}.reliability-high{background:#f0fdf4;border-color:#bbf7d0}.warning-text{color:#9a3412;font-size:12px}.thread-list{padding-left:16px;margin:6px 0}.thread-list li{margin-bottom:8px}.thread-list p{margin:3px 0 0;font-size:12px;color:#475569}.raw-preview{margin-top:10px}.role-details,.strategy-details{margin:8px 0 0;padding:10px 12px;border:1px solid var(--polo-border);border-radius:13px;background:var(--polo-soft);font-size:12.5px;line-height:1.45}.role-details div,.strategy-details div{margin-top:4px;color:#4b5563;font-size:12px}.strategy-details h4{margin:0 0 5px;font-size:12.5px}.strategy-details p{margin:5px 0;font-size:12px}.style-status{padding:12px;border:1px solid var(--polo-border);border-radius:14px;background:var(--polo-soft);font-size:12px}.style-status.active{border-color:#bbf7d0;background:#f0fdf4}.debug-note{padding:10px 12px;border:1px solid #e5e7eb;border-radius:14px;background:var(--polo-soft);color:#64748b;font-size:12px;line-height:1.4}@keyframes spin{to{transform:rotate(360deg)}}@keyframes slide-x{0%{transform:translate(-110%)}to{transform:translate(280%)}}
