/* TTerminal Parity + ML Features (Nov 22) — scoped .ttp-* styles, DANO stacked look */
.ttp-wrap{margin:14px auto;padding:0;min-width:0;max-width:100%;font-family:var(--dano-mono,"JetBrains Mono",Menlo,Consolas,monospace);color:var(--dano-text,#e8f7ee)}
.ttp-sec{margin:14px 0;padding:12px 14px;border:1px solid var(--dano-line,#1c3a26);border-radius:10px;background:radial-gradient(120% 140% at 50% 0%,rgba(11,42,24,.35),rgba(4,9,7,.92) 70%);box-shadow:0 0 14px rgba(57,255,106,.06);min-width:0;overflow-wrap:anywhere}
.ttp-hd{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:baseline;justify-content:space-between;margin:0 0 10px;border-bottom:1px solid rgba(57,255,106,.18);padding-bottom:6px}
.ttp-hd h2,.ttp-hd h3{margin:0;font-size:14px;letter-spacing:.08em;text-transform:uppercase;color:var(--dano-neon,#39ff6a)}
.ttp-sub{font-size:11px;color:var(--dano-dim,#8fb39c)}
.ttp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px;min-width:0}
.ttp-card{border:1px solid rgba(57,255,106,.22);border-radius:8px;background:rgba(5,12,8,.82);padding:10px 12px;min-width:0;overflow-wrap:anywhere}
.ttp-card h4{margin:0 0 8px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#9dffb8;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.ttp-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:8px;margin-bottom:10px}
.ttp-k{border:1px solid rgba(57,255,106,.18);border-radius:6px;padding:7px 9px;background:rgba(4,10,7,.75);min-width:0}
.ttp-k small{display:block;font-size:10px;color:#8fb39c;letter-spacing:.06em;text-transform:uppercase}
.ttp-k b{display:block;font-size:16px;margin-top:2px;color:#e8f7ee}
.ttp-kv{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px 10px;align-items:baseline;font-size:12px}
.ttp-kv .h{grid-column:1/-1;font-size:10px;letter-spacing:.14em;color:#8fb39c;border-bottom:1px solid rgba(57,255,106,.15);padding:6px 0 3px;margin-top:4px;text-transform:uppercase}
.ttp-kv .h:first-child{margin-top:0}
.ttp-kv a{color:#9dffb8;text-decoration:none}.ttp-kv a:hover{text-decoration:underline}
.ttp-up{color:#39ff6a}.ttp-dn{color:#ff5c7a}.ttp-amb{color:#fbbf24}.ttp-mut{color:#8fb39c}
.ttp-chip{display:inline-flex;align-items:center;gap:4px;font-size:10px;line-height:1.3;padding:2px 6px;border-radius:4px;border:1px solid rgba(57,255,106,.28);background:rgba(10,28,16,.7);color:#c8f7d6;white-space:nowrap;vertical-align:middle}
.ttp-chip.up{border-color:rgba(57,255,106,.5);color:#39ff6a;background:rgba(11,42,24,.75)}
.ttp-chip.dn{border-color:rgba(255,92,122,.5);color:#ff7b93;background:rgba(48,12,20,.75)}
.ttp-chip.amb{border-color:rgba(251,191,36,.5);color:#fbbf24;background:rgba(44,32,8,.75)}
.ttp-chip.cyan{border-color:rgba(0,229,255,.45);color:#7ceeff;background:rgba(8,32,44,.75)}
.ttp-row{padding:8px 0;border-bottom:1px solid rgba(57,255,106,.12);min-width:0}
.ttp-row:last-child{border-bottom:0}
.ttp-title{font-size:13.5px;line-height:1.4;color:#eefaf2;font-weight:600}
.ttp-title a{color:#eefaf2;text-decoration:none}.ttp-title a:hover{color:#39ff6a;text-decoration:underline}
.ttp-meta{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center;margin-top:4px;font-size:11px;color:#8fb39c}
.ttp-pills{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.ttp-btn{font:inherit;font-size:11px;padding:6px 10px;border-radius:6px;border:1px solid rgba(57,255,106,.32);background:#09150e;color:#cfead8;cursor:pointer;min-height:32px;touch-action:manipulation}
.ttp-btn:hover{border-color:#39ff6a;color:#39ff6a}
.ttp-btn.on{background:#123821;border-color:#39ff6a;color:#39ff6a;font-weight:700}
.ttp-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.ttp-tbl{width:100%;min-width:480px;border-collapse:collapse;font-size:12px}
.ttp-tbl th{white-space:nowrap}
.ttp-tbl th,.ttp-tbl td{padding:6px 8px;border-bottom:1px solid rgba(57,255,106,.14);text-align:left;vertical-align:top}
.ttp-tbl th{font-size:10px;letter-spacing:.08em;color:#8fb39c;text-transform:uppercase;position:static!important;background:rgba(8,18,12,.9)!important}
.ttp-bar{display:inline-block;height:6px;border-radius:3px;background:#39ff6a;vertical-align:middle;margin-right:4px}
.ttp-spark{width:100%;max-width:340px;height:52px;display:block;margin:6px 0}
.ttp-input{background:#07110b;color:#e8f7ee;border:1px solid rgba(57,255,106,.32);border-radius:6px;padding:6px 9px;font:inherit;font-size:13px;min-height:34px}
.ttp-ask-btn{margin-left:6px;padding:4px 9px;font:700 11px Menlo,Consolas,monospace;background:#0b2415;color:#39ff6a;border:1px solid #39ff6a;border-radius:5px;cursor:pointer;white-space:nowrap}
.ttp-ask-btn:hover{background:#39ff6a;color:#031208}
#tt-ask-pop{position:relative;z-index:45;margin:6px 10px 8px;padding:12px 14px;border:1px solid #39ff6a;border-radius:10px;background:#040c07;color:#e8f7ee;box-shadow:0 8px 28px rgba(0,0,0,.75);font:12.5px/1.5 Menlo,Consolas,monospace}
#tt-ask-pop .ttp-ask-bar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
#tt-ask-pop input{flex:1 1 220px;min-width:0;font-size:14px}
.ttp-light .ttp-sec,.ttp-light .ttp-card,.ttp-light .ttp-k{background:#fff;color:#111827;border-color:#d1d5db;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.ttp-light .ttp-hd h2,.ttp-light .ttp-hd h3,.ttp-light .ttp-card h4{color:#065f46}
.ttp-light .ttp-title,.ttp-light .ttp-k b{color:#111827}
.ttp-light .ttp-sub,.ttp-light .ttp-meta,.ttp-light .ttp-mut{color:#4b5563}
.ttp-light .ttp-input{background:#f9fafb;color:#111827;border-color:#d1d5db}
.ttp-light .ttp-btn{background:#f3f4f6;color:#111827;border-color:#d1d5db}
.ttp-light .ttp-btn.on{background:#065f46;color:#fff;border-color:#065f46}
@media(max-width:600px){
  .ttp-sec{padding:10px;margin:10px 0}
  .ttp-kv{grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
  .ttp-kv em{grid-column:1/-1;font-size:11px;margin-top:-2px}
  .ttp-input{font-size:16px}
}
.ttp-tbl a{color:#9dffb8;text-decoration:none}.ttp-tbl a:hover{text-decoration:underline}
.ttp-grid-2{grid-template-columns:repeat(auto-fit,minmax(min(100%,560px),1fr))}

/* Shipping breaking alerts + chokepoint status legend (Nov 22 shipalert) */
.ttp-ship-lower{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"table breaking" "table edgar";gap:10px;margin-top:10px;align-items:start}
.ttp-choke-card{grid-area:table;min-width:0}
.ttp-break-card{grid-area:breaking;min-width:0}
.ttp-edgar-card{grid-area:edgar;min-width:0}
@media(max-width:900px){
  .ttp-ship-lower{grid-template-columns:minmax(0,1fr);grid-template-areas:"breaking" "table" "edgar"}
}
.ttp-legend{display:flex;flex-direction:column;gap:6px;margin-top:8px;font-size:11px;line-height:1.45;color:#8fb39c}
.ttp-legend>span{display:flex;gap:8px;align-items:flex-start;min-width:0}
.ttp-legend .ttp-chip{flex:none;margin-top:1px}
.ttp-st-btn{cursor:pointer;font:inherit}
.ttp-zwhy{display:none}
.ttp-zrow.open + .ttp-zwhy{display:table-row}
.ttp-zwhy td{font-size:11.5px;line-height:1.45;color:#d5e6dc;background:rgba(8,18,12,.72);padding:8px 10px}
.ttp-alert-list{display:flex;flex-direction:column;gap:8px;max-height:min(520px,70vh);overflow-y:auto;padding-right:2px;-webkit-overflow-scrolling:touch}
.ttp-alert-item{border:1px solid rgba(57,255,106,.18);border-radius:7px;background:rgba(4,10,7,.65);min-width:0;overflow:hidden}
.ttp-alert-item[data-sev="critical"]{border-color:rgba(255,92,122,.4)}
.ttp-alert-item[data-sev="high"]{border-color:rgba(251,191,36,.4)}
.ttp-alert-item[data-sev="elevated"]{border-color:rgba(0,229,255,.28)}
.ttp-alert-hd{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;width:100%;text-align:left;background:transparent;border:0;color:inherit;font:inherit;padding:8px 10px;cursor:pointer;touch-action:manipulation}
.ttp-alert-title{flex:1 1 140px;font-size:12.5px;font-weight:650;color:#eefaf2;min-width:0}
.ttp-alert-meta{font-size:10.5px;color:#8fb39c}
.ttp-alert-bd{display:none;padding:0 10px 10px;font-size:12px;line-height:1.5;color:#d5e6dc}
.ttp-alert-item.open .ttp-alert-bd{display:block}
.ttp-alert-bd p{margin:0 0 7px}
.ttp-rel-wrap{margin:6px 0;font-size:11.5px}
.ttp-rel{margin-top:3px;overflow-wrap:anywhere}
.ttp-rel a{color:#9dffb8;text-decoration:none}
.ttp-rel a:hover{text-decoration:underline}
.ttp-allclear{font-size:12.5px;line-height:1.55;color:#d5e6dc;padding:4px 0 2px}
@keyframes ttp-slidein{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
.ttp-alert-item.ttp-in{animation:ttp-slidein .45s ease-out}
@media(max-width:600px){
  .ttp-legend{font-size:10.5px}
}
