:root {
  --ink: #17221f;
  --muted: #71817b;
  --line: #e2e9e5;
  --canvas: #f4f7f5;
  --surface: #ffffff;
  --green: #176a49;
  --green-soft: #e8f4ec;
  --blue: #3f74dd;
  --orange: #e48658;
  --danger: #b94a42;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px Manrope, "Noto Sans SC", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: 248px; padding: 26px 14px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px; font-size: 19px; font-weight: 800; }
.brand-mark { display: grid; width: 27px; height: 27px; place-items: center; color: #e8ffae; background: var(--green); border-radius: 7px; font: 500 16px "DM Mono", monospace; }
.sidebar nav { display: grid; gap: 5px; margin-top: 42px; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; color: #60716a; text-decoration: none; font-weight: 700; border-radius: 6px; }
.nav-item svg { width: 18px; }
.nav-item b { margin-left: auto; padding: 3px 6px; color: #77857f; background: #eef2f0; border-radius: 4px; font: 500 10px "DM Mono", monospace; }
.nav-item.active { color: var(--green); background: var(--green-soft); }
.nav-item.active::before { width: 3px; height: 18px; margin-left: -12px; content: ""; background: #238b5e; border-radius: 2px; }
.sidebar-bottom { margin-top: auto; }
.workspace-label { padding: 0 10px 8px; color: #9aa7a2; font-size: 10px; font-weight: 800; }
.workspace { display: flex; align-items: center; width: 100%; height: 48px; gap: 9px; padding: 8px; color: #35463f; text-align: left; background: #f4f7f5; border: 0; border-radius: 7px; font-weight: 700; }
.workspace-logo { display: grid; width: 26px; height: 26px; place-items: center; color: #f7c774; background: #283a51; border-radius: 6px; font-size: 11px; }
.workspace svg, .user > svg { width: 15px; margin-left: auto; color: #98a49f; }
.user { display: flex; align-items: center; gap: 9px; padding: 17px 8px 0; margin-top: 18px; border-top: 1px solid var(--line); }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; color: var(--green); background: #dbece3; border-radius: 50%; font-size: 10px; font-weight: 800; }
.user strong, .user small { display: block; }
.user strong { font-size: 12px; }
.user small { margin-top: 2px; color: var(--muted); font-size: 10px; }

main { min-height: 100vh; margin-left: 248px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 67px; padding: 0 42px; background: var(--surface); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 8px; color: #8a9792; font-size: 12px; }
.crumb span { color: #35453e; font-weight: 700; }
.crumb svg { width: 14px; }
.top-actions, .heading-actions { display: flex; gap: 9px; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; color: #60716a; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.icon-button svg { width: 17px; }
.notification { position: relative; }
.notification::after { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; content: ""; background: #df6353; border: 2px solid #fff; border-radius: 50%; }
.page-heading { display: flex; align-items: end; justify-content: space-between; padding: 33px 42px 25px; }
.eyebrow { margin: 0 0 7px; color: #4b9071; font: 500 10px "DM Mono", monospace; letter-spacing: .08em; }
h1 { margin: 0; font-size: 25px; font-weight: 800; }
.subtitle { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.secondary-button, .run-button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 6px; font-weight: 800; }
.secondary-button { color: #566760; background: #fff; border: 1px solid var(--line); }
.run-button { color: #fff; background: var(--green); border: 1px solid #0c5639; box-shadow: 0 4px 12px #176a4926; }
.secondary-button svg, .run-button svg { width: 16px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 42px 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.metric { display: flex; align-items: center; justify-content: space-between; min-height: 83px; padding: 17px 19px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric span { color: var(--muted); font-size: 11px; font-weight: 700; }
.metric strong { display: block; margin-top: 6px; font: 600 22px "DM Mono", monospace; }
.metric em { color: #9ba7a2; font-size: 15px; font-style: normal; }
.trend { display: flex; align-items: center; gap: 3px; font: 600 10px "DM Mono", monospace; }
.trend svg { width: 12px; }
.up { color: #20915d; }
.neutral { color: #8d9994; }
.coverage-dots { display: flex; gap: 4px; }
.coverage-dots b { width: 9px; height: 9px; background: #65b982; border-radius: 50%; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 920px); margin: 0 42px 38px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 920px); margin: 0 42px 38px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.case-editor, .execution-panel, .runtime-panel { padding: 21px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; }
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.case-meta { display: grid; grid-template-columns: 1.6fr 1fr 1.6fr 1fr; gap: 10px; margin: 22px 0 18px; }
.case-meta label { display: grid; gap: 5px; color: #75847e; font-size: 10px; font-weight: 800; }
.case-meta input, .case-meta select { width: 100%; height: 34px; padding: 0 9px; color: #30413a; background: #fff; border: 1px solid #dce5e1; border-radius: 5px; font-size: 12px; font-weight: 600; outline: none; }
.target-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.target-tab { display: flex; align-items: center; gap: 7px; height: 47px; padding: 0 2px; margin-bottom: -1px; color: #77857f; background: none; border: 0; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 800; }
.target-tab.selected { color: var(--green); border-color: #21855b; }
.target-tab small { padding: 2px 4px; color: #739488; background: #edf5f0; border-radius: 3px; font: 500 9px "DM Mono", monospace; }
.target-icon { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 5px; }
.target-icon svg { width: 12px; }
.api { color: var(--blue); background: #e8efff; }
.h5 { color: var(--orange); background: #fff0e8; }
.device-strip { display: flex; align-items: center; gap: 7px; height: 51px; padding: 0 11px; margin: 14px 0 16px; background: #f7faf8; border: 1px solid #dce7e1; border-radius: 6px; }
.status-dot { width: 7px; height: 7px; background: #30b378; border-radius: 50%; box-shadow: 0 0 0 3px #dff5e9; }
.device-strip b, .device-strip small { display: block; }
.device-strip b { font-size: 11px; }
.device-strip small { margin-top: 3px; color: #84918c; font: 400 9px "DM Mono", monospace; }
.viewport-switch { display: flex; margin-left: auto; overflow: hidden; border: 1px solid #dce7e1; border-radius: 5px; }
.viewport-button { padding: 6px 8px; color: #74827c; background: #fff; border: 0; border-right: 1px solid #dce7e1; font-size: 10px; font-weight: 800; }
.viewport-button:last-child { border-right: 0; }
.viewport-button.selected { color: #18744f; background: #e4f3ea; }

.steps { display: grid; gap: 8px; }
.step { display: grid; grid-template-columns: 15px 28px 1fr 24px; gap: 8px; min-height: 100px; padding: 11px 9px 9px; background: #fff; border: 1px solid #e1e9e5; border-radius: 6px; }
.step:hover { border-color: #b6d8c7; }
.grab { display: flex; align-items: center; color: #c0cac5; }
.grab svg { width: 15px; }
.step-number { padding-top: 3px; color: #8c9a94; font: 500 11px "DM Mono", monospace; }
.step-content { min-width: 0; }
.step-type { display: flex; align-items: center; gap: 4px; color: #32745a; font-size: 10px; font-weight: 800; }
.step-type svg { width: 12px; }
.step-type.assert { color: #937128; }
.step-type.query { color: #596cac; }
.step textarea { width: 100%; height: 49px; padding: 6px 0 0; color: #26352f; resize: none; background: transparent; border: 0; outline: none; font: 500 12px/1.55 "Noto Sans SC", sans-serif; }
.step-menu { align-self: start; padding: 1px; color: #a2afa9; background: none; border: 0; }
.step-menu svg { width: 17px; }
.add-step { width: 100%; height: 37px; margin-top: 11px; color: #367c5c; background: #f9fcfa; border: 1px dashed #b9d7c6; border-radius: 6px; font-size: 11px; font-weight: 800; }
.add-step svg { width: 15px; margin-right: 4px; vertical-align: middle; }

.right-rail { display: grid; gap: 19px; align-content: start; }
.waiting-pill { padding: 4px 6px; color: #75837d; background: #edf2ef; border-radius: 4px; font: 500 9px "DM Mono", monospace; }
.progress-wrap { margin-top: 22px; }
.progress-label { display: flex; justify-content: space-between; color: #728079; font-size: 10px; font-weight: 700; }
.progress { height: 5px; margin-top: 7px; overflow: hidden; background: #edf1ef; border-radius: 4px; }
.progress span { display: block; width: 0; height: 100%; background: #2ea76f; transition: width .4s ease; }
.run-log { height: 117px; padding-top: 12px; margin-top: 18px; overflow: auto; border-top: 1px solid #edf1ef; }
.log-line { display: grid; grid-template-columns: 59px 1fr; gap: 7px; color: #596961; font: 400 10px/1.8 "DM Mono", monospace; }
.log-line time { color: #a0aca6; }
.log-line.success span { color: #1b8760; }
.log-line.error span, .log-line.warn span { color: var(--danger); }
.spark { width: 17px; color: #8d62c5; }
.strategy-row { display: flex; align-items: center; gap: 9px; padding: 14px 0; border-bottom: 1px solid #edf1ef; }
.strategy-row:last-child { padding-bottom: 0; border: 0; }
.strategy-icon { display: grid; width: 27px; height: 27px; place-items: center; color: #368461; background: #eef7f1; border-radius: 6px; }
.strategy-icon svg { width: 15px; }
.strategy-row b, .strategy-row small { display: block; }
.strategy-row b { font-size: 11px; }
.strategy-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.online { padding: 3px 5px; margin-left: auto; color: #27835d; background: #ecf8f1; border-radius: 3px; font: 600 9px "DM Mono", monospace; }
.online.offline { color: #a4433c; background: #fff0ee; }
.toggle { position: relative; width: 28px; height: 17px; margin-left: auto; }
.toggle input { width: 0; height: 0; opacity: 0; }
.toggle span { position: absolute; inset: 0; background: #cbd5d0; border-radius: 10px; }
.toggle span::before { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; content: ""; background: #fff; border-radius: 50%; transition: .2s; }
.toggle input:checked + span { background: #36a66f; }
.toggle input:checked + span::before { transform: translateX(11px); }
.report-preview { padding: 17px 18px; color: #fff; background: #183e32; border-radius: 8px; box-shadow: 0 6px 13px #0e3e2c1f; }
.report-top { display: flex; align-items: center; gap: 9px; }
.report-icon { display: grid; width: 28px; height: 28px; place-items: center; color: #d1ff6c; background: #3a6958; border-radius: 6px; }
.report-icon svg { width: 16px; }
.report-top b, .report-top small { display: block; }
.report-top b { font-size: 11px; }
.report-top small { margin-top: 3px; color: #b4c9c0; font-size: 9px; }
.report-top .icon-button { width: 27px; height: 27px; margin-left: auto; color: #d9f7bd; background: #2e594a; border: 0; }
.report-top .icon-button svg { width: 15px; }
.report-score { display: flex; align-items: baseline; gap: 7px; margin-top: 17px; }
.report-score strong { color: #d7ff73; font: 600 20px "DM Mono", monospace; }
.report-score span { color: #c1d1c9; font-size: 10px; }
.report-score b { margin-left: auto; color: #d7ff73; font: 600 10px "DM Mono", monospace; }
.toast { position: fixed; bottom: 24px; left: 50%; display: flex; align-items: center; gap: 7px; padding: 10px 14px; color: #fff; pointer-events: none; opacity: 0; background: #1c3f34; border-radius: 6px; box-shadow: 0 8px 22px #183e3238; font-size: 12px; transform: translate(-50%, 20px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 15px; color: #d1f36b; }
.user-button { color: #35463f; text-align: left; background: none; border: 0; }.user-button:hover { color: var(--green); }
.login-screen { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 24px; background: #f3f7f4; }.login-screen[hidden] { display: none; }.login-card { display: grid; width: min(100%, 390px); gap: 14px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 36px #173b2a18; }.login-card h1 { margin: 10px 0 0; font-size: 22px; }.login-card p { margin: 0; color: var(--muted); font-size: 12px; }.login-card label, .profile-form label { display: grid; gap: 6px; color: #61716a; font-size: 11px; font-weight: 800; }.login-card input, .profile-form input { height: 38px; padding: 0 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; font: inherit; }.login-card small { color: #75847e; font-size: 10px; text-align: center; }.login-brand { display: flex; align-items: center; gap: 9px; color: #1e342b; font-size: 15px; }.form-error { color: #b74444 !important; }.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 18px; margin: 0 42px 38px; }.profile-panel { padding: 21px; }.profile-form { display: grid; gap: 14px; margin-top: 20px; }.profile-form .run-button, .profile-form .secondary-button { justify-self: start; margin-top: 4px; }.logout-button { display: inline-flex; align-items: center; gap: 7px; padding: 0; margin-top: 24px; color: #b74444; background: none; border: 0; font-weight: 800; }.logout-button svg { width: 15px; }
.assets { margin: 0 42px 38px; padding: 21px; }
.route-view[hidden] { display: none; }
.asset-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 180px 36px; align-items: center; gap: 9px; margin-top: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 7px; color: #527667; text-decoration: none; font-size: 11px; font-weight: 800; }
.back-link svg { width: 14px; }
.project-create { display: flex; align-items: end; gap: 10px; margin-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.project-create label { display: grid; flex: 1; gap: 6px; color: #75847e; font-size: 10px; font-weight: 800; }
.project-create input { width: 100%; height: 36px; padding: 0 10px; color: #31423b; background: #fff; border: 1px solid #dce5e1; border-radius: 6px; font: inherit; outline: 0; }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 18px; }
.project-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 86px; padding: 14px; background: #fbfdfc; border: 1px solid #e1e9e5; border-radius: 6px; }
.project-card:hover { background: #f2f9f5; border-color: #b7dbc8; }
.project-card b, .project-card small { display: block; }
.project-card b { color: #31423b; font-size: 13px; }
.project-card small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.project-actions { display: flex; flex: 0 0 auto; gap: 4px; }
.dashboard-targets { display: flex; gap: 8px; margin: 0 42px 18px; }
.api-steps { display: grid; gap: 12px; }
.api-request { align-items: start; }
.api-request { grid-template-columns: 28px minmax(0, 1fr); }
.api-request .step-content { min-width: 0; }
.api-request label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.api-request input, .api-request select, .api-request textarea, .asset-toolbar select { width: 100%; padding: 9px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.api-request textarea { min-height: 74px; font: 12px/1.4 "DM Mono", monospace; }
.api-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.api-preview { padding: 14px; margin-top: 14px; background: #f8fbf9; border: 1px solid #dce7e1; border-radius: 6px; }
.api-preview h3 { margin: 0 0 8px; color: #3c5a4d; font-size: 12px; }
.api-preview pre { max-height: 220px; padding: 10px; margin: 0; overflow: auto; color: #31423b; background: #fff; border: 1px solid #e1e9e5; border-radius: 4px; font: 11px/1.45 "DM Mono", monospace; }
.asset-search { display: flex; align-items: center; flex: 1; gap: 8px; height: 36px; padding: 0 10px; background: #fff; border: 1px solid #dce5e1; border-radius: 6px; }
.asset-toolbar select { width: 180px; height: 36px; }
.asset-search { min-width: 0; }
.asset-search svg { width: 15px; color: #83918b; }
.asset-search input { min-width: 0; width: 100%; color: #31423b; background: transparent; border: 0; outline: 0; font-size: 12px; }
.asset-selection { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; margin-top: 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.asset-selection > span { color: #61716a; font-size: 11px; font-weight: 800; }
.selection-actions { display: flex; gap: 8px; }
.asset-selection .run-button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
.asset-selection .secondary-button:disabled { cursor: not-allowed; opacity: .48; }
.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.case-item { display: grid; grid-template-columns: 15px 29px minmax(0, 1fr) 22px; align-items: center; gap: 10px; padding: 13px; color: #31423b; text-align: left; background: #fbfdfc; border: 1px solid #e1e9e5; border-radius: 6px; }
.case-item:hover { background: #f2f9f5; border-color: #b7dbc8; }
.case-select { width: 15px; height: 15px; margin: 0; accent-color: var(--green); }
.case-item-icon { display: grid; width: 29px; height: 29px; place-items: center; color: var(--green); background: #e8f4ec; border-radius: 6px; }
.case-item-icon svg, .case-open svg { width: 15px; }
.case-open { display: grid; width: 22px; height: 22px; padding: 0; place-items: center; color: #9aa7a2; background: transparent; border: 0; border-radius: 4px; }
.case-open:hover { color: var(--green); background: #e8f4ec; }
.case-row-actions { display: flex; align-items: center; gap: 4px; min-width: 106px; }
.case-row-actions .case-open { width: 30px; height: 30px; border: 1px solid transparent; }
.case-row-actions .case-open:hover { border-color: #c9e2d4; }
.case-row-actions .case-open.danger:hover { color: var(--danger); background: #fff0ee; border-color: #f0cdc8; }
.assets-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid #e1e9e5; border-radius: 6px; }
.assets-table { width: 100%; min-width: 650px; border-collapse: collapse; }
.assets-table th, .assets-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #edf1ef; }
.assets-table th { color: #75847e; background: #f8fbf9; font-size: 10px; font-weight: 800; }
.assets-table td { color: #55655e; font-size: 11px; }
.assets-table tbody tr:last-child td { border-bottom: 0; }
.assets-table tbody tr:hover { background: #fbfdfc; }
.assets-table td:nth-child(2) { display: flex; align-items: center; gap: 9px; color: #31423b; }
.assets-table td:nth-child(5) { width: 118px; }
.assets-table .empty-state { text-align: center; }
.case-item b, .case-item small { display: block; }
.case-item b { font-size: 11px; }
.case-item small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.empty-state { grid-column: 1 / -1; padding: 14px 0; margin: 0; color: var(--muted); font-size: 12px; }
.batch-history { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.batch-history-head h3 { margin: 0; font-size: 14px; }
.batch-history-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
#batchHistoryList { display: grid; gap: 9px; margin-top: 14px; }
.batch-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; padding: 13px; background: #fbfdfc; border: 1px solid #e1e9e5; border-radius: 6px; }
.batch-item b, .batch-item small { display: block; }
.batch-item b { font-size: 11px; }
.batch-item small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.batch-item p { margin: 0; color: #66766f; font: 500 10px "DM Mono", monospace; }
.batch-status { align-self: start; padding: 4px 6px; border-radius: 4px; font: 600 9px "DM Mono", monospace; }
.batch-status.passed { color: #178457; background: #e8f8ef; }
.batch-status.failed { color: #bd3f3f; background: #ffebeb; }
.batch-status.running, .batch-status.queued { color: #876519; background: #fff5dc; }
.batch-reports { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; }
.batch-reports a { padding: 5px 7px; color: #276d50; text-decoration: none; background: #edf6f0; border-radius: 4px; font-size: 10px; font-weight: 700; }
.batch-reports a:hover { background: #dff0e6; }
.quality-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
.quality-grid .panel { min-height: 220px; padding: 20px; }
.chart-empty { display: grid; min-height: 150px; place-items: center; white-space: pre-line; color: var(--muted); font-size: 12px; text-align: center; }
.dashboard-chart { min-height: 170px; }
.dashboard-chart-content { display: grid; grid-template-columns: minmax(230px, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: center; min-height: 170px; padding: 18px 0 2px; }
.dashboard-trend-summary { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; }
.dashboard-donut-wrap { position: relative; display: grid; width: 120px; height: 120px; place-items: center; }
.dashboard-donut { width: 120px; height: 120px; overflow: visible; transform: rotate(-90deg); }
.dashboard-donut-track, .dashboard-donut-segment { fill: none; stroke-width: 5; }
.dashboard-donut-track { stroke: #edf1ef; }
.dashboard-donut-segment { stroke-linecap: butt; }
.dashboard-donut-segment.pass { stroke: #238f60; }
.dashboard-donut-segment.fail { stroke: #d15c5c; }
.dashboard-donut-segment.web { stroke: #1a7fb5; }
.dashboard-donut-segment.api { stroke: #d88927; }
.dashboard-donut-segment { transition: stroke-dasharray .45s ease, stroke-dashoffset .45s ease; }
.dashboard-donut-center { position: absolute; display: grid; place-items: center; text-align: center; pointer-events: none; }
.dashboard-donut-center b { color: #263c32; font: 700 17px "DM Mono", monospace; }
.dashboard-donut-center small, .dashboard-legend { color: var(--muted); font-size: 10px; }
.dashboard-legend { display: grid; gap: 7px; min-width: 0; }
.dashboard-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-legend-row strong { color: #3a5044; font: 600 10px "DM Mono", monospace; white-space: nowrap; }
.dashboard-legend-label { display: inline-flex; min-width: 0; align-items: center; gap: 6px; }
.dashboard-legend-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.dashboard-legend-dot.pass { background: #238f60; }.dashboard-legend-dot.fail { background: #d15c5c; }.dashboard-legend-dot.total { background: #a5b2ac; }.dashboard-legend-dot.web { background: #1a7fb5; }.dashboard-legend-dot.api { background: #d88927; }
.dashboard-daily-scroll { min-width: 0; overflow-x: auto; padding-bottom: 4px; }
.dashboard-daily-bars { display: flex; align-items: end; min-width: 252px; height: 128px; gap: 8px; border-bottom: 1px solid #e8eeea; }
.dashboard-daily-bar { display: grid; flex: 1; min-width: 22px; height: 100%; grid-template-rows: 1fr auto; gap: 6px; justify-items: center; color: var(--muted); font-size: 9px; }
.dashboard-daily-bar-stack { display: flex; width: 100%; height: 100%; align-items: end; flex-direction: column-reverse; justify-content: end; background: #f0f4f2; border-radius: 3px 3px 0 0; overflow: hidden; }
.dashboard-daily-bar-fill { width: 100%; }
.dashboard-daily-bar-fill { transition: height .45s ease; }
.dashboard-daily-bar-fill.pass { background: #3aa877; }.dashboard-daily-bar-fill.fail { background: #d96b6b; }
.dashboard-target-chart { grid-template-columns: 132px minmax(0, 1fr); }
.quality-list { display: grid; gap: 8px; margin-top: 14px; }
.quality-row, .execution-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; color: #41534b; background: #f8fbf9; border: 1px solid #e1e9e5; border-radius: 6px; font-size: 11px; text-align: left; }
.execution-layout { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.4fr); gap: 18px; margin: 0 42px 38px; }
.execution-item { width: 100%; cursor: pointer; }
.execution-item.selected { color: #1b7650; background: #edf7f0; border-color: #9fceb1; }
.execution-filters { display: flex; gap: 8px; margin-bottom: 14px; }
.execution-filters select { height: 36px; padding: 0 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.execution-conclusion { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 2px 0 16px; border-bottom: 1px solid var(--line); }
.execution-conclusion-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 6px; }
.execution-conclusion-icon svg { width: 20px; }
.execution-conclusion strong, .execution-conclusion p { display: block; }
.execution-conclusion strong { font-size: 15px; }
.execution-conclusion p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.execution-state { padding: 4px 6px; border-radius: 4px; font: 600 9px "DM Mono", monospace; }
.execution-conclusion.passed { color: #178457; }.execution-conclusion.passed .execution-conclusion-icon, .execution-conclusion.passed .execution-state { background: #e8f8ef; }
.execution-conclusion.failed { color: #bd3f3f; }.execution-conclusion.failed .execution-conclusion-icon, .execution-conclusion.failed .execution-state { background: #ffebeb; }
.execution-conclusion.attention { color: #805b13; }.execution-conclusion.attention .execution-conclusion-icon, .execution-conclusion.attention .execution-state { background: #fff4d9; }
.execution-conclusion.running { color: #28795b; }.execution-conclusion.running .execution-conclusion-icon, .execution-conclusion.running .execution-state { background: #e8f5ee; }
.execution-conclusion.running .execution-conclusion-icon svg, .timeline-step.running .timeline-icon svg { animation: execution-spin 1.1s linear infinite; }
.execution-progress-summary { display: grid; grid-template-columns: 92px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.execution-progress-ring { display: grid; width: 76px; height: 76px; place-content: center; text-align: center; border: 7px solid #e2eee7; border-top-color: #259465; border-radius: 50%; transform: rotate(calc(var(--progress) * 1.8deg)); }
.execution-progress-ring b, .execution-progress-ring span { transform: rotate(calc(var(--progress) * -1.8deg)); }.execution-progress-ring b { font: 700 13px "DM Mono", monospace; }.execution-progress-ring span { color: var(--muted); font-size: 8px; }
.execution-stat { display: grid; gap: 3px; }.execution-stat b { color: #263c32; font: 700 14px "DM Mono", monospace; }.execution-stat span { color: var(--muted); font-size: 10px; }
.execution-timeline { display: grid; gap: 10px; margin-top: 17px; }.execution-timeline h3 { margin: 0; font-size: 12px; }
.timeline-step { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px 0; border-bottom: 1px solid #edf1ef; }.timeline-step:last-child { border-bottom: 0; }
.timeline-icon { display: grid; width: 21px; height: 21px; place-items: center; color: #7a8a82; background: #edf2ef; border-radius: 50%; }.timeline-icon svg { width: 13px; }.timeline-step.passed .timeline-icon { color: #178457; background: #e8f8ef; }.timeline-step.failed .timeline-icon { color: #bd3f3f; background: #ffebeb; }.timeline-step.running .timeline-icon { color: #28795b; background: #e8f5ee; }
.timeline-step b, .timeline-step small { display: block; }.timeline-step b { color: #33473d; font-size: 11px; }.timeline-step small { margin-top: 3px; color: var(--muted); font: 10px "DM Mono", monospace; }.timeline-step p { margin: 5px 0 0; color: #b74444; font-size: 11px; }
.execution-detail-actions { display: flex; justify-content: flex-end; padding-top: 15px; margin-top: 8px; border-top: 1px solid var(--line); }
@keyframes execution-spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .right-rail { grid-template-columns: 1fr 1fr; }
  .report-preview { grid-column: span 2; }
  .case-list { grid-template-columns: repeat(2, 1fr); }
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .execution-layout, .quality-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  main { margin-left: 0; }
  .topbar, .page-heading { padding-right: 20px; padding-left: 20px; }
  .page-heading { align-items: start; flex-direction: column; gap: 20px; }
  .metrics, .workspace-grid, .dashboard-grid { margin-right: 20px; margin-left: 20px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .case-meta { grid-template-columns: 1fr; }
  .target-tabs { gap: 10px; }
  .target-tab { font-size: 10px; }
  .right-rail { grid-template-columns: 1fr; }
  .report-preview { grid-column: auto; }
  .assets { margin-right: 20px; margin-left: 20px; }
  .dashboard-targets { margin-right: 20px; margin-left: 20px; }
  .execution-layout { margin-right: 20px; margin-left: 20px; }
  .execution-progress-summary { grid-template-columns: 80px 1fr 1fr; }.execution-stat:last-child { grid-column: 2 / -1; }
  .api-grid { grid-template-columns: 1fr; }
  .case-list { grid-template-columns: 1fr; }
  .project-create { align-items: stretch; flex-direction: column; }
  .project-create .run-button { width: 100%; }
  .project-list { grid-template-columns: 1fr; }
  .asset-selection { align-items: stretch; flex-direction: column; }
  .selection-actions { width: 100%; }
  .asset-selection .run-button, .asset-selection .secondary-button { flex: 1; }
  .asset-toolbar { grid-template-columns: minmax(0, 1fr) 36px; }
  .asset-toolbar select { grid-column: 1 / -1; width: 100%; }
  .heading-actions { width: 100%; }
  .heading-actions button { flex: 1; }
  .dashboard-chart-content, .dashboard-target-chart { grid-template-columns: 1fr; justify-items: center; }
  .dashboard-trend-summary { justify-items: center; }
  .dashboard-chart-content > .dashboard-daily-scroll, .dashboard-chart-content > .dashboard-legend { width: 100%; }
  .dashboard-trend-summary .dashboard-legend { width: 100%; }
}
