@layer pw-theme.components {
  [data-pw-theme="studio-chicago-console"] {
    background: var(--pw-color-bg);
    color: var(--pw-color-text);
    font-family: var(--pw-font-body);
  }
  [data-pw-theme="studio-chicago-console"] *,
  [data-pw-theme="studio-chicago-console"] *::before,
  [data-pw-theme="studio-chicago-console"] *::after { box-sizing: border-box; }
  [data-pw-theme="studio-chicago-console"] :focus-visible { outline: 3px solid var(--pw-color-focus); outline-offset: 3px; }

  [data-pw-theme="studio-chicago-console"] .pw-shell {
    min-height: 100vh;
    background:
      linear-gradient(#090a09d9, #090a09f2),
      var(--studio-pattern-cables),
      #11120f;
  }

  [data-pw-theme="studio-chicago-console"] .pw-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
    padding: .55rem clamp(.75rem, 3vw, 2rem);
    background: var(--studio-texture-steel), #151614;
    border-bottom: 2px solid #4c4a42;
    box-shadow: 0 5px 14px #000c;
  }

  [data-pw-theme="studio-chicago-console"] .pw-brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    color: var(--studio-nicotine-ivory);
    text-decoration: none;
    font: 900 var(--pw-font-size-lg) var(--pw-font-display);
    letter-spacing: .085em;
    text-transform: uppercase;
  }

  [data-pw-theme="studio-chicago-console"] .pw-brand__plate {
    padding: .25rem .65rem;
    color: #15120d;
    background: var(--studio-texture-paper), var(--studio-nicotine-ivory);
    border: 1px solid #766a55;
    rotate: -1deg;
    box-shadow: 0 2px 5px #0009;
  }

  [data-pw-theme="studio-chicago-console"] .pw-layout {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: var(--pw-space-5);
    width: min(100% - 2rem, var(--pw-max-content));
    margin-inline: auto;
    padding: var(--pw-space-5) 0 6.5rem;
  }

  [data-pw-theme="studio-chicago-console"] .pw-sidebar {
    position: sticky;
    top: 82px;
    align-self: start;
    padding: .55rem;
    background: var(--studio-texture-steel), #171816;
    border: 1px solid #555248;
    box-shadow: var(--pw-shadow-raised);
  }

  [data-pw-theme="studio-chicago-console"] .pw-nav-list { display: grid; gap: .3rem; margin: 0; padding: 0; list-style: none; }
  [data-pw-theme="studio-chicago-console"] .pw-nav-link {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: .6rem;
    min-height: var(--pw-touch-min);
    padding: .35rem .5rem;
    color: var(--pw-color-text);
    text-decoration: none;
    font: 900 .78rem var(--pw-font-label);
    letter-spacing: .055em;
    text-transform: uppercase;
    border: 1px solid transparent;
  }
  [data-pw-theme="studio-chicago-console"] .pw-nav-link:hover,
  [data-pw-theme="studio-chicago-console"] .pw-nav-link[aria-current="page"] {
    color: #17140f;
    background: var(--studio-texture-paper), var(--studio-nicotine-ivory);
    border-color: #8f7d5f;
    rotate: -.3deg;
  }
  [data-pw-theme="studio-chicago-console"] .pw-nav-link img { width: 32px; height: 32px; }
  [data-pw-theme="studio-chicago-console"] .pw-main { min-width: 0; }

  [data-pw-theme="studio-chicago-console"] .pw-section-title {
    margin: 0 0 .7rem;
    color: var(--studio-nicotine-ivory);
    font: 900 var(--pw-font-size-xl)/.95 var(--pw-font-display);
    letter-spacing: .045em;
    text-transform: uppercase;
    text-shadow: 2px 2px #000;
  }

  [data-pw-theme="studio-chicago-console"] .pw-card,
  [data-pw-theme="studio-chicago-console"] .pw-dialog,
  [data-pw-theme="studio-chicago-console"] .pw-table-wrap {
    background: var(--studio-texture-steel), var(--pw-color-surface);
    border: 1px solid var(--pw-color-border);
    border-radius: var(--pw-radius-md);
    box-shadow: var(--pw-shadow-raised);
  }
  [data-pw-theme="studio-chicago-console"] .pw-card { padding: 1rem; }

  [data-pw-theme="studio-chicago-console"] .pw-button {
    appearance: none;
    min-height: var(--pw-touch-min);
    padding: .5rem 1rem;
    color: #18140e;
    font: 950 .76rem var(--pw-font-label);
    letter-spacing: .07em;
    text-transform: uppercase;
    background: linear-gradient(#efd181, #ad782f 58%, #684019);
    border: 1px solid #c6994f;
    border-bottom: 4px solid #271a0c;
    border-radius: 2px;
    box-shadow: 0 4px 8px #000b, inset 0 1px #fff7bd99;
    cursor: pointer;
  }
  [data-pw-theme="studio-chicago-console"] .pw-button:hover { filter: brightness(1.1); }
  [data-pw-theme="studio-chicago-console"] .pw-button:active,
  [data-pw-theme="studio-chicago-console"] .pw-button[aria-pressed="true"] { translate: 0 3px; border-bottom-width: 1px; box-shadow: var(--pw-shadow-inset); }
  [data-pw-theme="studio-chicago-console"] .pw-button--steel { color: var(--pw-color-text); background: linear-gradient(#4a4a45, #232421 62%, #111210); border-color: #66635b; }
  [data-pw-theme="studio-chicago-console"] .pw-button--record { color: #ffe8cf; background: linear-gradient(#c64232, #76231d 62%, #3d1210); border-color: #d05b49; }
  [data-pw-theme="studio-chicago-console"] .pw-button:disabled { opacity: .42; cursor: not-allowed; }

  [data-pw-theme="studio-chicago-console"] .pw-input,
  [data-pw-theme="studio-chicago-console"] .pw-select {
    width: 100%;
    min-height: var(--pw-touch-min);
    padding: .55rem .7rem;
    color: #d5c9ad;
    font: 700 var(--pw-font-size-sm) var(--pw-font-mono);
    background: #11130f;
    border: 2px solid #514f46;
    border-radius: 1px;
    box-shadow: inset 0 2px 8px #000d;
  }

  [data-pw-theme="studio-chicago-console"] .pw-table-wrap { overflow-x: auto; }
  [data-pw-theme="studio-chicago-console"] .pw-table { width: 100%; border-collapse: collapse; }
  [data-pw-theme="studio-chicago-console"] .pw-table th,
  [data-pw-theme="studio-chicago-console"] .pw-table td { padding: .7rem; text-align: left; border-bottom: 1px solid #49473f; }
  [data-pw-theme="studio-chicago-console"] .pw-table th { color: #16130f; background: var(--studio-nicotine-ivory); font: 900 .75rem var(--pw-font-label); letter-spacing: .06em; text-transform: uppercase; }

  [data-pw-theme="studio-chicago-console"] .pw-notice { padding: .75rem 1rem; color: #17140f; background: var(--studio-faded-olive); border: 2px solid #858864; font-weight: 900; }
  [data-pw-theme="studio-chicago-console"] .pw-state { min-height: 7rem; display: grid; place-items: center; padding: 1rem; text-align: center; background: #151614; border: 2px dashed #605c50; }
  [data-pw-theme="studio-chicago-console"] .pw-state--error { border-color: var(--studio-burgundy-record); }
  [data-pw-theme="studio-chicago-console"] .pw-spinner { width: 28px; height: 28px; border: 4px solid #ffffff26; border-top-color: var(--studio-amber-vu); border-radius: 50%; animation: studio-spin .8s linear infinite; }

  [data-pw-theme="studio-chicago-console"] .pw-bottom-nav {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: max(.65rem, env(safe-area-inset-bottom));
    translate: -50% 0;
    display: flex;
    max-width: min(calc(100vw - 1rem), 760px);
    gap: .2rem;
    padding: .3rem;
    overflow-x: auto;
    background: var(--studio-texture-steel), #151614;
    border: 2px solid #5a574e;
    box-shadow: 0 12px 27px #000d;
  }
  [data-pw-theme="studio-chicago-console"] .pw-bottom-nav a { flex: 0 0 48px; display: grid; place-items: center; width: 48px; min-height: 48px; }
  [data-pw-theme="studio-chicago-console"] .pw-bottom-nav img { width: 34px; height: 34px; }

  @media (max-width: 760px) {
    [data-pw-theme="studio-chicago-console"] .pw-layout { grid-template-columns: 1fr; width: min(100% - 1rem, var(--pw-max-content)); }
    [data-pw-theme="studio-chicago-console"] .pw-sidebar { display: none; }
    [data-pw-theme="studio-chicago-console"] .pw-brand__long { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    [data-pw-theme="studio-chicago-console"] *,
    [data-pw-theme="studio-chicago-console"] *::before,
    [data-pw-theme="studio-chicago-console"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  }
  @keyframes studio-spin { to { rotate: 1turn; } }
}
