/* Демонстрация: Технологичное оформление. Все селекторы ограничены .dm-tech */

.dm-tech {
  --bg: #07090d;
  --surface: #0e131b;
  --surface2: #121925;
  --line: #1d2733;
  --ink: #e6edf3;
  --muted: #8b98a9;
  --accent: #22d3ee;
  --ok: #a3e635;
  --warn: #fbbf24;
  --crit: #ff5c7a;
  --mono: "Fira Code", ui-monospace, monospace;
  background: var(--bg);
  color: var(--ink);
  font-family: "Exo 2", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Фоновая сетка и свечение */
.dm-tech .tc-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(600px 360px at 78% 34%, rgba(34, 211, 238, .10), transparent 70%),
    linear-gradient(rgba(29, 39, 51, .55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 39, 51, .55) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
.dm-tech > *:not(.tc-bg), .dm-tech .tc-main > *:not(.tc-bg) { position: relative; }

/* Общие элементы */
.dm-tech .tc-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: .12em; }
.dm-tech .tc-logo em { font-style: normal; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--accent); }
.dm-tech .tc-logo__mark { width: 18px; height: 18px; border: 1.5px solid var(--accent); transform: rotate(45deg); box-shadow: 0 0 10px rgba(34, 211, 238, .45), inset 0 0 0 4px var(--bg), inset 0 0 0 9px var(--accent); }
.dm-tech .tc-mlabel { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dm-tech .tc-code { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.dm-tech .tc-glow { color: var(--accent); text-shadow: 0 0 18px rgba(34, 211, 238, .45); }
.dm-tech .tc-ok { color: var(--ok); }
.dm-tech .tc-warn { color: var(--warn); }
.dm-tech .tc-c { color: var(--muted); }
.dm-tech kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; opacity: .8; }

.dm-tech .tc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 3px;
  background: var(--accent); color: #041016; font-weight: 600; font-size: 15px;
  box-shadow: 0 0 18px rgba(34, 211, 238, .35);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.dm-tech .tc-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #2c3a4b; clip-path: none; }
.dm-tech .tc-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.dm-tech .tc-btn--block { display: flex; width: 100%; }

.dm-tech .tc-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ok); }
.dm-tech .tc-status i, .dm-tech .tc-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dm-tech .tc-live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.dm-tech .tc-live i { animation: tc-pulse 2s ease-in-out infinite; }
@keyframes tc-pulse { 50% { opacity: .35; } }

/* Панель с угловыми метками */
.dm-tech .tc-panel {
  background: linear-gradient(var(--surface), var(--surface)) padding-box;
  border: 1px solid var(--line); border-radius: 4px;
}
.dm-tech .tc-hud, .dm-tech .tc-bigchart { position: relative; }
.dm-tech .tc-hud::before, .dm-tech .tc-hud::after, .dm-tech .tc-bigchart::before, .dm-tech .tc-bigchart::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-color: var(--accent); border-style: solid;
}
.dm-tech .tc-hud::before, .dm-tech .tc-bigchart::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.dm-tech .tc-hud::after, .dm-tech .tc-bigchart::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.dm-tech .tc-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dm-tech .tc-chart__line { filter: drop-shadow(0 0 6px rgba(34, 211, 238, .6)); }
.dm-tech .tc-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 6px; }
.dm-tech .tc-legend { display: flex; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dm-tech .tc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dm-tech .tc-sw { width: 16px; height: 2px; background: var(--accent); }
.dm-tech .tc-sw--dash { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 8px); }
.dm-tech .tc-sw--b { background: repeating-linear-gradient(90deg, var(--ok) 0 5px, transparent 5px 9px); }

/* ----- Сайт ----- */
.dm-tech.dm--site { padding: 0 56px; }
.dm-tech .tc-nav { display: flex; align-items: center; gap: 36px; height: 72px; border-bottom: 1px solid var(--line); }
.dm-tech .tc-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); margin-left: 24px; }
.dm-tech .tc-links li { display: flex; align-items: baseline; gap: 6px; padding: 24px 0 22px; }
.dm-tech .tc-links b { font-family: var(--mono); font-weight: 400; font-size: 11px; color: var(--muted); }
.dm-tech .tc-links .is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.dm-tech .tc-links .is-active b { color: var(--accent); }
.dm-tech .tc-nav .tc-status { margin-left: auto; }

