:root {
  --canvas:#f7f8f9;
  --surface:#fff;
  --text:#161616;
  --muted:#737373;
  --border:#e4e5e7;
  --accent:#ef5518;
  --success:#539000;
  --warning:#ad5900;
  --danger:#d8034e;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:var(--canvas);
  font-synthesis:none
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  font-size:14px;
  line-height:1.45
}

button,input,select {
  font:inherit
}

button,a,input,select,summary {
  -webkit-tap-highlight-color:transparent
}

button,a {
  touch-action:manipulation
}

button {
  cursor:pointer
}

button:disabled {
  cursor:default;
  opacity:.48
}

a {
  color:inherit;
  text-decoration:none
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:3px
}

[hidden] {
  display:none!important
}

h1,h2,h3,h4,p {
  margin:0
}

h1 {
  font-size:30px;
  line-height:1.1;
  font-weight:600;
  letter-spacing:-1px
}

h2 {
  font-size:16px;
  font-weight:600
}

h3 {
  font-size:14px;
  font-weight:600
}

.subtle {
  color:var(--muted)
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}

.skip-link {
  position:fixed;
  top:-80px;
  left:16px;
  z-index:20;
  background:var(--text);
  color:#fff;
  padding:12px
}

.skip-link:focus {
  top:12px
}

.eyebrow,.nav-heading {
  font:10px/16px "JetBrains Mono",Consolas,monospace;
  letter-spacing:1.1px;
  color:#8f9095
}

.eyebrow {
  margin-bottom:10px
}

.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:250px;
  padding:24px 16px 16px;
  background:var(--canvas);
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column
}

.brand {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:25px;
  font-weight:650;
  letter-spacing:-1px;
  padding:0 8px
}

.brand-mark {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border-radius:4px;
  background:var(--accent);
  color:#fff;
  font-size:24px;
  line-height:1;
  font-weight:600;
  padding-bottom:5px
}

.workspace-switch {
  display:flex;
  gap:9px;
  align-items:center;
  margin:32px 0 30px;
  padding:10px 8px;
  border:1px solid var(--border);
  border-radius:4px;
  background:#fff
}

.workspace-switch strong {
  display:block;
  font-size:11px;
  font-weight:600
}

.workspace-switch small {
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-top:2px
}

.workspace-symbol {
  background:#f0f0f1;
  border:1px solid #e4e5e7;
  border-radius:3px;
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  font-size:12px
}

.workspace-switch>.subtle {
  margin-left:auto
}

.nav-heading {
  padding:0 10px;
  margin-bottom:10px
}

.nav-current {
  height:38px;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:4px;
  padding:0 10px;
  font-size:13px;
  font-weight:550;
  box-shadow:0 1px 2px #00000003
}

.nav-icon {
  color:var(--accent);
  font-size:20px;
  font-weight:400
}

.nav-count {
  margin-left:auto;
  color:var(--muted);
  font:11px Consolas,monospace;
  background:#f4f4f5;
  padding:2px 5px;
  border-radius:2px
}

.sidebar-bottom {
  margin-top:auto;
  padding:20px 10px 0
}

.sidebar-stat {
  display:flex;
  justify-content:space-between;
  font-size:12px;
  margin-bottom:9px;
  color:var(--muted)
}

.sidebar-stat strong {
  color:var(--text);
  font-weight:500
}

.sidebar-bottom p {
  font-size:11px;
  color:#8f9095;
  line-height:1.5;
  margin-top:16px
}

.local-label {
  display:flex;
  align-items:center;
  gap:7px;
  border-top:1px solid var(--border);
  margin-top:20px;
  padding-top:16px;
  font-size:11px;
  color:var(--muted)
}

.local-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#87d000
}

.app-shell {
  margin-left:250px;
  min-height:100vh
}

.topbar {
  height:58px;
  border-bottom:1px solid var(--border);
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#fff
}

.breadcrumb {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:12px;
  color:var(--muted)
}

.breadcrumb strong {
  font-weight:500;
  color:var(--text)
}

.topbar-right {
  display:flex;
  align-items:center;
  gap:14px
}

.icon-button {
  display:inline-grid;
  place-items:center;
  border:1px solid var(--border);
  background:#fff;
  color:#737373;
  border-radius:4px;
  width:29px;
  height:29px;
  font-size:19px;
  line-height:1
}

.icon-button:hover:not(:disabled) {
  background:#f7f8f9;
  color:var(--text)
}

main {
  max-width:1720px;
  margin:auto;
  padding:38px 32px 20px
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px
}

.page-description {
  font-size:12px;
  color:var(--muted);
  margin-top:12px
}

.page-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap
}

.button {
  border:1px solid var(--border);
  border-radius:4px;
  min-height:36px;
  padding:8px 13px;
  font-size:12px;
  font-weight:500;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  white-space:nowrap
}

