/*! Stageshow Window
MIT License

Copyright (c) 2026 Benji Taylor

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
/* ../../.claude/skills/stageshow/kit/window.css */
@layer stageshow {
  .ss-stage[data-theme=blueprint] .ss-window__dot {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--ss-line);
  }
  .ss-stage[data-theme=blueprint] .ss-window__url {
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--ss-line-faint);
  }
  .ss-stage[data-palette=mono] .ss-window__dot {
    background: var(--ss-ink-5);
    box-shadow: none;
  }
  :where(.ss-window) {
    position: relative;
    --ss-lights-y: 19px;
    --ss-dot: 9px;
    --ss-side-inset: 0px;
  }
  .ss-window {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ss-canvas);
    border-radius: var(--ss-radius-window);
    box-shadow: var(--ss-shadow-window);
  }
  .ss-window__bar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 calc(var(--ss-lights-y) - var(--ss-dot) / 2);
    background: var(--ss-chrome);
    border-bottom: 1px solid var(--ss-line);
  }
  .ss-window__lights {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
  }
  .ss-window__dot {
    width: var(--ss-dot);
    height: var(--ss-dot);
    border-radius: 50%;
    box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
  }
  .ss-window__dot:nth-child(1) {
    background: #ff5f57;
  }
  .ss-window__dot:nth-child(2) {
    background: #febc2e;
  }
  .ss-window__dot:nth-child(3) {
    background: #28c840;
  }
  .ss-window__url {
    flex: 1;
    min-width: 0;
    margin-left: 8px;
    padding: 4px 10px;
    overflow: hidden;
    background: var(--ss-ink-1);
    border-radius: 6px;
    color: var(--ss-text-faint);
    font-size: 10.5px;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .ss-window[data-url-shape=pill] .ss-window__url {
    padding-inline: 12px;
    border-radius: 999px;
  }
  .ss-window__title {
    flex: 1;
    margin-right: 36px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ss-text-strong);
  }
  .ss-window__body {
    position: relative;
    flex: 1;
    min-height: 0;
  }
  .ss-window__spacer {
    flex: 1;
  }
  .ss-window[data-lights=grey] .ss-window__dot {
    background: rgba(186, 200, 218, 0.5);
    box-shadow: none;
  }
  .ss-window[data-lights=white] .ss-window__dot {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
  }
  .ss-window[data-chrome=glass] {
    background: rgba(248, 250, 253, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(229, 237, 245, 0.5), 0 15px 35px rgba(23, 23, 23, 0.08);
  }
  .ss-window[data-chrome=glass] > .ss-window__bar {
    display: grid;
    grid-template-columns: 1fr minmax(0, 262px) 1fr;
    gap: 12px;
    height: 35px;
    padding: 0 20px;
    background: none;
    border: 0;
  }
  .ss-window[data-chrome=glass] .ss-window__lights {
    gap: 4px;
  }
  .ss-window[data-chrome=glass] .ss-window__dot {
    width: 8px;
    height: 8px;
  }
  .ss-window[data-chrome=glass] .ss-window__url {
    display: flex;
    grid-column: 2;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 20px;
    margin: 0;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(229, 237, 245, 0.5);
    color: #50617a;
    font-size: 10px;
  }
  .ss-window__lock {
    flex-shrink: 0;
    color: #667691;
  }
  .ss-window__url-text {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ss-window[data-chrome=glass] .ss-window__end {
    display: flex;
    grid-column: 3;
    justify-content: flex-end;
    gap: 6px;
  }
  .ss-window[data-chrome=glass] > .ss-window__body {
    margin: 0 6px 6px;
    overflow: hidden;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(23, 23, 23, 0.06);
  }
  .ss-window[data-chrome=card] {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);
  }
  .ss-window[data-chrome=card] > .ss-window__bar {
    gap: 14px;
    height: 44px;
    padding: 0 16px;
    background: none;
    border: 0;
  }
  .ss-window[data-chrome=card]:not([data-lights=color]) .ss-window__dot {
    background: #ecf2f7;
    box-shadow: none;
  }
  .ss-window[data-chrome=card] .ss-window__url {
    flex: 1;
    height: 24px;
    margin: 0;
    padding: 0 10px;
    background: #ecf2f7;
    border-radius: 4px;
    box-shadow: none;
    color: #425466;
    font-size: 12px;
    font-weight: 300;
    line-height: 24px;
  }
  .ss-window[data-chrome=card] .ss-window__end:empty {
    display: none;
  }
  .ss-window[data-chrome=card] > .ss-window__body {
    background: #fff;
  }
  .ss-window[data-chrome=hairline] {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 12px 28px -12px rgba(50, 50, 93, 0.2);
  }
  .ss-window[data-chrome=hairline] > .ss-window__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 20px;
    padding: 0 8px;
    background: none;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .ss-window[data-chrome=hairline] .ss-window__lights {
    gap: 3px;
  }
  .ss-window[data-chrome=hairline] .ss-window__dot {
    width: 5px;
    height: 5px;
  }
  .ss-window[data-chrome=hairline]:not([data-lights=color]) .ss-window__dot {
    background: #e3e8ee;
    box-shadow: none;
  }
  .ss-window[data-chrome=hairline] .ss-window__url {
    grid-column: 2;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: #8792a2;
    font-size: 9px;
  }
  .ss-window[data-chrome=hairline] .ss-window__end {
    grid-column: 3;
    justify-self: end;
  }
  .ss-window[data-chrome=terminal] {
    --ss-term-bg: #17171a;
    background: var(--ss-term-bg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), var(--ss-shadow-hero, var(--ss-shadow-window));
  }
  .ss-window[data-chrome=terminal] > .ss-window__bar {
    position: relative;
    background: none;
    border: 0;
  }
  .ss-window[data-chrome=terminal][data-lights=grey] .ss-window__dot {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
  }
  .ss-term__title {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }
  .ss-term {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 4px 16px 16px;
    overflow: hidden;
    color: #9d9da6;
    font: 11.5px/1.65 var(--ss-mono);
    font-variant-ligatures: none;
  }
  
  .ss-term > div,.ss-term > p{
    margin: 0;
    white-space: pre;
  }
  
  
  
  .ss-term .ok {
    color: var(--ss-term-ok, #6ee7a8);
  }
  .ss-term .err {
    color: var(--ss-term-err, #f87171);
  }
  
  
  
  @keyframes ss-term-blink {
    50% {
      opacity: 0;
    }
  }
  
  .ss-window__title[data-toolbar] {
    margin: 0 0 0 14px;
    text-align: left;
  }
  .ss-window__nav {
    display: flex;
    flex-shrink: 0;
    gap: 6px;
    margin-left: 10px;
    color: var(--ss-text-faint);
  }
  .ss-window__nav + .ss-window__url {
    margin-left: 4px;
  }
  .ss-window__tabs {
    display: flex;
    flex-shrink: 0;
    align-items: flex-end;
    gap: 2px;
    height: 38px;
    padding: 0 calc(var(--ss-lights-y) - var(--ss-dot) / 2);
    background: var(--ss-canvas);
  }
  .ss-window__tabs .ss-window__lights {
    align-self: center;
    margin-right: 14px;
  }
  .ss-window__tab {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 140px;
    min-width: 0;
    height: 30px;
    padding: 0 12px;
    border-radius: 8px 8px 0 0;
    font-size: 11px;
    color: var(--ss-text-faint);
  }
  .ss-window__tab[data-active] {
    background: var(--ss-chrome);
    color: var(--ss-text-strong);
  }
  .ss-window__tab-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .ss-window__favicon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--ss-ink-4);
  }
  .ss-window__tab[data-active] .ss-window__favicon {
    background: var(--ss-accent);
  }
  [data-kind=tabs] > .ss-window__bar .ss-window__url {
    margin-left: 0;
  }
  [data-kind=tabs] > .ss-window__bar .ss-window__nav {
    margin-left: 0;
  }
  .ss-window[data-kind=sidebar] {
    flex-direction: row;
  }
  .ss-window__side {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    background: var(--ss-canvas);
    border-right: 1px solid var(--ss-line);
  }
  .ss-window__side-top {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    height: calc((var(--ss-lights-y) - var(--ss-side-inset)) * 2);
    padding: 0 calc(var(--ss-lights-y) - var(--ss-side-inset) - var(--ss-dot) / 2);
  }
  .ss-window__main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background: var(--ss-surface);
  }
  .ss-window__main > .ss-window__bar {
    padding: 0 16px;
  }
  .ss-window__heading {
    font-size: 13px;
    font-weight: 600;
    color: var(--ss-text-strong);
  }
  .ss-bar {
    display: block;
    flex-shrink: 0;
  }
  .ss-bar[data-shrink] {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
  }
  .ss-window[data-lights-size=large] {
    --ss-dot: 12px;
  }
  .ss-window[data-lights-size=large] .ss-window__lights {
    gap: 8px;
  }
  .ss-window[data-bar=tall] {
    --ss-lights-y: 26px;
  }
  .ss-window[data-bar=tall] > .ss-window__bar,
  .ss-window[data-bar=tall] .ss-window__main > .ss-window__bar {
    align-items: flex-start;
    height: 64px;
    padding-top: 10px;
    background: none;
    border-bottom: 0;
  }
  .ss-window[data-bar=tall] > .ss-window__bar > .ss-window__lights {
    margin-top: calc(16px - var(--ss-dot) / 2);
  }
  .ss-window[data-bar=tall] .ss-window__url {
    margin-top: 5px;
  }
  .ss-window[data-bar=tall] .ss-window__title,
  .ss-window[data-bar=tall] .ss-window__heading {
    line-height: 32px;
  }
  .ss-window[data-side=floating] {
    --ss-side-inset: 8px;
    border-radius: 24px;
    background: var(--ss-surface);
  }
  .ss-window[data-side=floating] > .ss-window__side {
    position: relative;
    z-index: 1;
    margin: var(--ss-side-inset) 0 var(--ss-side-inset) var(--ss-side-inset);
    border-right: 0;
    border-radius: 16px;
    box-shadow:
      0 0 0 0.5px rgba(0, 0, 0, 0.07),
      inset 0 0.5px 0 rgba(255, 255, 255, 1),
      0 3px 14px rgba(20, 35, 70, 0.07);
  }
  .ss-stage[data-theme=dark] .ss-window[data-side=floating] > .ss-window__side {
    background: var(--ss-raised);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 3px 14px rgba(0, 0, 0, 0.3);
  }
  
  
}
