

.tb { position: relative; overflow: hidden; isolation: isolate; padding: clamp(132px, 15vh, 168px) 0 0; }
.tb-bg { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, var(--ivory) 22%, var(--tb-mid) 60%, var(--tb-end) 104%); }
.tb.navy  { --tb-mid: #B9C8D3; --tb-end: #1C3A66; }
.tb.green { --tb-mid: #B4CCC1; --tb-end: #2E6A4F; }

.tb.blue .tb-bg {
  background: linear-gradient(180deg,
    var(--ivory) 0%,
    var(--ivory) 18%, 
    color-mix(in srgb, var(--blue) 22%, var(--ivory)) 44%,
    color-mix(in srgb, var(--blue) 70%, var(--ivory)) 66%,
    var(--blue-deep) 86%,
    #1C3A66 100%);
}

.tb.blue .tb-flutes, .tb.blue .tb-grain,
.tb.navy .tb-flutes, .tb.navy .tb-grain { display: none; }

.tb-flutes { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.16) 14px, rgba(255, 255, 255, 0.34) 24px, rgba(255, 255, 255, 0.06) 34px, rgba(255, 255, 255, 0) 44px);
  -webkit-mask-image: linear-gradient(180deg, transparent 8%, #000 40%); mask-image: linear-gradient(180deg, transparent 8%, #000 40%); }

.tb-grain { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.tb-frame { position: absolute; inset: 0 0 0 0; z-index: -1; pointer-events: none; }
.tb-frame::before { content: ''; position: absolute; top: 76px; bottom: 0; left: 50%; transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) + 2px)); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.tb-frame::after { content: ''; position: absolute; left: 0; right: 0; top: 76px; border-top: 1px solid var(--line); }

.tb-frame::before { display: none; }

.tb-copy { position: relative; text-align: center; max-width: 820px; margin: 0 auto; }
.tb-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-deep); padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255, 255, 255, 0.6); }
.tb-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--sage-deep); }
.tb-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: var(--sage); opacity: 0.45; animation: tb-ping 2.4s var(--ease) infinite; }
@keyframes tb-ping { 0% { transform: scale(0.5); opacity: 0.55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.tb h1 { font-size: clamp(2.7rem, 5.4vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 26px 0 22px; }
.tb h1:first-child { margin-top: 0; } 
.tb-sub { font-size: clamp(1.02rem, 1.25vw, 1.15rem); color: var(--ink-soft); max-width: 640px; margin: 0 auto 34px; }
.tb-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.tb-actions .btn-ghost { background: var(--white); }
.tb-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 0.84rem; color: var(--ink-soft); list-style: none; padding: 0; }
.tb-proof li { display: inline-flex; align-items: center; gap: 7px; }
.tb-proof li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

.tb-stage { position: relative; width: min(calc(100% - 2 * var(--gutter)), 1120px); margin: clamp(48px, 6vw, 72px) auto 0; height: clamp(300px, 30vw, 480px); perspective: 1200px; }
.dash { display: grid; grid-template-columns: 196px 1fr; height: 640px; background: var(--white); border: 1px solid rgba(255, 255, 255, 0.7); border-bottom: 0; border-radius: 12px 12px 0 0; overflow: hidden; text-align: left; font-size: 13px; color: var(--ink);
  box-shadow: 0 16px 36px rgba(21, 37, 61, 0.14), 0 40px 60px rgba(21, 37, 61, 0.1);
  transform-origin: 50% 0; animation: tb-rise 1.2s cubic-bezier(0.2, 0.7, 0.1, 1) 0.25s both; }
@keyframes tb-rise { from { opacity: 0; transform: translateY(40px) scale(0.92); } to { opacity: 1; transform: none; } }
.dash-side { background: #F6F8FA; border-right: 1px solid var(--line); padding: 18px 12px; }
.dash-side .ws { display: flex; align-items: center; gap: 9px; padding: 4px 8px 18px; font-weight: 600; font-size: 12.5px; }
.dash-side .ws i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #C9D3DE, #E3E8EE); }
.dash-side .grp { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding: 12px 8px 6px; }
.dash-side a { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; color: var(--ink-soft); font-size: 12.5px; }
.dash-side a.on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(21, 37, 61, 0.08); }
.dash-side a svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dash-side a .n { margin-left: auto; font-size: 10.5px; font-weight: 700; color: #9E4430; background: rgba(180, 83, 60, 0.1); border-radius: 99px; padding: 1px 7px; }
.dash-main { padding: 20px 24px; background: var(--white); }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.dash-top b { display: block; font-size: 15px; font-weight: 600; }
.dash-top span { font-size: 11.5px; color: var(--ink-soft); }
.dash-top .acts { display: flex; gap: 8px; }
.db-chip { font-size: 11.5px; font-weight: 600; padding: 7px 12px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--white); }
.db-chip.solid { background: #1C3A66; border-color: #1C3A66; color: var(--white); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 9px; padding: 13px 14px; }
.kpi small { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 6px; }
.kpi b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi b span { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.kpi em { display: block; font-style: normal; font-size: 10.5px; margin-top: 6px; color: var(--sage-deep); font-weight: 600; }
.kpi.alert em { color: #9E4430; }
.db-bar { height: 4px; border-radius: 4px; background: var(--ivory-soft); margin-top: 8px; overflow: hidden; }
.db-bar i { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.dash-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 12px; }
.panel { border: 1px solid var(--line); border-radius: 9px; padding: 14px 16px; }
.panel h4 { font-family: var(--sans); font-size: 12.5px; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.panel h4 span { font-weight: 500; color: var(--ink-soft); font-size: 11px; }
.db-steps li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; list-style: none; }
.db-steps { padding: 0; margin: 0; }
.db-steps li:first-child { border-top: 0; }
.db-steps .s { width: 16px; height: 16px; border-radius: 50%; flex: none; border: 1.5px solid var(--line-strong); }
.db-steps .s.ok { border: 0; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.db-steps .s.mid { border-color: var(--blue); border-right-color: transparent; }
.db-steps .t { margin-left: auto; font-size: 11px; color: var(--ink-soft); }
.rev { width: 100%; border-collapse: collapse; font-size: 12px; }
.rev th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); padding: 0 8px 8px 0; border-bottom: 1px solid var(--line); }
.rev td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rev td small { display: block; font-size: 10.5px; color: var(--ink-soft); }
.rev .db-why { color: #9E4430; font-weight: 600; }
.rev .db-go { font-size: 10.5px; font-weight: 600; color: var(--blue-deep); }
.dash-note { position: absolute; right: 0; top: -26px; font-size: 11px; color: var(--ink-soft); }

.tb-strip { position: relative; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ivory); overflow: hidden; padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.tb-strip .track { display: flex; width: max-content; animation: tb-marquee 48s linear infinite; }
.tb-strip ul { display: flex; gap: 56px; padding: 0 28px; margin: 0; list-style: none; }
.tb-strip li { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-soft); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.tb-strip li::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); opacity: 0.7; }
@keyframes tb-marquee { to { transform: translateX(-50%); } }

@media (max-width: 900px) {
  .tb-stage { height: 340px; }
  .dash { grid-template-columns: minmax(0, 1fr); font-size: 12px; }
  .dash-main { min-width: 0; padding: 16px; }
  .kpi b { font-size: 18px; }
  .kpi em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dash-side { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .panel:first-child { display: none; }
  .dash-top .acts .db-chip:not(.solid) { display: none; }
  .tb-frame::before { display: none; }
  .dash-note { position: static; display: block; text-align: right; margin-bottom: 6px; }
  .tb-badge { font-size: 0.64rem; letter-spacing: 0.1em; }
}
@media (prefers-reduced-motion: reduce) {
  .dash, .tb-dot::after, .tb-strip .track { animation: none; }
}