.button.primary {
  color:#fff;
  border-color:#161616;
  background:linear-gradient(84.93deg,#161616 45.93%,#505050 100%);
  box-shadow:0 2px 2px #00000008
}

.button.secondary {
  background:#fff;
  color:var(--text)
}

.button:hover:not(:disabled) {
  filter:brightness(.95)
}

.button.small {
  font-size:11px;
  min-height:30px;
  padding:5px 10px
}

.notice,.error-box {
  border:1px solid #f0dfcf;
  border-radius:4px;
  color:#775333;
  background:#fffaf4;
  padding:11px 14px;
  font-size:11px;
  line-height:1.6;
  margin-bottom:20px
}

.error-box {
  border-color:#f0bbc9;
  background:#fff4f7;
  color:#970738
}

.metrics {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  background:#fff;
  border:1px solid var(--border);
  border-radius:4px;
  padding:22px 0;
  margin-bottom:22px
}

.metric {
  padding:0 24px;
  border-right:1px solid var(--border)
}

.metric:last-child {
  border:0
}

.metric>span {
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px
}

.metric strong {
  display:block;
  font:500 30px/1.2 Inter,"Segoe UI",sans-serif;
  letter-spacing:-1px;
  margin-top:10px
}

.metric small {
  display:block;
  font-size:10px;
  color:#8f9095;
  margin-top:6px
}

.status-dot {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#8f9095
}

.status-dot.success {
  background:#87d000
}

.status-dot.attention {
  background:#ef5518
}

.status-dot.waiting {
  background:#a4a6ab
}

.history-panel {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:#f0f1f2;
  border:1px solid var(--border);
  border-radius:4px;
  padding:16px 20px;
  margin-bottom:30px
}

.history-main {
  display:flex;
  gap:13px;
  align-items:flex-start
}

.history-icon {
  width:32px;
  height:32px;
  flex-shrink:0;
  border:1px solid #dcdde0;
  background:#fff;
  border-radius:4px;
  text-align:center;
  line-height:28px;
  font-size:24px;
  color:#737373
}

.history-heading {
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:5px
}

.history-heading h2 {
  font-size:12px
}

.history-panel p {
  font-size:11px;
  color:#737373;
  line-height:1.6
}

.history-panel .subtle {
  font-size:10px;
  margin-top:2px;
  color:#8f9095
}

.active-run {
  min-width:180px;
  font-size:11px
}

.active-run>div {
  display:flex;
  gap:15px;
  justify-content:space-between;
  margin-bottom:8px
}

.active-run strong {
  font-weight:500
}

progress {
  appearance:none;
  width:100%;
  height:4px;
  display:block;
  accent-color:var(--accent);
  border:0;
  border-radius:2px;
  background:#ddd
}

progress::-webkit-progress-bar {
  background:#ddd;
  border-radius:2px
}

progress::-webkit-progress-value {
  background:var(--accent);
  border-radius:2px
}

.badge {
  display:inline-flex;
  align-items:center;
  max-width:100%;
  width:fit-content;
  border:1px solid #e4e5e7;
  border-radius:3px;
  padding:2px 6px;
  background:#f7f8f9;
  color:#737373;
  font-size:10px;
  font-weight:400;
  line-height:1.5;
  white-space:normal
}

.badge.ready,.badge.completed,.badge.succeeded {
  color:#497a0b;
  background:#f3f9e9;
  border-color:#e2edcd
}

.badge.partial,.badge.incomplete,.badge.interrupted,.badge.insufficient_inputs {
  color:#a15b16;
  background:#fff6e9;
  border-color:#f2e1c8
}

.badge.failed,.badge.blocked {
  color:#ad124c;
  background:#fff0f5;
  border-color:#f4d4df
}

.badge.running,.badge.analyzing,.badge.transcribing,.badge.discovering,.badge.downloading {
  color:#2865ae;
  background:#edf4fc;
  border-color:#d6e5f8
}

.registry {
  background:#fff;
  border:1px solid var(--border);
  border-radius:4px;
  overflow:hidden
}

.registry-toolbar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:13px 16px;
  border-bottom:1px solid var(--border)
}

.filter-tabs {
  display:flex;
  align-items:center;
  gap:3px
}

.filter-tab {
  background:transparent;
  border:1px solid transparent;
  border-radius:4px;
  font-size:11px;
  padding:6px 8px;
  white-space:nowrap;
  color:#737373
}

.filter-tab[aria-selected=true] {
  background:#f7f8f9;
  border-color:var(--border);
  color:var(--text)
}

.filter-tab span {
  font:10px Consolas,monospace;
  margin-left:3px;
  color:#8f9095
}

.registry-controls {
  display:flex;
  gap:8px;
  align-items:center
}

.search-box {
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  border-radius:4px;
  padding:0 9px;
  height:31px;
  background:#fff;
  color:#8f9095
}

.search-box>span {
  font-size:19px;
  line-height:1
}

.search-box input {
  border:0;
  outline:0;
  min-width:0;
  width:150px;
  font-size:11px;
  background:transparent;
  color:var(--text)
}

.search-box:focus-within {
  border-color:var(--accent)
}

select {
  border:1px solid var(--border);
  border-radius:4px;
  min-height:31px;
  padding:4px 7px;
  background:#fff;
  font-size:11px;
  color:#737373
}

.table-container {
  overflow-x:auto
}

.deal-table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  table-layout:fixed
}

.deal-table th {
  height:32px;
  font-weight:400;
  color:#8f9095;
  font-size:10px;
  background:#fbfbfc;
  border-bottom:1px solid var(--border);
  padding:0 14px;
  white-space:nowrap
}

.deal-table th:first-child {
  width:31%;
  padding-left:20px
}

.deal-table th:nth-child(2) {
  width:18%
}

.deal-table th:nth-child(3) {
  width:10%
}

.deal-table th:nth-child(4) {
  width:19%
}

.deal-table th:nth-child(5) {
  width:17%
}

.deal-table th:last-child {
  width:5%
}

.deal-table td {
  height:65px;
  padding:10px 14px;
  border-bottom:1px solid #eef0f1;
  font-size:11px;
  vertical-align:middle;
  overflow-wrap:anywhere
}

.deal-table td:first-child {
  padding-left:20px
}

.deal-table tr:last-child td {
  border-bottom:0
}

.deal-table tbody tr:hover {
  background:#fcfcfd
}

.deal-title {
  display:block;
  padding:0;
  border:0;
  text-align:left;
  background:transparent;
  color:var(--text);
  font-size:12px;
  font-weight:500;
  line-height:1.4
}

.deal-title:hover {
  color:var(--accent)
}

.deal-meta {
  color:#8f9095;
  font-size:10px;
  margin-top:4px
}

