*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f4f5; --surface: #fff; --border: #e4e4e7;
  --text: #18181b; --muted: #71717a; --muted2: #a1a1aa;
  --accent: #4f46e5; --accent-light: #eef2ff; --accent-fg: #fff;
  --success: #16a34a; --success-light: #dcfce7;
  --warning: #ca8a04; --danger: #dc2626;
  --term-bg: #09090b; --term-text: #d4d4d8;
  --hover: #f8fafc;
  --radius: 10px;
}
body { font-family: system-ui,-apple-system,sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 100; }
.logo { font-weight: 700; font-size: 15px; color: var(--accent); letter-spacing: -.3px; }
.project { font-size: 13px; color: var(--muted); border-left: 1px solid var(--border); padding-left: 12px; }
.container { max-width: 680px; margin: 36px auto; padding: 0 20px 80px; }
.container.container-wide { max-width: 1200px; padding: 0 32px 80px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.card-sub { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.steps-nav { display: flex; margin-bottom: 28px; }
.snav-item { flex: 1; font-size: 12px; font-weight: 500; color: var(--muted2); text-align: center; padding-bottom: 10px; position: relative; }
.snav-item::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--border); border-radius: 2px; }
.snav-item.active { color: var(--accent); }
.snav-item.active::after { background: var(--accent); }
.snav-item.done { color: var(--success); }
.snav-item.done::after { background: var(--success); }
.field { margin-bottom: 20px; }
label.field-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.hint-tag { font-weight: 400; color: var(--muted); }
input[type=text], textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit; color: var(--text); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
textarea { resize: vertical; min-height: 76px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rc { border: 2px solid var(--border); border-radius: 8px; padding: 14px; cursor: pointer; transition: border-color .15s; user-select: none; }
.rc:hover { border-color: #a5b4fc; }
.rc.sel { border-color: var(--accent); background: var(--accent-light); }
.rc input[type=radio] { display: none; }
.rc-title { font-size: 14px; font-weight: 500; }
.rc-desc { font-size: 12px; color: var(--muted); margin-top: 3px; }
.btn-row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
button { font-family: inherit; font-size: 14px; font-weight: 500; border: none; border-radius: 6px; padding: 9px 18px; cursor: pointer; transition: background .15s, opacity .15s; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: #4338ca; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.section-title { font-size: 20px; font-weight: 600; }
.section-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step-item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; align-items: flex-start; gap: 14px; transition: border-color .2s; }
.step-item.executing { border-color: var(--accent); }
.step-item.step-done { border-color: var(--success); opacity: .85; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; color: var(--muted); }
.step-item.executing .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-item.step-done .step-num { background: var(--success); border-color: var(--success); color: #fff; }
.step-info { flex: 1; min-width: 0; }
.step-title { font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.step-cmd { font-family: 'SF Mono',Monaco,monospace; font-size: 11px; color: var(--accent); margin-top: 5px; word-break: break-all; }
.badge { font-size: 11px; background: #fef9c3; color: #854d0e; padding: 2px 7px; border-radius: 4px; font-weight: 500; }
.ado-note { font-size: 11px; color: #92400e; background: #fffbeb; border: 1px solid #fcd34d; padding: 3px 8px; border-radius: 4px; margin-top: 5px; display: inline-block; }
.role-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.role-tech { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.role-dev  { color: #7c3aed; background: #ede9fe; border: 1px solid #ddd6fe; }
.btn-proto { padding:5px 10px; font-size:12px; background:none; border:1.5px solid var(--border); border-radius:6px; cursor:pointer; color:var(--muted); flex-shrink:0; transition:.15s; }
.btn-proto:hover { border-color:var(--accent); color:var(--accent); }
.btn-proto:disabled { opacity:.5; pointer-events:none; }
.proto-overlay { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:300; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.proto-box { background:var(--surface); border-radius:12px; width:min(960px,96vw); height:88vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.3); overflow:hidden; }
.proto-header { display:flex; align-items:center; gap:10px; padding:14px 18px; border-bottom:1px solid var(--border); flex-shrink:0; }
.proto-title { font-size:15px; font-weight:600; flex:1; }
.proto-frame { flex:1; border:none; width:100%; background:#fff; }
.proto-loading { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; background:#fafafa; }
.proto-spinner { width:44px; height:44px; border:3px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:proto-spin 0.9s linear infinite; }
@keyframes proto-spin { to { transform:rotate(360deg); } }
.proto-loading-label { font-size:14px; color:var(--muted); text-align:center; line-height:1.6; }
.proto-loading-steps { display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.proto-loading-step { font-size:12px; color:var(--muted2); display:flex; align-items:center; gap:6px; }
.proto-loading-step.active { color:var(--accent); font-weight:500; }
.proto-loading-step.done { color:var(--success); }
.proto-sub-panel { border-top:1px solid var(--border); background:var(--bg); flex-shrink:0; overflow:hidden; }
.proto-refs-tabs { display:flex; gap:4px; padding:8px 16px 0; }
.proto-refs-tab { padding:3px 10px; border:1px solid var(--border); border-radius:5px 5px 0 0; cursor:pointer; font-size:11px; background:var(--surface); color:var(--muted); }
.proto-refs-tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.proto-refs-content { padding:10px 16px 12px; max-height:220px; overflow:auto; }
.proto-refs-content pre { font-size:11px; font-family:'SF Mono',Monaco,monospace; white-space:pre-wrap; word-break:break-word; color:var(--text); }
.proto-ado-row { display:flex; gap:8px; align-items:center; padding:10px 16px; flex-wrap:wrap; }
.proto-ado-row label { font-size:12px; color:var(--muted); white-space:nowrap; }
.proto-ado-input { flex:1; min-width:180px; padding:5px 8px; border:1px solid var(--border); border-radius:6px; font-size:13px; }
.proto-file-panel { flex:1; display:flex; flex-direction:column; overflow:hidden; min-height:0; }
.proto-file-header { padding:12px 16px; border-bottom:1px solid var(--border); flex-shrink:0; }
.proto-file-list { flex:1; overflow-y:auto; padding:12px 16px; }
.proto-file-footer { padding:10px 16px; border-top:1px solid var(--border); display:flex; gap:8px; justify-content:flex-end; align-items:center; flex-shrink:0; }
.proto-file-group-label { font-size:11px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; margin:0 0 5px; }
.proto-file-row { display:flex; align-items:center; gap:7px; padding:3px 0; cursor:pointer; font-size:12px; font-family:monospace; }
.proto-file-row input[type=checkbox] { flex-shrink:0; }
.dev-note { font-size: 12px; color: #6b21a8; background: #faf5ff; border: 1px solid #e9d5ff; border-radius: 6px; padding: 8px 12px; margin-top: 8px; line-height: 1.5; }
.file-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.file-btn { font-size: 12px; font-family: 'SF Mono',Monaco,monospace; background: #f4f4f5; border: 1px solid #d4d4d8; color: #3f3f46; border-radius: 5px; padding: 4px 10px; cursor: pointer; transition: background .15s, border-color .15s; }
.file-btn:hover { background: #e4e4e7; border-color: #a1a1aa; }
.elapsed { font-size: 11px; color: var(--muted2); margin-left: 4px; font-variant-numeric: tabular-nums; }
.sidebar { position: fixed; top: 70px; left: clamp(8px, calc(50vw - 580px), 9999px); width: 188px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; max-height: calc(100vh - 90px); overflow-y: auto; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
@media (max-width: 980px) { .sidebar { display: none !important; } }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal { background: var(--surface); border-radius: 12px; padding: 28px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.privacy-note { font-size: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 6px; padding: 8px 12px; margin-bottom: 18px; }
.ado-result { margin-top: 14px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.ado-result-item { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ado-result-item:last-child { border-bottom: none; }
.ado-result-type { font-size: 11px; font-weight: 600; color: var(--muted); width: 90px; flex-shrink: 0; }
.ado-result-title { flex: 1; }
.ado-result-link { font-size: 12px; color: var(--accent); text-decoration: none; }
.ado-result-link:hover { text-decoration: underline; }
.sb-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 10px; line-height: 1.4; word-break: break-word; }
.sb-step { display: flex; align-items: flex-start; gap: 6px; padding: 3px 0; font-size: 11px; color: var(--muted2); line-height: 1.35; }
.sb-step.done { color: var(--success); }
.sb-step.active { color: var(--accent); }
.sb-icon { flex-shrink: 0; width: 13px; margin-top: 1px; }
.sb-bar-wrap { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.sb-progress-txt { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.sb-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.sb-fill { height: 100%; background: var(--success); border-radius: 3px; transition: width .4s ease; }
.hierarchy { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--accent-light); border: 1px solid #c7d2fe; border-radius: 8px; padding: 10px 14px; margin-bottom: 22px; font-size: 12px; }
.hier-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hier-label { font-weight: 600; color: var(--accent); font-size: 13px; }
.hier-you { font-size: 10px; color: var(--accent); background: #c7d2fe; padding: 1px 5px; border-radius: 3px; }
.hier-ai { font-size: 10px; color: #059669; background: #d1fae5; padding: 1px 5px; border-radius: 3px; }
.hier-arrow { color: var(--muted2); font-size: 14px; margin-top: -2px; }
.toggle-group { display: flex; flex-direction: column; gap: 8px; }
.toggle-card { border: 2px solid var(--border); border-radius: 8px; padding: 14px 16px; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; transition: border-color .15s; }
.toggle-card:hover { border-color: #a5b4fc; }
.toggle-card.sel { border-color: var(--accent); background: var(--accent-light); }
.toggle-card input[type=radio] { margin-top: 2px; accent-color: var(--accent); }
.toggle-card-body {}
.toggle-card-title { font-size: 14px; font-weight: 500; }
.toggle-card-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.terminal { margin-top: 12px; border-radius: 8px; overflow: hidden; border: 1px solid #27272a; }
.term-header { background: #18181b; padding: 8px 14px; font-size: 12px; color: var(--muted2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.term-body { background: var(--term-bg); padding: 14px; max-height: 340px; overflow-y: auto; }
.term-body pre { font-family: 'SF Mono',Monaco,monospace; font-size: 12px; color: var(--term-text); white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--muted2); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; margin-right: 5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag-ok { color: #4ade80; font-weight: 600; }
.tag-err { color: #f87171; font-weight: 600; }
[hidden] { display: none !important; }
.token-chip-btn { background:transparent; border:1px solid rgba(79,70,229,.22); border-radius:20px; padding:2px 9px; font-size:10px; font-weight:600; color:var(--accent); cursor:pointer; white-space:nowrap; transition:background .15s,border-color .15s; line-height:1.6; }
.token-chip-btn:hover { background:var(--accent-light); border-color:var(--accent); }
.token-pop { position:absolute; top:calc(100% + 10px); left:0; width:310px; background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:0 10px 36px rgba(0,0,0,.14); z-index:300; padding:18px 20px 16px; }
.token-pop::before { content:''; position:absolute; top:-6px; left:18px; width:11px; height:11px; background:var(--surface); border-left:1px solid var(--border); border-top:1px solid var(--border); transform:rotate(45deg); }
.token-pop-row { display:flex; align-items:center; justify-content:space-between; font-size:12px; margin-bottom:5px; }
.token-pop-bar-wrap { flex:1; margin:0 8px; background:var(--border); border-radius:4px; height:8px; overflow:hidden; }
.token-pop-bar { height:8px; border-radius:4px; background:var(--accent); }
.landing-card { cursor: pointer; }
.landing-card:hover, .landing-card:focus { border-color: var(--accent); box-shadow: 0 4px 16px rgba(79,70,229,.1); outline: none; }
code { font-family: 'SF Mono',Monaco,monospace; }
.qa-url-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.qa-env-select { width: 100px; flex-shrink: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text); }
.qa-url-input { flex: 1; }
.qa-remove-btn { flex-shrink: 0; width: 30px; height: 30px; border-radius: 6px; background: transparent; border: 1px solid var(--border); color: var(--muted); font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.qa-remove-btn:hover { background: #fee2e2; border-color: #fca5a5; color: var(--danger); }
.qa-add-btn { font-size: 13px; color: var(--accent); background: var(--accent-light); border: 1px dashed #a5b4fc; border-radius: 6px; padding: 7px 14px; cursor: pointer; width: 100%; margin-top: 4px; }
.qa-add-btn:hover { background: #e0e7ff; }
.scenario-card { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.scenario-card.selected { border-color: var(--accent); background: var(--accent-light); }
.scenario-card-header { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.scenario-num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--muted); }
.scenario-card.selected .scenario-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.scenario-title { font-size: 14px; font-weight: 500; flex: 1; }
.scenario-criteria { font-size: 12px; color: var(--muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); white-space: pre-wrap; line-height: 1.6; }
.test-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; }
.test-pass { background: var(--success-light); color: var(--success); }
.test-fail { background: #fee2e2; color: var(--danger); }
.test-skip { background: #fef9c3; color: var(--warning); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.summary-cell { text-align: center; padding: 14px; border-radius: 8px; border: 1px solid var(--border); }
.summary-num { font-size: 28px; font-weight: 700; line-height: 1; }
.summary-label { font-size: 11px; color: var(--muted); margin-top: 4px; }
.env-badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.env-dev { background: #dbeafe; color: #1d4ed8; }
.env-uat { background: #fef3c7; color: #92400e; }
.env-prd { background: #dcfce7; color: #166534; }
.env-local { background: #f3e8ff; color: #7e22ce; }
.env-other { background: #f4f4f5; color: #3f3f46; }
select { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--surface); }
select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.qa-src-btn { padding: 7px 16px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px; font-weight: 500; color: var(--muted); transition: all .15s; }
.qa-src-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.qa-src-btn:hover:not(.active) { background: var(--bg); }
.qa-diff-file-row { display:flex; align-items:center; justify-content:space-between; padding:5px 8px; border:1px solid var(--border); border-radius:5px; margin-bottom:4px; }
.qa-diff-add-row { display:flex; gap:6px; }
.ado-warn-banner { background:#fefce8; border:1px solid #fef08a; color:#854d0e; border-radius:8px; padding:14px 16px; margin-bottom:18px; font-size:13px; line-height:1.6; }
.ado-warn-banner strong { color:#713f12; }
.ado-warn-banner code { background:#fde68a; padding:1px 5px; border-radius:3px; font-size:12px; }
.ado-warn-close { float:right; background:none; border:none; cursor:pointer; font-size:16px; color:#a16207; margin-top:-2px; }
.ado-error-inline { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; border-radius:6px; padding:10px 14px; font-size:13px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.ado-node-row { display:flex; gap:6px; align-items:flex-end; }
.ado-node-row input, .ado-node-row select { flex:1; }
.ado-assignee-select { height:36px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); font-size:13px; padding:0 8px; }
.wi-item-card { border:1px solid var(--border); border-radius:8px; padding:12px 14px; background:var(--bg); }
.wi-item-header { display:flex; gap:8px; align-items:center; }
.wi-item-type-sel { width:118px; flex-shrink:0; height:34px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); font-size:12px; padding:0 6px; }
.wi-item-title-inp { flex:1; height:34px; }
.wi-item-remove { flex-shrink:0; background:none; border:none; cursor:pointer; color:var(--muted); font-size:18px; line-height:1; padding:0 4px; }
.wi-item-remove:hover { color:#dc2626; }
.wi-item-expand-btn { background:none; border:none; cursor:pointer; font-size:11px; color:var(--muted); padding:5px 0 0; text-align:left; }
.wi-item-expand-btn:hover { color:var(--text); }
.wi-item-details { margin-top:10px; display:flex; flex-direction:column; gap:4px; }
.wi-item-field-label { font-size:11px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:0.04em; margin-top:8px; }
.wi-item-details textarea { resize:vertical; min-height:160px; font-size:12px; }
.wi-item-criteria { min-height:220px; }
.wi-area-tech-btn { padding:5px 12px; border:1px solid var(--border); border-radius:20px; background:var(--surface); cursor:pointer; font-size:12px; color:var(--muted); transition:all .15s; }
.wi-area-tech-btn:hover { border-color:var(--accent); color:var(--accent); }
.wi-area-tech-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
.wi-filter-btn { padding:5px 12px; border:1px solid var(--border); border-radius:20px; background:var(--surface); cursor:pointer; font-size:12px; color:var(--muted); transition:all .15s; }
.wi-filter-btn:hover { border-color:var(--accent); color:var(--accent); }
.wi-filter-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
.wi-tags-container { display:flex; flex-wrap:wrap; align-items:center; gap:4px; padding:4px 6px; border:1px solid var(--border); border-radius:6px; min-height:32px; cursor:text; }
.wi-tag-chip { display:inline-flex; align-items:center; gap:3px; background:var(--accent); color:#fff; border-radius:12px; padding:2px 10px 2px 10px; font-size:11px; }
.wi-tag-chip-rm { background:none; border:none; cursor:pointer; color:rgba(255,255,255,.75); font-size:13px; line-height:1; padding:0 0 0 3px; }
.wi-tag-chip-rm:hover { color:#fff; }
.wi-tag-chip-inp { border:none; outline:none; background:transparent; font-size:12px; min-width:70px; flex:1; }
.wi-req-fields-block { margin-top:8px; display:flex; flex-direction:column; gap:6px; padding:8px 10px; background:#fef9f0; border:1px solid #fde68a; border-radius:6px; }
.wi-req-field-row { display:flex; align-items:center; gap:8px; }
.wi-req-field-label { font-size:11px; font-weight:600; color:#92400e; white-space:nowrap; min-width:80px; }
.wi-req-field-sel, .wi-req-field-inp { flex:1; font-size:12px; }
.wi-suggest-loading { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); padding:10px 0; }
.wi-result-list { margin-top:16px; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.wi-result-item { padding:10px 14px; font-size:13px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.wi-result-item:last-child { border-bottom:none; }
.wi-result-type { font-size:11px; font-weight:600; color:var(--muted); width:90px; flex-shrink:0; }
.wi-result-title { flex:1; }
.wi-result-link { font-size:12px; color:var(--accent); text-decoration:none; }
.wi-result-link:hover { text-decoration:underline; }
.wi-result-task { padding-left:28px; background:var(--bg); }
/* Contexto de repositórios */
.wi-ctx-details { border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.wi-ctx-summary { padding:10px 14px; font-size:13px; font-weight:600; cursor:pointer; user-select:none; list-style:none; display:flex; align-items:center; gap:6px; background:var(--surface); }
.wi-ctx-summary::-webkit-details-marker { display:none; }
.wi-ctx-summary::after { content:'▾'; font-size:11px; margin-left:auto; color:var(--muted); transition:transform .2s; }
details[open].wi-ctx-details .wi-ctx-summary::after { transform:rotate(-180deg); }
.wi-ctx-body { padding:14px; display:flex; flex-direction:column; gap:14px; border-top:1px solid var(--border); }
.wi-ctx-subsection { display:flex; flex-direction:column; gap:6px; }
.wi-ctx-subsection-header { display:flex; align-items:center; justify-content:space-between; }
.wi-ctx-section-label { font-size:12px; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.wi-ctx-local-subsection { border-top:1px solid var(--border); padding-top:12px; }
.wi-ctx-local-label { display:flex; align-items:center; gap:8px; cursor:pointer; font-size:13px; color:var(--text); }
/* Repo rows */
.wi-repo-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.wi-repo-select { flex:2; min-width:0; font-size:13px; padding:6px 8px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); }
.wi-branch-select { flex:1; min-width:0; font-size:13px; padding:6px 8px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); }
.wi-repo-remove { flex-shrink:0; width:28px; height:28px; border:1px solid var(--border); border-radius:6px; background:transparent; color:var(--muted); cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; }
.wi-repo-remove:hover { background:#fef2f2; border-color:#fecaca; color:#b91c1c; }
.wi-ext-repo-name { flex:2; min-width:0; font-size:12px; font-family:monospace; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:6px 4px; border:1px solid var(--border); border-radius:6px; background:var(--bg); }
.wi-branch-toggle { flex-shrink:0; width:28px; height:28px; border:1px solid var(--border); border-radius:6px; background:transparent; cursor:pointer; font-size:13px; display:flex; align-items:center; justify-content:center; }
.wi-branch-toggle.active { background:var(--accent); border-color:var(--accent); }
.wi-url-repo-row { display:flex; gap:6px; align-items:center; margin-bottom:6px; }
.wi-url-repo-inp { flex:1; font-size:12px; padding:6px 8px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); }
.wi-pat-inline-row { display:flex; gap:6px; align-items:center; margin-bottom:6px; padding:8px 10px; background:var(--surface); border:1px solid var(--border); border-radius:6px; margin-left:2px; }
/* Local files panel */
.wi-local-toolbar { display:flex; gap:6px; align-items:center; margin-bottom:8px; flex-wrap:wrap; }
.wi-local-filter-inp { flex:1; min-width:160px; font-size:13px; padding:6px 10px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--text); }
.wi-local-file-list { max-height:240px; overflow-y:auto; border:1px solid var(--border); border-radius:6px; background:var(--bg); padding:4px 0; }
.wi-local-file-item { display:flex; align-items:center; gap:8px; padding:4px 10px; font-size:12px; cursor:pointer; }
.wi-local-file-item:hover { background:var(--surface); }
.wi-local-file-path { font-family:monospace; color:var(--text); flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
[data-theme="dark"] .wi-repo-select, [data-theme="dark"] .wi-branch-select, [data-theme="dark"] .wi-local-filter-inp { background:#1e1e2e; border-color:#3a3a5c; color:#e2e8f0; }
[data-theme="dark"] .wi-local-file-list { background:#12121f; border-color:#3a3a5c; }
[data-theme="dark"] .wi-local-file-item:hover { background:#1e1e2e; }
[data-theme="dark"] .wi-repo-remove:hover { background:#3b0a0a; border-color:#7f1d1d; color:#fca5a5; }
.sync-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9990; display:flex; align-items:center; justify-content:center; padding:20px; }
.sync-modal-box { background:var(--surface); border-radius:14px; max-width:720px; width:100%; max-height:80vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.sync-modal-header { padding:20px 24px 16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.sync-modal-body { flex:1; overflow-y:auto; padding:20px 24px; }
.sync-diff-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; border:1px solid var(--border); border-radius:8px; padding:12px; margin-bottom:10px; font-size:13px; }
.sync-diff-row.changed { background:#fef9c3; border-color:#fde047; }
.sync-diff-row.only-ado { background:#fef2f2; border-color:#fecaca; }
.sync-diff-row.only-local { background:#f0fdf4; border-color:#bbf7d0; }
.sync-col-label { font-size:11px; font-weight:600; color:var(--muted2); margin-bottom:4px; }
.qa-report-overlay { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9990; display:flex; align-items:center; justify-content:center; padding:20px; }
.qa-report-box { background:var(--surface); border-radius:14px; max-width:900px; width:100%; max-height:85vh; display:flex; flex-direction:column; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.qa-report-header { padding:18px 24px 14px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.qa-report-body { flex:1; overflow-y:auto; padding:0; }
.qa-ado-block { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.qa-ado-block-header { width: 100%; text-align: left; padding: 11px 14px; background: none; border: none; cursor: pointer; font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.qa-ado-block-header:hover { background: var(--bg); }
.mcp-ok { font-size:12px; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:6px; padding:8px 14px; margin-bottom:18px; color:#15803d; display:flex; align-items:center; gap:6px; }
.mcp-warn { font-size:12px; background:#faf5ff; border:1px solid #e9d5ff; border-radius:6px; padding:10px 14px; margin-bottom:18px; color:#6b21a8; line-height:1.6; }
.mcp-warn a { color:#7c3aed; }
.cam-grid { display:grid; gap:3px; background:#111; padding:3px; border-radius:6px; }
.cam-grid.cols-1 { grid-template-columns:1fr; }
.cam-grid.cols-2 { grid-template-columns:1fr 1fr; }
.cam-grid.cols-3 { grid-template-columns:1fr 1fr 1fr; }
.cam-cell { position:relative; background:#000; aspect-ratio:16/9; overflow:hidden; cursor:pointer; }
.cam-cell:hover { outline:2px solid var(--accent); }
.cam-frame { width:100%; height:100%; object-fit:cover; display:block; }
.cam-bar { position:absolute; top:0; left:0; right:0; background:linear-gradient(rgba(0,0,0,0.75),transparent); padding:5px 8px; display:flex; align-items:center; gap:6px; }
.cam-title { font-size:11px; color:#fff; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cam-log { position:absolute; bottom:0; left:0; right:0; background:rgba(0,0,0,0.65); padding:4px 8px; font-family:monospace; font-size:10px; color:#4ade80; line-height:1.5; pointer-events:none; white-space:pre-wrap; }
.cam-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.75); z-index:9999; display:flex; align-items:center; justify-content:center; }
.cam-modal-box { background:var(--surface); border-radius:10px; width:min(860px,95vw); max-height:90vh; overflow:auto; padding:20px; }
.cam-modal-header { display:flex; align-items:center; gap:10px; margin-bottom:12px; font-weight:600; font-size:15px; }
.cam-modal-close-btn { margin-left:auto; background:none; border:none; font-size:22px; cursor:pointer; color:var(--muted); line-height:1; }
.cam-modal-log { font-family:monospace; font-size:12px; background:var(--bg); padding:10px; border-radius:6px; max-height:300px; overflow:auto; white-space:pre-wrap; margin-bottom:12px; color:var(--text); }
.cam-modal-shots { display:flex; flex-direction:column; gap:8px; }
.scenario-panel { border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.scenario-panel-header { padding:10px 14px; background:var(--surface); display:flex; align-items:center; gap:10px; font-weight:600; font-size:13px; border-bottom:1px solid var(--border); }
.scenario-panel-body { padding:10px 14px; }
.scenario-panel-log { font-family:monospace; font-size:12px; max-height:220px; overflow-y:auto; white-space:pre-wrap; margin:0; color:var(--text); }
.scenario-panel-screenshots { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.scenario-panel-screenshots img { max-width:180px; max-height:120px; object-fit:cover; border-radius:4px; border:1px solid var(--border); cursor:pointer; transition:transform .15s; }
.scenario-panel-screenshots img:hover { transform:scale(1.05); }
.badge { padding:2px 10px; border-radius:10px; font-size:11px; font-weight:600; }
.badge-running { background:#fef3c7; color:#92400e; }
.badge-pass { background:#d1fae5; color:#065f46; }
.badge-fail { background:#fee2e2; color:#991b1b; }
.badge-queued { background:#e0f2fe; color:#0369a1; }
.qa-queue-badge { font-size:11px; font-weight:600; background:#e0f2fe; color:#0369a1; padding:2px 9px; border-radius:10px; }
.qa-progress-badge { font-size:11px; font-weight:600; background:var(--surface); border:1px solid var(--border); color:var(--muted); padding:2px 9px; border-radius:10px; }
.qa-cred-toggle { font-size:11px; color:var(--muted); margin-top:4px; }
.qa-cred-toggle summary { cursor:pointer; user-select:none; padding:2px 0; }
.qa-cred-row { display:flex; gap:6px; margin-top:6px; }
.qa-cred-input { flex:1; padding:5px 8px; border:1px solid var(--border); border-radius:5px; font-size:12px; background:var(--surface); color:var(--text); }
.steps-accordion details { border:1px solid var(--border); border-radius:6px; margin-bottom:8px; overflow:hidden; min-width:0; }
.steps-accordion summary { padding:8px 12px; cursor:pointer; font-weight:600; font-size:13px; display:flex; align-items:center; gap:8px; }
.steps-accordion ol { margin:0; padding:8px 12px 12px 28px; font-size:12px; line-height:1.8; overflow:hidden; }
.steps-accordion ol li { overflow-wrap:break-word; word-break:break-all; min-width:0; }
.step-badge { display:inline-block; padding:1px 7px; border-radius:8px; font-size:10px; font-weight:600; margin-right:4px; vertical-align:middle; flex-shrink:0; }
.sb-navigate { background:#dbeafe; color:#1e40af; }
.sb-click { background:#d1fae5; color:#065f46; }
.sb-assert { background:#ffedd5; color:#9a3412; }
.sb-screenshot { background:#f1f5f9; color:#475569; }
.sb-wait { background:#ede9fe; color:#5b21b6; }
.sb-fill { background:#fef9c3; color:#713f12; }
.tour-panel { position:fixed; z-index:9997; background:rgba(15,15,20,.55); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); pointer-events:none; transition:all .25s ease; }
.tour-spotlight { position:fixed; z-index:9998; border-radius:10px; pointer-events:none; transition:all .25s ease; box-shadow:0 0 0 3px rgba(99,102,241,.6); }
.tour-tooltip { position:fixed; z-index:9999; background:var(--surface); border-radius:14px; padding:22px 24px 18px; max-width:340px; box-shadow:0 12px 40px rgba(0,0,0,.28); transition:opacity .2s; }
.tour-tooltip-title { font-size:15px; font-weight:700; margin-bottom:8px; color:var(--text); }
.tour-tooltip-body { font-size:13px; color:var(--muted); line-height:1.65; margin-bottom:18px; }
.tour-tooltip-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.tour-dots { display:flex; gap:5px; align-items:center; }
.tour-dot { width:7px; height:7px; border-radius:50%; background:var(--border); transition:background .2s; }
.tour-dot.active { background:var(--accent); }
.tour-btn-skip { font-size:12px; color:var(--muted); background:none; border:none; cursor:pointer; padding:0; }
.tour-btn-skip:hover { color:var(--text); }
.tour-btn-next { padding:8px 18px; background:var(--accent); color:#fff; border:none; border-radius:7px; font-size:13px; font-weight:600; cursor:pointer; }
.tour-btn-next:hover { opacity:.9; }
.tour-menu-wrap { position:relative; margin-left:auto; }
.tour-menu-btn { display:flex; align-items:center; gap:6px; padding:6px 12px; background:var(--surface); border:1px solid var(--border); border-radius:7px; font-size:13px; font-weight:500; color:var(--muted); cursor:pointer; transition:border-color .15s,color .15s; }
.tour-menu-btn:hover { border-color:var(--accent); color:var(--accent); }
.tour-menu-btn svg { flex-shrink:0; }
.tour-dropdown { position:absolute; top:calc(100% + 6px); right:0; min-width:230px; background:var(--surface); border:1px solid var(--border); border-radius:10px; box-shadow:0 8px 28px rgba(0,0,0,.14); z-index:10000; padding:6px; display:none; }
.tour-dropdown.open { display:block; }
.tour-dropdown-item { display:flex; align-items:flex-start; gap:10px; padding:9px 10px; border-radius:7px; cursor:pointer; transition:background .12s; }
.tour-dropdown-item:hover { background:var(--bg); }
.tour-dropdown-item-icon { font-size:18px; line-height:1; flex-shrink:0; margin-top:1px; }
.tour-dropdown-item-label { font-size:13px; font-weight:600; color:var(--text); }
.tour-dropdown-item-desc { font-size:11px; color:var(--muted); margin-top:2px; }
/* Auto-mode toggle */
.auto-toggle-wrap { display:flex; align-items:center; gap:8px; font-size:12px; color:var(--muted); cursor:pointer; }
.auto-toggle { position:relative; display:inline-block; width:34px; height:18px; flex-shrink:0; }
.auto-toggle input { opacity:0; width:0; height:0; }
.auto-slider { position:absolute; cursor:pointer; top:0;left:0;right:0;bottom:0; background:var(--border); border-radius:9px; transition:.2s; }
.auto-slider:before { content:''; position:absolute; height:12px;width:12px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:.2s; }
.auto-toggle input:checked + .auto-slider { background:var(--accent); }
.auto-toggle input:checked + .auto-slider:before { transform:translateX(16px); }
/* Spec dashboard */
.spec-dash-title { font-size:13px;font-weight:600;color:var(--muted);margin-bottom:12px;margin-top:36px;padding-top:28px;border-top:1px solid var(--border); }
.spec-dash-list { display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px; }
.spec-dash-card { background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:10px; }
.spec-dash-name { font-size:14px;font-weight:600; }
.spec-dash-badges { display:flex;flex-wrap:wrap;gap:4px; }
.spec-dash-badge { font-size:10px;padding:2px 7px;border-radius:10px;font-weight:500; }
.spec-dash-badge.done { background:var(--success-light);color:var(--success); }
.spec-dash-badge.todo { background:var(--bg);color:var(--muted2);border:1px solid var(--border); }
/* Brief templates */
.brief-templates { display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px; }
.brief-tmpl-card { border:1.5px solid var(--border);border-radius:8px;padding:10px 12px;cursor:pointer;transition:border-color .15s,background .15s;text-align:left;background:var(--surface); }
.brief-tmpl-card:hover { border-color:var(--accent);background:var(--accent-light); }
.brief-tmpl-icon { font-size:20px;margin-bottom:3px; }
.brief-tmpl-name { font-size:12px;font-weight:600;color:var(--text); }
.brief-tmpl-desc { font-size:10px;color:var(--muted);margin-top:1px;line-height:1.4; }
/* ADO poll counter */
.ado-poll-counter { display:flex;align-items:center;gap:6px;padding:4px 11px;background:var(--bg);border:1px solid var(--border);border-radius:20px;font-size:12px;font-weight:500;color:var(--muted);cursor:pointer;transition:border-color .15s,color .15s;white-space:nowrap; }
.ado-poll-counter:hover { border-color:#0078d4;color:#0078d4; }
.ado-poll-counter.syncing { border-color:#0078d4;color:#0078d4; }
.ado-poll-counter.synced { border-color:var(--success);color:var(--success); }
.ado-poll-counter.error { border-color:var(--danger);color:var(--danger); }
.ado-poll-dot { width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0; }
.ado-poll-dot.pulse { animation:adoPulse 1s ease-in-out infinite; }
@keyframes adoPulse { 0%,100%{opacity:1} 50%{opacity:.3} }
/* ADO config popover (from counter) */
.ado-config-pop { position:absolute;top:calc(100% + 8px);left:0;width:460px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.14);z-index:20000;padding:18px 18px 14px; }
.ado-config-pop-title { font-size:13px;font-weight:700;margin-bottom:12px;display:flex;align-items:center;gap:6px; }
.ado-config-pop-hint { font-size:11px;color:var(--muted);margin-top:8px;line-height:1.5; }
.ado-config-pop-patlink { font-size:10px;color:#0078d4;text-decoration:none;white-space:nowrap; }
.ado-config-pop-patlink:hover { text-decoration:underline; }
.ado-config-pop-pat-help { font-size:10px;color:var(--muted);background:var(--bg);border:1px solid var(--border);border-radius:5px;padding:7px 9px;margin-top:6px;line-height:1.65; }
.acp-extra-pats-section { border-top:1px solid var(--border); margin-top:12px; padding-top:10px; }
.acp-extra-pats-header { margin-bottom:6px; }
.acp-extra-pats-title { font-size:12px; font-weight:600; color:var(--text); }
.acp-extra-pats-hint { font-size:10px; color:var(--muted); margin-left:6px; }
.acp-extra-pats-empty { font-size:11px; color:var(--muted); padding:4px 0; }
.acp-extra-pat-row { display:flex; gap:6px; align-items:center; margin-bottom:5px; }
.acp-extra-pat-org { flex:2; font-size:11px; padding:5px 7px; border:1px solid var(--border); border-radius:5px; background:var(--bg); color:var(--text); min-width:0; }
.acp-extra-pat-val { flex:1.5; font-size:11px; padding:5px 7px; border:1px solid var(--border); border-radius:5px; background:var(--bg); color:var(--text); min-width:0; }
.acp-extra-pat-ok { flex-shrink:0; width:18px; height:18px; border-radius:50%; background:#16a34a; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.acp-extra-pat-remove { flex-shrink:0; width:22px; height:22px; border:1px solid var(--border); border-radius:5px; background:transparent; cursor:pointer; font-size:13px; line-height:1; color:var(--muted); display:flex; align-items:center; justify-content:center; padding:0; }
.acp-extra-pat-remove:hover { color:var(--danger); border-color:var(--danger); }
/* ADO credentials badge (replaces inline org/project/PAT fields) */
.ado-creds-badge { margin-bottom:14px; }
.ado-creds-badge-ok { font-size:12px;color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;padding:8px 12px;display:flex;align-items:center;gap:8px;min-width:0; }
.ado-creds-badge-warn { font-size:12px;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;padding:8px 12px;display:flex;align-items:center;gap:8px;min-width:0; }
.ado-creds-badge-text { flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.ado-creds-badge-change { background:none;border:none;cursor:pointer;font-size:12px;color:#0078d4;padding:0;flex-shrink:0;text-decoration:underline;white-space:nowrap; }
/* Google Chat config button */
.gchat-btn { display:flex;align-items:center;gap:6px;padding:6px 12px;background:var(--surface);border:1px solid var(--border);border-radius:7px;font-size:13px;font-weight:500;color:var(--muted);cursor:pointer;transition:border-color .15s,color .15s; }
.gchat-btn:hover { border-color:#1a73e8;color:#1a73e8; }
.gchat-btn.active { border-color:#1a73e8;color:#1a73e8;background:#e8f0fe; }
.trello-btn { display:flex;align-items:center;gap:6px;padding:6px 12px;background:var(--surface);border:1px solid var(--border);border-radius:7px;font-size:13px;font-weight:500;color:var(--muted);cursor:pointer;transition:border-color .15s,color .15s; }
.trello-btn:hover { border-color:#0052cc;color:#0052cc; }
.trello-btn.active { border-color:#0052cc;color:#0052cc;background:#e6f0ff; }
[data-theme="dark"] .trello-btn.active { background:#0a1a3a; }
.trello-toast { position:fixed;bottom:24px;right:24px;background:#0052cc;color:#fff;padding:11px 18px;border-radius:9px;font-size:13px;font-weight:600;z-index:20000;box-shadow:0 4px 20px rgba(0,0,0,.25);display:flex;align-items:center;gap:8px;animation:trello-in .2s ease; }
.trello-toast-err { background:#dc2626; }
@keyframes trello-in { from { transform:translateY(16px);opacity:0; } to { transform:translateY(0);opacity:1; } }
.gchat-btn-dot { width:7px;height:7px;border-radius:50%;background:#34a853;flex-shrink:0; }
/* Google Chat config modal */
.gchat-modal-overlay { position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:18000;display:flex;align-items:center;justify-content:center; }
.gchat-modal-box { background:var(--surface);border-radius:14px;padding:32px;max-width:480px;width:90%;box-shadow:0 16px 48px rgba(0,0,0,.2); }
.gchat-modal-title { font-size:17px;font-weight:700;margin-bottom:4px;display:flex;align-items:center;gap:8px; }
.gchat-modal-sub { font-size:13px;color:var(--muted);margin-bottom:20px;line-height:1.6; }
.gchat-steps { background:var(--bg);border-radius:8px;padding:14px 16px;margin-bottom:18px;font-size:12px;color:var(--muted);line-height:2; }
.gchat-steps ol { padding-left:18px; }
.gchat-steps li { margin-bottom:2px; }
.gchat-notif-tag { display:inline-flex;align-items:center;gap:4px;font-size:10px;padding:2px 7px;border-radius:10px;background:#e8f0fe;color:#1a73e8;font-weight:600;margin-left:6px; }
/* QA env profiles */
.qa-env-profiles { display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:10px; }
.qa-env-profile-btn { padding:4px 12px;font-size:12px;border:1.5px solid var(--border);border-radius:6px;cursor:pointer;background:var(--surface);color:var(--muted);font-weight:500;transition:all .12s; }
.qa-env-profile-btn:hover,.qa-env-profile-btn.active { border-color:var(--accent);color:var(--accent);background:var(--accent-light); }
.qa-env-profile-btn.add-env { border-style:dashed; }
/* Role selection modal */
.role-modal-overlay { position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:20000;display:flex;align-items:center;justify-content:center; }
.role-modal-box { background:var(--surface);border-radius:16px;padding:40px 36px;max-width:520px;width:90%;box-shadow:0 20px 60px rgba(0,0,0,.22);text-align:center; }
.role-modal-logo { font-size:28px;font-weight:800;color:var(--accent);margin-bottom:8px;letter-spacing:-.5px; }
.role-modal-title { font-size:20px;font-weight:700;margin-bottom:8px; }
.role-modal-sub { font-size:14px;color:var(--muted);margin-bottom:32px;line-height:1.6; }
.role-choices { display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:20px; }
.role-choice-btn { display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 16px;border:2px solid var(--border);border-radius:12px;cursor:pointer;background:var(--surface);transition:border-color .15s,background .15s,transform .1s;text-align:center; }
.role-choice-btn:hover { border-color:var(--accent);background:var(--accent-light);transform:translateY(-2px); }
.role-choice-icon { font-size:32px;line-height:1; }
.role-choice-label { font-size:14px;font-weight:700;color:var(--text); }
.role-choice-desc { font-size:11px;color:var(--muted);line-height:1.4; }
.role-modal-hint { font-size:11px;color:var(--muted2); }
/* Role indicator in header */
.role-indicator { display:flex;align-items:center;gap:6px;padding:4px 10px;background:var(--bg);border:1px solid var(--border);border-radius:20px;font-size:12px;font-weight:500;color:var(--muted);cursor:pointer;transition:border-color .12s; }
.role-indicator:hover { border-color:var(--accent);color:var(--accent); }
.role-indicator-dot { width:7px;height:7px;border-radius:50%;background:var(--accent); }
.role-indicator.role-dev .role-indicator-dot { background:#7c3aed; }
.role-indicator.role-sm .role-indicator-dot { background:#16a34a; }
/* Guide popup (contextual toast) */
.guide-popup { position:fixed;bottom:24px;right:24px;width:320px;background:var(--surface);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.14);z-index:15000;padding:18px 18px 14px;transition:opacity .25s,transform .25s;transform:translateY(0);opacity:1; }
.guide-popup.hiding { opacity:0;transform:translateY(12px); }
.guide-popup-header { display:flex;align-items:flex-start;gap:10px;margin-bottom:8px; }
.guide-popup-icon { font-size:22px;line-height:1;flex-shrink:0; }
.guide-popup-title { font-size:13px;font-weight:700;color:var(--text);flex:1;line-height:1.3; }
.guide-popup-close { background:none;border:none;cursor:pointer;font-size:16px;color:var(--muted);padding:0;line-height:1;flex-shrink:0; }
.guide-popup-close:hover { color:var(--text); }
.guide-popup-body { font-size:12px;color:var(--muted);line-height:1.6;margin-bottom:10px; }
.guide-popup-actions { display:flex;gap:8px;justify-content:flex-end; }
.guide-popup-btn { padding:5px 14px;font-size:12px;font-weight:600;border-radius:6px;cursor:pointer;border:none;background:var(--accent);color:#fff;transition:opacity .12s; }
.guide-popup-btn:hover { opacity:.88; }
.guide-popup-btn.secondary { background:var(--bg);color:var(--text);border:1px solid var(--border); }
/* Dev fast lane: wizard lock overlay */
.dev-locked-overlay { position:absolute;inset:0;background:rgba(244,244,245,.82);border-radius:var(--radius);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:10;cursor:default; }
.dev-locked-msg { text-align:center;padding:20px; }
.dev-locked-icon { font-size:28px;margin-bottom:8px; }
.dev-locked-text { font-size:13px;color:var(--muted);line-height:1.6;font-weight:500; }
/* Dev landing hero */
.dev-landing-hero { background:linear-gradient(135deg,#ede9fe 0%,#eef2ff 100%);border:1px solid #ddd6fe;border-radius:14px;padding:28px 32px;margin-bottom:28px;display:flex;align-items:center;gap:20px; }
.dev-landing-hero-icon { font-size:42px;flex-shrink:0; }
.dev-landing-hero-title { font-size:18px;font-weight:700;margin-bottom:4px;color:#3730a3; }
.dev-landing-hero-sub { font-size:13px;color:#4338ca;line-height:1.5; }
/* ─── Dark mode ─── */
[data-theme="dark"] {
  --bg: #09090b; --surface: #18181b; --border: #27272a;
  --text: #fafafa; --muted: #a1a1aa; --muted2: #71717a;
  --accent: #818cf8; --accent-light: #1e1b4b; --accent-fg: #fff;
  --success: #4ade80; --success-light: #052e16;
  --warning: #fbbf24; --danger: #f87171;
  --term-bg: #030712; --term-text: #d4d4d8;
  --hover: #252535;
}
[data-theme="dark"] .badge { background:#2d2008; color:#fbbf24; }
[data-theme="dark"] .ado-note { color:#fbbf24; background:#1c1500; border-color:#4d3800; }
[data-theme="dark"] .role-tech { color:#4ade80; background:#052e16; border-color:#166534; }
[data-theme="dark"] .role-dev { color:#a78bfa; background:#2e1065; border-color:#5b21b6; }
[data-theme="dark"] .dev-note { color:#c4b5fd; background:#1a0a2e; border-color:#5b21b6; }
[data-theme="dark"] .file-btn { background:#27272a; border-color:#3f3f46; color:#d4d4d8; }
[data-theme="dark"] .file-btn:hover { background:#3f3f46; border-color:#71717a; }
[data-theme="dark"] .privacy-note { background:#052e16; border-color:#166534; color:#4ade80; }
[data-theme="dark"] .hier-ai { color:#34d399; background:#064e3b; }
[data-theme="dark"] .hier-you { background:#312e81; color:#c7d2fe; }
[data-theme="dark"] .hierarchy { border-color:#312e81; }
[data-theme="dark"] .dev-landing-hero { background:linear-gradient(135deg,#1e1b4b 0%,#1a1033 100%); border-color:#4f46e5; }
[data-theme="dark"] .dev-landing-hero-title { color:#a5b4fc; }
[data-theme="dark"] .dev-landing-hero-sub { color:#818cf8; }
[data-theme="dark"] .proto-frame { background:#18181b; }
[data-theme="dark"] .proto-loading { background:#09090b; }
[data-theme="dark"] .dev-locked-overlay { background:rgba(9,9,11,.88); }
[data-theme="dark"] .badge-running { background:#3d2400; color:#fbbf24; }
[data-theme="dark"] .badge-pass { background:#052e16; color:#4ade80; }
[data-theme="dark"] .badge-fail { background:#3b0a0a; color:#f87171; }
[data-theme="dark"] .badge-queued { background:#0c2a40; color:#38bdf8; }
[data-theme="dark"] .qa-queue-badge { background:#0c2a40; color:#38bdf8; }
[data-theme="dark"] .qa-progress-badge { background:#1e1e2e; border-color:#3a3a5c; color:#94a3b8; }
[data-theme="dark"] .test-skip { background:#2d2008; color:#fbbf24; }
[data-theme="dark"] .env-dev { background:#1e3a5f; color:#93c5fd; }
[data-theme="dark"] .env-uat { background:#2d1a00; color:#fcd34d; }
[data-theme="dark"] .env-prd { background:#052e16; color:#4ade80; }
[data-theme="dark"] .env-local { background:#1a0a2e; color:#c4b5fd; }
[data-theme="dark"] .env-other { background:#27272a; color:#d4d4d8; }
[data-theme="dark"] .sync-diff-row.changed { background:#2d2008; border-color:#a16207; }
[data-theme="dark"] .sync-diff-row.only-ado { background:#3b0a0a; border-color:#7f1d1d; }
[data-theme="dark"] .sync-diff-row.only-local { background:#052e16; border-color:#14532d; }
[data-theme="dark"] .ado-warn-banner { background:#1c1500; border-color:#4d3800; color:#fcd34d; }
[data-theme="dark"] .ado-warn-banner strong { color:#fbbf24; }
[data-theme="dark"] .ado-warn-banner code { background:#2d2008; }
[data-theme="dark"] .ado-error-inline { background:#3b0a0a; border-color:#7f1d1d; color:#fca5a5; }
[data-theme="dark"] .wi-req-fields-block { background:#1c1200; border-color:#4d3800; }
[data-theme="dark"] .wi-req-field-label { color:#fcd34d; }
[data-theme="dark"] .mcp-ok { background:#052e16; border-color:#166534; color:#4ade80; }
[data-theme="dark"] .mcp-warn { background:#1a0a2e; border-color:#5b21b6; color:#c4b5fd; }
[data-theme="dark"] .mcp-warn a { color:#a78bfa; }
[data-theme="dark"] .ado-creds-badge-ok { color:#4ade80; background:#052e16; border-color:#166534; }
[data-theme="dark"] .ado-creds-badge-warn { color:#fcd34d; background:#1c1500; border-color:#4d3800; }
[data-theme="dark"] .sb-navigate { background:#1e3a5f; color:#93c5fd; }
[data-theme="dark"] .sb-click { background:#052e16; color:#4ade80; }
[data-theme="dark"] .sb-assert { background:#2c1400; color:#fb923c; }
[data-theme="dark"] .sb-screenshot { background:#27272a; color:#a1a1aa; }
[data-theme="dark"] .sb-wait { background:#1a0a2e; color:#a78bfa; }
[data-theme="dark"] .sb-fill { background:#2d2008; color:#fbbf24; }
[data-theme="dark"] .gchat-btn.active { background:#1e3a5f; }
[data-theme="dark"] .gchat-notif-tag { background:#1e3a5f; color:#93c5fd; }
[data-theme="dark"] .qa-add-btn:hover { background:#2a2456; }
[data-theme="dark"] .qa-remove-btn:hover { background:#3b0a0a; border-color:#7f1d1d; }
/* Theme toggle button */
.theme-toggle { display:flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:8px; background:transparent; border:1px solid var(--border); color:var(--muted); cursor:pointer; transition:background .15s,border-color .15s,color .15s; flex-shrink:0; padding:0; margin-left:8px; }
.theme-toggle:hover { background:var(--bg); border-color:var(--accent); color:var(--accent); }
/* ── Atividade do Time ────────────────────────────────────────── */
.landing-activity-strip { display:flex; align-items:center; gap:16px; padding:14px 18px; background:var(--surface); border:1px solid var(--border); border-radius:12px; cursor:pointer; transition:border-color .15s; }
.landing-activity-strip:hover { border-color:var(--accent); }
.activity-strip-preview { display:flex; flex-wrap:wrap; gap:6px; flex:1; min-width:0; }
.activity-strip-chip { display:flex; align-items:center; gap:5px; font-size:11px; background:var(--bg); border:1px solid var(--border); border-radius:20px; padding:3px 9px; white-space:nowrap; }
.activity-strip-author { font-weight:600; color:var(--text); }
.activity-strip-action { color:var(--muted); }
.activity-strip-repo { font-family:monospace; color:var(--accent); font-size:10px; }
.activity-strip-time { color:var(--muted); font-size:10px; }
.activity-badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:#dc2626; color:#fff; font-size:11px; font-weight:700; flex-shrink:0; }

/* Activity view items */
.activity-item { display:flex; gap:12px; padding:12px 14px; background:var(--surface); border:1px solid var(--border); border-radius:10px; }
.activity-item-icon { font-size:20px; flex-shrink:0; line-height:1.3; }
.activity-item-body { flex:1; min-width:0; }
.activity-item-header { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-bottom:4px; }
.activity-item-author { font-size:13px; font-weight:700; color:var(--text); }
.activity-item-action { font-size:12px; color:var(--muted); }
.activity-item-repo { font-size:12px; font-family:monospace; color:var(--accent); text-decoration:none; }
.activity-item-repo:hover { text-decoration:underline; }
.activity-branch { font-size:11px; background:var(--bg); border:1px solid var(--border); border-radius:4px; padding:1px 6px; color:var(--muted); font-family:monospace; }
.activity-commit-count { font-size:11px; background:#f0f9ff; border:1px solid #bae6fd; border-radius:4px; padding:1px 6px; color:#0369a1; font-family:monospace; }
[data-theme="dark"] .activity-commit-count { background:#0c2a3a; border-color:#0369a1; color:#7dd3fc; }
.activity-item-time { font-size:11px; color:var(--muted); margin-left:auto; white-space:nowrap; }
.activity-item-title { font-size:13px; color:var(--text); margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-item-desc { font-size:11px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Toast notification */
.activity-toast { position:fixed; bottom:24px; right:24px; z-index:99999; display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:13px 16px; box-shadow:0 8px 28px rgba(0,0,0,.18); font-size:13px; max-width:380px; transform:translateY(20px); opacity:0; transition:transform .3s,opacity .3s; pointer-events:none; }
.activity-toast.activity-toast-in { transform:translateY(0); opacity:1; pointer-events:auto; }
.activity-toast-btn { flex-shrink:0; padding:5px 12px; border:1px solid var(--accent); border-radius:6px; background:transparent; color:var(--accent); font-size:12px; cursor:pointer; font-weight:600; }
.activity-toast-btn:hover { background:var(--accent); color:#fff; }
.activity-period-row { display:flex; align-items:center; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.activity-filter-panel { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:12px 14px; margin-bottom:16px; }
.activity-filter-controls { display:flex; gap:6px; align-items:center; margin-bottom:10px; flex-wrap:wrap; }
.activity-filter-list { max-height:220px; overflow-y:auto; display:flex; flex-direction:column; gap:3px; }
.activity-repo-row { display:flex; align-items:center; gap:8px; padding:5px 8px; border-radius:6px; cursor:pointer; font-size:13px; transition:background .12s; }
.activity-repo-row:hover { background:var(--bg); }
.activity-repo-name { flex:1; font-family:monospace; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.activity-repo-proj { font-size:10px; color:var(--muted); font-family:monospace; flex-shrink:0; }
.activity-repo-org { font-size:10px; color:var(--muted); background:var(--bg); padding:1px 6px; border-radius:4px; flex-shrink:0; }
