:root{--background: #ffffff;--foreground: #0d0d0d;--muted: #f4f4f4;--muted-foreground: #666666;--border: #e5e5e5;--primary: #0d0d0d;--primary-foreground: #ffffff;--secondary: #f4f4f4;--accent: #f9f9f9;--destructive: #ef4444;--user-message-bg: #f5f5f5;--user-message-border: #e5e5ea;--user-message-text: #000000;--input-background: #f4f4f4;--bg-primary: var(--background);--bg-secondary: var(--background);--bg-tertiary: var(--muted);--text-primary: var(--foreground);--text-secondary: var(--muted-foreground);--text-tertiary: #999999;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--radius-xl: 14px;--radius-2xl: 16px;--radius-pill: 999px;--accent-blue: #3b82f6;--success: #16a34a}@keyframes streaming-pulse-kf{0%,to{opacity:1}50%{opacity:.55}}.streaming-pulse{animation:streaming-pulse-kf 1.4s ease-in-out infinite}.chat-main-shell{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.chat-panel-body.chat-main-body{padding:6px 0;gap:0}.chat-panel-body.chat-main-body .msg{max-width:100%}.chat-main-body [data-message-role=user]>div,.chat-main-body [data-message-role=assistant]>div{max-width:100%}.popup-chat .popup-chat-log{padding:4px 0 12px;gap:0}*{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100vh;background:var(--background);color:var(--foreground);font-family:Figtree,-apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;font-size:16px;line-height:1.55}button{font-family:inherit}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 14px;border-radius:var(--radius-md);font-family:inherit;font-size:13px;font-weight:600;line-height:1;border:1px solid transparent;background:transparent;color:var(--foreground);cursor:pointer;transition:background .15s,border-color .15s,color .15s,opacity .15s;white-space:nowrap}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-sm{height:28px;padding:0 10px;font-size:12px}.btn-lg{height:40px;padding:0 18px;font-size:14px;border-radius:var(--radius-lg)}.btn-primary{background:var(--foreground);color:var(--primary-foreground);border-color:var(--foreground)}.btn-primary:hover:not(:disabled){opacity:.9}.btn-secondary{background:var(--background);color:var(--foreground);border-color:var(--border)}.btn-secondary:hover:not(:disabled){background:var(--accent)}.btn-ghost{background:transparent;color:var(--muted-foreground);border-color:transparent}.btn-ghost:hover:not(:disabled){background:var(--accent);color:var(--foreground)}.btn-destructive{background:var(--destructive);color:#fff;border-color:var(--destructive)}.btn-destructive:hover:not(:disabled){filter:brightness(1.06)}.btn-icon{padding:0;width:32px;height:32px}.btn-icon.btn-sm{width:28px;height:28px}.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--secondary);color:var(--muted-foreground);font-size:11.5px;font-weight:500;line-height:1.2}.pill-solid{background:var(--foreground);border-color:var(--foreground);color:var(--primary-foreground)}::-webkit-scrollbar{width:10px}::-webkit-scrollbar-thumb{background:#d4d4d4;border-radius:5px;border:2px solid var(--background)}::-webkit-scrollbar-track{background:transparent}.page{height:100dvh;min-height:100dvh;display:flex;justify-content:center;overflow:hidden}.column{max-width:640px;width:100%;height:100%;padding:32px 24px 24px;display:flex;flex-direction:column;gap:20px;overflow-y:auto;overscroll-behavior:contain;animation:fadein .35s ease-out}.page-header{display:flex;flex-direction:column;gap:10px;padding-bottom:4px;background:var(--background)}@keyframes fadein{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.badge{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:var(--radius-pill);background:var(--secondary);align-self:flex-start;border:1px solid var(--border)}.badge svg{width:11px;height:11px;stroke:var(--muted-foreground)}.badge-text{font-size:11px;font-weight:600;letter-spacing:.05em;color:var(--muted-foreground);text-transform:uppercase}.app-name{font-size:clamp(44px,7vw,68px);font-weight:700;letter-spacing:-.035em;color:var(--foreground);line-height:1;margin:0;overflow-wrap:anywhere}.blocked-reason{display:inline-flex;align-items:center;gap:8px;color:var(--muted-foreground);font-size:14px;font-weight:500}.blocked-reason svg{width:12px;height:12px;flex-shrink:0;stroke:var(--destructive)}.rules-card{display:flex;align-items:flex-start;gap:14px;width:100%;padding:18px 20px;border-radius:var(--radius-2xl);background:var(--secondary);border:1px solid var(--border)}.brk-card{width:100%;padding:14px 18px;border-radius:var(--radius-xl);background:var(--background);border:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.brk-line{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}.brk-line-ok{color:#16a34a}.brk-line-past{color:#b45309}.brk-summary{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted-foreground);line-height:1.4}.brk-offer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.brk-offer-line{display:flex;align-items:center;gap:6px;font-size:12.5px;line-height:1.35;min-width:0}.brk-offer-progress{color:var(--muted-foreground)}.brk-offer-earned{color:var(--foreground);font-weight:600}.brk-take{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font:inherit;font-size:12.5px;font-weight:600;color:#fff;background:#16a34a;border:0;border-radius:999px;cursor:pointer;transition:background .12s}.brk-take:hover:not(:disabled){background:#15803d}.brk-take:disabled{opacity:.5;cursor:not-allowed}.brk-error{padding:6px 10px;border-radius:6px;background:#fef2f2;color:#b91c1c;font-size:11.5px}.brk-challenge{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:12px;background:#fafaf9;border:1px solid var(--border)}.brk-challenge-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.brk-challenge-label{font-size:11.5px;font-weight:600;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em}.brk-challenge-refresh{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0;border:1px solid var(--border);background:#fff;border-radius:6px;color:var(--muted-foreground);cursor:pointer;transition:background .12s,color .12s}.brk-challenge-refresh:hover{background:#f5f5f4;color:var(--foreground)}.brk-challenge-words{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:15px;font-weight:600;line-height:1.5;color:var(--foreground);padding:10px 12px;border-radius:8px;background:#fff;border:1px solid var(--border);-webkit-user-select:none;user-select:none;letter-spacing:.01em;word-spacing:.15em}.brk-challenge-input{width:100%;padding:8px 10px;border:1px solid var(--border);border-radius:8px;font:inherit;font-size:13px;line-height:1.4;resize:vertical;background:#fff;color:var(--foreground);outline:none}.brk-challenge-input:focus{border-color:#16a34a;box-shadow:0 0 0 2px #16a34a26}.brk-wait{display:flex;flex-direction:column;align-items:center;gap:6px;padding:18px 14px;border-radius:14px;background:#eff6ff;border:1px solid #bfdbfe;text-align:center}.brk-wait-label{font-size:11px;font-weight:600;color:#1d4ed8;text-transform:uppercase;letter-spacing:.06em}.brk-wait-clock{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:44px;font-weight:700;line-height:1;color:#1e3a8a;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.brk-wait-warn{margin-top:4px;padding:6px 10px;border-radius:8px;background:#fef3c7;color:#92400e;font-size:11.5px;line-height:1.4;max-width:320px}.rules-content{flex:1;min-width:0}.rules-title{font-size:11px;font-weight:700;color:var(--muted-foreground);margin-bottom:8px;letter-spacing:.08em;text-transform:uppercase}.rules-body{font-size:15px;color:var(--foreground);line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}.rules-body-empty{color:var(--muted-foreground);font-style:italic;font-size:14px}.rules-reason{margin-top:14px;padding-top:14px;border-top:1px solid var(--border);font-size:13px;color:var(--muted-foreground);line-height:1.5;display:flex;gap:6px;flex-wrap:wrap}.rules-reason-label{color:var(--foreground);font-weight:600}.block-list{width:100%;display:flex;flex-direction:column;gap:10px}.block-list-header{display:flex;flex-direction:column;gap:3px}.block-list-title{font-size:20px;font-weight:700;color:var(--foreground);letter-spacing:-.01em}.block-list-sub{font-size:13px;color:var(--muted-foreground)}.block-list-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.block-list-error{font-size:12.5px;color:#b91c1c;padding:8px 10px;border-radius:8px;background:#fef2f2;border:1px solid #fecaca}.block-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px 4px 12px;border-radius:8px;border:1.5px solid #3B82F6;background:#3b82f614;color:#3b82f6;font-size:13px;font-weight:500;line-height:1.35}.block-chip-word{color:#3b82f6}.block-chip-countdown{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:600;padding:2px 6px;border-radius:999px;background:#3b82f629}.block-chip-countdown svg{width:10px;height:10px}.block-chip-x{background:transparent;border:0;padding:0;color:#3b82f6;opacity:.7;cursor:pointer;display:grid;place-items:center;border-radius:4px;transition:opacity .15s,background .15s}.block-chip-x:hover{opacity:1;background:#3b82f61a}.block-chip-x:disabled{opacity:.35;cursor:not-allowed}.block-chip-x svg{width:13px;height:13px}.block-add-btn{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;border-radius:8px;font-family:inherit;font-size:13px;font-weight:500;color:#3b82f6cc;background:transparent;border:1.5px dashed rgba(59,130,246,.5);cursor:pointer;transition:background .15s,border-color .15s;line-height:1.35}.block-add-btn:hover{background:#3b82f60f;border-color:#3b82f6bf}.block-add-btn svg{width:13px;height:13px}.block-add-form{display:inline-flex;align-items:center;gap:4px;padding:2px 4px 2px 10px;border-radius:8px;border:1.5px solid #3B82F6;background:#3b82f60a}.block-add-input{border:0;outline:0;background:transparent;font-family:inherit;font-size:13px;color:var(--foreground);min-width:140px;padding:4px 0}.block-add-input::placeholder{color:var(--muted-foreground)}.block-add-submit{background:#3b82f6;border:0;color:#fff;border-radius:6px;padding:4px 8px;cursor:pointer;display:grid;place-items:center;transition:opacity .15s}.block-add-submit:hover{opacity:.9}.block-add-submit:disabled{opacity:.4;cursor:not-allowed}.block-add-submit svg{width:13px;height:13px}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0a0f59;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;animation:dialog-fade .15s ease-out}@keyframes dialog-fade{0%{opacity:0}to{opacity:1}}.dialog-card{width:460px;max-width:100%;max-height:80vh;background:var(--background);border-radius:20px;box-shadow:0 24px 60px #14141433,0 6px 16px #1414141a;overflow:hidden;display:flex;flex-direction:column;animation:dialog-rise .2s cubic-bezier(.16,1,.3,1)}@keyframes dialog-rise{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.dialog-header{padding:20px 24px 16px;border-bottom:1px solid var(--border)}.dialog-header h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;color:var(--foreground)}.dialog-header p{margin:4px 0 0;font-size:13.5px;color:var(--muted-foreground)}.dialog-search-wrap{padding:12px 16px;border-bottom:1px solid var(--border)}.dialog-search{display:flex;align-items:center;gap:10px;padding:8px 14px;border-radius:10px;background:var(--input-background)}.dialog-search svg{color:var(--muted-foreground);flex-shrink:0}.dialog-search-input{flex:1;background:transparent;border:0;outline:0;color:var(--foreground);font:inherit;font-size:14px}.dialog-search-input::placeholder{color:var(--muted-foreground)}.dialog-list{padding:6px;overflow-y:auto;flex:1;min-height:0}.dialog-section-label{padding:10px 12px 6px;font-size:10.5px;font-weight:700;color:var(--muted-foreground);letter-spacing:.06em;text-transform:uppercase}.dialog-row{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;border:0;background:transparent;font-family:inherit;text-align:left;cursor:pointer;transition:background .12s;color:var(--foreground)}.dialog-row:hover{background:var(--secondary)}.dialog-row-icon{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;color:#fff;font-size:14px;font-weight:700;flex-shrink:0;letter-spacing:.02em}.dialog-row-icon-custom{background:#3b82f624;color:#3b82f6;border:1px dashed rgba(59,130,246,.4)}.dialog-row-content{flex:1;min-width:0}.dialog-row-title{font-size:14.5px;font-weight:600;color:var(--foreground);line-height:1.2}.dialog-row-sub{font-size:12.5px;color:var(--muted-foreground);margin-top:2px}.dialog-row-custom{border:1.5px dashed rgba(59,130,246,.35);background:#3b82f608;margin-top:6px}.dialog-row-custom:hover{background:#3b82f614}.dialog-empty{padding:30px 20px;text-align:center;color:var(--muted-foreground);font-size:13px}.dialog-mode-tabs{display:flex;gap:4px;padding:12px 20px 0;background:var(--background)}.dialog-mode-tab{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border-radius:10px;background:var(--secondary);border:0;font-family:inherit;font-size:13px;font-weight:500;color:var(--muted-foreground);cursor:pointer;transition:background .15s,color .15s}.dialog-mode-tab.active{background:var(--background);color:var(--foreground);font-weight:600;box-shadow:0 1px 3px #00000014}.dialog-mode-tab:disabled{opacity:.4;cursor:not-allowed}.dialog-body{padding:20px 24px;display:flex;flex-direction:column;gap:12px}.dialog-row-line{display:flex;justify-content:space-between;align-items:center}.dialog-label{font-size:14px;color:var(--muted-foreground)}.dialog-value{font-size:16px;font-weight:700;color:var(--destructive)}.dialog-slider{width:100%;height:4px;border-radius:2px;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:0;background:linear-gradient(to right,var(--destructive) 0%,var(--destructive) var(--slider-pct, 50%),rgba(239,68,68,.18) var(--slider-pct, 50%),rgba(239,68,68,.18) 100%);cursor:pointer}.dialog-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:var(--background);border:2px solid var(--foreground);cursor:pointer;box-shadow:0 1px 3px #00000026}.dialog-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--background);border:2px solid var(--foreground);cursor:pointer}.dialog-slider-labels{display:flex;justify-content:space-between;font-size:11px;color:var(--muted-foreground);margin-top:-4px}.dialog-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.dialog-preset{padding:6px 12px;border-radius:8px;border:0;font-family:inherit;font-size:12.5px;font-weight:500;background:var(--secondary);color:var(--foreground);cursor:pointer;transition:background .15s,color .15s}.dialog-preset:hover{background:#ececec}.dialog-preset.active{background:var(--destructive);color:#fff;font-weight:600}.dialog-footer{padding:16px 24px 22px;border-top:1px solid var(--border)}.dialog-block-btn{width:100%;padding:12px 0;border:0;border-radius:12px;background:var(--destructive);color:#fff;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;transition:filter .15s}.dialog-block-btn:hover{filter:brightness(1.06)}.related-blocks{width:100%;display:flex;flex-direction:column;gap:8px}.related-blocks-label{font-size:11px;font-weight:700;color:var(--muted-foreground);letter-spacing:.08em;text-transform:uppercase}.related-blocks-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.related-block-chip{display:inline-block;padding:4px 10px;border-radius:999px;background:var(--secondary);border:1px solid var(--border);color:var(--muted-foreground);font-size:12.5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;line-height:1.5}.related-blocks-empty{color:var(--muted-foreground);font-style:italic;font-size:13px}.chat-panel{width:100%;border:1px solid var(--border);border-radius:var(--radius-2xl);background:var(--background);overflow:hidden;display:flex;flex-direction:column}.chat-panel-header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--background);flex-shrink:0}.chat-panel-avatar{width:30px;height:30px;border-radius:50%;background:var(--foreground);color:var(--primary-foreground);display:grid;place-items:center;font-size:12.5px;font-weight:700;letter-spacing:-.02em}.chat-panel-name{font-size:14px;font-weight:600;line-height:1.2;color:var(--foreground);letter-spacing:-.005em}.chat-panel-sub{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:var(--muted-foreground)}.chat-panel-dot{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 6px #22c55e80}.chat-panel-meta{display:flex;flex-direction:column;gap:2px;min-width:0}.chat-mode-toggle{display:flex;gap:4px;padding:8px 12px 0;background:var(--background);flex-shrink:0}.chat-mode-seg{flex:1;height:30px;font:inherit;font-family:inherit;font-size:12.5px;font-weight:500;color:var(--muted-foreground);background:transparent;border:1px solid var(--border);border-radius:var(--radius-pill);cursor:pointer;padding:0 14px;transition:background .15s,color .15s,border-color .15s}.chat-mode-seg:hover{background:var(--secondary);color:var(--foreground)}.chat-mode-seg.active{background:var(--foreground);color:var(--background);border-color:var(--foreground);font-weight:600}.chat-panel-body{padding:18px 16px;display:flex;flex-direction:column;gap:10px;min-height:120px;max-height:min(60vh,420px);overflow-y:auto;overscroll-behavior:contain}.chat-panel-body .msg{max-width:88%}.chat-panel-body .chips{padding:2px 0 4px}.chat-panel-body .status-row{margin:4px 0}.msg-action-pill{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:4px 10px;border-radius:999px;background:var(--secondary);color:var(--muted-foreground);font-size:11px;font-weight:500;letter-spacing:.01em;border:1px solid var(--border);text-transform:lowercase}.msg-action-pill[data-performed=false]{opacity:.7;text-decoration:line-through}.msg .body.loading:after{content:"";display:inline-block;width:7px;height:15px;margin-left:2px;background:var(--muted-foreground);vertical-align:-2px;animation:caret 1s steps(2,start) infinite;border-radius:1px}@keyframes caret{to{opacity:0}}.chips{display:flex;flex-wrap:wrap;gap:8px;width:100%}.chip{font-family:inherit;font-size:13px;font-weight:500;padding:8px 14px;border-radius:var(--radius-pill);background:var(--background);border:1px solid var(--border);color:var(--foreground);cursor:pointer;transition:background .15s,border-color .15s}.chip:hover:not(:disabled){background:var(--secondary);border-color:#d4d4d4}.chip:disabled{opacity:.5;cursor:not-allowed}.chat-log{width:100%;display:flex;flex-direction:column;gap:8px}.msg{display:flex;max-width:88%;animation:pop .25s ease-out}@keyframes pop{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.msg.user{align-self:flex-end}.msg.assistant{align-self:flex-start}.msg .body{padding:10px 14px;border-radius:var(--radius-lg);font-size:14px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--user-message-bg);border:1px solid var(--user-message-border);color:var(--foreground)}.msg.user .body{border-bottom-right-radius:6px}.msg.assistant .body{border-bottom-left-radius:6px}.msg.thinking .body{color:var(--muted-foreground);font-style:italic}.msg.assistant.assistant-group{flex-direction:column;align-items:flex-start;gap:8px}.msg-actions{display:flex;flex-wrap:wrap;gap:6px;padding-left:2px}.chat-panel-input{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--border);background:var(--background);align-items:center;flex-shrink:0}.chat-panel-input .chat-input{background:var(--input-background);border-radius:26px;padding:10px 18px;border:1px solid transparent;transition:border-color .15s}.chat-panel-input:focus-within .chat-input{border-color:var(--border)}.chat-input{flex:1;background:transparent;border:0;outline:0;color:var(--foreground);font:inherit;font-size:14px;padding:12px 0}.chat-input::placeholder{color:var(--muted-foreground)}.chat-send{width:34px;height:34px;border:0;border-radius:50%;background:var(--primary);color:var(--primary-foreground);cursor:pointer;display:grid;place-items:center;transition:background .15s,opacity .15s;flex-shrink:0}.chat-send:hover:not(:disabled){opacity:.9}.chat-send:disabled{background:var(--muted);color:var(--muted-foreground);cursor:not-allowed}.chat-send svg{width:15px;height:15px}.status-row{width:100%;padding:12px 14px;border-radius:var(--radius-lg);background:#ef44440f;border:1px solid rgba(239,68,68,.2);color:#b91c1c;font-size:13px;line-height:1.5}.gate{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:16px}.gate h1{font-size:32px;font-weight:700;letter-spacing:-.03em;margin:0}.gate p{color:var(--muted-foreground);font-size:14.5px;margin:0;text-align:center;max-width:400px}.gate button{padding:12px 22px;border:0;border-radius:var(--radius-lg);background:var(--primary);color:var(--primary-foreground);font-family:inherit;font-size:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:opacity .15s}.gate button:hover{opacity:.9}.signin-inline{width:100%;padding:18px 20px;border-radius:var(--radius-2xl);background:var(--secondary);border:1px solid var(--border);display:flex;flex-direction:column;gap:12px;align-self:flex-start}.signin-copy{font-size:14.5px;color:var(--foreground);line-height:1.55}.signin-btn{align-self:flex-start;padding:10px 18px;border:0;border-radius:var(--radius-lg);background:var(--primary);color:var(--primary-foreground);font-family:inherit;font-size:13.5px;font-weight:600;cursor:pointer;transition:opacity .15s}.signin-btn:hover{opacity:.9}.signin-btn:disabled{opacity:.5;cursor:not-allowed}@media(max-width:640px){.column{padding:20px 16px 16px;gap:16px}.page-header{padding-top:16px;margin-top:-20px;padding-bottom:10px}}.popup-shell{width:100%;height:100dvh;display:flex;flex-direction:column;background:var(--background);overflow:hidden}@media(max-width:480px){html,body,#root{min-height:100vh}}.popup-header{display:flex;align-items:center;gap:10px;padding:14px 16px 10px;background:var(--background);flex-shrink:0}.popup-brand{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:600;flex:1;letter-spacing:-.01em;color:var(--foreground)}.popup-logo{width:24px;height:24px;border-radius:7px;object-fit:cover;display:block}.popup-status{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;background:var(--secondary);border:1px solid var(--border);font-size:11px;color:var(--muted-foreground)}.popup-status-dot{width:6px;height:6px;border-radius:50%;background:var(--muted-foreground);flex-shrink:0}.popup-status.ok .popup-status-dot{background:#22c55e;box-shadow:0 0 6px #22c55e80}.popup-status.warn .popup-status-dot{background:#e0a23b}.popup-tabs{display:flex;gap:4px;padding:4px 12px 0;border-bottom:1px solid var(--border);background:var(--background);flex-shrink:0}.popup-tab{position:relative;display:inline-flex;align-items:center;gap:4px;background:transparent;border:0;padding:10px 6px 11px;font-family:inherit;font-size:13px;font-weight:500;color:var(--muted-foreground);cursor:pointer;margin-bottom:-1px;transition:color .15s}.popup-tab:after{content:"";position:absolute;left:4px;right:4px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:transparent;transition:background .15s}.popup-tab:hover{color:var(--foreground)}.popup-tab.active{color:var(--foreground);font-weight:600}.popup-tab.active:after{background:var(--foreground)}.popup-tab-beta{margin-left:2px;padding:1px 5px;font-size:9px;font-weight:700;letter-spacing:.04em;border-radius:4px;background:var(--muted);color:var(--muted-foreground);vertical-align:1px}.popup-tab.active .popup-tab-beta{background:#3b82f61a;color:var(--accent-blue)}.popup-nudging{padding:14px 16px;overflow-y:auto;flex:1;min-height:0}.nv-loading{padding:20px 0;text-align:center;color:var(--muted-foreground);font-size:13px}.nv-pending{padding:14px;margin-bottom:16px;border:1px solid #f59e0b;border-radius:12px;background:#fffbeb}.nv-pending-title{font-size:13px;font-weight:600;color:#92400e;line-height:1.45;margin-bottom:4px}.nv-pending-host{display:inline-block;padding:2px 8px;border-radius:999px;background:#fef3c7;color:#92400e;font-size:11px;font-weight:500;margin-bottom:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.nv-pending-durations{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.nv-pending-btn{padding:8px 12px;font:inherit;font-size:12.5px;font-weight:600;color:#fff;background:#f59e0b;border:0;border-radius:8px;cursor:pointer;transition:background .12s}.nv-pending-btn:hover:not(:disabled){background:#d97706}.nv-pending-btn:disabled{opacity:.5;cursor:not-allowed}.nv-pending-cancel{display:block;margin:10px auto 0;padding:4px 10px;font:inherit;font-size:11.5px;color:#92400e;background:transparent;border:0;cursor:pointer}.nv-pending-cancel:hover:not(:disabled){text-decoration:underline}.nv-hero{margin-bottom:16px}.nv-title-row{display:flex;align-items:center;gap:8px;margin-bottom:4px}.nv-title-row h2{margin:0;font-size:17px;font-weight:600;color:var(--foreground)}.nv-beta{padding:1px 6px;font-size:9.5px;font-weight:700;letter-spacing:.04em;border-radius:4px;background:#dbeafe;color:#1d4ed8}.nv-sub{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted-foreground)}.nv-master{display:flex;align-items:center;gap:12px;padding:14px 16px;margin:16px 0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--secondary);cursor:pointer;transition:background .15s}.nv-master:hover{background:var(--accent)}.nv-master-copy{flex:1}.nv-master-title{font-size:13.5px;font-weight:600;color:var(--foreground)}.nv-master-sub{font-size:11.5px;color:var(--muted-foreground);margin-top:2px}.nv-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:36px;height:20px;border-radius:var(--radius-pill);background:#d1d5db;position:relative;cursor:pointer;transition:background .15s;flex-shrink:0}.nv-toggle:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s;box-shadow:0 1px 2px #00000026}.nv-toggle:checked{background:var(--foreground)}.nv-toggle:checked:after{transform:translate(16px)}.nv-field{margin-bottom:14px}.nv-label{display:block;font-size:11px;font-weight:600;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.02em;margin-bottom:6px}.nv-textarea{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:13px;line-height:1.55;color:var(--foreground);font-family:inherit;outline:none;resize:vertical;min-height:120px;box-sizing:border-box;background:var(--background);transition:border-color .15s}.nv-textarea:focus{border-color:var(--foreground)}.nv-textarea::placeholder{color:var(--muted-foreground)}.nv-textarea:disabled{background:var(--secondary);color:var(--muted-foreground);cursor:not-allowed}.nv-radio-row{display:flex;gap:6px;flex-wrap:wrap}.nv-pill{padding:7px 14px;font:inherit;font-size:12.5px;font-weight:500;color:var(--muted-foreground);background:transparent;border:1px solid var(--border);border-radius:var(--radius-pill);cursor:pointer;transition:background .12s,color .12s,border-color .12s}.nv-pill:hover:not(:disabled){background:var(--secondary);color:var(--foreground)}.nv-pill.active{background:var(--foreground);color:var(--background);border-color:var(--foreground);font-weight:600}.nv-pill:disabled{opacity:.5;cursor:not-allowed}.nv-pill-cadence{flex:1;padding:10px 12px;border-radius:var(--radius-lg);text-align:center}.nv-pill-label{font-size:12px;font-weight:600}.nv-pill-hint{font-size:10.5px;font-weight:400;color:inherit;opacity:.7;margin-top:1px}.nv-advanced-toggle{display:inline-flex;align-items:center;gap:4px;padding:4px 0;background:transparent;border:0;font:inherit;font-size:12px;font-weight:500;color:var(--muted-foreground);cursor:pointer}.nv-advanced-toggle:hover{color:var(--foreground)}.nv-advanced{padding-top:8px;padding-bottom:4px}.nv-hint{margin:8px 0 0;font-size:11.5px;line-height:1.5;color:var(--muted-foreground)}.nv-error{margin-top:10px;padding:8px 10px;border-radius:8px;background:#fef2f2;color:#b91c1c;font-size:12px}.nv-server-row{display:flex;gap:6px}.nv-server-row input{flex:1;padding:6px 10px;border:1px solid var(--border);border-radius:8px;font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;color:#0d0d0d}.nv-server-btn{padding:6px 12px;font:inherit;font-size:12px;font-weight:600;color:var(--foreground);background:var(--secondary);border:1px solid var(--border);border-radius:8px;cursor:pointer}.nv-server-btn:hover{background:var(--muted)}.nv-test-row{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:14px;border-top:1px dashed var(--border);flex-wrap:wrap}.nv-test-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font:inherit;font-size:12px;font-weight:500;color:var(--foreground);background:var(--secondary);border:1px solid var(--border);border-radius:999px;cursor:pointer;transition:background .12s}.nv-test-btn:hover:not(:disabled){background:var(--muted)}.nv-test-btn:disabled{opacity:.5;cursor:not-allowed}.nv-test-hint{font-size:11px;color:var(--muted-foreground);line-height:1.4}.nv-history-empty{padding:12px;border:1px dashed var(--border);border-radius:8px;font-size:11.5px;color:var(--muted-foreground);text-align:center}.nv-history{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.nv-history-item{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--background)}.nv-history-meta{display:flex;gap:8px;font-size:10.5px;color:var(--muted-foreground);margin-bottom:3px}.nv-history-host{padding:0 6px;border-radius:999px;background:var(--secondary);color:var(--muted-foreground);font-size:10px;font-weight:500}.nv-history-msg{font-size:12.5px;line-height:1.45;color:var(--foreground)}.nv-history-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.nv-history-chip{padding:3px 8px;border-radius:999px;background:var(--secondary);border:1px solid var(--border);color:var(--muted-foreground);font-size:10.5px;font-weight:500}.nv-debug{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--secondary);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;line-height:1.5}.nv-debug-row{display:flex;justify-content:space-between;gap:12px;padding:2px 0}.nv-debug-k{color:var(--muted-foreground);white-space:nowrap}.nv-debug-v{color:var(--foreground);text-align:right;overflow-wrap:anywhere;max-width:62%}.nv-debug-v.ok{color:#16a34a}.nv-debug-v.bad{color:#dc2626}.nv-debug-v.warn{color:#d97706}.popup-body{flex:1;overflow:hidden;display:flex;flex-direction:column;min-height:0}.popup-blocks{padding:14px 16px;overflow-y:auto;flex:1;min-height:0}.popup-blocks .block-list-title{font-size:15px}.popup-blocks .block-list-sub{font-size:12px}.popup-signin{margin-top:20px;padding:18px;border-radius:var(--radius-lg);background:var(--secondary);border:1px solid var(--border);font-size:13px;text-align:center}.popup-signin p{margin:0 0 12px;color:var(--muted-foreground);line-height:1.5}.popup-signin-headline{font-size:14px!important;font-weight:500;color:var(--foreground)!important;margin:0 0 14px!important}.popup-signin-form{display:flex;flex-direction:column;gap:8px}.popup-signin-input{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);color:var(--foreground);font-family:inherit;font-size:13px;box-sizing:border-box}.popup-signin-input:focus{outline:none;border-color:var(--foreground)}.popup-signin-btn{padding:9px 14px;border:1px solid transparent;border-radius:var(--radius-md);background:var(--foreground);color:var(--primary-foreground);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .15s,background .15s;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box}.popup-signin-btn:hover:not(:disabled){opacity:.9}.popup-signin-btn:disabled{opacity:.5;cursor:not-allowed}.popup-signin-btn-primary{margin-top:2px}.popup-signin-btn-google{background:var(--background);color:var(--foreground);border-color:var(--border);margin-top:4px}.popup-signin-btn-google:hover:not(:disabled){background:var(--accent);opacity:1}.popup-signin-btn-apple{background:var(--foreground);color:var(--primary-foreground);margin-top:8px}.popup-signin-toggle{background:none;border:0;color:var(--muted-foreground);font-family:inherit;font-size:12px;margin-top:10px;cursor:pointer;text-decoration:underline;padding:4px}.popup-signin-toggle:hover{color:var(--foreground)}.popup-signin-divider{position:relative;margin:16px 0 8px;text-align:center}.popup-signin-divider:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--border)}.popup-signin-divider span{position:relative;background:var(--secondary);padding:0 10px;color:var(--muted-foreground);font-size:11px}.popup-signin-success{padding:10px 12px;border-radius:var(--radius-md);background:#16a34a14;border:1px solid rgba(22,163,74,.25);color:#15803d;font-size:12px;margin-bottom:12px;text-align:left}.popup-error button{background:none;border:0;color:inherit;text-decoration:underline;cursor:pointer;margin-left:8px;font-size:inherit;padding:0}.popup-error{padding:10px 12px;border-radius:var(--radius-md);background:#ef44440f;border:1px solid rgba(239,68,68,.2);color:#b91c1c;font-size:12px;margin-bottom:12px}.popup-chat{flex:1;display:flex;flex-direction:column;min-height:0}.popup-chat-log{flex:1;overflow-y:auto;overflow-x:hidden;padding:14px 12px;display:flex;flex-direction:column;gap:8px;min-height:0}.popup-chat-log>*{min-width:0;max-width:100%}.popup-chat-empty{color:var(--muted-foreground);font-style:italic;font-size:13px;text-align:center;padding:60px 20px}.popup-chat-input{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid var(--border);align-items:center;background:var(--background)}.popup-chat-input input{flex:1;background:var(--input-background);border:1px solid transparent;outline:0;color:var(--foreground);font-family:inherit;font-size:13px;padding:10px 16px;border-radius:26px;transition:border-color .15s}.popup-chat-input input::placeholder{color:var(--muted-foreground)}.popup-chat-input:focus-within input{border-color:var(--border)}.popup-chat-input button{width:32px;height:32px;border:0;border-radius:50%;background:var(--primary);color:var(--primary-foreground);cursor:pointer;display:grid;place-items:center;transition:background .15s,opacity .15s;flex-shrink:0}.popup-chat-input button:hover:not(:disabled){opacity:.9}.popup-chat-input button:disabled{background:var(--muted);color:var(--muted-foreground);cursor:not-allowed}.bv-shell{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--background)}.bv-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px 8px}.bv-title{font-size:15px;font-weight:700;color:var(--foreground);margin:0;letter-spacing:-.01em}.bv-add{width:30px;height:30px;border:none;border-radius:var(--radius-md);background:var(--foreground);color:var(--primary-foreground);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .15s}.bv-add:hover{opacity:.88}.bv-header-actions{display:flex;align-items:center;gap:6px}.bv-block-this{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);color:var(--foreground);font-family:inherit;font-size:12.5px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}.bv-block-this:hover:not(:disabled){background:var(--accent);border-color:var(--muted-foreground)}.bv-block-this:disabled{color:var(--muted-foreground);cursor:not-allowed;opacity:.55}.bv-search{display:flex;align-items:center;gap:8px;margin:4px 14px 10px;padding:8px 12px;border-radius:var(--radius-md);background:var(--input-background);color:var(--muted-foreground)}.bv-search input{flex:1;border:0;background:transparent;outline:none;font-size:13px;color:var(--foreground);font-family:inherit}.bv-search input::placeholder{color:var(--muted-foreground)}.bv-list{flex:1;overflow-y:auto;padding:4px 12px 14px;display:flex;flex-direction:column;gap:8px}.bv-loading{padding:32px 20px;text-align:center;color:var(--muted-foreground);font-size:13px}.bv-empty{padding:40px 24px;text-align:center;color:var(--muted-foreground);display:flex;flex-direction:column;align-items:center;gap:8px}.bv-empty-title{font-size:15px;font-weight:600;color:var(--foreground);letter-spacing:-.01em}.bv-empty-sub{font-size:13px;color:var(--muted-foreground);line-height:1.5;max-width:280px;margin-bottom:6px}.bv-empty-cta{display:inline-flex;align-items:center;gap:6px;padding:10px 16px;border:none;border-radius:var(--radius-md);background:var(--foreground);color:var(--primary-foreground);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .15s}.bv-empty-cta:hover{opacity:.88}.bv-empty-search{padding:22px 14px;text-align:center;color:var(--muted-foreground);font-size:12.5px}.br-row{display:flex;align-items:stretch;gap:6px;padding:12px 8px 12px 14px;border-radius:var(--radius-lg);background:var(--background);border:1px solid var(--border);transition:background .15s,border-color .15s}.br-row:hover{background:var(--accent);border-color:#d4d4d4}.br-row.off{background:var(--muted);border-color:var(--border)}.br-row.off .br-name-title,.br-row.off .br-name-meta,.br-row.off .br-chip{color:var(--muted-foreground)}.br-row.off .br-name-title{font-weight:500}.br-row.off .br-chip{opacity:.65}.br-row.off:hover{background:var(--accent)}.br-name{flex:1;min-width:0;background:none;border:none;text-align:left;padding:0;cursor:pointer;font-family:inherit}.br-name-title{font-size:14px;font-weight:600;color:var(--foreground);margin-bottom:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.005em}.br-name-meta{font-size:11.5px;color:var(--muted-foreground);margin-bottom:8px}.br-name-chips{display:flex;flex-wrap:wrap;gap:5px}.br-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:var(--radius-pill);background:var(--secondary);border:1px solid var(--border);color:var(--muted-foreground);font-size:10.5px;font-weight:500;line-height:1.3}.br-chip-lock{background:#c2410c0f;border-color:#c2410c2e;color:#c2410c}.br-chip-break{background:#0e74900f;border-color:#0e74902e;color:#0e7490}.br-chip-expiry{background:#0478570f;border-color:#04785733;color:#047857;font-weight:600;font-variant-numeric:tabular-nums}.br-chip-warn{background:#ef44440f;border-color:#ef444433;color:#b91c1c;font-weight:600;cursor:help}.br-chip-status{font-weight:600;cursor:help}.br-chip-status-ok{background:#16a34a14;border-color:#16a34a33;color:#15803d}.br-chip-status-warn{background:#d9770614;border-color:#d9770633;color:#92400e}.br-chip-status-bad{background:#ef44440f;border-color:#ef444433;color:#b91c1c}.br-chip-status-muted{background:var(--secondary);border-color:var(--border);color:var(--muted-foreground)}.be-runtime{margin:12px 16px 0;padding:10px 12px;border-radius:10px;background:var(--secondary);border:1px solid var(--border);font-size:12px;display:flex;flex-direction:column;gap:6px}.be-runtime-stuck{background:#fef3c7;border-color:#fde68a}.be-runtime-line{display:flex;align-items:center;gap:8px}.be-runtime-label{color:var(--muted-foreground);font-weight:600;text-transform:uppercase;font-size:10px;letter-spacing:.04em}.be-runtime-value{padding:2px 8px;border-radius:999px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;font-weight:600}.be-runtime-value-enforcing{background:#dcfce7;color:#15803d}.be-runtime-value-break,.be-runtime-value-waiting{background:#fef3c7;color:#92400e}.be-runtime-value-unknown{background:#f3f4f6;color:#6b7280}.be-runtime-hint{margin:0;font-size:11px;color:#92400e;line-height:1.4}.be-runtime-btn{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;padding:4px 10px;font:inherit;font-size:11px;font-weight:600;color:var(--foreground);background:var(--background);border:1px solid var(--border);border-radius:999px;cursor:pointer}.be-runtime-btn:hover:not(:disabled){background:var(--muted)}.be-runtime-btn:disabled{opacity:.5;cursor:not-allowed}.be-runtime-msg{font-size:11px;color:var(--muted-foreground);align-self:flex-start}.be-runtime-value-count{background:var(--background);color:var(--foreground);border:1px solid var(--border)}.be-runtime-value-bad{background:#fef2f2;color:#b91c1c;border-color:#fecaca}.be-runtime-filters{display:flex;flex-direction:column;gap:4px}.be-runtime-filters code{padding:6px 8px;border-radius:6px;background:var(--background);border:1px solid var(--border);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:var(--foreground);overflow-wrap:anywhere}.be-runtime-actions{display:flex;gap:6px;flex-wrap:wrap}.be-runtime-test{display:flex;flex-direction:column;gap:4px;margin-top:6px}.be-runtime-test-row{display:flex;gap:6px}.be-runtime-test-row input{flex:1;padding:5px 8px;border:1px solid var(--border);border-radius:6px;font-size:11.5px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.be-runtime-test-result{padding:6px 8px;border-radius:6px;background:var(--background);border:1px solid var(--border);font-size:11px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;overflow-wrap:anywhere}.br-chip-break-live{background:#eff6ff;color:#1d4ed8;font-variant-numeric:tabular-nums}.br-chip-break-live.br-chip-break-active{background:#dcfce7;color:#15803d}.br-chip-break-live.br-chip-break-waiting{background:#fef3c7;color:#92400e}.br-controls{display:flex;align-items:center;gap:4px;padding-right:4px}.br-toggle{position:relative;width:34px;height:20px;display:inline-block;cursor:pointer}.br-toggle input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.br-toggle-track{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--radius-pill);background:#d4d4d4;transition:background .15s}.br-toggle-track:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:left .15s}.br-toggle input:checked+.br-toggle-track{background:var(--foreground)}.br-toggle input:checked+.br-toggle-track:after{left:16px}.br-open{background:none;border:none;color:var(--muted-foreground);padding:6px;cursor:pointer;display:flex;align-items:center;border-radius:var(--radius-md);transition:background .15s,color .15s}.br-open:hover{color:var(--foreground);background:var(--accent)}.be-shell{display:flex;flex-direction:column;height:100%;min-height:0;background:var(--background)}.be-header{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--border)}.be-back{background:none;border:none;color:var(--muted-foreground);padding:6px;cursor:pointer;display:flex;align-items:center;border-radius:var(--radius-md);transition:background .15s,color .15s}.be-back:hover{color:var(--foreground);background:var(--accent)}.be-name{flex:1;border:none;background:transparent;font-size:14.5px;font-weight:600;color:var(--foreground);outline:none;padding:6px 8px;border-radius:var(--radius-md);font-family:inherit;letter-spacing:-.005em}.be-name:focus{background:var(--input-background)}.be-delete{background:none;border:none;color:var(--muted-foreground);padding:6px;cursor:pointer;display:flex;align-items:center;border-radius:var(--radius-md);transition:background .15s,color .15s}.be-delete:hover{color:var(--destructive);background:#ef44440f}.be-lock-banner{display:flex;align-items:center;gap:8px;padding:9px 14px;background:#c2410c0d;color:#c2410c;font-size:12px;font-weight:500;border-bottom:1px solid rgba(194,65,12,.18)}.be-lock-request{margin-left:auto;padding:4px 12px;font:inherit;font-family:inherit;font-size:11px;font-weight:600;color:#7c2d12;background:#c2410c1a;border:1px solid rgba(194,65,12,.25);border-radius:var(--radius-pill);cursor:pointer;transition:background .15s}.be-lock-request:hover{background:#c2410c2e}.be-expiry-banner{display:flex;align-items:center;gap:8px;margin:10px 14px 0;padding:10px 14px;border-radius:var(--radius-lg);background:#0478570d;border:1px solid rgba(4,120,87,.2);color:#047857;font-size:12.5px;font-weight:600;font-variant-numeric:tabular-nums}.be-expiry-sub{color:#059669;font-weight:500;margin-left:auto;font-size:11.5px}.be-config-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:12px 14px}.be-config{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--background);cursor:pointer;transition:background .15s,border-color .15s;text-align:left;font-family:inherit}.be-config:hover{background:var(--accent);border-color:#d4d4d4}.be-config:disabled{opacity:.5;cursor:not-allowed}.be-config-label{display:flex;align-items:center;gap:5px;font-size:10px;color:var(--muted-foreground);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.be-config-value{font-size:12.5px;color:var(--foreground);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.be-tabs{display:flex;padding:0 14px;border-bottom:1px solid var(--border);gap:16px}.be-tab{position:relative;background:none;border:none;padding:10px 0;font-size:13px;font-weight:500;color:var(--muted-foreground);cursor:pointer;margin-bottom:-1px;font-family:inherit;transition:color .15s}.be-tab:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:transparent;border-radius:2px 2px 0 0;transition:background .15s}.be-tab:hover{color:var(--foreground)}.be-tab.active{color:var(--foreground);font-weight:600}.be-tab.active:after{background:var(--foreground)}.be-body{flex:1;overflow-y:auto;padding:12px 14px 14px}.se-input-row{display:flex;gap:6px;margin-bottom:10px}.se-input{flex:1;padding:9px 12px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:13px;color:var(--foreground);outline:none;background:var(--background);font-family:inherit;transition:border-color .15s}.se-input::placeholder{color:var(--muted-foreground)}.se-input:focus{border-color:var(--foreground)}.se-add{width:34px;height:34px;border:none;border-radius:var(--radius-md);background:var(--foreground);color:var(--primary-foreground);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .15s}.se-add:hover{opacity:.88}.se-add:disabled{background:var(--muted);color:var(--muted-foreground);cursor:not-allowed}.se-empty{padding:24px 16px;color:var(--muted-foreground);font-size:12.5px;text-align:center;line-height:1.55;background:var(--secondary);border:1px dashed var(--border);border-radius:var(--radius-lg)}.se-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:5px}.se-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--radius-md);background:var(--secondary);border:1px solid var(--border)}.se-pattern{flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--foreground);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.se-type{font-size:9.5px;color:var(--muted-foreground);padding:2px 6px;border-radius:4px;background:var(--background);border:1px solid var(--border);text-transform:uppercase;letter-spacing:.04em;font-weight:600}.se-item-wildcard .se-type{color:#7c3aed;background:#7c3aed0f;border-color:#7c3aed33}.se-item-exact .se-type{color:#0e7490;background:#0e74900f;border-color:#0e749033}.se-item-domain .se-type{color:var(--success);background:#16a34a0f;border-color:#16a34a33}.se-remove{background:none;border:none;color:var(--muted-foreground);padding:4px;cursor:pointer;display:flex;align-items:center;border-radius:var(--radius-sm);transition:background .15s,color .15s}.se-remove:hover{color:var(--destructive);background:#ef44440f}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:200;padding:12px;animation:dialog-fade .15s ease-out}.bhm-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:14px;z-index:300;animation:dialog-fade .15s ease-out}.bhm-card{position:relative;background:var(--background);border-radius:var(--radius-2xl);width:100%;max-width:320px;padding:22px 20px 18px;box-shadow:0 20px 60px #0000002e,0 4px 12px #00000014;display:flex;flex-direction:column;align-items:center;gap:6px;animation:dialog-rise .2s cubic-bezier(.16,1,.3,1)}.bhm-close{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:999px;border:none;background:transparent;color:var(--muted-foreground);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s}.bhm-close:hover:not(:disabled){background:var(--secondary);color:var(--foreground)}.bhm-close:disabled{opacity:.4;cursor:not-allowed}.bhm-icon{width:40px;height:40px;border-radius:12px;background:var(--secondary);color:var(--foreground);display:flex;align-items:center;justify-content:center;margin-bottom:6px}.bhm-title{font-size:15px;font-weight:600;color:var(--foreground);text-align:center}.bhm-host{font-size:13px;color:var(--muted-foreground);margin-bottom:8px;overflow-wrap:anywhere;text-align:center}.bhm-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:4px}.bhm-option{padding:10px 12px;border-radius:var(--radius-md);border:1px solid var(--border);background:var(--background);color:var(--foreground);font-family:inherit;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s}.bhm-option:hover:not(:disabled){background:var(--secondary);border-color:var(--foreground)}.bhm-option:last-child:nth-child(odd){grid-column:1 / -1;background:var(--foreground);color:var(--primary-foreground);border-color:var(--foreground)}.bhm-option:last-child:nth-child(odd):hover:not(:disabled){opacity:.9}.bhm-option:disabled{opacity:.5;cursor:not-allowed}.bhm-error{margin-top:10px;padding:8px 10px;background:#fef2f2;color:#b91c1c;border-radius:var(--radius-md);font-size:12px;width:100%}.modal-card{background:var(--background);border-radius:var(--radius-2xl);width:100%;max-width:380px;max-height:calc(100vh - 24px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000002e,0 4px 12px #00000014;animation:dialog-rise .2s cubic-bezier(.16,1,.3,1)}.modal-card-wide{max-width:400px}.modal-head{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border)}.modal-icon{width:34px;height:34px;border-radius:var(--radius-md);background:var(--secondary);color:var(--foreground);display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--border)}.modal-title{font-size:14.5px;font-weight:700;color:var(--foreground);line-height:1.2;letter-spacing:-.01em}.modal-sub{font-size:12px;color:var(--muted-foreground);margin-top:2px;line-height:1.4}.modal-mode-tabs{display:flex;padding:8px 10px 0;gap:4px;border-bottom:1px solid var(--border);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.modal-mode-tabs::-webkit-scrollbar{height:4px}.modal-mode-tabs::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.modal-mode-tabs-wrap{flex-wrap:wrap;padding-bottom:4px;overflow-x:visible}.modal-mode{background:none;border:none;padding:8px 10px;font-family:inherit;font-size:12.5px;color:var(--muted-foreground);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;border-radius:4px 4px 0 0;white-space:nowrap;flex-shrink:0;transition:color .15s}.modal-mode:hover{color:var(--foreground)}.modal-mode.active{color:var(--foreground);border-bottom-color:var(--foreground);font-weight:600}.modal-body{padding:16px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}.modal-hint{margin:0;font-size:12px;color:var(--muted-foreground);line-height:1.5}.modal-field{display:flex;flex-direction:column;gap:6px}.modal-field-num{flex-direction:row;align-items:center;justify-content:space-between}.modal-field-num input{width:92px}.modal-label{font-size:10.5px;color:var(--muted-foreground);font-weight:600;text-transform:uppercase;letter-spacing:.05em}.modal-checkbox{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--foreground);cursor:pointer}.modal-checkbox input{margin:0;accent-color:var(--foreground)}.modal-field input[type=number],.modal-field input[type=time],.modal-field input[type=text],.modal-field input[type=password]{padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:13px;color:var(--foreground);outline:none;background:var(--background);font-family:inherit;transition:border-color .15s}.modal-error{font-size:12px;color:var(--destructive);margin-top:4px}.modal-field input:focus{border-color:var(--foreground)}.modal-field input[type=range]{width:100%;accent-color:var(--foreground)}.modal-textarea{padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:13px;line-height:1.55;color:var(--foreground);font-family:inherit;outline:none;resize:vertical;min-height:140px;background:var(--background);transition:border-color .15s}.modal-textarea:focus{border-color:var(--foreground)}.modal-textarea::placeholder{color:var(--muted-foreground)}.modal-slider-row{display:flex;align-items:center;justify-content:space-between}.modal-slider-val{font-size:15px;font-weight:700;color:var(--foreground);font-variant-numeric:tabular-nums}.modal-slider-ends{display:flex;justify-content:space-between;font-size:10.5px;color:var(--muted-foreground);margin-top:2px}.modal-preview{padding:12px 14px;background:var(--secondary);border-radius:var(--radius-md);border:1px solid var(--border);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--foreground);line-height:1.55;word-break:break-word}.modal-mini{display:inline-flex;align-items:center;gap:5px;background:transparent;border:1px solid var(--border);border-radius:var(--radius-sm);padding:4px 10px;font-family:inherit;font-size:11.5px;color:var(--muted-foreground);cursor:pointer;transition:background .15s,color .15s}.modal-mini:hover{background:var(--accent);color:var(--foreground)}.modal-days{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.modal-day{padding:8px 0;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);color:var(--muted-foreground);font-family:inherit;font-size:11.5px;font-weight:500;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.modal-day:hover{background:var(--accent);color:var(--foreground)}.modal-day.on{background:var(--foreground);color:var(--primary-foreground);border-color:var(--foreground);font-weight:600}.modal-time-row{display:flex;gap:8px}.modal-time-cell{flex:1;display:flex;flex-direction:column;gap:4px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px 16px;border-top:1px solid var(--border);background:var(--background)}.modal-cancel{background:var(--background);border:1px solid var(--border);color:var(--foreground);padding:9px 16px;border-radius:var(--radius-md);font-family:inherit;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.modal-cancel:hover{background:var(--accent)}.modal-save{background:var(--foreground);border:none;color:var(--primary-foreground);padding:9px 18px;border-radius:var(--radius-md);font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .15s}.modal-save:hover{opacity:.9}.modal-save-danger{background:var(--destructive)}.modal-save-danger:hover{filter:brightness(1.06);opacity:1}.be-delete-confirm{display:flex;align-items:center;gap:4px}.be-delete-yes,.be-delete-no{width:26px;height:26px;border:none;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .15s,color .15s}.be-delete-yes{background:var(--destructive);color:#fff}.be-delete-yes:hover{filter:brightness(1.06)}.be-delete-no{background:var(--secondary);color:var(--muted-foreground)}.be-delete-no:hover{background:var(--accent);color:var(--foreground)}