.deal-call-count {
  display:flex;
  align-items:center;
  gap:6px
}

.deal-call-count span {
  color:#8f9095
}

.cell-date {
  font-size:10px!important;
  color:#737373
}

.row-open {
  border:0;
  background:none;
  font-size:19px;
  color:#8f9095;
  padding:2px
}

.registry-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border-top:1px solid var(--border);
  padding:12px 18px;
  font-size:10px;
  color:#8f9095
}

.pagination {
  display:flex;
  align-items:center;
  gap:12px
}

.pagination .icon-button {
  width:25px;
  height:25px
}

.pagination>span {
  min-width:32px;
  text-align:center
}

.registry-empty {
  text-align:center;
  padding:50px 20px 56px
}

.empty-symbol {
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  width:44px;
  height:44px;
  border:1px solid var(--border);
  border-radius:4px;
  color:#8f9095;
  background:#f7f8f9;
  font-size:26px
}

.registry-empty h2 {
  font-size:14px
}

.registry-empty p {
  font-size:12px;
  color:var(--muted);
  margin-top:8px
}

.page-footer {
  text-align:right;
  font-size:10px;
  color:#8f9095;
  padding:18px 0
}

#deal-dialog {
  margin:0 0 0 auto;
  max-height:100dvh;
  height:100dvh;
  max-width:100vw;
  width:min(820px,100vw);
  padding:0;
  border:0;
  border-left:1px solid var(--border);
  background:#fff;
  color:var(--text);
  box-shadow:-8px 0 40px #00000014
}

#deal-dialog::backdrop {
  background:#16161666
}

.dialog-toolbar {
  position:sticky;
  top:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:57px;
  padding:12px 24px;
  background:#fff;
  border-bottom:1px solid var(--border)
}

.dialog-toolbar .eyebrow {
  margin:0
}

.dialog-toolbar>div {
  display:flex;
  gap:10px;
  align-items:center
}

.dialog-toolbar .icon-button {
  border:0;
  font-size:25px
}

.detail-head {
  padding:26px 26px 0
}

.detail-kicker {
  display:flex;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-size:11px;
  margin-bottom:10px
}

.detail-title {
  font-size:23px;
  line-height:1.3;
  overflow-wrap:anywhere;
  margin-bottom:20px
}

.coverage {
  border:1px solid #e2edcd;
  background:#f7fbf2;
  border-radius:4px;
  padding:12px 14px;
  color:#526a35;
  font-size:11px;
  margin-bottom:22px
}

.coverage.incomplete {
  border-color:#efdfc9;
  background:#fffbf5;
  color:#977341
}

.coverage strong {
  font-weight:500
}

.coverage-details {
  font-size:10px;
  line-height:1.6;
  margin-top:5px
}

.model-caution {
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
  margin:0 0 18px;
  max-width:80ch
}

.tabs {
  display:flex;
  gap:24px;
  border-bottom:1px solid var(--border)
}

.tab {
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:#737373;
  padding:12px 0;
  font-size:12px
}

.tab[aria-selected=true] {
  border-color:var(--accent);
  color:var(--text);
  font-weight:500
}

.detail-content {
  padding:24px 26px 30px
}

.analysis-summary {
  padding:18px;
  background:#f7f8f9;
  border:1px solid var(--border);
  border-radius:4px;
  margin-bottom:20px
}

.analysis-summary h3 {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px
}

.finding-text {
  font-size:12px;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.finding-status {
  font-size:10px;
  color:#ad5900;
  margin:5px 0
}

.finding+.finding {
  margin-top:16px
}

.evidence-list {
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:9px
}

.evidence {
  background:#fff;
  border:1px solid #e4e5e7;
  border-radius:3px;
  font-size:10px;
  padding:4px 6px;
  color:#737373;
  text-align:left
}

.evidence:hover:not(:disabled) {
  border-color:var(--accent);
  color:var(--accent)
}

.analysis-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}

.analysis-section {
  border:1px solid var(--border);
  border-radius:4px;
  padding:15px
}

.analysis-section h3 {
  font-size:12px;
  margin-bottom:12px
}

.analysis-section>.subtle {
  font-size:11px
}

.analysis-timeline {
  border-top:1px solid var(--border);
  padding-top:22px;
  margin-top:22px
}

.analysis-timeline h3 {
  margin-bottom:15px
}

.timeline-finding {
  border-left:2px solid #e4e5e7;
  padding:0 0 20px 14px
}

.timeline-finding:last-child {
  padding-bottom:0
}

.timeline-label {
  font-size:10px;
  color:#8f9095;
  margin-bottom:8px
}

.unknown-list {
  padding-left:16px;
  color:#737373;
  font-size:11px;
  line-height:1.7
}

.unknown-list li+li {
  margin-top:8px
}

.limitations {
  border-top:1px solid var(--border);
  padding-top:18px;
  margin-top:22px;
  color:#8f9095;
  font-size:10px;
  line-height:1.7
}

.limitations p+p {
  margin-top:5px
}

.call-card {
  border:1px solid var(--border);
  border-radius:4px;
  overflow:hidden;
  margin-bottom:12px
}

.call-card>summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  cursor:pointer;
  padding:16px;
  list-style:none;
  background:#fcfcfd
}

.call-card>summary::-webkit-details-marker {
  display:none
}

.call-title {
  font-size:13px;
  font-weight:500
}

.call-subtitle {
  font-size:10px;
  color:#8f9095;
  margin-top:4px
}

.header-badges {
  display:flex;
  align-items:center;
  gap:14px
}

.call-toggle {
  font-size:21px;
  color:#8f9095
}

.call-card[open] .call-toggle {
  transform:rotate(90deg)
}

.call-body {
  padding:16px;
  border-top:1px solid var(--border)
}

audio {
  width:100%;
  height:38px;
  display:block;
  margin-bottom:14px
}