.dm-tech .tc-hero { display: grid; grid-template-columns: 1fr 520px; gap: 56px; padding-top: 40px; }
.dm-tech .tc-hero h1 { font-size: 52px; line-height: 1.06; font-weight: 700; letter-spacing: -.015em; margin: 16px 0 20px; }
.dm-tech .tc-lead { font-size: 17px; line-height: 1.6; color: #aab6c5; max-width: 500px; margin-bottom: 28px; }
.dm-tech .tc-actions { display: flex; gap: 14px; margin-bottom: 28px; }
.dm-tech .tc-term { font-family: var(--mono); font-size: 13px; line-height: 1.8; padding: 12px 16px; background: #05070a; border: 1px solid var(--line); border-left: 2px solid var(--accent); max-width: 500px; }

.dm-tech .tc-hud { padding: 18px 20px 16px; background: rgba(14, 19, 27, .86); }
.dm-tech .tc-hud .tc-panel__head { margin-bottom: 14px; }
.dm-tech .tc-chart { width: 100%; height: 220px; }
.dm-tech .tc-tip { position: absolute; top: 58px; right: 108px; font-family: var(--mono); font-size: 11px; padding: 3px 8px; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); }
.dm-tech .tc-hud .tc-legend { margin-top: 10px; }
.dm-tech .tc-readouts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); }
.dm-tech .tc-readouts div { padding-top: 12px; }
.dm-tech .tc-readouts div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.dm-tech .tc-readouts p { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dm-tech .tc-readouts b { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.dm-tech .tc-readouts small { font-size: 13px; color: var(--muted); }

.dm-tech .tc-metrics { display: grid; grid-template-columns: repeat(3, 1fr) 220px; margin-top: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dm-tech .tc-metrics > div { padding: 18px 24px 18px 0; }
.dm-tech .tc-metrics > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.dm-tech .tc-metrics b { display: block; font-size: 38px; font-weight: 600; line-height: 1.1; margin: 8px 0 4px; }
.dm-tech .tc-metrics small { font-size: 16px; color: var(--muted); margin-left: 4px; font-weight: 500; }
.dm-tech .tc-metrics p { font-size: 13px; color: var(--muted); }
.dm-tech .tc-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.dm-tech .tc-bars i { flex: 1; background: linear-gradient(var(--accent), rgba(34, 211, 238, .15)); opacity: .85; }
.dm-tech .tc-bars i:last-child { box-shadow: 0 0 12px rgba(34, 211, 238, .55); opacity: 1; }

/* ----- Приложение ----- */
.dm-tech.dm--app { display: flex; flex-direction: column; gap: 12px; padding: 0 16px 0; }
.dm-tech .tc-sbar { display: flex; justify-content: space-between; padding: 14px 12px 0; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.dm-tech .tc-sbar__icons { display: flex; align-items: center; gap: 5px; font-size: 11px; }
.dm-tech .tc-sbar__icons i { width: 14px; height: 9px; border: 1px solid var(--ink); border-radius: 2px; }
.dm-tech .tc-sbar__icons i:last-child { width: 20px; background: linear-gradient(90deg, var(--ink) 70%, transparent 70%); }
.dm-tech .tc-apphead { display: flex; justify-content: space-between; align-items: flex-end; padding: 6px 4px 2px; }
.dm-tech .tc-apphead h1 { font-size: 28px; font-weight: 700; line-height: 1.15; margin-top: 2px; }

.dm-tech .tc-gauge { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 14px; }
.dm-tech .tc-gauge__arc { filter: drop-shadow(0 0 6px rgba(34, 211, 238, .7)); }
.dm-tech .tc-gauge__val { position: absolute; left: 14px; top: 14px; width: 132px; height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dm-tech .tc-gauge__val b { font-family: var(--mono); font-size: 30px; font-weight: 500; line-height: 1; }
.dm-tech .tc-gauge__val small { font-size: 14px; color: var(--muted); }
.dm-tech .tc-gauge__val span { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.dm-tech .tc-gauge__list { display: grid; gap: 0; }
.dm-tech .tc-gauge__list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.dm-tech .tc-gauge__list b { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.dm-tech .tc-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-tech .tc-quad .tc-panel { padding: 12px 14px; }
.dm-tech .tc-quad b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 500; margin: 2px 0 4px; }
.dm-tech .tc-quad small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.dm-tech .tc-quad svg { width: 100%; height: 22px; }
.dm-tech .tc-pips { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; height: 22px; align-items: center; }
.dm-tech .tc-pips i { height: 8px; background: var(--ok); opacity: .85; }

.dm-tech .tc-log { padding: 12px 14px 6px; }
.dm-tech .tc-log ul { margin-top: 6px; }
.dm-tech .tc-log li { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dm-tech .tc-log time, .dm-tech .tc-log em { font-family: var(--mono); font-size: 11px; font-style: normal; }
.dm-tech .tc-log time { color: var(--muted); }

.dm-tech .tc-tabbar { display: flex; justify-content: space-around; margin: auto -16px 0; padding: 10px 8px 22px; border-top: 1px solid var(--line); background: rgba(7, 9, 13, .92); font-size: 11px; color: var(--muted); }
.dm-tech .tc-tabbar span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 6px; min-width: 64px; }
.dm-tech .tc-tabbar .is-active { color: var(--accent); }
.dm-tech .tc-tabbar .is-active::before { content: ""; position: absolute; top: -11px; left: 14px; right: 14px; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.dm-tech .tc-ico { width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 3px; }
.dm-tech .tc-ico--grid { background: linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat, linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat; }
.dm-tech .tc-ico--wave { border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0; background: linear-gradient(135deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%) 0 0 / 10px 20px repeat-x; }
.dm-tech .tc-ico--bell { border-radius: 10px 10px 3px 3px; }
.dm-tech .tc-ico--term { background: linear-gradient(currentColor, currentColor) 10px 12px / 6px 1.5px no-repeat; }

/* ----- Веб-платформа ----- */
.dm-tech.dm--platform { display: grid; grid-template-columns: 224px 1fr; }
.dm-tech .tc-side { display: flex; flex-direction: column; padding: 22px 16px 18px; background: #0a0d13; border-right: 1px solid var(--line); }
.dm-tech .tc-side__group { margin: 34px 0 10px 10px; }
.dm-tech .tc-side__group + .tc-side__nav { margin-bottom: 0; }
.dm-tech .tc-side__nav { display: grid; gap: 2px; font-size: 14px; color: #aab6c5; }
.dm-tech .tc-side__nav li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 3px; }
.dm-tech .tc-side__nav b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--muted); }
.dm-tech .tc-side__nav em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; padding: 0 6px; border-radius: 3px; background: rgba(255, 92, 122, .16); color: var(--crit); }
.dm-tech .tc-side__nav .is-active { color: var(--ink); background: rgba(34, 211, 238, .08); box-shadow: inset 2px 0 0 var(--accent); }
.dm-tech .tc-side__nav .is-active b { color: var(--accent); }
.dm-tech .tc-side__foot { margin-top: auto; display: grid; gap: 6px; padding: 12px 10px 0; border-top: 1px solid var(--line); }

.dm-tech .tc-main { position: relative; padding: 0 24px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.dm-tech .tc-main .tc-bg { background-size: auto, 32px 32px, 32px 32px; background-image: radial-gradient(520px 300px at 40% 55%, rgba(34, 211, 238, .07), transparent 70%), linear-gradient(rgba(29, 39, 51, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 39, 51, .45) 1px, transparent 1px); }
.dm-tech .tc-top { display: flex; align-items: center; gap: 20px; height: 56px; margin: 0 -24px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(7, 9, 13, .9); }
.dm-tech .tc-path { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.dm-tech .tc-path b { font-weight: 500; color: var(--ink); }
.dm-tech .tc-cmd { margin-left: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 340px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: 13px; color: var(--muted); }
.dm-tech .tc-avatar { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 3px; font-family: var(--mono); font-size: 12px; color: var(--accent); }

.dm-tech .tc-titlebar { display: flex; align-items: flex-end; gap: 12px; padding-top: 4px; }
.dm-tech .tc-titlebar > div:first-child { margin-right: auto; }
.dm-tech .tc-titlebar h1 { font-size: 30px; font-weight: 700; line-height: 1.15; margin-top: 2px; }
.dm-tech .tc-seg { display: flex; border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dm-tech .tc-seg span { padding: 8px 12px; }
.dm-tech .tc-seg span + span { border-left: 1px solid var(--line); }
.dm-tech .tc-seg .is-active { color: var(--accent); background: rgba(34, 211, 238, .1); box-shadow: inset 0 -2px 0 var(--accent); }

.dm-tech .tc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dm-tech .tc-kpis .tc-panel { padding: 12px 16px; }
.dm-tech .tc-kpis b { display: block; font-family: var(--mono); font-size: 26px; font-weight: 500; line-height: 1.25; margin-top: 4px; }
.dm-tech .tc-kpis small { font-size: 13px; color: var(--muted); margin-left: 3px; }
.dm-tech .tc-kpis em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dm-tech .tc-kpis .tc-up { color: var(--ok); }
.dm-tech .tc-kpis .tc-down { color: var(--warn); }

.dm-tech .tc-row { display: grid; grid-template-columns: 1fr 300px; gap: 12px; }
.dm-tech .tc-bigchart { padding: 14px 16px 12px; }
.dm-tech .tc-bigchart svg { width: 100%; height: 210px; margin-top: 14px; }
.dm-tech .tc-alerts { padding: 14px 16px; }
.dm-tech .tc-alerts ul { margin-top: 10px; display: grid; gap: 8px; }
.dm-tech .tc-alerts li { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--line); border-left-width: 2px; border-radius: 3px; background: var(--surface2); }
.dm-tech .tc-alerts em { grid-row: span 2; align-self: start; font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; }
.dm-tech .tc-alerts p { font-size: 13px; }
.dm-tech .tc-alerts time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.dm-tech .tc-alerts .is-crit { border-left-color: var(--crit); }
.dm-tech .tc-alerts .is-crit em { color: var(--crit); background: rgba(255, 92, 122, .14); }
.dm-tech .tc-alerts .is-warn { border-left-color: var(--warn); }
.dm-tech .tc-alerts .is-warn em { color: var(--warn); background: rgba(251, 191, 36, .12); }

.dm-tech .tc-tablewrap { padding: 2px 16px 4px; }
.dm-tech .tc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dm-tech .tc-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.dm-tech .tc-table td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.dm-tech .tc-table tr:last-child td { border-bottom: 0; }
.dm-tech .tc-table td:first-child { font-family: var(--mono); color: var(--ink); }
.dm-tech .tc-table td:nth-child(2) { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.dm-tech .tc-table .r { text-align: right; padding-right: 28px; font-family: var(--mono); }
.dm-tech .tc-table .is-selected td { background: rgba(34, 211, 238, .06); }
.dm-tech .tc-table .is-selected td:first-child { box-shadow: inset 2px 0 0 var(--accent); padding-left: 10px; }
.dm-tech .tc-st { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.dm-tech .tc-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dm-tech .tc-st--ok { color: var(--ok); }
.dm-tech .tc-st--warn { color: var(--warn); }
.dm-tech .tc-st--crit { color: var(--crit); }
.dm-tech .tc-st--crit::before { border-radius: 1px; transform: rotate(45deg); }
.dm-tech .tc-meter { display: block; width: 140px; height: 6px; background: var(--line); }
.dm-tech .tc-meter i { display: block; height: 100%; background: var(--accent); }
.dm-tech .tc-meter--warn i { background: var(--warn); }
.dm-tech .tc-meter--crit i { background: var(--crit); }

/* Приложение: компактная вертикальная раскладка без сжатия блоков */
.dm-tech.dm--app > * { flex-shrink: 0; }
.dm-tech.dm--app { gap: 10px; }
.dm-tech .tc-quad .tc-panel { padding: 10px 14px; }
.dm-tech .tc-log li { padding: 7px 0; }
.dm-tech .tc-gauge { padding: 12px 14px; }
.dm-tech .tc-gauge__val { top: 12px; }
