/* ============================================================
   Ambient wall-monitor — three directions
   Shared reset + per-direction scoped styles (.dirA / .dirB / .dirC)
   Each board is a fixed 1920x1080 surface.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

.amb {
  width: 1920px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
.amb .tnum { font-variant-numeric: tabular-nums; }

/* tiny shared bits */
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* ============================================================
   DIRECTION A — «Сводка»  (editorial / calm / swiss)
   ============================================================ */
.dirA {
  background: #0b0d0c;
  color: #e9ebe8;
  font-family: "Space Grotesk", sans-serif;
  padding: 70px 80px 64px;
  display: flex;
  flex-direction: column;
}
.dirA .a-top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,0.10);
}
.dirA .a-mark { font-size: 22px; letter-spacing: 0.42em; font-weight: 600; color: #cfd2cd; }
.dirA .a-mark span { color: #4fd1b5; }
.dirA .a-date { font-size: 22px; letter-spacing: 0.16em; color: #7c817b; text-transform: uppercase; display: flex; gap: 28px; align-items: baseline; }
.dirA .a-date .clk { color: #e9ebe8; font-variant-numeric: tabular-nums; }

.dirA .a-body { flex: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; padding-top: 52px; }

.dirA .a-label { font-size: 19px; letter-spacing: 0.22em; text-transform: uppercase; color: #7c817b; }
.dirA .a-hero-num {
  font-size: 184px; line-height: 0.9; font-weight: 500; letter-spacing: -0.03em;
  margin: 22px 0 0; font-variant-numeric: tabular-nums;
}
.dirA .a-hero-num .cur { font-size: 92px; color: #6c716b; font-weight: 400; margin-left: 14px; }
.dirA .a-pace {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; white-space: nowrap;
  font-size: 21px; letter-spacing: 0.04em; color: #e0a44a;
  border: 1px solid rgba(224,164,74,0.4); border-radius: 999px; padding: 9px 20px;
}
.dirA .a-track { margin-top: 44px; height: 10px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.dirA .a-track > i { display: block; height: 100%; background: #4fd1b5; border-radius: 99px; }
.dirA .a-track-cap { margin-top: 16px; font-size: 21px; color: #9aa09a; letter-spacing: 0.01em; }
.dirA .a-track-cap b { color: #e9ebe8; font-weight: 500; }

.dirA .a-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 64px; border-top: 1px solid rgba(255,255,255,0.10); }
.dirA .a-stat { padding: 28px 28px 4px 0; border-right: 1px solid rgba(255,255,255,0.07); }
.dirA .a-stat:last-child { border-right: 0; padding-left: 28px; }
.dirA .a-stat:nth-child(2) { padding-left: 28px; }
.dirA .a-stat .k { font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; color: #7c817b; }
.dirA .a-stat .v { font-size: 40px; margin-top: 12px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dirA .a-stat .v small { font-size: 22px; color: #6c716b; }
.dirA .a-stat .v.pos { color: #4fd1b5; }

.dirA .a-cats { display: flex; flex-direction: column; }
.dirA .a-cats-head { display: flex; justify-content: space-between; align-items: baseline; }
.dirA .a-cats-head .h { font-size: 19px; letter-spacing: 0.22em; text-transform: uppercase; color: #7c817b; white-space: nowrap; }
.dirA .a-row { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.dirA .a-row:first-of-type { border-top: 1px solid rgba(255,255,255,0.08); }
.dirA .a-row-top { display: flex; justify-content: space-between; align-items: baseline; }
.dirA .a-row-name { font-size: 27px; letter-spacing: 0.005em; }
.dirA .a-row-val { font-size: 22px; color: #9aa09a; font-variant-numeric: tabular-nums; }
.dirA .a-row-val b { color: #e9ebe8; font-weight: 500; }
.dirA .a-bar { margin-top: 14px; height: 7px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.dirA .a-bar > i { display: block; height: 100%; border-radius: 99px; }
.dirA .ok > i { background: #4fd1b5; }
.dirA .warn > i { background: #e0a44a; }
.dirA .over > i { background: #d98a6a; }
.dirA .a-pct { font-size: 18px; font-variant-numeric: tabular-nums; margin-left: 14px; }
.dirA .a-pct.ok { color: #4fd1b5; } .dirA .a-pct.warn { color: #e0a44a; } .dirA .a-pct.over { color: #d98a6a; }

.dirA .a-foot { margin-top: 26px; display: flex; gap: 40px; align-items: center; }
.dirA .a-foot .ie { flex: 1; }
.dirA .a-foot .ie .k { font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: #7c817b; display: flex; justify-content: space-between; }
.dirA .a-foot .ie .iebar { margin-top: 10px; height: 14px; border-radius: 99px; }
.dirA .a-foot .ie.inc .iebar { background: linear-gradient(90deg,#4fd1b5,#4fd1b5); }
.dirA .a-foot .ie.exp .iebar { background: #54585280; }

/* ============================================================
   DIRECTION B — «Табло»  (terminal / departure board)
   ============================================================ */
.dirB {
  background: #050605;
  color: #d7ded8;
  font-family: "JetBrains Mono", monospace;
  padding: 56px 64px;
  display: flex; flex-direction: column;
}
.dirB::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 2px, transparent 2px 4px);
  mix-blend-mode: overlay;
}
.dirB .b-top { display: flex; justify-content: space-between; align-items: center; font-size: 22px; letter-spacing: 0.14em; }
.dirB .b-top .l { color: #34e0b0; text-shadow: 0 0 16px rgba(52,224,176,0.5); }
.dirB .b-top .l b { color: #7e857f; font-weight: 400; }
.dirB .b-top .r { display: flex; gap: 30px; align-items: center; color: #7e857f; }
.dirB .b-live { display: inline-flex; align-items: center; gap: 10px; color: #34e0b0; }
.dirB .b-live i { width: 11px; height: 11px; border-radius: 50%; background: #34e0b0; box-shadow: 0 0 12px #34e0b0; animation: bpulse 1.6s ease-in-out infinite; }
@keyframes bpulse { 0%,100%{opacity:1} 50%{opacity:0.25} }
.dirB .b-clk { color: #d7ded8; }

.dirB .b-grid { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto 1fr; gap: 30px; margin-top: 36px; }

.dirB .b-hero {
  border: 1px solid rgba(52,224,176,0.22); border-radius: 6px; padding: 40px 46px 38px;
  background: linear-gradient(180deg, rgba(52,224,176,0.06), rgba(52,224,176,0.0));
  position: relative;
}
.dirB .b-tag { font-size: 19px; letter-spacing: 0.2em; color: #7e857f; }
.dirB .b-tag::before { content:"["; color:#34e0b0; margin-right:8px;} .dirB .b-tag::after{content:"]"; color:#34e0b0; margin-left:8px;}
.dirB .b-hero-num { font-size: 210px; line-height: 0.86; font-weight: 700; letter-spacing: -0.04em; margin-top: 14px; color: #eafff8; text-shadow: 0 0 38px rgba(52,224,176,0.35); }
.dirB .b-hero-num .cur { color: #34e0b0; font-size: 96px; }
.dirB .b-hero-sub { margin-top: 26px; display: flex; gap: 18px; font-size: 22px; color: #9aa39c; flex-wrap: wrap; }
.dirB .b-hero-sub .chip { border: 1px solid rgba(255,255,255,0.12); border-radius: 4px; padding: 7px 14px; }
.dirB .b-hero-sub .chip b { color: #eafff8; font-weight: 700; }

.dirB .b-tiles { display: grid; grid-template-rows: repeat(2,1fr); gap: 30px; }
.dirB .b-tile { border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; }
.dirB .b-tile .k { font-size: 18px; letter-spacing: 0.16em; color: #7e857f; }
.dirB .b-tile .v { font-size: 64px; font-weight: 700; margin-top: 8px; letter-spacing: -0.02em; }
.dirB .b-tile .v small { font-size: 28px; color: #7e857f; font-weight: 400; }
.dirB .b-tile.today .v { color: #34e0b0; }
.dirB .b-tile.pace .v { color: #f0b24a; }
.dirB .b-tilewrap { display:grid; grid-template-columns:1fr 1fr; gap:30px; }

.dirB .b-board { grid-column: 1 / -1; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 22px 34px 26px; }
.dirB .b-board .bh { display: flex; justify-content: space-between; font-size: 17px; letter-spacing: 0.16em; color: #7e857f; padding-bottom: 14px; border-bottom: 1px dashed rgba(255,255,255,0.16); }
.dirB .b-line { display: grid; grid-template-columns: 280px 1fr 230px 96px; align-items: center; gap: 26px; padding: 15px 0; border-bottom: 1px dotted rgba(255,255,255,0.10); font-size: 26px; }
.dirB .b-line:last-child { border-bottom: 0; }
.dirB .b-line .nm { letter-spacing: 0.02em; }
.dirB .b-line .amt { text-align: right; color: #9aa39c; font-size: 23px; }
.dirB .b-line .amt b { color: #eafff8; font-weight: 700; }
.dirB .b-line .pc { text-align: right; font-weight: 700; }
.dirB .b-meter { height: 16px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; position: relative; }
.dirB .b-meter > i { display: block; height: 100%; }
.dirB .ok .b-meter > i, .dirB .ok .pc { color: #34e0b0; } .dirB .ok .b-meter > i{ background:#34e0b0; box-shadow:0 0 14px rgba(52,224,176,0.5);}
.dirB .warn .b-meter > i, .dirB .warn .pc { color: #f0b24a; } .dirB .warn .b-meter > i{ background:#f0b24a; box-shadow:0 0 14px rgba(240,178,74,0.45);}
.dirB .over .b-meter > i, .dirB .over .pc { color: #f08a5a; } .dirB .over .b-meter > i{ background:#f08a5a; box-shadow:0 0 14px rgba(240,138,90,0.45);}

/* ============================================================
   DIRECTION C — «Пульс»  (soft / consumer / warm)
   ============================================================ */
.dirC {
  background:
    radial-gradient(1100px 760px at 16% 8%, color-mix(in srgb, var(--mint, #4fd1b5) 14%, transparent), transparent 60%),
    radial-gradient(900px 700px at 96% 96%, color-mix(in srgb, var(--mint, #4fd1b5) 7%, transparent), transparent 55%),
    var(--bg, #131110);
  color: var(--text, #f0eee9);
  font-family: "Manrope", sans-serif;
  padding: 56px 60px;
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; gap: 30px;
}
.dirC .c-top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.dirC .c-mark { display: flex; align-items: center; gap: 16px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.dirC .c-mark .c-space { display: inline-flex; align-items: center; gap: 11px; margin-left: 8px; padding: 9px 18px 9px 16px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line-2, rgba(255,255,255,0.1)); font-size: 21px; font-weight: 700; color: var(--text, #f0eee9); letter-spacing: 0; }
.dirC .c-mark .c-space .d { width: 11px; height: 11px; border-radius: 50%; background: var(--mint, #4fd1b5); box-shadow: 0 0 12px var(--accent-glow, rgba(79,209,181,0.5)); }
.dirC .c-mark .glyph { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(145deg,var(--mint, #4fd1b5),var(--mint-deep, #39b89c)); display: grid; place-items: center; color: var(--accent-ink, #0b1714); font-weight: 800; font-size: 26px; box-shadow: 0 8px 26px color-mix(in srgb, var(--mint, #4fd1b5) 40%, transparent); }
.dirC .c-date { font-size: 23px; color: var(--muted, #a7a39c); display: flex; gap: 24px; align-items: center; }
.dirC .c-date .clk { color: var(--text, #f0eee9); font-weight: 700; font-variant-numeric: tabular-nums; }

.dirC .card { background: linear-gradient(168deg, var(--panel-2, #261f1b), var(--panel, #1c1815)); border: 1px solid var(--line, rgba(255,255,255,0.07)); border-radius: 30px; box-shadow: 0 26px 60px rgba(0,0,0,0.4); }

.dirC .c-hero { padding: 34px 48px; display: flex; gap: 46px; align-items: center; }
.dirC .c-ring { width: 240px; height: 240px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--mint, #4fd1b5) 0 var(--p), rgba(255,255,255,0.07) var(--p) 100%); }
.dirC .c-ring::before { content:""; position:absolute; inset:20px; border-radius:50%; background:var(--panel, #1a1614); }
.dirC .c-ring .inner { position: relative; text-align: center; }
.dirC .c-ring .inner .pp { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; }
.dirC .c-ring .inner .pl { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim, #9a958d); margin-top: 4px; }
.dirC .c-hero-r { flex: 1; }
.dirC .c-hero-lab { font-size: 20px; letter-spacing: 0.04em; color: var(--muted, #a7a39c); }
.dirC .c-hero-num { font-size: 92px; line-height: 0.92; font-weight: 800; letter-spacing: -0.035em; margin: 6px 0 0; white-space: nowrap; }
.dirC .c-hero-num .cur { font-size: 46px; color: var(--dim, #8a857d); }
.dirC .c-chiprow { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.dirC .c-chip { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,0.05); white-space: nowrap; }
.dirC .c-chip.good { color: var(--pos, #4fd1b5); background: color-mix(in srgb, var(--pos, #4fd1b5) 13%, transparent); }
.dirC .c-chip.soft { color: var(--amber, #e8b066); background: color-mix(in srgb, var(--amber, #e8b066) 13%, transparent); }
.dirC .c-chip b { font-weight: 800; }

.dirC .c-today { padding: 30px 40px; display: flex; flex-direction: column; justify-content: center; }
.dirC .c-today .lab { font-size: 19px; color: var(--muted, #a7a39c); letter-spacing: 0.03em; }
.dirC .c-today .big { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.dirC .c-today .big small { font-size: 28px; color: var(--dim, #8a857d); font-weight: 600; }
.dirC .c-today .tr { margin-top: 18px; height: 14px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.dirC .c-today .tr > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg,var(--pos, #4fd1b5),var(--mint-2, #6fe0c8)); }
.dirC .c-today .cap { margin-top: 14px; font-size: 18px; color: var(--dim, #9a958d); }
.dirC .c-today .cap b { color: var(--pos, #4fd1b5); }

.dirC .c-budgets { grid-column: 1 / -1; padding: 30px 44px 34px; align-self: stretch; }
.dirC .c-budgets .bh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.dirC .c-budgets .bh .t { font-size: 26px; font-weight: 800; white-space: nowrap; }
.dirC .c-budgets .bh .s { white-space: nowrap; }
.dirC .c-b .bdot { white-space: nowrap; }
.dirC .c-budgets .bh .s { font-size: 20px; color: var(--muted, #a7a39c); }
.dirC .c-blist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 34px; margin-top: 22px; }
.dirC .c-b { }
.dirC .c-b .bdot { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 600; }
.dirC .c-b .bval { font-size: 19px; color: var(--dim, #9a958d); margin-top: 8px; font-variant-numeric: tabular-nums; }
.dirC .c-b .bval b { color: var(--text, #f0eee9); font-weight: 700; }
.dirC .c-b .bbar { margin-top: 12px; height: 12px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.dirC .c-b .bbar > i { display: block; height: 100%; border-radius: 99px; }
.dirC .c-b.ok .bbar > i { background: var(--pos, #4fd1b5); } .dirC .c-b.ok .bdot .dot { background:var(--pos, #4fd1b5); }
.dirC .c-b.warn .bbar > i { background: var(--amber, #e8b066); } .dirC .c-b.warn .bdot .dot { background:var(--amber, #e8b066); }
.dirC .c-b.over .bbar > i { background: var(--red, #e0906a); } .dirC .c-b.over .bdot .dot { background:var(--red, #e0906a); }
.dirC .c-b .bpct { font-size: 18px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.dirC .c-b.ok .bpct{color:var(--pos, #4fd1b5);}.dirC .c-b.warn .bpct{color:var(--amber, #e8b066);}.dirC .c-b.over .bpct{color:var(--red, #e0906a);}
