/**
 * Shared form, sidebar, and workspace primitives for VSWT native apps.
 */

.native-app__workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: var(--native-float-gap);
  overflow: hidden;
}

.native-app__sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: auto;
}

.native-app__sidebar-nav-item {
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.45rem 0.6rem;
  border-radius: var(--native-float-radius-sm);
  cursor: pointer;
  color: var(--native-chrome-fg);
  font: inherit;
  font-size: 0.85rem;
}

.native-app__sidebar-nav-item:hover {
  background: color-mix(in srgb, var(--header-accent) 10%, var(--surface));
}

.native-app__sidebar-nav-item--active,
.native-app__sidebar-nav-item[aria-current='true'] {
  background: color-mix(in srgb, var(--header-accent) 14%, var(--surface));
  color: var(--header-accent);
  font-weight: 600;
}

.native-app__panel-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--native-glass-border);
  border-radius: var(--native-float-radius-sm);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--native-chrome-fg);
  cursor: pointer;
  white-space: nowrap;
}

.native-app__panel-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--header-accent) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--header-accent) 25%, transparent);
}

.native-app__panel-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.native-app__panel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.native-app__field {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--native-glass-border);
  border-radius: var(--native-float-radius-sm);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--page-fg);
  font: inherit;
}

.native-app__field:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.native-app__field--mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
}

.native-app__section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--page-fg-muted);
  margin: 0.75rem 0 0.35rem;
}

.native-app__sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