.call-meta,.call-warning {
  font-size:10px;
  line-height:1.65;
  color:#8f9095;
  margin:8px 0
}

.call-warning {
  color:#9e651e
}

.utterances {
  margin-top:18px
}

.utterance {
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  gap:10px;
  padding:12px 0;
  border-top:1px solid #eef0f1;
  scroll-margin:80px
}

.utterance.highlighted {
  background:#fff4e7;
  outline:3px solid #fff4e7
}

.utterance-time {
  font:10px/1.4 Consolas,monospace;
  background:#f7f8f9;
  border:1px solid var(--border);
  color:#737373;
  border-radius:3px;
  align-self:start;
  width:42px;
  padding:4px 2px;
  white-space:pre-line;
  overflow-wrap:anywhere
}

.utterance-speaker {
  font-size:10px;
  font-weight:500;
  color:#8f9095;
  margin-bottom:5px
}

.utterance-text {
  font-size:12px;
  line-height:1.6;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.empty-detail {
  padding:28px 12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.65
}

.empty-detail h3 {
  margin-bottom:10px;
  color:var(--text)
}

.business-assessment {
  margin-bottom:24px;
  border:1px solid var(--border);
  border-radius:4px;
  padding:18px
}

.business-title {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:10px
}

.business-note {
  font-size:11px;
  line-height:1.65;
  color:#737373;
  margin:8px 0 14px
}

.business-scores {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:14px 0 18px
}

.business-score {
  border:1px solid var(--border);
  background:#f7f8f9;
  border-radius:3px;
  padding:12px
}

.business-score span {
  display:block;
  font-size:10px;
  color:#8f9095
}

.business-score strong {
  display:block;
  font-size:12px;
  font-weight:500;
  margin-top:7px
}

.assessment-block {
  border-top:1px solid var(--border);
  padding:12px 0 0;
  margin-top:12px
}

.assessment-block>summary {
  font-size:12px;
  font-weight:500;
  cursor:pointer
}

.assessment-content {
  padding-top:12px
}

.assessment-item {
  padding:12px 0;
  border-bottom:1px solid #eef0f1
}

.assessment-item:last-child {
  border:0
}

.assessment-label {
  display:flex;
  justify-content:space-between;
  align-items:start;
  gap:12px;
  font-size:12px;
  margin-bottom:6px
}

.assessment-label strong {
  font-weight:500
}

.assessment-item p {
  font-size:11px;
  line-height:1.65;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.branch-note {
  font-size:10px;
  color:#8f9095;
  margin-top:8px
}

.technical-code {
  font-family:Consolas,monospace;
  font-size:10px;
  color:#8f9095;
  overflow-wrap:anywhere
}

.score-note {
  margin:9px 0 0;
  font-size:10px;
  line-height:1.6;
  color:var(--muted)
}

.next-step {
  border-left:3px solid var(--accent);
  padding:3px 0 3px 16px;
  margin:24px 0
}

.next-step h3 {
  font-size:13px;
  margin-bottom:10px
}

.next-step .assessment-item {
  padding:0;
  border:0
}

.detail-disclosure {
  border-top:1px solid var(--border);
  padding:16px 0;
  font-size:12px
}

.detail-disclosure>summary {
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  color:var(--text)
}

.detail-disclosure[open]>summary {
  margin-bottom:15px
}

.detail-section {
  margin:18px 0
}

.detail-section h4 {
  font-size:11px;
  font-weight:500;
  color:var(--muted);
  margin-bottom:8px
}

.detail-disclosure .analysis-timeline {
  margin:0;
  padding-top:5px;
  border:0
}

.diagnostic-item {
  padding:12px 0;
  border-top:1px solid var(--border);
  font-size:11px;
  line-height:1.6
}

.result-notice {
  margin-bottom:16px;
  padding:12px 14px;
  border-radius:4px;
  background:#fffbf5;
  color:#977341;
  font-size:12px;
  line-height:1.6
}

.utterance.without-time {
  grid-template-columns:minmax(0,1fr)
}

@media(min-width:1600px) {
  main {
    padding-top:44px
  }
  .deal-table td {
    height:70px
  }
  .registry-toolbar {
    padding:16px 20px
  }
}

@media(max-width:1250px) {
  .sidebar {
    width:210px;
    padding-inline:12px
  }
  .app-shell {
    margin-left:210px
  }
  main {
    padding:28px 22px 18px
  }
  .topbar {
    padding:0 22px
  }
  .workspace-switch strong {
    font-size:10px
  }
  .page-heading {
    align-items:flex-start;
    gap:18px
  }
  .page-actions {
    justify-content:flex-end;
    max-width:220px
  }
  .metric {
    padding:0 17px
  }
  .registry-toolbar {
    gap:12px
  }
  .registry-controls {
    width:100%;
    justify-content:space-between
  }
  .search-box {
    flex:1
  }
  .search-box input {
    width:100%
  }
  .deal-table th:nth-child(5),.deal-table td:nth-child(5) {
    display:none
  }
  .deal-table th:first-child {
    width:35%
  }
  .deal-table th:nth-child(2) {
    width:24%
  }
  .deal-table th:nth-child(3) {
    width:12%
  }
  .deal-table th:nth-child(4) {
    width:24%
  }
}

@media(max-width:900px) {
  .sidebar {
    width:180px;
    padding-inline:10px
  }
  .app-shell {
    margin-left:180px
  }
  .workspace-switch {
    padding:8px 5px;
    gap:6px
  }
  .workspace-symbol {
    display:none
  }
  .nav-heading {
    font-size:9px;
    letter-spacing:.6px
  }
  .brand {
    font-size:22px
  }
  .topbar {
    padding-inline:18px
  }
  .breadcrumb>span:first-child {
    display:none
  }
  .breadcrumb>span:nth-child(2) {
    display:none
  }
  main {
    padding:26px 18px 16px
  }
  .page-heading {
    flex-direction:column;
    gap:18px
  }
  .page-actions {
    max-width:none;
    justify-content:flex-start;
    width:100%
  }
  .page-actions .button {
    flex:1
  }
  .metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:18px 0;
    row-gap:22px
  }
  .metric:nth-child(2) {
    border:0
  }
  .metric strong {
    font-size:27px
  }
  .history-panel {
    align-items:flex-start;
    flex-direction:column;
    gap:16px
  }
  .active-run {
    width:100%
  }
  .filter-tabs {
    width:100%;
    overflow:auto
  }
  .filter-tab {
    padding-inline:6px
  }
  .page-footer {
    text-align:left
  }
}

@media(max-width:650px) {
  .sidebar {
    display:none
  }
  .app-shell {
    margin-left:0
  }
  .topbar {
    height:52px;
    padding:0 16px
  }
  .topbar-right {
    gap:8px
  }
  .breadcrumb {
    font-size:11px
  }
  main {
    padding:26px 16px 16px
  }
  h1 {
    font-size:28px
  }
  .page-description {
    font-size:11px
  }
  .eyebrow {
    font-size:9px
  }
  .page-heading {
    margin-bottom:22px
  }
  .page-actions {
    gap:7px
  }
  .page-actions .button {
    font-size:10px;
    padding:9px 8px;
    gap:6px
  }
  .notice {
    font-size:10px;
    padding:10px 12px
  }
  .metrics {
    margin-bottom:16px
  }
  .metric {
    padding:0 16px
  }
  .metric>span {
    font-size:10px
  }
  .metric small {
    font-size:9px
  }
  .history-panel {
    padding:14px;
    margin-bottom:22px
  }
  .history-main {
    gap:10px
  }
  .history-icon {
    width:27px;
    height:27px;
    font-size:21px;
    line-height:24px
  }
  .history-heading {
    flex-wrap:wrap;
    gap:6px
  }
  .history-heading h2 {
    font-size:11px
  }
  .history-panel p {
    font-size:10px
  }
  .registry-toolbar {
    padding:10px;
    gap:10px
  }
  .filter-tab {
    font-size:10px;
    padding:6px
  }
  .filter-tab span {
    font-size:9px
  }
  .registry-controls {
    gap:7px
  }
  .search-box {
    width:55%
  }
  select {
    max-width:140px;
    font-size:10px
  }
  .deal-table,.deal-table tbody {
    display:block
  }
  .deal-table thead {
    display:none
  }
  .deal-table tr {
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    padding:15px 14px;
    border-bottom:1px solid var(--border)
  }
  .deal-table tr:last-child {
    border:0
  }
  .deal-table td {
    display:block!important;
    height:auto;
    padding:0!important;
    border:0;
    font-size:10px
  }
  .deal-table td:first-child {
    grid-column:1;
    grid-row:1;
    padding-right:10px!important
  }
  .deal-table td:nth-child(2) {
    grid-column:1;
    grid-row:2
  }
  .deal-table td:nth-child(3) {
    grid-column:2;
    grid-row:2;
    text-align:right
  }
  .deal-table td:nth-child(4) {
    grid-column:1;
    grid-row:3;
    font-size:9px!important
  }
  .deal-table td:nth-child(4)::before {
    content:"Последний звонок: "
  }
  .deal-table td:nth-child(5) {
    display:none!important
  }
  .deal-table td:last-child {
    grid-column:2;
    grid-row:1;
    text-align:right
  }
  .deal-title {
    font-size:12px
  }
  .registry-footer {
    padding:11px 13px;
    font-size:9px
  }
  .dialog-toolbar {
    padding:12px 16px;
    gap:8px
  }
  .dialog-toolbar .eyebrow {
    display:none
  }
  .dialog-toolbar>div {
    flex:1;
    justify-content:flex-end;
    gap:6px
  }
  .dialog-toolbar .button {
    font-size:10px;
    padding:8px
  }
  .detail-head {
    padding:22px 16px 0
  }
  .detail-title {
    font-size:20px
  }
  .detail-content {
    padding:20px 16px
  }
  .tabs {
    gap:20px
  }
  .tab {
    font-size:11px
  }
  .analysis-columns {
    grid-template-columns:1fr;
    gap:12px
  }
  .business-assessment {
    padding:14px
  }
  .business-scores {
    gap:5px
  }
  .business-score {
    padding:9px
  }
  .business-score strong {
    font-size:11px
  }
  .business-score span {
    font-size:9px
  }
  .score-note {
    font-size:9px
  }
  .coverage-details {
    font-size:9px
  }
  .call-card>summary {
    padding:13px
  }
  .call-body {
    padding:13px
  }
  .call-title {
    font-size:12px
  }
  .finding-text {
    font-size:11px
  }
  .assessment-label {
    font-size:11px
  }
}

body:has(#deal-dialog[open]) {
  overflow:hidden
}

#deal-dialog {
  inset:0 0 0 auto;
  width:min(820px,100%);
  max-width:100%;
  margin:0
}

