/* Generated from legacy styles.css: window shell, rails, and top-level chrome. */



.window-shell {
  --window-controls-clearance: 124px;
  --window-controls-canvas-clearance: 0px;
  --window-controls-right-sidebar-clearance: 0px;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  padding: 0;
  background: #e9edf2;
}

.window-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-height: var(--section-toolbar-height);
  gap: 4px;
  padding: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-app-region: no-drag;
}

.window-control {
  -webkit-app-region: no-drag;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 8px;
  border-radius: var(--seg-radius-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #5f7384;
  color: var(--seg-text-2);
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.window-control * {
  pointer-events: none;
}

.window-control svg {
  width: var(--section-toolbar-icon-size);
  height: var(--section-toolbar-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.window-control:hover,
.window-control:focus-visible {
  background: rgba(84, 96, 109, 0.14);
  color: #22303d;
  background: var(--seg-panel);
  color: var(--seg-text-1);
  box-shadow: inset 0 0 0 1px var(--seg-border);
  transform: none;
  outline: none;
}

.app-shell {
  --activity-rail-width: 54px;
  --activity-rail-display-width: var(--activity-rail-width);
  --section-toolbar-height: 40px;
  --section-toolbar-offset: 14px;
  --section-toolbar-control-size: 36px;
  --icon-button-size: var(--section-toolbar-control-size);
  --section-toolbar-icon-size: 18px;
  --section-toolbar-aux-icon-size: 12px;
  --sidebar-toggle-icon-size: 27.5px;
  --section-toolbar-pill-height: 30px;
  --section-toolbar-baseline: var(--section-toolbar-height);
  --sidebar-display-width: var(--sidebar-width);
  --sidebar-resizer-width: 1px;
  --sidebar-width: 236px;
  --right-sidebar-display-width: var(--right-sidebar-width);
  --right-sidebar-resizer-width: 1px;
  --right-sidebar-width: 480px;
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns:
    var(--activity-rail-display-width)
    var(--sidebar-display-width)
    var(--sidebar-resizer-width)
    minmax(0, 1fr)
    var(--right-sidebar-resizer-width)
    var(--right-sidebar-display-width);
  gap: 0;
  border: 0;
  border-top: 1px solid var(--seg-border);
  border-radius: 0;
  background: var(--seg-shell);
  box-shadow: none;
}

.app-loading-screen,
.session-popout-shell,
.session-popout-app {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.app-loading-screen,
.session-popout-shell {
  background: var(--seg-shell);
}

.session-popout-app {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.activity-rail {
  --activity-rail-button-color: var(--seg-accent-icon);
  --activity-rail-button-color-hover: var(--seg-accent-icon-hover);
  --activity-rail-button-color-active: var(--seg-accent-icon-active);
  --activity-rail-button-surface-hover: var(--mix-seg-accent-soft-72-seg-panel-28);
  --activity-rail-button-surface-active: var(--mix-seg-accent-soft-68-seg-panel-32);
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  min-width: 0;
  padding: 0 0 14px;
  background: var(--seg-sidebar-strong);
  border-right: 1px solid var(--seg-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: rise-in 360ms ease;
}

.activity-rail-primary,
.activity-rail-footer,
.activity-rail-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.activity-rail-top-menu {
  position: relative;
  width: 100%;
  min-height: var(--section-toolbar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--seg-left-sidebar-top-menu-surface);
  isolation: isolate;
}

.activity-rail-top-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--mix-seg-border-76-transparent-24);
  pointer-events: none;
}

.activity-rail.is-right .activity-rail-top-menu {
  background: var(--seg-right-sidebar-top-menu-surface);
}

.activity-rail-primary {
  padding: 8px 8px 0;
  gap: 8px;
}

.activity-rail-view-stack {
  width: 100%;
  display: grid;
  gap: 6px;
}

.activity-rail-footer {
  margin-top: auto;
  padding: 0 8px;
  gap: 8px;
}

.activity-rail-config,
.activity-rail-config-stack {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.activity-rail-config-stack[hidden] {
  display: none;
}

.activity-rail-view-button {
  width: var(--icon-button-size);
  min-width: var(--icon-button-size);
  height: var(--icon-button-size);
  min-height: var(--icon-button-size);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--activity-rail-button-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.activity-rail-view-button svg {
  width: var(--section-toolbar-icon-size);
  height: var(--section-toolbar-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-rail-view-button:hover,
.activity-rail-view-button:focus-visible {
  border-color: transparent;
  background: var(--activity-rail-button-surface-hover);
  box-shadow: none;
  color: var(--activity-rail-button-color-hover);
  transform: none;
}

.activity-rail-view-button.is-active,
.activity-rail-view-button.is-active:hover,
.activity-rail-view-button.is-active:focus-visible {
  border-color: transparent;
  background: var(--activity-rail-button-surface-active);
  box-shadow: none;
  color: var(--activity-rail-button-color-active);
  transform: none;
}

.activity-rail-view-button:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.activity-rail-bottom {
  margin-top: auto;
}

.activity-rail-footer .activity-rail-bottom {
  margin-top: 0;
}

.activity-rail-bottom:empty {
  display: none;
}

.panel-toolbar {
  position: relative;
  z-index: 4;
  min-height: var(--section-toolbar-height);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-app-region: no-drag;
  user-select: none;
}

.panel-toolbar.window-drag-region {
  -webkit-app-region: drag;
}

.panel-toolbar-window-controls-spacer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  -webkit-app-region: no-drag;
}

.panel-toolbar-window-controls-spacer.is-canvas {
  width: var(--window-controls-canvas-clearance);
}

.panel-toolbar-window-controls-spacer.is-right-sidebar {
  width: var(--window-controls-right-sidebar-clearance);
}

.panel-toolbar button,
.panel-toolbar input,
.panel-toolbar textarea,
.panel-toolbar select,
.panel-toolbar a,
.panel-toolbar [role="button"] {
  -webkit-app-region: no-drag;
}

.panel-toolbar-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.panel-toolbar-copy strong {
  margin: 0;
  color: #182532;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.panel-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.shell-top-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.shell-top-menu.is-three-column {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.shell-top-menu-leading,
.shell-top-menu-content,
.shell-top-menu-trailing {
  min-width: 0;
  display: flex;
  align-items: center;
}

.shell-top-menu-leading {
  justify-content: flex-start;
  gap: 10px;
}

.shell-top-menu-trailing {
  margin-left: auto;
  justify-self: end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.window-shell.is-maximized {
  padding: 0;
}

.window-control.is-close:hover,
.window-control.is-close:focus-visible {
  background: rgba(166, 75, 60, 0.1);
  color: var(--seg-danger);
}

/* Sage / Teal & Slate theme overrides */

.window-shell {
  background: var(--seg-shell);
}

.window-control {
  color: var(--seg-text-2);
  background: transparent;
}

.window-control:hover,
.window-control:focus-visible {
  background: var(--mix-seg-text-2-12-transparent-88);
  color: var(--seg-text-1);
  transform: none;
}

.window-control.is-close:hover,
.window-control.is-close:focus-visible {
  background: var(--seg-danger-surface);
  color: var(--seg-danger-text);
}
