/* ─────────────────────────────────────────────────────────────────────────
   Technology stack — RAG bar + editor card.
   Shared by My Hub and the MSP Portal so the two surfaces cannot diverge.

   Colour reports RISK, not form completeness:
     red   = something declared is past vendor end-of-life (a real finding)
     amber = nothing declared, or nothing we can verify
     green = everything checkable is in vendor support
   ───────────────────────────────────────────────────────────────────────── */

.ts-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    border: 1px solid transparent;
}
.ts-bar--amber { background: rgba(251,191,36,.10); border-color: rgba(251,191,36,.40); color: #fbbf24; }
.ts-bar--green { background: rgba(0,212,170,.08);  border-color: rgba(0,212,170,.32); color: #00d4aa; }
.ts-bar--red   { background: rgba(239,68,68,.10);  border-color: rgba(239,68,68,.45); color: #f87171; }

.ts-bar__pill {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 999px;
    background: currentColor;
    color: #0b1520;
}
.ts-bar__text { flex: 1 1 220px; color: rgba(226,232,240,.92); }
.ts-bar--red .ts-bar__text { color: #fecaca; }

.ts-bar__cta,
.ts-bar__dismiss {
    flex: 0 0 auto;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 13px;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.ts-bar__cta {
    background: none;
    border: 1px solid currentColor;
    color: inherit;
}
.ts-bar__cta:hover { background: rgba(255,255,255,.08); }
.ts-bar__dismiss {
    background: none;
    border: none;
    color: rgba(226,232,240,.5);
    text-decoration: underline;
}
.ts-bar__dismiss:hover { color: rgba(226,232,240,.8); }

/* A red bar is a live finding, so it gets one entrance pulse to draw the eye —
   not a perpetual loop, which becomes alert fatigue and is a WCAG 2.2.2 problem. */
@keyframes ts-bar-attention {
    0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.45); }
    100% { box-shadow: 0 0 0 12px rgba(239,68,68,0); }
}
.ts-bar--red { animation: ts-bar-attention 1.1s ease-out 2; }

@media (prefers-reduced-motion: reduce) {
    .ts-bar--red { animation: none; }
}

/* ── Editor card ─────────────────────────────────────────────────────────── */

.ts-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    padding: 18px 20px;
}
.ts-card__intro {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(226,232,240,.7);
}
.ts-rows { display: flex; flex-direction: column; gap: 8px; }

.ts-row {
    display: grid;
    grid-template-columns: 1fr 1fr 88px 32px;
    gap: 8px;
    align-items: center;
}
.ts-row[data-other="true"] { grid-template-columns: 2fr 88px 32px; }

.ts-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(11,21,32,.6);
    color: #e2e8f0;
    font-size: 13px;
    font-family: inherit;
}
.ts-input:focus {
    outline: none;
    border-color: #00d4aa;
    box-shadow: 0 0 0 3px rgba(0,212,170,.14);
}
.ts-input:disabled { opacity: .5; }

.ts-row__remove {
    background: none;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    color: rgba(226,232,240,.45);
    font-size: 17px;
    line-height: 1;
    height: 34px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.ts-row__remove:hover { color: #f87171; border-color: rgba(239,68,68,.45); }

.ts-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.ts-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    transition: background .18s, border-color .18s;
}
.ts-btn--ghost {
    background: none;
    border: 1px dashed rgba(0,212,170,.45);
    color: #00d4aa;
}
.ts-btn--ghost:hover { background: rgba(0,212,170,.08); border-color: #00d4aa; }
.ts-btn--primary {
    background: #00d4aa;
    border: 1px solid #00d4aa;
    color: #06121c;
}
.ts-btn--primary:hover { background: #00bfa0; }
.ts-btn--primary:disabled { opacity: .6; cursor: default; }

.ts-card__status { font-size: 12.5px; color: rgba(226,232,240,.6); }
.ts-card__status--green { color: #00d4aa; }
.ts-card__status--amber { color: #fbbf24; }
.ts-card__status--red   { color: #f87171; }
.ts-card__foot {
    margin: 12px 0 0;
    font-size: 11.5px;
    color: rgba(226,232,240,.4);
}

@media (max-width: 620px) {
    .ts-row,
    .ts-row[data-other="true"] { grid-template-columns: 1fr 1fr; }
    .ts-row__remove { grid-column: 2; justify-self: end; }
}

@media print {
    .ts-bar, .ts-card__actions { display: none !important; }
}
