/* ==========================================================================
   WORKBENCH AGENTS — STUDIO WORKBENCH (Periwinkle)
   Persistent left workshop index (slide-over drawer on mobile) +
   Screen-1 Hero with Machined Dark Studio Stage Dock +
   Featured Root Card (The Shelves) + Balanced 3-up / 2-up Companion Deck.
   Active navigation lifts as a whole machined surface (zero left-edge bar).
   ========================================================================== */

.ta-shell {
  min-height: 100dvh;
}

/* Mobile Top Bar (< 1020px) */
.ta-mobile-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  background: rgba(5, 5, 7, 0.92);
  border-bottom: 1px solid var(--rim-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.ta-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--ink);
  min-width: 0;
}
.ta-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  background: linear-gradient(180deg, #1a1a23 0%, #121219 100%);
  border: 1px solid var(--rim-strong);
  box-shadow: var(--top-light);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.ta-menu-btn:hover {
  border-color: var(--accent-rim);
}
.ta-menu-ico {
  display: inline-flex;
  flex-direction: column;
  gap: 3.5px;
  width: 14px;
}
.ta-menu-ico span {
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink-2);
}

/* Sidebar Index */
.ta-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 2, 4, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.ta-scrim.open { opacity: 1; pointer-events: auto; }

.ta-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(304px, 86vw);
  z-index: 80;
  display: flex;
  flex-direction: column;
  background: #0a0a0e;
  border-right: 1px solid var(--rim);
  padding: 18px 14px 20px;
  overflow-y: auto;
  overflow-x: hidden;
  transform: translateX(-102%);
  transition: transform 0.22s ease;
}
.ta-rail.open { transform: translateX(0); }

@media (min-width: 1020px) {
  .ta-mobile-bar { display: none; }
  .ta-scrim { display: none; }
  .ta-rail {
    transform: none;
    width: 308px;
    padding: 24px 16px 24px;
  }
  .ta-shell { padding-left: 308px; }
}

.ta-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rim-soft);
}
.ta-rail-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-size: 20px;
  background: var(--surface);
  border: 1px solid var(--rim);
}
@media (min-width: 1020px) { .ta-rail-close { display: none; } }

.ta-rail-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.ta-rail-sep {
  height: 1px;
  background: var(--rim-soft);
  margin: 10px 6px;
}
.ta-nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid transparent;
  transition: background 0.14s, border-color 0.14s;
}
.ta-nav-card:hover {
  background: var(--surface);
  border-color: var(--rim-soft);
}
.ta-nav-card.on {
  background: linear-gradient(180deg, #1b1b26 0%, #14141d 100%);
  border-color: var(--accent-rim);
  box-shadow: inset 0 1px 0 rgba(186, 198, 255, 0.16), 0 6px 16px -8px rgba(0, 0, 0, 0.7);
}
.ta-nav-thumb {
  width: 42px;
  height: 29px;
  border-radius: 6px;
  overflow: hidden;
  flex: none;
  border: 1px solid var(--rim);
  background: #060608;
}
.ta-nav-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ta-nav-home-ico {
  width: 42px;
  height: 29px;
  border-radius: 6px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--surface-lift);
  border: 1px solid var(--rim);
  color: var(--accent);
}
.ta-nav-text { min-width: 0; flex: 1; }
.ta-nav-name {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.22;
}
.ta-nav-sub {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.32;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ta-nav-card.on .ta-nav-sub {
  color: var(--ink-2);
}

.ta-rail-foot {
  margin-top: auto;
  padding: 16px 8px 0;
  border-top: 1px solid var(--rim-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}
.ta-rail-foot a:hover { color: var(--ink); }

/* Main Studio Workspace */
.ta-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 14px 72px;
}
@media (min-width: 720px) {
  .ta-main { padding: 24px 36px 96px; }
}

/* Home Hero Surface */
.ta-hero-surface {
  background:
    radial-gradient(75% 65% at 88% 0%, var(--accent-halo), transparent 65%),
    var(--surface);
  border: 1px solid var(--rim);
  border-radius: 22px;
  box-shadow: var(--top-light), var(--depth);
  overflow: hidden;
}
.ta-hero-copy {
  padding: 22px 20px 20px;
}
@media (min-width: 720px) {
  .ta-hero-copy { padding: 28px 36px 22px; }
}
.ta-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(27px, 7.2vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--ink);
  max-width: 28ch;
}
.ta-intro {
  margin: 13px 0 0;
  font-size: clamp(15px, 3.7vw, 16px);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 70ch;
}
.ta-intro + .ta-intro {
  margin-top: 10px;
}
.ta-intro strong {
  color: var(--ink);
  font-weight: 600;
}
.ta-intro em {
  color: var(--ink);
  font-style: italic;
  padding-right: 0.14em;
}

