/*
  NBA Coaching Forest — Trade Tracker v73
  COSMETICS ONLY.
  This layer intentionally changes no layout logic, state, data, event handling,
  wheel mechanics, snapshot rules, resolver calls, or JavaScript.

  Art direction: another chapter in the same book as the Coaching Forest —
  midnight gallery, archival wallpaper, brass, deep forest, indigo and aubergine.
*/

:root{
  --tt-bg:#070c14;
  --tt-panel:#111a27;
  --tt-panel-2:#172234;
  --tt-paper:#f4ead0;
  --tt-paper-2:#dfcfaa;
  --tt-ink:#171d1a;
  --tt-muted:#9aa6b6;
  --tt-line:#334457;
  --tt-accent:#d6b35f;
  --tt-accent-2:#76539d;
  --tt-in:#5eaa8e;
  --tt-out:#c77367;
  --tt-warning:#d9a84c;
  --tt-radius:18px;
  --tt-shadow:0 20px 54px rgba(0,0,0,.36);

  --tt73-night:#070c14;
  --tt73-ink:#0a1220;
  --tt73-navy:#101d30;
  --tt73-blue:#1c3552;
  --tt73-purple:#241734;
  --tt73-purple-2:#3b2452;
  --tt73-forest:#103b32;
  --tt73-forest-2:#174c40;
  --tt73-teal:#237d74;
  --tt73-cream:#f4ead0;
  --tt73-cream-dim:#d7c9a8;
  --tt73-brass:#d6b35f;
  --tt73-brass-hi:#f0d58a;
  --tt73-walnut:#4a2c20;
  --tt73-walnut-dark:#25150f;
  --tt73-serif:Georgia,"Times New Roman",serif;
  --tt73-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

html{background:var(--tt73-night)}
body{
  color:var(--tt73-cream);
  background-color:var(--tt73-night);
  background-image:
    radial-gradient(circle at 12% -8%,rgba(81,48,112,.30),transparent 34rem),
    radial-gradient(circle at 92% 18%,rgba(24,86,72,.28),transparent 36rem),
    linear-gradient(180deg,rgba(5,10,18,.89),rgba(7,15,24,.93)),
    url("coaching-forest-wallpaper.webp");
  background-size:auto,auto,auto,628px 628px;
  background-repeat:no-repeat,no-repeat,no-repeat,repeat;
  background-attachment:fixed,fixed,fixed,fixed;
}
/* The same museum / gallery chrome as the Coaching Forest, translated darker. */
.tt-topbar{
  border-bottom:2px solid #8e6d32;
  background:
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px) 0 0/30px 100%,
    linear-gradient(180deg,rgba(15,30,43,.98),rgba(7,17,25,.985));
  box-shadow:inset 0 -1px 0 #24140d,0 10px 32px rgba(0,0,0,.42);
  backdrop-filter:blur(20px) saturate(.9);
}
.tt-brand{color:var(--tt73-cream)}
.tt-brand-mark{
  border:2px solid var(--tt73-brass);
  background:
    radial-gradient(circle at 38% 30%,rgba(255,255,255,.12),transparent 26%),
    linear-gradient(145deg,var(--tt73-forest-2),#0b2823 74%);
  color:var(--tt73-brass-hi);
  font-family:var(--tt73-serif);
  font-weight:900;
  box-shadow:inset 0 0 0 3px #091710,inset 0 0 0 4px #d6b35f42,0 5px 16px rgba(0,0,0,.5);
  text-shadow:0 1px #000;
}
.tt-brand strong{
  color:#f1ddb0;
  font-family:var(--tt73-serif);
  font-size:16px;
  letter-spacing:.018em;
}
.tt-brand small{color:#a9b5b0;letter-spacing:.055em}
.tt-primary-nav a{
  border:1px solid transparent;
  color:#aeb9c6;
  font-family:var(--tt73-sans);
}
.tt-primary-nav a:hover,.tt-primary-nav a:focus-visible{
  border-color:#746341;
  background:#ffffff08;
  color:var(--tt73-brass-hi);
}
.tt-primary-nav a[aria-current="page"]{
  border-color:#9c7d40;
  background:linear-gradient(180deg,#2c2140,#191b31);
  color:#f3e4be;
  box-shadow:inset 0 0 0 1px #d6b35f18,0 3px 12px rgba(0,0,0,.24);
}

/* Field-guide typography. */
.tt-team-hero h1,.tt-browser-header h1,.tt-anchor-title h1,.tt-section-heading h2,.tt-detail-dialog h2{
  color:#f3e6c7;
  font-family:var(--tt73-serif);
  font-weight:800;
  letter-spacing:-.028em;
  text-shadow:0 2px 18px rgba(0,0,0,.36);
}
.tt-kicker,.tt-section-heading>div>span,.tt-wheel-heading span,.tt-perspective-row>span{
  color:var(--tt73-brass-hi);
  letter-spacing:.14em;
}
.tt-team-hero p,.tt-browser-header p,.tt-anchor-title p,.tt-section-heading p{color:#aeb9c1}

/* Chapter-opening surface — uses the same botanical basketball wallpaper as the forest. */
.tt-team-hero{
  position:relative;
  border:1px solid #4d5260;
  border-left:3px solid var(--tt73-brass);
  border-radius:16px;
  background:
    radial-gradient(circle at 85% 12%,rgba(38,126,111,.13),transparent 18rem),
    linear-gradient(118deg,rgba(40,23,57,.82),rgba(12,30,39,.77));
  box-shadow:inset 0 0 0 1px rgba(214,179,95,.05),0 20px 48px rgba(0,0,0,.20);
}
.tt-team-hero:after{
  content:"";
  position:absolute;
  right:22px;
  bottom:18px;
  width:62px;
  height:62px;
  pointer-events:none;
  border:1px solid #d6b35f3d;
  border-radius:50%;
  box-shadow:inset 0 0 0 5px #070c1466,inset 0 0 0 6px #d6b35f24;
  opacity:.55;
}

/* Inputs / controls remain the same size and behavior, now part of the archive. */
.tt-team-search span,.tt-trade-search span{color:#a99b79}
.tt-team-search input,.tt-trade-search input{
  border-color:#4d5b66;
  background:linear-gradient(180deg,#0d1824,#0a131e);
  color:#f6efdd;
  box-shadow:inset 0 1px 0 #ffffff08,inset 0 -1px 0 #000;
}
.tt-team-search input::placeholder,.tt-trade-search input::placeholder{color:#718090}
.tt-team-search input:focus,.tt-trade-search input:focus{
  border-color:var(--tt73-brass);
  box-shadow:0 0 0 3px #237d7426,inset 0 0 0 1px #d6b35f18;
}
.tt-back,.tt-tracker-actions button,.tt-detail-dialog header button{
  border-color:#6c6048;
  background:linear-gradient(180deg,#1a3140,#10212c);
  color:#eadfca;
  box-shadow:inset 0 0 0 1px #d6b35f0c;
}
.tt-back:hover,.tt-back:focus-visible,.tt-tracker-actions button:hover,.tt-detail-dialog header button:hover{
  border-color:var(--tt73-brass-hi);
  background:linear-gradient(180deg,#21483d,#12372f);
  color:#fff3d2;
}

.tt-proof-note{
  border-color:#78613c;
  background:linear-gradient(100deg,rgba(54,35,73,.72),rgba(17,61,52,.44));
  box-shadow:inset 3px 0 0 var(--tt73-brass);
}
.tt-proof-note strong{color:var(--tt73-brass-hi)}
.tt-proof-note span{color:#c7c1b2}

/* Team cards become small framed gallery plaques. */
.tt-team-card{
  border-color:#3a4a5a;
  background:linear-gradient(145deg,rgba(27,39,58,.95),rgba(11,24,34,.98));
  box-shadow:inset 0 0 0 1px #ffffff05,0 8px 24px rgba(0,0,0,.18);
}
.tt-team-card:after{
  content:"";
  position:absolute;
  inset:4px;
  border:1px solid #d6b35f16;
  border-radius:12px;
  pointer-events:none;
}
.tt-team-card:hover,.tt-team-card:focus-visible{
  border-color:#87966d;
  background:linear-gradient(145deg,rgba(25,65,55,.95),rgba(15,36,45,.98));
  box-shadow:inset 0 0 0 1px #d6b35f18,0 12px 30px rgba(0,0,0,.30);
}
.tt-team-card.is-proof{
  border-color:#9a7941;
  background:linear-gradient(145deg,rgba(57,35,72,.96),rgba(20,43,42,.98));
}
.tt-team-card strong{color:#f2e7ce;font-family:var(--tt73-serif);font-size:14px}
.tt-team-card small{color:#8999a4}
.tt-team-logo-fallback{
  border:1px solid #8c7348;
  background:radial-gradient(circle at 35% 30%,#2b6a5b,#12342d 72%);
  color:#f0daa8;
  box-shadow:inset 0 0 0 2px #09150f;
}
.tt-team-proof-badge{background:var(--tt73-brass-hi);box-shadow:0 0 0 3px #d6b35f16,0 0 12px #d6b35f55}

/* Browser header stays structurally identical, but reads like the next folio in the book. */
.tt-browser-header,.tt-tracker-header{
  border-bottom:1px solid #544a38;
  background:linear-gradient(90deg,rgba(38,24,54,.15),transparent 55%);
}

/* Historical wheels: dark walnut/brass indexing mechanism, same finite wheel mechanics. */
.tt-wheel-shell{
  border-color:#6a5a3c;
  background:
    linear-gradient(90deg,#ffffff06 1px,transparent 1px) 0 0/32px 100%,
    linear-gradient(180deg,rgba(19,37,42,.97),rgba(10,22,30,.98));
  box-shadow:inset 0 0 0 1px #d6b35f0b,0 11px 30px rgba(0,0,0,.33);
}
.tt-wheel-heading strong{color:#f0e4c7;font-family:var(--tt73-serif)}
.tt-wheel-heading>span{color:#87948f}
.tt-wheel{
  border-color:#6f5832;
  background:
    linear-gradient(180deg,rgba(41,26,48,.96),rgba(13,25,32,.98));
  box-shadow:inset 0 1px 0 #d6b35f13,inset 0 -2px 0 #1f120c,0 1px 0 #8b6934;
}
.tt-wheel:before{background:linear-gradient(90deg,#0d1820 18%,rgba(13,24,32,.78) 48%,transparent)}
.tt-wheel:after{background:linear-gradient(270deg,#0d1820 18%,rgba(13,24,32,.78) 48%,transparent)}
.tt-wheel-item{color:#788696}
.tt-wheel-item.is-far{color:#677683}
.tt-wheel-item.is-near{color:#c7cfcd}
.tt-wheel-item.is-active{
  border-color:#d6b35f;
  background:linear-gradient(180deg,#215548,#153b33);
  color:#fff0bf;
  box-shadow:inset 0 0 0 1px #f0d58a2b,0 5px 20px rgba(0,0,0,.45),0 0 14px #237d7421;
}
.tt-wheel-center{background:var(--tt73-brass-hi);box-shadow:0 0 8px #d6b35f66}
.tt-wheel-center:before{background:#d6b35f99}
.tt-wheel:focus-visible{outline-color:var(--tt73-brass-hi)}

/* Trade archive rows = dark research dossiers. */
.tt-trade-row{
  border-color:#3b4b5a;
  background:linear-gradient(125deg,rgba(21,34,51,.97),rgba(12,26,36,.98));
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--tt-team),var(--tt73-brass) 22%),0 9px 24px rgba(0,0,0,.18);
}
.tt-trade-row:hover{border-color:#6b775e;background:linear-gradient(125deg,rgba(24,45,55,.98),rgba(14,31,42,.99))}
.tt-trade-row time{color:#d8c69d;font-family:var(--tt73-serif)}
.tt-trade-row strong{color:#f0e5cc;font-family:var(--tt73-serif);font-size:18px}
.tt-trade-row p{color:#9eabb2}
.tt-trade-row button{
  border:1px solid #b1904a;
  background:linear-gradient(180deg,#d5b45f,#a98035);
  color:#17221e;
  box-shadow:inset 0 1px #fff4bd88,0 3px 0 #52381d;
}
.tt-trade-row button:hover,.tt-trade-row button:focus-visible{
  background:linear-gradient(180deg,#edd487,#c49b45);
  color:#0b1b17;
}
.tt-trade-row.is-warning{border-color:#aa8145}
.tt-empty{border-color:#5b625c;background:#101a24;color:#97a5ad}
.tt-empty strong{color:#eadfc6}

/* Anchor / perspective chapter treatment. */
.tt-anchor-title{
  border-left:2px solid #d6b35f7a;
  background:linear-gradient(90deg,rgba(52,28,68,.34),transparent 72%);
}
.tt-perspective-switch button{
  border-color:#485765;
  background:linear-gradient(180deg,#162334,#101a29);
  color:#aeb8c4;
}
.tt-perspective-switch button[aria-pressed="true"]{
  border-color:color-mix(in srgb,var(--tt-team),var(--tt73-brass) 30%);
  background:linear-gradient(180deg,rgba(33,78,66,.95),rgba(16,49,42,.98));
  color:#fff0c8;
  box-shadow:inset 0 0 0 1px #d6b35f24,0 3px 12px rgba(0,0,0,.22);
}

/* Snapshot cards: framed archive pieces, never changing their dimensions or ordering. */
.tt-summary-card{
  border-color:#3b4b59;
  background:linear-gradient(145deg,rgba(25,35,54,.97),rgba(13,26,37,.99));
  box-shadow:inset 0 0 0 1px #ffffff04,0 8px 22px rgba(0,0,0,.20);
}
.tt-summary-card:hover,.tt-summary-card:focus-visible{
  border-color:#7d7d61;
  background:linear-gradient(145deg,rgba(30,50,57,.98),rgba(16,33,43,.99));
  box-shadow:inset 0 0 0 1px #d6b35f13,0 12px 28px rgba(0,0,0,.28);
}
.tt-summary-card strong{color:#f1e6ce;font-family:var(--tt73-serif)}
.tt-summary-card small{color:#b19a69}
.tt-summary-card p{color:#b4bdc2}
.tt-summary-context{color:#8e9ca7!important}
.tt-summary-status{border:1px solid #536458;background:#173b32!important;color:#cfe4cf!important}
.tt-summary-portrait,.tt-portrait-fallback{background:linear-gradient(145deg,#273243,#171f2c)}

/* Ledger: archival transaction bands with readable IN/OUT semantics. */
.tt-ledger-heading h2 i{color:var(--tt73-brass);font-style:normal}
.tt-ledger-labels{color:#b7a77d}
.tt-ledger-key{color:#87959f}
.tracked-dot{background:var(--tt-in);box-shadow:0 0 0 2px #5eaa8e24}
.introduced-dot{background:var(--tt-warning);box-shadow:0 0 0 2px #d9a84c24}
.tt-band{
  border-color:#3b4b58;
  background:linear-gradient(145deg,rgba(16,29,42,.98),rgba(10,22,31,.99));
  box-shadow:0 12px 32px rgba(0,0,0,.20);
}
.tt-band.is-anchor{
  border-color:color-mix(in srgb,var(--tt-team),#705a39 32%);
  box-shadow:inset 0 3px 0 var(--tt-team),inset 0 4px 0 #d6b35f33,0 18px 42px rgba(0,0,0,.30);
}
.tt-band-header{
  border-bottom-color:#46505b;
  background:linear-gradient(90deg,rgba(41,26,55,.94),rgba(14,36,42,.95));
}
.tt-band.is-anchor .tt-band-header{background:linear-gradient(90deg,rgba(57,31,65,.96),rgba(20,50,47,.96))}
.tt-band-header strong{color:#f2e6c9;font-family:var(--tt73-serif)}
.tt-band-header span,.tt-band-header small{color:#909ca6}
.tt-band-kind{border-color:#6a5b45;background:#1a2934;color:#d9c89f!important}
.tt-band-team-chip{
  border-color:#465665;
  background:#0f1b28;
  color:#b4c0c8!important;
}
.tt-band-team-chip.is-direct{border-color:#75674a;background:#142a2a}
.tt-band-team-more{border-color:#465665;background:#0f1b28;color:#9eabb4!important}
.tt-band-columns:after{
  border-color:#76623c;
  background:#0f201d;
  color:var(--tt73-brass-hi);
  box-shadow:0 0 0 3px #081019;
}
.tt-band-column:first-child{border-right-color:#3b4650}
.tt-band-out{background:linear-gradient(180deg,rgba(116,51,54,.08),transparent 120px)}
.tt-band-in{background:linear-gradient(180deg,rgba(34,108,88,.10),transparent 120px)}
.tt-band-column:first-child .tt-band-column-title strong{color:#df9288}
.tt-band-column:last-child .tt-band-column-title strong{color:#83c5a7}
.tt-band-column-title em,.tt-band-column-title>span{color:#788792}

/* Asset cards use gallery-frame color logic similar to coach cards, but stay compact. */
.tt-asset-card{
  border-color:#3c4c5b;
  background:linear-gradient(145deg,#1a2939,#101e2b);
  box-shadow:inset 0 0 0 1px #ffffff03;
}
.tt-asset-card:hover,.tt-asset-card:focus-visible{
  border-color:#7c8266;
  background:linear-gradient(145deg,#1c3440,#122a32);
  box-shadow:inset 0 0 0 1px #d6b35f11,0 8px 20px rgba(0,0,0,.24);
}
.tt-asset-card:before{background:#536171}
.tt-asset-card.is-original-cost:before{background:var(--tt-out)}
.tt-asset-card.is-tracked-out:before,.tt-asset-card.is-incoming:before{background:var(--tt-in)}
.tt-asset-card.is-introduced:before{background:var(--tt-warning)}
.tt-asset-card.is-introduced{
  border-color:#816f43;
  background:linear-gradient(145deg,#292b2d,#17252d);
}
.tt-asset-portrait{background:#202d3b}
.tt-asset-portrait img{filter:grayscale(.06) sepia(.08) saturate(.92) contrast(1.04)}
.tt-asset-symbol{background:linear-gradient(145deg,#24364a,#172635);color:#dfd2b6}
.tt-symbol-pick,.tt-symbol-swap,.tt-symbol-pick_right{background:linear-gradient(145deg,#194c41,#173435);color:#d8ebd5}
.tt-symbol-cash{background:linear-gradient(145deg,#5a4826,#2e2b25);color:#f0d796}
.tt-asset-copy small{color:#9a8c6d}
.tt-asset-copy strong{color:#f0e4ca;font-family:var(--tt73-serif)}
.tt-asset-copy p{color:#adb9c0}
.tt-asset-copy em{color:#84929d}
.tt-asset-tag{border:1px solid #435465;background:#0e1a26;color:#b9c5cb!important}
.tt-asset-card.is-original-cost .tt-asset-tag{border-color:#8f514e;background:#4f272c;color:#e0aea7!important}
.tt-asset-card.is-tracked-out .tt-asset-tag,.tt-asset-card.is-incoming .tt-asset-tag{border-color:#376d5d;background:#173b32;color:#b8ddc8!important}
.tt-asset-card.is-introduced .tt-asset-tag{border-color:#806b3b;background:#40351f;color:#ebd18f!important}

/* Detail drawer = research desk / evidence drawer from the Forest. */
.tt-detail-dialog{
  border-color:#7c6740;
  background:
    radial-gradient(circle at 90% 0,rgba(77,45,96,.28),transparent 24rem),
    linear-gradient(145deg,#111e2d,#0b1722 72%);
  box-shadow:inset 0 0 0 1px #d6b35f12,0 34px 120px #000c;
}
.tt-detail-dialog::backdrop{background:#04070bdc;backdrop-filter:blur(7px) saturate(.75)}
.tt-detail-dialog header{
  border-bottom-color:#68573b;
  background:linear-gradient(90deg,#2b1e38f5,#122b2af5);
  box-shadow:0 7px 18px rgba(0,0,0,.20);
}
.tt-detail-dialog header span{color:#c9ab6b}
.tt-detail-block{
  border-color:#3d4c59;
  background:linear-gradient(145deg,#18283a,#101e2b);
}
.tt-detail-block small{color:#b49a62}
.tt-detail-block strong{color:#f0e5cc;font-family:var(--tt73-serif)}
.tt-detail-block p{color:#b2bcc3}
.tt-detail-block a{color:#8bc5b2}
.tt-source-list a{
  border:1px solid #3f554f;
  background:#10241f;
  color:#c7ddd5;
}
.tt-source-list a:hover{border-color:#a68848;color:#f0d58a}

.tt-toast{
  border:1px solid #79643d;
  background:linear-gradient(180deg,#1d4238,#102a25);
  color:#f3e6c5;
  box-shadow:0 12px 38px rgba(0,0,0,.42);
}
.skip-link{background:#f0dfb3;color:#10221c;box-shadow:0 4px 16px #0008}

/* Accessible focus language shared across the chapter. */
button:focus-visible,a:focus-visible,input:focus-visible,.tt-team-card:focus-visible,.tt-asset-card:focus-visible{
  outline-color:var(--tt73-brass-hi);
}

/* Cosmetic scrollbar only. */
*{scrollbar-color:#3e655a #0a111b}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#32695c,#443157);border-color:#101a24}
*::-webkit-scrollbar-track{background:#0a111b}

/* Palette-only responsive adjustments. Existing breakpoints and behavior stay in v65. */
@media(max-width:780px){
  body{
    background-image:
      radial-gradient(circle at 78% 0,rgba(80,48,109,.28),transparent 22rem),
      linear-gradient(180deg,rgba(5,10,18,.92),rgba(7,15,24,.95)),
      url("coaching-forest-wallpaper.webp");
    background-size:auto,auto,500px 500px;
  }
  .tt-topbar{border-bottom-color:#765d31}
  .tt-team-hero:after{opacity:.28}
}

@media(prefers-reduced-motion:reduce){
  body{background-attachment:scroll}
}