.dialog-error {
  margin:16px 24px 0
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important
  }
}
/* Управление серверной обработкой и независимые состояния материалов. */
.control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0 8px; }
.control-card { background: #fff; border: 1px solid #e8e9ed; border-radius: 12px; padding: 20px; min-width: 0; }
.control-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.control-heading h2 { font-size: 16px; margin: 0; }
.control-card > p { color: #697181; font-size: 12px; line-height: 1.6; margin: 10px 0; }
.control-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0; font-size: 12px; }
.control-options select { max-width: 100%; min-height: 36px; background: #fff; border: 1px solid #dddfe5; border-radius: 6px; padding: .5em .75em; color: inherit; font: inherit; line-height: 1.45; }
.control-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.control-actions .button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.control-card .control-progress { color: #273044; font-weight: 600; margin-top: 16px; }
.control-card .control-time { margin: 2px 0; }
.control-card .control-error { color: #a6311b; }
.control-error:empty { display: none; }
.control-hint { color: #697181; font-size: 11px; line-height: 1.6; margin: 8px 0 24px; }
.manual-actions { font-size: 12px; color: #697181; }
.manual-actions summary { cursor: pointer; padding: 8px 0; }
.manual-actions .page-actions { margin-top: 8px; flex-wrap: wrap; }
.processing-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; background: #f6f7f9; padding: 12px 14px; border-radius: 8px; font-size: 12px; margin: 14px 0; }
@media (max-width: 900px) { .control-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .control-card { padding: 14px; } .control-actions .button { flex: 1 1 auto; } }

.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(100%, 420px); padding: 32px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 40px #16161608; }
.login-card .brand { margin-bottom: 32px; }
.login-card h1 { font-size: 25px; line-height: 1.25; letter-spacing: -.5px; margin-bottom: 12px; }
.login-card form { display: grid; gap: 10px; margin-top: 26px; }
.login-card label { font-size: 12px; font-weight: 600; }
.login-card input { min-width: 0; border: 1px solid var(--border); border-radius: 6px; padding: 11px 12px; margin-bottom: 8px; background: #fff; }
.login-card .button { min-height: 42px; }
.login-card #login-refresh { margin-top: 16px; }
.error-action { border: 0; background: transparent; text-decoration: underline; color: inherit; font-weight: 600; margin-left: 12px; padding: 3px 0; }
.operation-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; margin-bottom: 20px; border: 1px solid #edcda7; border-radius: 10px; background: #fffaf3; }
.operation-description { flex: 1 1 360px; min-width: 0; }
.operation-description h2 { margin-bottom: 6px; }
.operation-description p { font-size: 13px; max-width: 780px; margin-bottom: 6px; }
.operation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.operations-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; overflow: auto; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); box-shadow: 0 18px 64px #16161620; }
.operations-dialog::backdrop { background: #16161666; }
.operations-intro { margin: 24px 28px 8px; color: var(--muted); font-size: 13px; }
#operations-list { padding: 8px 28px 28px; }
#operations-error { margin: 16px 28px; }
.operation-entry { padding: 18px 0; border-bottom: 1px solid var(--border); }
.operation-entry:last-child { border-bottom: 0; }
.operation-entry p { margin: 8px 0; font-size: 13px; }
.operation-entry .operation-actions { margin-top: 14px; }
.deal-more-actions { position: relative; font-size: 12px; }
.deal-more-actions summary { cursor: pointer; padding: 9px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.deal-more-actions > div { position: absolute; right: 0; z-index: 4; min-width: 205px; padding: 8px; display: grid; gap: 7px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: 0 8px 24px #16161612; }
@media (max-width: 640px) {
  .topbar { height: auto; min-height: 58px; padding-top: 12px; padding-bottom: 12px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .topbar-right { flex-wrap: wrap; }
  .operation-panel { padding: 16px; }
  .operation-actions { width: 100%; }
  .operation-actions .button { flex: 1 1 auto; }
  .operations-intro { margin: 18px 16px 8px; }
  #operations-list { padding: 8px 16px 18px; }
  .dialog-toolbar { flex-wrap: wrap; gap: 12px; }
  .login-card { padding: 24px; }
}

.workspace-navigation {
  display: grid;
  gap: 4px;
}

.workspace-navigation a {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 5px;
  color: #3d4342;
  font-size: 13px;
}

.workspace-navigation a:hover,
.workspace-navigation a[aria-current="page"] {
  color: #161616;
  background: #fff;
}

.mobile-navigation { display: none; }
.workspace-heading { margin-bottom: 26px; }
.workspace-subheading,
.workspace-pages,
.report-exports,
.product-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.workspace-subheading { margin-bottom: 16px; }
.workspace-subheading h2 { font-size: 18px; }

.action-board,
.workspace-list,
.report-filters,
.report-section {
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.action-board {
  border-color: #d9e6de;
  background: #eef5ef;
}

.action-grid,
.report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.action-tile {
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9e6de;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.action-name {
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.3;
}

.step-meta { display: grid; gap: 4px; margin: 10px 0 0; font-size: 12px; }
.step-meta div { display: flex; align-items: baseline; gap: 4px 9px; flex-wrap: wrap; }
.step-meta dt { color: #5f6664; }
.step-meta dd { margin: 0; overflow-wrap: anywhere; }
.action-tile .step-meta { padding-top: 10px; border-top: 1px solid #e7eee8; }
.action-tile .workspace-link { font-size: 13px; }

.workspace-link {
  color: #234f40;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #9eb6a8;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.workspace-link:hover { text-decoration-color: currentColor; }
.workspace-deal-list { display: grid; }
.workspace-deal {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .9fr);
  align-items: start;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.workspace-deal-column, .workspace-deal-name { display: grid; align-content: start; justify-items: start; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.workspace-deal-name > .deal-meta { margin: 0; font-size: 12px; color: #515b56; }
.workspace-deal-ratings { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.workspace-deal-name .rating-reason { font-size: 12px; }
.rating-reason > p { display: grid; gap: 2px; margin: 0; }
.rating-reason > p > strong { color: #515b56; font-size: 11px; }
.workspace-deal-column > .deal-meta { margin: 0; font-size: 12px; color: #616b66; }
.workspace-deal-column .step-meta { margin-top: 2px; }
.example-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  color: #515b56;
  background: #f1f3f2;
  font-size: 12px;
  font-weight: 600;
}
.workspace-pages { padding-top: 14px; font-size: 12px; color: var(--muted); }
.workspace-empty { padding: 10px 0; color: #575f5b; grid-column: 1 / -1; }
.workspace-search { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
.workspace-search input,
.workspace-search select,
.report-filters input,
.report-filters select {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #cdd5d0;
  border-radius: 5px;
  padding: 6px 9px;
  background: #fff;
  color: var(--text);
}

.workspace-search input { width: 255px; max-width: 100%; }
.workspace-search select { max-width: 100%; }
.report-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.report-filter { display: grid; gap: 4px; min-width: 0; font-size: 12px; font-weight: 600; }
.report-filters select { max-width: 190px; }
.report-check { display: flex; align-items: center; gap: 7px; min-height: 36px; font-size: 13px; }
.report-check input[type="checkbox"] { width: 17px; min-height: 0; height: 17px; margin: 0; accent-color: var(--text); }
.report-metrics { margin-bottom: 16px; }
.report-metric {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #d9e6de;
  border-radius: 8px;
  background: #eef5ef;
  color: #234f40;
}

.report-metric strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.report-exports { justify-content: flex-end; margin-bottom: 16px; }
.report-export-status { flex: 1 1 180px; color: #5b4734; }
.report-export-status:empty { display: none; }
.report-section h2 { margin-bottom: 12px; }
.report-table-description { margin: 0 0 12px; color: #515b56; font-size: 13px; }
.report-deal, .report-material, .report-rating { display: grid; align-content: start; justify-items: start; gap: 4px; overflow-wrap: anywhere; }
.report-deal small { color: #515b56; font-size: 12px; }
.report-deals .report-table { table-layout: fixed; }
.report-deals .report-table td { vertical-align: top; }
.report-rating p { display: grid; gap: 2px; margin: 0; }
.report-rating p strong { color: #515b56; font-size: 11px; }
.report-reasons summary { cursor: pointer; color: #234f40; text-decoration: underline; text-underline-offset: 3px; }
.report-reasons[open] p { margin: 6px 0; }
.report-scroll { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.report-table th,
.report-table td { min-width: 105px; padding: 9px 8px; border-bottom: 1px solid var(--border); }
.report-table th { color: #47514c; font-weight: 600; }
.report-table tr:last-child td { border-bottom: 0; }
.manager-breakdown summary, .call-transcript > summary {
  cursor: pointer;
  color: #234f40;
  font-weight: 650;
  padding-block: 5px;
}
.manager-rubric { display: grid; gap: 8px; min-width: 190px; padding: 8px 0; list-style: none; }
.temperature-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.temperature-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.temperature-hot { color: #16613b; background: #e7f5eb; }
.temperature-warm { color: #705100; background: #fff2b5; }
.temperature-cold { color: #943b36; background: #feeeed; }
.temperature-unknown { color: #515b56; background: #f1f3f2; }

.deal-operation-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-card-head { padding: 26px 24px 16px; }
.product-card-head h2 { font-size: 28px; letter-spacing: -.65px; overflow-wrap: anywhere; }
.product-card-overview,
.product-rating-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.interpreted-ratings { grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); }
.rating-note { grid-column: 1 / -1; margin: 0; }

.product-card-overview { padding: 0 24px 20px; }
.product-card-block {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  overflow-wrap: anywhere;
}

.product-card-block h3 { font-size: 15px; }
.product-card-block h4 { color: #515954; font-size: 12px; font-weight: 500; }
.product-card-block > .subtle { font-size: 12px; }
.agreement-block { border-color: #cfe0d3; background: #eef5ef; }
.agreement-block .product-finding > p { font-weight: 650; font-size: 16px; }
.deal-coaching { grid-column: 1 / -1; gap: 10px; }
.deal-coaching-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 12px;
}
.deal-coaching-group { display: grid; align-content: start; gap: 8px; border-top: 1px solid var(--border); padding-top: 9px; }
.deal-coaching-group h4 { color: #234f40; font-weight: 650; }
.interpreted-finding > p { margin: 0; }
.product-sources { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; }
.product-source {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  min-height: 32px;
  padding: 3px 0;
  color: #234f40;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-card-section { display: grid; gap: 10px; margin: 0 24px 20px; }
.product-card-section > h3,
.product-section-heading h3 { font-size: 16px; }
.deal-context { gap: 8px; }
.deal-brief-item + .deal-brief-item,
.deal-criteria > li + li { border-top: 1px solid var(--border); padding-top: 8px; }
.deal-brief-item > strong, .deal-criteria > li > strong { font-size: 13px; }
.deal-brief-quotes { margin-top: 4px; }
.deal-brief-quotes > summary { cursor: pointer; color: #234f40; font-size: 12px; }
.deal-brief-quote { margin: 6px 0 0; border-inline-start: 2px solid var(--border); padding-inline-start: 8px; }
.deal-brief-quote blockquote { margin: 0; }
.deal-limitations { justify-self: start; margin: 0; }
.deal-criteria { display: grid; gap: 8px; list-style: none; padding: 8px 0 0; margin: 0; }
.deal-criteria .subtle { margin-inline-start: 8px; }
.product-call { border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.product-call-title {
  display: flex;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.product-call-title::before { content: "›"; font-size: 20px; line-height: 1; }
.product-call[open] > .product-call-title::before { transform: rotate(90deg); }
.product-call-title > .subtle { font-size: 12px; }
.call-grade { margin-inline-start: auto; color: #234f40; font-size: 12px; font-weight: 650; }
.product-call-body { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.product-call-body audio { width: 100%; max-width: 450px; }
.product-call-body h4 { font-size: 13px; }
.product-observations { display: grid; gap: 6px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; }
.product-observation { padding: 5px 0; border-top: 1px solid var(--border); }
.product-observation .checkpoint-met { color: #23563d; background: #eef7ef; }
.product-observation .checkpoint-not_met { color: #873c27; background: #fff3eb; }
.call-findings, .call-finding-group { display: grid; gap: 6px; }

@media (max-width: 1150px) {
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 651px) and (max-width: 940px) {
  .workspace-deal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  #workspace[data-section="deals"] .topbar,
  #workspace[data-section="report"] .topbar {
    min-height: 54px;
    flex-direction: row;
    align-items: center;
  }
  .mobile-navigation {
    display: flex;
    gap: 5px;
    padding: 5px 12px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
  }
  .workspace-navigation a { font-size: 12px; }
  .workspace-heading { margin-bottom: 18px; }
  .action-board, .workspace-list, .report-filters, .report-section { padding: 13px; margin-bottom: 14px; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-filter { flex: 1 1 120px; }
  .report-filters select { width: 100%; max-width: none; }
  .workspace-deal { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .report-deals .report-table, .report-deals tbody { display: block; }
  .report-deals .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .report-deals tbody tr { display: grid; gap: 8px; border-top: 1px solid var(--border); padding: 12px 0; }
  .report-deals .report-table td { min-width: 0; border: 0; padding: 0; }
  .workspace-search { width: 100%; }
  .workspace-search input, .workspace-search select { width: 100%; }
  .product-card-head, .product-card-overview { padding-inline: 16px; }
  .product-card-section { margin-inline: 16px; }
  .call-grade { margin-inline-start: 0; }
}

@media (max-width: 460px) {
  .product-card-overview, .product-rating-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  .action-grid { grid-template-columns: minmax(0, 1fr); }
}

.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 16px; }
.collection-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.collection-card-heading, .collection-total-block, .collection-form, .selection-strip, .selection-actions, .collection-dialog-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.collection-card-heading, .collection-total-block, .selection-strip { justify-content: space-between; }
.collection-total-block { background: #f3f6f4; padding: 12px 14px; border-radius: 8px; }
.collection-total-block span, .collection-description, .collection-feedback { color: #565e5b; font-size: 13px; }
.collection-total-block strong { display: block; color: #234f40; font-size: 24px; line-height: 1.2; }
.collection-form { align-items: end; }
.collection-field { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; }
.collection-field input, .collection-field select { min-width: 0; min-height: 38px; padding: 7px 10px; color: var(--text); background: #fff; border: 1px solid #cdd5d0; border-radius: 6px; }
.collection-field input[type="number"] { width: 10rem; }
.collection-field input:disabled { color: #5e665f; background: #f5f6f5; }
.collection-progress-wrap { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.collection-progress-wrap progress, .collection-analysis > progress { width: 100%; height: 9px; accent-color: #327254; }
.collection-analysis > .button { justify-self: start; }
.collection-error { color: #9c2c1e; font-size: 13px; font-weight: 600; }
.collection-error:empty { display: none; }
.collection-feedback { margin: 10px 0; }
.collection-chart { padding: 10px 0 0; margin: 0; border-top: 1px solid var(--border); }
.collection-chart figcaption { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.collection-bars { display: flex; gap: 3px; height: 46px; margin: 0 0 6px; padding: 0; list-style: none; border-bottom: 1px solid var(--border); }
.collection-chart-point { display: flex; justify-content: center; gap: 2px; flex: 1 1 0; min-width: 0; }
.collection-chart-bar { height: 100%; width: min(45%, 9px); appearance: none; writing-mode: vertical-lr; direction: rtl; background: transparent; }
.collection-chart-bar::-webkit-progress-bar { background: transparent; }
.collection-chart-bar::-webkit-progress-value { background: #327254; border-radius: 2px; }
.collection-chart-bar::-moz-progress-bar { background: #327254; border-radius: 2px; }
.collection-chart-bar.calls::-webkit-progress-value { background: #ad5900; }
.collection-chart-bar.calls::-moz-progress-bar { background: #ad5900; }
.collection-chart-totals { display: flex; flex-wrap: wrap; color: #444c49; font-size: 12px; gap: 14px; }
.collection-chart-totals span { display: inline-flex; align-items: center; gap: 6px; }
.collection-chart-totals span::before { width: 8px; height: 8px; border-radius: 2px; background: #327254; content: ""; }
.collection-chart-totals .collection-calls-dot::before { background: #ad5900; }
.selection-strip { padding: 9px 12px; margin-bottom: 10px; background: #eef5ef; border: 1px solid #d9e6de; border-radius: 8px; }
.selection-actions { min-width: 0; font-size: 13px; }
.collection-deal-heading { display: flex; align-items: flex-start; gap: 8px; }
.collection-deal-choice { margin: 2px 0; width: 18px; height: 18px; flex: none; accent-color: #327254; }
.collection-attach { margin-top: 3px; }
.badge.new-calls { background: #fff1db; color: #7b4700; }
.collection-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: #fff; box-shadow: 0 12px 40px #0003; }
.collection-dialog::backdrop { background: #181c1a85; }
.collection-dialog .dialog-toolbar { padding: 10px 18px; }
.collection-manual-form { padding: 16px 18px 18px; display: grid; gap: 14px; }
.collection-manual-fields, .collection-attachment { display: grid; gap: 12px; min-width: 0; }
.collection-attachment { padding: 10px 12px 12px; margin: 0; border: 1px solid var(--border); border-radius: 8px; }
.collection-attachment legend { padding: 0 3px; font-weight: 600; }
.collection-attachment .collection-description { font-size: 12px; font-weight: 400; }
.collection-existing { font-weight: 600; overflow-wrap: anywhere; }
.collection-dialog-actions { justify-content: flex-end; }

@media (max-width: 1000px) {
  .collection-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 500px) {
  .collection-card { padding: 14px; }
  .collection-total-block { padding: 10px; }
  .collection-form .button, .selection-actions .button { white-space: normal; }
}
