/* conv-tcc.css — the time–current curve modal (js/conv/tcc-modal.js, PRD-CONV-LIVING-PLANT §8.2) and the EPMS
   view switch. Colours are the tokens of css/conv-vfx.css; every curve also carries its own dash pattern, so the
   plot reads without colour. Both themes. */
.tcc-modal { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(5, 6, 8, .62); }
.tcc-modal[hidden] { display: none; }
.tcc-panel { background: var(--vfx-bar-bg); color: var(--vfx-bar-text); border: 1px solid var(--vfx-bar-line); border-radius: 4px;
  width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; font: 13px/1.45 'IBM Plex Sans', system-ui, sans-serif; }
.tcc-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--vfx-bar-line);
  position: sticky; top: 0; background: var(--vfx-bar-bg); z-index: 1; }
.tcc-kind { font: 600 10.5px/1.3 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--vfx-bar-mute); }
.tcc-title { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.tcc-sub { margin: 2px 0 0; color: var(--vfx-bar-mute); }
.tcc-close { flex: none; min-width: 44px; min-height: 44px; border: 1px solid var(--vfx-bar-line); background: transparent; color: var(--vfx-bar-text);
  border-radius: 4px; cursor: pointer; font-size: 18px; }
.tcc-close:focus-visible, .tcc-scroll:focus-visible { outline: 2px solid var(--vfx-acc); outline-offset: 2px; }
.tcc-body { padding: 12px 16px 16px; min-width: 0; }
.tcc-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.tcc-plot { display: block; width: 100%; min-width: 560px; height: auto; }
.tcc-bg { fill: none; stroke: var(--vfx-bar-line); }
.tcc-grid { stroke: var(--vfx-bar-line); stroke-width: .6; }
.tcc-ax { fill: var(--vfx-bar-mute); font: 400 10px 'JetBrains Mono', ui-monospace, monospace; }
.tcc-ax-t { font-family: 'IBM Plex Sans', system-ui, sans-serif; }
.tcc-curve { fill: none; stroke: var(--vfx-bar-text); stroke-width: 1.4; opacity: .8; }
.tcc-curve.is-em { stroke: var(--vfx-acc); stroke-width: 2.6; opacity: 1; }
.tcc-end { stroke: var(--vfx-bar-text); stroke-width: 1.6; }
.tcc-end.is-em { stroke: var(--vfx-acc); stroke-width: 2.4; }
.tcc-damage { fill: none; stroke: var(--vfx-alarm); stroke-width: 1.6; stroke-dasharray: 1 3; stroke-linecap: round; }
.tcc-inrush circle, .tcc-inrush-dot { fill: none; stroke: var(--vfx-alarm); stroke-width: 1.6; }
.tcc-marker line, .tcc-marker-ln { stroke: var(--vfx-warn); stroke-width: 1.2; }
.tcc-legend { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--vfx-bar-text); font-size: 12px; }
.tcc-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tcc-legend li.is-em { font-weight: 600; }
.tcc-sw { flex: none; }
.tcc-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 4px; }
.tcc-table caption { text-align: left; color: var(--vfx-bar-mute); padding: 4px 0; }
.tcc-table th, .tcc-table td { border-bottom: 1px solid var(--vfx-bar-line); padding: 4px 6px; text-align: left; vertical-align: top; }
.tcc-table td:not(:first-child) { font-family: 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }
.tcc-table tr[data-tcc-ok="0"] td:last-child { color: var(--vfx-alarm); font-weight: 700; }
.tcc-note { margin: 10px 0 0; color: var(--vfx-bar-mute); font-size: 11.5px; }
@media (max-width: 600px) {
  .tcc-modal { padding: 0; }
  .tcc-panel { max-height: 100vh; border-radius: 0; }
  .tcc-table, .tcc-table tbody, .tcc-table tr, .tcc-table td { display: block; }
  .tcc-table thead { display: none; }
  .tcc-table tr { padding: 6px 0; border-bottom: 1px solid var(--vfx-bar-line); }
  .tcc-table td { border: 0; padding: 1px 0; white-space: normal; }
  .tcc-table td:nth-child(2)::before { content: "Current "; color: var(--vfx-bar-mute); }
  .tcc-table td:nth-child(3)::before { content: "Downstream "; color: var(--vfx-bar-mute); }
  .tcc-table td:nth-child(4)::before { content: "Upstream "; color: var(--vfx-bar-mute); }
  .tcc-table td:nth-child(5)::before { content: "Margin "; color: var(--vfx-bar-mute); }
}