/* Interactive Visual Stage + Machined Dark Studio Dock */
.ta-stage-frame {
  padding: 12px;
  background: #08080b;
  border-top: 1px solid var(--rim-soft);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
@media (min-width: 720px) {
  .ta-stage-frame {
    padding: 14px 16px 16px;
    gap: 12px;
  }
}

.ta-stage-shot {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--rim);
  background: #050507;
  aspect-ratio: 16 / 9.15;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: border-color 0.16s ease;
}
.ta-stage-shot:hover {
  border-color: var(--rim-strong);
}
.ta-stage-shot:focus-visible {
  outline: none;
  border-color: var(--accent-rim);
  box-shadow: 0 0 0 2px rgba(154, 168, 255, 0.28);
}
.ta-stage-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ta-stage-zoom-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 17, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  pointer-events: none;
}
.ta-stage-shot:hover .ta-stage-zoom-badge {
  background: rgba(20, 20, 29, 0.94);
  border-color: var(--accent-rim);
  color: var(--ink);
}

/* Machined Dark Studio Dock Housing */
.ta-dock {
  background: linear-gradient(180deg, #0b0b10 0%, #07070b 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

/* Recessed Switch Bay (6 equal keys in 1 clean bar on desktop; 3x2 keypad on mobile) */
.ta-dock-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 6px;
  background: #060609;
}
@media (min-width: 720px) {
  .ta-dock-track {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    padding: 6px;
  }
}

.ta-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 8px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #a6a6b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}
.ta-switch:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--ink);
}
.ta-switch:focus {
  outline: none;
}
.ta-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.ta-switch.on {
  background: linear-gradient(180deg, #22222f 0%, #15151f 100%);
  border-color: rgba(154, 168, 255, 0.42);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(196, 206, 255, 0.22),
    0 4px 12px -4px rgba(0, 0, 0, 0.75);
}
/* Crisp bottom periwinkle rim filament on active switch */
.ta-switch.on::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(154, 168, 255, 0.65);
}

/* Single-Bar Active Readout + Right-Aligned Primary Open Action */
.ta-dock-readout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 11px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(180deg, #101017 0%, #0b0b10 100%);
}
@media (min-width: 580px) {
  .ta-dock-readout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px 10px 16px;
  }
}

.ta-dock-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ta-dock-led {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: none;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(154, 168, 255, 0.75);
}
.ta-dock-hook {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ta-dock-open {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(154, 168, 255, 0.24) 0%, rgba(154, 168, 255, 0.13) 100%);
  border: 1px solid rgba(154, 168, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(210, 218, 255, 0.22);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.ta-dock-open:hover {
  background: linear-gradient(180deg, rgba(154, 168, 255, 0.32) 0%, rgba(154, 168, 255, 0.18) 100%);
  border-color: rgba(154, 168, 255, 0.7);
}

/* ==========================================================================
   Build Sections — Featured Root (The Shelves) + 3-up Everyday + 2-up Bigger
   ========================================================================== */
.ta-section-gap {
  margin-top: 34px;
}
.ta-section-title {
  margin: 0 0 14px 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Featured Root Card — The Shelves */
.ta-root-card {
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(154, 168, 255, 0.08), transparent 65%),
    var(--surface);
  border: 1px solid var(--rim);
  border-radius: 20px;
  box-shadow: var(--top-light), 0 18px 40px -18px rgba(0, 0, 0, 0.78);
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s;
}
.ta-root-card:hover {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(154, 168, 255, 0.12), transparent 65%),
    var(--surface-2);
  border-color: var(--accent-rim);
}
@media (min-width: 780px) {
  .ta-root-card {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }
}
.ta-root-img {
  padding: 10px;
  background: #08080b;
  display: flex;
  align-items: center;
}
.ta-root-img img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--rim-soft);
}
.ta-root-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
@media (min-width: 780px) {
  .ta-root-body { padding: 26px 28px; }
}
.ta-root-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ta-root-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.ta-start-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-fill);
  border: 1px solid var(--ok-rim);
}
.ta-root-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.ta-open-cue {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
}

/* Everyday 3-up Grid & Bigger 2-up Grid */
.ta-grid-3 {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 820px) {
  .ta-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ta-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 680px) {
  .ta-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ta-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 18px;
  box-shadow: var(--top-light);
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s;
}
.ta-card:hover {
  background: var(--surface-2);
  border-color: var(--rim-strong);
}
.ta-card-img {
  padding: 8px 8px 0;
  background: #08080b;
}
.ta-card-img img {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  object-position: top center;
  border-radius: 11px 11px 0 0;
  border: 1px solid var(--rim-soft);
  border-bottom: 0;
}
.ta-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ta-card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ta-card-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.56;
  color: var(--ink-2);
}

/* Honest Closing Surface */
.ta-closing {
  margin-top: 34px;
  padding: 26px 22px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--rim);
  box-shadow: var(--top-light);
}
@media (min-width: 720px) {
  .ta-closing {
    padding: 32px 36px;
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    align-items: center;
  }
}
.ta-closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ta-closing p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.ta-closing-acts {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
@media (min-width: 720px) { .ta-closing-acts { margin-top: 0; } }
