/* TWedge for the product hero (Pages/Shared/Sections/HeroApps/_TWedgeWindow.cshtml): the device view – menu,
   toolbar, the device with connection and status, its log – laid out like the real Windows application. New device
   data arrives at the top of the log. Builds on app-window.css (frame, keyframes); loaded only by the partial.
   No Tailwind, no site tokens. */

.tec-appwin--twedge {
  --tw-link: #1a2f9e;
  --tw-green: #3c9a3c;
  --tw-line: #c9ccd1;

  border-radius: 0;
  background: #f0f0f0;
  color: #222;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
}
.tec-appwin--twedge i, .tec-appwin--twedge b { font-style: normal; }

.tec-appwin__tw-title { flex: none; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #fff; font-size: 11.5px; }
.tec-appwin__tw-title > svg { width: 14px; height: 14px; }
.tec-appwin__tw-controls { margin-left: auto; display: flex; gap: 20px; color: #444; }
.tec-appwin__tw-controls svg { width: 10px; height: 10px; }
.tec-appwin__tw-menu { flex: none; display: flex; gap: 14px; padding: 3px 10px 4px; background: #fff; font-size: 11.5px; }
.tec-appwin__tw-toolbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-top: 1px solid #e3e3e3; border-bottom: 1px solid var(--tw-line); background: #f7f7f7; font-size: 11px; white-space: nowrap; overflow: hidden; }
.tec-appwin__tw-toolbar > span { display: flex; align-items: center; gap: 6px; }
.tec-appwin__tw-toolbar span > svg { width: 15px; height: 15px; }
.tec-appwin__tw-icon { width: 17px; height: 17px; flex: none; }
.tec-appwin__tw-help { width: 21px; height: 21px; }
.tec-appwin__tw-sep { width: 1px; height: 20px; background: #d0d0d0; }
.tec-appwin__tw-bits { font-size: 8.5px; font-weight: 700; line-height: 1; color: #333; }

.tec-appwin__tw-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 10px 10px 0 18px; padding: 14px 14px 10px; border: 1px solid var(--tw-line); border-bottom: 0; background: linear-gradient(#fff, #f4f5f7 60%); }
.tec-appwin__tw-device { display: flex; justify-content: space-between; gap: 16px; }
.tec-appwin__tw-name { font-size: 24px; font-weight: 300; }
.tec-appwin__tw-conn { max-width: 380px; margin-top: 10px; font-size: 10.5px; line-height: 1.4; color: #333; }
.tec-appwin__tw-state { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tec-appwin__tw-running { padding: 2px 16px; background: var(--tw-green); font-size: 11px; color: #e8f6e8; }
.tec-appwin__tw-enabled { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #555; }
.tec-appwin__tw-enabled i { display: grid; place-items: center; width: 11px; height: 11px; border: 1px solid #aaa; font-size: 8px; color: #999; }
.tec-appwin__tw-links { display: flex; gap: 22px; margin: 22px 0 6px; font-size: 11.5px; font-weight: 700; color: var(--tw-link); white-space: nowrap; }
.tec-appwin__tw-right { margin-left: auto; }
.tec-appwin__tw-log { flex: 1; min-height: 0; overflow: hidden; border: 1px solid #a9a9a9; background: #fff; }
.tec-appwin__tw-row { display: grid; grid-template-columns: 50px 92px 92px minmax(0, 1fr); max-height: 22px; overflow: hidden; font-size: 11px; }
.tec-appwin__tw-row > span { padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tec-appwin__tw-row--head { border-bottom: 1px solid #e3e3e3; font-size: 11px; color: #333; }
.tec-appwin__tw-row--head > span:last-child { text-align: center; }
.tec-appwin__tw-row > span:nth-child(2) { color: #333; }
.tec-appwin__tw-footer { display: flex; gap: 26px; padding-top: 10px; font-size: 11px; font-weight: 700; color: var(--tw-link); }

@container (max-width: 560px) {
  .tec-appwin__tw-toolbar > span:first-child, .tec-appwin__tw-toolbar .tec-appwin__tw-sep:first-of-type { display: none; }
  .tec-appwin__tw-panel { margin-left: 10px; padding: 10px; }
  .tec-appwin__tw-name { font-size: 19px; }
  .tec-appwin__tw-links { gap: 12px; font-size: 10px; }
  .tec-appwin__tw-links span:nth-child(2) { display: none; }
  .tec-appwin__tw-row { grid-template-columns: 8px 82px 0 minmax(0, 1fr); }
  .tec-appwin__tw-row > span:nth-child(1), .tec-appwin__tw-row > span:nth-child(3) { padding: 0; font-size: 0; }
}

/* ---- animation: new device data arrives at the top of the log, one row after another ---- */
.tec-appwin__tw-row--new { animation: tec-appwin-twrow .35s ease-out calc(var(--aw-start) + .2s + var(--n) * 1.1s) both; }
@keyframes tec-appwin-twrow { from { max-height: 0; opacity: 0; background: #fff8d6; } 60% { background: #fff8d6; } to { max-height: 22px; opacity: 1; } }
