/* Interactive operator-dashboard demo (demo.html, no/demo.html).
   Scoped under .demo-* so nothing here leaks into the rest of the site. */

.demo-shell { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }

/* ---------- control bar ---------- */
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; padding: .85rem 1.1rem; background: rgba(5,8,13,.7); border-bottom: 1px solid var(--line); }
.demo-brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .8rem; text-transform: uppercase; }
.demo-brand i { font-style: normal; color: var(--text-3); font-weight: 500; }
.demo-badge { font-size: .62rem; letter-spacing: .14em; padding: .2rem .55rem; border-radius: 999px; border: 1px solid rgba(242,177,52,.5); color: var(--amber); }
.demo-ctl { display: flex; align-items: center; gap: .55rem; }
.demo-ctl > span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.dseg { display: inline-flex; max-width: 100%; border: 1px solid var(--line-strong); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.dseg::-webkit-scrollbar { display: none; }
.dseg button { all: unset; cursor: pointer; padding: .35rem .8rem; font-size: .8rem; color: var(--text-2); font-weight: 500; white-space: nowrap; }
.dseg button:hover { color: #fff; }
.dseg button[aria-pressed="true"], .dseg button.on { background: rgba(79,189,186,.18); color: #fff; }
.dseg button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.demo-spacer { flex: 1; }
.demo-clock { font-family: var(--font-display); font-size: .8rem; color: var(--text-2); }
.demo-reset { all: unset; cursor: pointer; font-size: .75rem; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.demo-reset:hover { color: #fff; }

/* ---------- try-this strip ---------- */
.demo-try { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; padding: .7rem 1.1rem; background: rgba(79,189,186,.06); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--text-2); }
.demo-try b { color: var(--teal-2); font-family: var(--font-display); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-right: .3rem; }
.demo-try button { all: unset; cursor: pointer; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); font-size: .8rem; }
.demo-try button:hover { border-color: var(--teal); background: rgba(79,189,186,.12); }
.demo-try button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- tabs ---------- */
.demo-tabs { display: flex; gap: .15rem; overflow-x: auto; padding: .45rem .7rem; border-bottom: 1px solid var(--line); background: rgba(5,8,13,.35); scrollbar-width: thin; }
.demo-tab { all: unset; cursor: pointer; flex: none; padding: .5rem .85rem; border-radius: 9px; font-size: .85rem; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: .45rem; }
.demo-tab:hover { color: #fff; background: rgba(255,255,255,.04); }
.demo-tab[aria-selected="true"] { color: #fff; background: rgba(79,189,186,.16); box-shadow: inset 0 -2px 0 var(--teal); }
.demo-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.demo-tab svg { width: 16px; height: 16px; flex: none; }

.demo-panel { padding: 1.4rem 1.3rem 1.6rem; min-height: 520px; }
.demo-panel h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 0 0 .3rem; }
.demo-sub { color: var(--text-2); font-size: .92rem; margin: 0 0 1.2rem; max-width: 72ch; }
.demo-h { display: flex; align-items: center; gap: .55rem; margin: 1.6rem 0 .75rem; font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.demo-h::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.demo-h .dchip { margin-left: auto; }
.demo-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }

/* ---------- atoms ---------- */
.dcard { background: rgba(13,20,29,.85); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.dcard.flush { padding: 0; overflow: hidden; }
.dstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.dstat { background: rgba(79,189,186,.05); border-left: 2px solid var(--teal); border-radius: 0 10px 10px 0; padding: .8rem 1rem; }
.dstat strong { display: block; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.dstat span { font-size: .76rem; color: var(--text-2); }
.dchip { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.dchip.st-green { color: #4ade80; background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.35); }
.dchip.st-blue { color: #7db4ff; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); }
.dchip.st-yellow { color: #fcd34d; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.35); }
.dchip.st-orange { color: #fb923c; background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.35); }
.dchip.st-red { color: #f87171; background: rgba(239,68,68,.13); border-color: rgba(239,68,68,.4); }
.dchip.st-muted { color: var(--text-2); background: rgba(255,255,255,.04); border-color: var(--line); }
.dchip.st-teal { color: var(--teal-2); background: rgba(79,189,186,.1); border-color: rgba(79,189,186,.35); }
.dbtn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px; font-size: .8rem; font-weight: 600; font-family: var(--font-display); background: var(--teal); color: #04161a; white-space: nowrap; }
.dbtn:hover { background: #63d3cf; }
.dbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dbtn.ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--line-strong); }
.dbtn.ghost:hover { border-color: var(--teal); }
.dbtn[disabled], .dbtn.done { opacity: .55; cursor: default; pointer-events: none; }
.dsel, .dinp, .dtxt { background: rgba(5,8,13,.7); border: 1px solid var(--line-strong); color: var(--text); border-radius: 9px; padding: .5rem .7rem; font: inherit; font-size: .85rem; min-width: 0; }
.dsel:focus, .dinp:focus, .dtxt:focus { outline: none; border-color: var(--teal); }
.dtxt { width: 100%; min-height: 96px; resize: vertical; }
.dfield { display: grid; gap: .3rem; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.dfield > :not(label) { text-transform: none; letter-spacing: 0; }
.dalert { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .8rem 1.1rem; border-radius: 12px; border: 1px solid rgba(249,115,22,.4); background: rgba(249,115,22,.09); color: #fdba74; font-size: .9rem; margin-bottom: 1rem; }
.dalert.ok { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.07); color: #86efac; }
.dalert.crit { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.1); color: #fca5a5; }
.dalert .dbtn { margin-left: auto; }
.dbar { height: 7px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.dbar i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width .4s ease; }
.dbar.warn i { background: #fbbf24; } .dbar.bad i { background: #ef4444; }
.dtwo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.dtwo > *, .dradar > * { min-width: 0; }  /* wide tables scroll inside their wrapper instead of stretching the layout */
.dmuted { color: var(--text-2); font-size: .85rem; }
.dsmall { font-size: .76rem; color: var(--text-3); }
.dempty { padding: 1.4rem; text-align: center; color: var(--text-3); font-size: .9rem; }
.dtable { width: 100%; border-collapse: collapse; font-size: .86rem; }
.dtable th { text-align: left; padding: .6rem .8rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; background: rgba(79,189,186,.06); border-bottom: 1px solid var(--line); white-space: nowrap; }
.dtable td { padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable .num { text-align: right; font-variant-numeric: tabular-nums; }
.dscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(13,20,29,.85); }

/* ---------- dashboard ---------- */
.dhero { position: relative; overflow: hidden; border-radius: 14px; padding: 1.6rem 1.6rem; margin-bottom: 1.1rem; border: 1px solid var(--line); background: radial-gradient(900px 300px at 0% 0%, rgba(79,189,186,.18), transparent 60%), linear-gradient(120deg, #0b1c2b 0%, #0b121b 70%); }
.dhero h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .4rem; }
.dhero h2 span { color: var(--teal); }
.dhero p { color: var(--text-2); max-width: 62ch; margin: 0; }
.dhero svg { position: absolute; right: -10px; bottom: -6px; width: min(46%, 420px); opacity: .55; pointer-events: none; }
.dmap svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.dmap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #0b1c2b; }

/* ---------- flights ---------- */
.dflights { display: grid; gap: .6rem; }
.dflight { background: rgba(13,20,29,.85); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dflight.st-orange { border-color: rgba(249,115,22,.35); } .dflight.st-red { border-color: rgba(239,68,68,.45); }
.dflight.past .dfhead { opacity: .6; }
.dfhead { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: grid; grid-template-columns: 92px minmax(0, 1.4fr) minmax(0, 1fr) 150px 30px; gap: .6rem 1rem; align-items: center; padding: .8rem 1rem; }
.dfhead:hover { background: rgba(255,255,255,.03); }
.dfhead:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.dfno b { display: block; font-family: var(--font-display); font-size: .95rem; } .dfno span { font-size: .72rem; color: var(--text-3); }
.dfroute b { display: block; font-size: .92rem; } .dfroute span { font-size: .76rem; color: var(--text-3); }
.dfseats { font-size: .76rem; color: var(--text-2); } .dfseats .dbar { margin-top: .3rem; height: 5px; }
.dfprob { text-align: right; } .dfprob strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; } .dfprob .dchip { margin-top: .25rem; }
.dfcaret { color: var(--text-3); transition: transform .2s; text-align: center; } .dflight.open .dfcaret { transform: rotate(180deg); }
.dfbody { display: none; padding: .2rem 1rem 1.1rem; border-top: 1px solid var(--line); }
.dflight.open .dfbody { display: block; }
.dfx { display: flex; flex-wrap: wrap; gap: .4rem; margin: .9rem 0 .6rem; }
.dfx span { font-size: .76rem; padding: .22rem .6rem; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text-2); }
.dfx span.warn { color: #fcd34d; border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.dfx span.bad { color: #fca5a5; border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.09); }
.dchart { position: relative; margin-top: .4rem; }
.dchart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.dchart .tip { position: absolute; top: 0; left: 0; pointer-events: none; background: rgba(5,8,13,.95); border: 1px solid var(--line-strong); border-radius: 8px; padding: .3rem .55rem; font-size: .74rem; white-space: nowrap; opacity: 0; transform: translate(-50%, -110%); transition: opacity .1s; }
.drebook { margin-top: .9rem; padding: .8rem 1rem; border-radius: 10px; border: 1px solid rgba(251,191,36,.35); background: rgba(251,191,36,.07); font-size: .86rem; }
.drebook.critical { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.08); }
.drebook b { display: block; margin-bottom: .35rem; }
.drebook .slots { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.drebook .dbtn { white-space: normal; text-align: left; }

/* ---------- radar ---------- */
.dradar { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 1rem; align-items: start; }
.dradar .dmap { position: relative; }
.dhud { position: absolute; left: 12px; top: 10px; font-size: .72rem; letter-spacing: .08em; color: var(--teal-2); background: rgba(5,8,13,.75); padding: .25rem .6rem; border-radius: 8px; border: 1px solid var(--line); }
.dacrow { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .85rem; }
.dacrow:last-child { border-bottom: 0; } .dacrow:hover, .dacrow.sel { background: rgba(79,189,186,.09); }
.dacrow b { font-family: var(--font-display); } .dacrow span { color: var(--text-3); font-size: .76rem; }
.dacrow:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.dlegend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .7rem; font-size: .76rem; color: var(--text-3); }
.dlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .35rem; }

/* ---------- fleet ---------- */
.dfleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.dunit h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dunit .dsmall { margin: .15rem 0 .7rem; }
.dunit dl { margin: .7rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .3rem .8rem; font-size: .8rem; }
.dunit dt { color: var(--text-3); } .dunit dd { margin: 0; color: var(--text-2); text-align: right; }

/* ---------- vikar ---------- */
.dweeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .5rem; }
.dweek { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: .55rem .3rem; border-radius: 10px; border: 1px solid var(--line); font-size: .78rem; color: var(--text-2); background: rgba(255,255,255,.03); }
.dweek b { display: block; font-family: var(--font-display); color: var(--text); font-size: .95rem; }
.dweek:hover { border-color: var(--line-strong); }
.dweek[aria-pressed="true"] { background: rgba(34,197,94,.14); border-color: rgba(34,197,94,.5); color: #86efac; }
.dweek[aria-pressed="true"] b { color: #fff; }
.dweek:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ddots { display: inline-flex; gap: 3px; } .ddots i { width: 7px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.12); } .ddots i.on { background: #22c55e; } .ddots i.cur { outline: 1px solid var(--teal-2); outline-offset: 1px; }
.dform { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }

/* ---------- messages / forms ---------- */
.dlist label { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .86rem; }
.dlist label:last-child { border-bottom: 0; } .dlist label:hover { background: rgba(255,255,255,.03); }
.dlist input { accent-color: var(--teal); width: 16px; height: 16px; }
.dlist small { margin-left: auto; color: var(--text-3); white-space: nowrap; }
.dchk { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--text-2); cursor: pointer; margin-right: .9rem; }
.dchk input { accent-color: var(--teal); }
.dstack { display: grid; gap: .9rem; }
.dlog { display: grid; gap: .55rem; margin-top: .4rem; } .dlog > div { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; color: var(--text-2); background: rgba(255,255,255,.03); } .dlog b { color: var(--text); }
.dopt { display: flex; gap: .6rem; padding: .6rem 0; font-size: .86rem; color: var(--text-2); cursor: pointer; } .dopt input { accent-color: var(--teal); margin-top: .2rem; } .dopt b { display: block; color: var(--text); font-weight: 600; }

/* ---------- vacancies / recruitment / crew ---------- */
.dvac { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.dvac h3 { margin: .4rem 0 .15rem; font-size: 1rem; } .dvac p { margin: 0; color: var(--text-2); font-size: .82rem; }
.dvac .meta { display: flex; justify-content: space-between; margin-top: .8rem; font-size: .76rem; color: var(--text-3); }
.dfunnel { display: grid; gap: .55rem; } .dfunnel .row { display: grid; grid-template-columns: 96px 1fr 34px; gap: .7rem; align-items: center; font-size: .82rem; color: var(--text-2); } .dfunnel .row strong { text-align: right; color: #fff; }
.dcrewrow { display: grid; grid-template-columns: 110px 1fr auto auto; gap: .6rem 1rem; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); font-size: .86rem; }
.dcrewrow:last-child { border-bottom: 0; } .dcrewrow b { font-family: var(--font-display); } .dcrewrow span { color: var(--text-3); font-size: .78rem; }

/* ---------- toast + footnote ---------- */
.dtoast { position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 20px); opacity: 0; background: rgba(9,16,24,.97); border: 1px solid var(--teal); color: var(--text); padding: .65rem 1.1rem; border-radius: 12px; font-size: .86rem; z-index: 200; pointer-events: none; transition: opacity .25s, transform .25s; max-width: min(92vw, 520px); box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.dtoast.show { opacity: 1; transform: translate(-50%, 0); }
.demo-note { padding: .9rem 1.2rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--text-3); background: rgba(5,8,13,.5); }

.demo-intro { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

@keyframes dpulse { 0% { r: 5; opacity: .55; } 100% { r: 16; opacity: 0; } }
.dpulse { animation: dpulse 2s ease-out infinite; }
/* ---------- travel overview ---------- */
.dtv { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; margin-top: 1.2rem; }
.dtvp { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin-top: 1.4rem; align-items: start; }
.dtvp > * { min-width: 0; }
.tvhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.tvtitle { font-family: var(--font-display); font-size: 1.02rem; }
.tvlist { display: grid; max-height: 540px; overflow-y: auto; }
.tvrow { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(40px, .8fr) minmax(92px, auto) 12px; gap: .8rem; align-items: center; padding: .55rem .5rem; border-bottom: 1px solid var(--line); border-radius: 8px; font-size: .88rem; color: var(--text); }
.tvrow:hover, .tvdev:hover { background: rgba(79,189,186,.07); }
.tvrow:focus-visible, .tvdev:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.tvval { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tvval .dsmall { font-weight: 400; }
.tvarr { color: var(--text-3); font-size: 1.1rem; }
.tvsum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: .9rem; }
.tvsum > div { background: rgba(79,189,186,.05); border-radius: 10px; padding: .6rem .8rem; }
.tvsum .wide { grid-column: 1 / -1; }
.tvsum span { display: block; font-size: .72rem; color: var(--text-2); }
.tvsum strong { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.tvchips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.tvscroll { max-height: 520px; overflow: auto; }
.tvwho { display: flex; align-items: center; gap: .6rem; }
.tvwho b { white-space: nowrap; }
.tvscroll .num b, .tvscroll td .dchip { white-space: nowrap; }
.tvscroll .dtable th, .tvscroll .dtable td { padding: .55rem .6rem; }
.tvscroll .tvwho { gap: .5rem; }
.tvscroll .dtable { min-width: 0; }
.tvav { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(79,189,186,.18); color: var(--teal-2); font-size: .68rem; font-weight: 700; }
.tvmode { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(30px, .7fr) auto; gap: .8rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.tvmode:last-child { border-bottom: 0; }
.tvdev { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; width: 100%; padding: .55rem .2rem; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--text); }
.tvbig { font-family: var(--font-display); font-size: 1.9rem; color: #4ade80; letter-spacing: -.02em; }
.tvtxt { color: var(--text-2); font-size: .88rem; line-height: 1.5; margin: .4rem 0 .8rem; }
.tvleg { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .7rem; font-size: .76rem; color: var(--text-2); }
.tvleg span { display: inline-flex; align-items: center; gap: .45rem; }
.tvleg .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tvleg .sw.round { border-radius: 50%; }
.tvleg .sw.dia { background: #fbbf24; transform: rotate(45deg); width: 9px; height: 9px; border-radius: 1px; }
.tvleg .grad { width: 56px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #4ade80, #fbbf24, #f97316, #ef4444); display: inline-block; }
.tvleg .ln { width: 18px; border-top: 2px dashed #fbbf24; display: inline-block; }
.tvtrend svg { display: block; width: 100%; height: auto; }
.tvdot { cursor: pointer; }
.tvdot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .dpulse { animation: none; } .dbar i, .dtoast { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .dtwo, .dradar { grid-template-columns: 1fr; }
  .dtv { grid-template-columns: minmax(0, 1fr); }
  .dfhead { grid-template-columns: 78px minmax(0, 1fr) 120px 24px; }
  .dfseats { display: none; }
  .dhero svg { opacity: .28; }
}
@media (max-width: 640px) {
  .demo-bar { gap: .6rem 1rem; } .demo-ctl { flex-wrap: wrap; } .demo-spacer { display: none; }
  .demo-panel { padding: 1.1rem .9rem 1.3rem; }
  .dfhead { grid-template-columns: 1fr auto 22px; gap: .4rem .8rem; } .dfno { grid-column: 1; } .dfroute { grid-column: 1 / -1; order: 3; }
  .dcrewrow { grid-template-columns: 1fr auto; } .dcrewrow > :nth-child(2) { grid-column: 1 / -1; order: 3; }
  .dfunnel .row { grid-template-columns: 80px 1fr 28px; }
  .tvsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tvrow { grid-template-columns: minmax(0, 1fr) auto 10px; gap: .5rem; }
  .tvrow .dbar { display: none; }
}
