:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: #111827;
  --card: #151e2c;
  --hover: #1b2638;
  --line: #283346;
  --text: #f3f4f6;
  --muted: #a4afbf;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #6ed8b0;
  --warning: #f2c879;
  --danger: #ff9d9d;
  --radius: 10px;
  --mono: "SFMono-Regular", Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  --sidebar: #0e1420;
  --on-light: #12223a;
  --selection: #1a2b46;
  --control-border: #526079;
  --focus: #90baff;
  --accent-text: #b9d2fa;
  --inverse: #e6edf9;
  --inverse-hover: #c9dbf8;
  --warning-bg: #211e19;
  --warning-border: #4d442e;
  --warning-muted: #c8bfae;
  --info-bg: #142137;
  --info-border: #324969;
  --danger-bg: #241720;
  --danger-border: #673b46;
  --danger-button: #802c39;
  --danger-hover: #a33444;
  --success-bg: #152c23;
  --success-border: #416758;
  --scrim: #03070dcc;
  --shadow: #0008;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
summary,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 650;
}
h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
small {
  font-size: 0.8125rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  display: flex;
  flex-direction: column;
  padding: 30px 16px 20px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.brand {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.08em;
  padding: 0 12px;
}
.brand-caption {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 1px;
}
.workspace-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 43px 12px 10px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 24px;
}
.workspace-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  color: var(--accent-text);
}
.workspace strong {
  font-size: 0.8125rem;
  display: block;
  font-weight: 550;
}
.workspace span:not(.workspace-icon) {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 2px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--muted);
  border-radius: 7px;
}
nav a:hover {
  background: var(--card);
  color: var(--text);
}
nav a[aria-current="page"] {
  background: var(--selection);
  color: var(--accent-text);
}
nav svg {
  width: 18px;
  height: 18px;
}
.nav-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
}
.offline-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
  background: var(--warning);
  border-radius: 50%;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
}
.local-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text);
}
.local-label svg {
  width: 16px;
  height: 16px;
}
.sidebar-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.version {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.shell {
  margin-left: 224px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  gap: 13px;
  align-items: center;
}
.breadcrumb span {
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--text);
}
.preview-tag {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 9px;
  color: var(--muted);
}
main {
  padding: 40px 44px 48px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.page-heading p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: var(--accent-hover);
}
.button svg {
  width: 17px;
  height: 17px;
}
.button.secondary {
  background: transparent;
  border-color: var(--control-border);
  color: var(--text);
}
.button.secondary:hover:not(:disabled) {
  background: var(--hover);
}
.button.quiet {
  background: transparent;
  color: var(--muted);
  font-weight: 400;
}
.button.quiet:hover {
  background: var(--hover);
  color: var(--text);
}
.button.danger {
  background: var(--danger-button);
  color: var(--white);
}
.button.danger:hover {
  background: var(--danger-hover);
}
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--hover);
  color: var(--text);
}
.welcome {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 290px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 34px;
}
.welcome-copy {
  padding: 34px;
}
.welcome h2 {
  font-size: 2rem;
  letter-spacing: -0.045em;
  line-height: 1.2;
  font-weight: 600;
}
.welcome p {
  margin: 15px 0 23px;
  color: var(--muted);
  font-size: 0.875rem;
  max-width: 350px;
  line-height: 1.75;
}
.welcome .button {
  background: var(--inverse);
  color: var(--on-light);
}
.welcome .button:hover {
  background: var(--inverse-hover);
}
.flow {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background: var(--panel);
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 13px;
}
.flow-node {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--control-border);
  border-radius: 9px;
  background: var(--selection);
  color: var(--accent-text);
  flex-shrink: 0;
}
.flow-row strong {
  font-size: 0.875rem;
  font-weight: 550;
  display: block;
}
.flow-row small {
  display: block;
  margin-top: 1px;
  font-size: 0.75rem;
}
.flow-line {
  height: 21px;
  border-left: 1px dashed var(--control-border);
  margin-left: 22px;
}
.flow-note {
  display: inline-flex;
  color: var(--warning);
  font-size: 0.75rem;
  margin-left: auto;
  padding-left: 8px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 5px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  font-size: 0.8125rem;
  color: var(--accent-text);
}
.text-link:hover {
  text-decoration: underline;
}
.repo-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.repo-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.repo-row:last-child {
  border-bottom: 0;
}
.repo-row:hover {
  background: var(--panel);
}
.repo-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex-shrink: 0;
}
.repo-main {
  min-width: 0;
  flex: 1;
}
.repo-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.repo-title strong {
  font-size: 0.875rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.repo-title svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  flex-wrap: wrap;
}
.repo-meta .separator {
  color: var(--muted);
}
.repo-row .button {
  font-size: 0.8125rem;
  min-height: 36px;
  padding: 7px 12px;
}
.empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--control-border);
  border-radius: var(--radius);
}
.empty p {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 8px auto 22px;
  max-width: 420px;
}
.empty-icon {
  color: var(--accent-text);
  margin-bottom: 14px;
}
.empty-icon svg {
  width: 30px;
  height: 30px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.search svg {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search input {
  padding-left: 40px;
}
.result-count {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-left: auto;
}
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
label,
.field-label {
  font-size: 0.875rem;
  font-weight: 500;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--control-border);
  border-radius: 6px;
  font-size: 0.875rem;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a4afbf' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--mono);
}
.help {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-stack {
  display: grid;
  gap: 20px;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 18px;
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.875rem;
  line-height: 1.65;
}
.notice svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}
.notice p {
  color: var(--warning-muted);
  font-size: 0.8125rem;
  margin-top: 4px;
}
.notice.info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--accent-text);
}
.notice.info p {
  color: var(--accent-text);
}
.error {
  font-size: 0.875rem;
  color: var(--danger);
  line-height: 1.6;
}
.error:empty {
  display: none;
}
.error-box {
  border: 1px solid var(--danger-border);
  border-radius: 8px;
  padding: 20px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.875rem;
}
.error-box .button {
  margin-top: 12px;
}
.loading {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.skeleton {
  height: 14px;
  border-radius: 4px;
  background: var(--line);
  margin: 12px 0;
  width: 65%;
}
.skeleton:nth-child(2) {
  width: 40%;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  border: 1px solid var(--warning-border);
  color: var(--warning);
  background: var(--warning-bg);
  padding: 3px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.neutral {
  color: var(--accent-text);
  background: #1b2638;
  border-color: var(--control-border);
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.app-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-width: 0;
}
.app-card:hover {
  border-color: var(--control-border);
  background: var(--panel);
}
.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 23px;
}
.app-top svg {
  color: var(--accent-text);
}
.app-card h2 {
  overflow-wrap: anywhere;
  margin-bottom: 6px;
}
.app-card .mono {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.app-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
}
.app-bottom span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-bottom svg {
  width: 14px;
  height: 14px;
}
.footer {
  margin: 0 44px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.75rem;
}
.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 0.875rem;
  padding: 13px 0;
  white-space: nowrap;
}
.tabs button[aria-selected="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 26px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 24px;
  min-width: 0;
}
.panel > h2 {
  margin-bottom: 22px;
}
.definition {
  margin: 0;
}
.definition > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.definition > div:last-child {
  border: 0;
  padding-bottom: 0;
}
.definition > div:first-child {
  padding-top: 0;
}
.definition dt {
  color: var(--muted);
  font-size: 0.8125rem;
}
.definition dd {
  margin: 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.status-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.status-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  color: var(--warning);
  flex-shrink: 0;
}
.status-heading p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 4px;
}
.builder-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plain-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  align-items: flex-start;
}
.plain-list li:last-child {
  border: 0;
  padding-bottom: 0;
}
.plain-list li:first-child {
  padding-top: 0;
}
.plain-list li svg {
  color: var(--muted);
  margin-top: 2px;
}
.plain-list li strong {
  display: block;
  font-weight: 500;
}
.plain-list li p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.65;
}
.connection-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.connection-row:first-child {
  padding-top: 0;
}
.connection-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.connection-row > svg {
  margin-top: 3px;
  color: var(--accent-text);
}
.connection-row > div {
  flex: 1;
}
.connection-row p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 5px;
  max-width: 500px;
}
.connection-row .badge {
  align-self: center;
}
.back {
  margin: -8px 0 20px;
  padding-left: 0;
}
.danger-zone {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.danger-zone p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 4px;
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--control-border);
  border-radius: 12px;
  padding: 0;
  max-width: 760px;
  width: calc(100% - 40px);
  max-height: calc(100dvh - 48px);
  box-shadow: 0 24px 100px var(--shadow);
}
dialog::backdrop {
  background: var(--scrim);
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 30px 18px;
}
.dialog-header h2 {
  font-size: 1.375rem;
  letter-spacing: -0.03em;
}
.dialog-header p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 6px;
}
.stepper {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0 30px 20px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.stepper li {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stepper .step-number {
  font-family: var(--mono);
  border: 1px solid var(--control-border);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}
.stepper li.current {
  color: var(--accent-text);
}
.stepper li.current .step-number {
  background: var(--selection);
  border-color: var(--focus);
}
.stepper li.complete {
  color: var(--success);
}
.dialog-body {
  padding: 24px 30px;
  min-height: 260px;
}
.dialog-body .repo-list {
  max-height: 320px;
  overflow: auto;
  margin-top: 16px;
}
.dialog-body .repo-row {
  padding: 12px 13px;
  gap: 8px;
}
.dialog-body .repo-icon {
  width: 24px;
}
.dialog-body .repo-meta {
  font-size: 0.75rem;
}
.dialog-body .repo-row .button {
  min-width: 65px;
}
.dialog-body .search {
  max-width: none;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.dialog-footer .step-caption {
  font-size: 0.75rem;
  color: var(--muted);
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.small-dialog {
  padding: 28px;
}
.small-dialog p {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.small-dialog .dialog-actions {
  margin-top: 24px;
}
#delete-dialog {
  max-width: 440px;
}
.selected-repo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 22px;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.selected-repo svg {
  color: var(--muted);
  flex-shrink: 0;
}
.selected-repo .text-link {
  margin-left: auto;
}
.optional {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}
.review-note {
  margin-top: 22px;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 24px;
  left: calc(50% + 112px);
  transform: translateX(-50%);
  padding: 13px 20px;
  border: 1px solid var(--success-border);
  border-radius: 8px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.875rem;
  box-shadow: 0 8px 30px var(--shadow);
  max-width: calc(100% - 40px);
}
.log-empty {
  padding: 32px 0;
}
.log-empty .mono {
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
summary {
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--accent-text);
  min-height: 32px;
}
details[open] summary {
  margin-bottom: 18px;
}
code {
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.stack-gap {
  margin-top: 24px;
}
@media (min-width: 1600px) {
  main {
    padding-top: 48px;
  }
  .welcome {
    min-height: 310px;
  }
  .welcome-copy {
    padding: 40px;
  }
  .flow {
    padding: 40px;
  }
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    margin-left: 200px;
  }
  main {
    padding: 32px 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .welcome-copy {
    padding: 28px;
  }
  .welcome h2 {
    font-size: 1.75rem;
  }
  .flow {
    padding: 26px 20px;
  }
  .flow-note {
    display: none;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .footer {
    margin: 0 28px;
  }
  .toast {
    left: calc(50% + 100px);
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 16px 20px 0;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0;
    font-size: 1.5rem;
    display: inline-block;
  }
  .brand-caption {
    display: none;
  }
  .workspace-label,
  .workspace,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    gap: 6px;
    margin: 18px -8px 0;
    overflow: auto;
  }
  nav a {
    padding: 10px 12px;
    border-radius: 6px 6px 0 0;
    white-space: nowrap;
    font-size: 0.8125rem;
    gap: 8px;
    min-height: 46px;
  }
  .nav-count {
    display: none;
  }
  .offline-dot {
    margin-left: 0;
  }
  .shell {
    margin-left: 0;
  }
  .topbar {
    height: 54px;
    padding: 0 24px;
  }
  main {
    padding: 28px 24px 36px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .welcome {
    grid-template-columns: 1fr 1fr;
  }
  .welcome-copy {
    padding: 26px;
  }
  .welcome h2 {
    font-size: 1.75rem;
  }
  .flow {
    padding: 24px 18px;
  }
  .flow-row {
    gap: 10px;
  }
  .flow-node {
    width: 36px;
    height: 36px;
  }
  .flow-line {
    margin-left: 18px;
  }
  .flow-row small {
    font-size: 0.75rem;
  }
  .footer {
    margin: 0 24px;
  }
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .toast {
    left: 50%;
  }
}
@media (max-width: 600px) {
  main {
    padding: 26px 20px 32px;
  }
  .topbar {
    padding: 0 20px;
  }
  h1 {
    font-size: 1.625rem;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
  }
  .page-heading p {
    font-size: 0.8125rem;
    max-width: 220px;
  }
  .page-heading > .button {
    font-size: 0.8125rem;
    padding: 9px 11px;
    min-height: 40px;
  }
  .welcome {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
  }
  .welcome-copy {
    padding: 27px 24px;
  }
  .welcome h2 {
    font-size: 1.875rem;
  }
  .welcome p {
    max-width: 100%;
  }
  .flow {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 24px;
  }
  .flow-line {
    height: 15px;
  }
  .flow-note {
    display: inline-flex;
  }
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 1rem;
  }
  .section-heading .text-link {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .repo-row {
    padding: 15px 12px;
    gap: 8px;
  }
  .repo-icon {
    width: 24px;
  }
  .repo-title strong {
    font-size: 0.8125rem;
  }
  .repo-row .button {
    font-size: 0.75rem;
    padding: 7px 10px;
  }
  .repo-meta {
    font-size: 0.75rem;
    gap: 5px;
  }
  .repo-meta .owner {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search {
    max-width: none;
    min-width: 0;
  }
  .result-count {
    font-size: 0.75rem;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    padding: 20px;
  }
  .footer {
    margin: 0 20px;
    font-size: 0.75rem;
    flex-direction: column;
    gap: 4px;
  }
  .dialog-header {
    padding: 20px 20px 16px;
  }
  .dialog-header h2 {
    font-size: 1.25rem;
  }
  .dialog-header p {
    font-size: 0.8125rem;
  }
  .stepper {
    padding: 0 20px 17px;
    gap: 15px;
    justify-content: space-between;
  }
  .stepper li {
    gap: 6px;
    font-size: 0.75rem;
  }
  .stepper .step-number {
    width: 22px;
    height: 22px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-footer {
    padding: 16px 20px;
  }
  .dialog-footer .step-caption {
    display: none;
  }
  .dialog-actions {
    margin-left: auto;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .definition > div {
    grid-template-columns: 110px minmax(0, 1fr);
  }
  .panel {
    padding: 20px;
  }
  .detail-layout {
    gap: 20px;
  }
  .connection-row {
    gap: 10px;
    flex-wrap: wrap;
  }
  .connection-row > div {
    min-width: 180px;
  }
  .connection-row .badge {
    margin-left: 30px;
  }
  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }
  .stepper li.complete .step-number {
    color: var(--success);
  }
  .selected-repo {
    font-size: 0.8125rem;
  }
  .selected-repo .text-link {
    font-size: 0.75rem;
  }
  .tabs {
    gap: 22px;
  }
  .notice {
    padding: 14px;
    font-size: 0.8125rem;
  }
  .flow-row strong {
    font-size: 0.8125rem;
  }
  .review-note {
    margin-top: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.review-title {
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    margin-top: 15px;
    gap: 3px;
  }
  nav a {
    justify-content: center;
    flex-direction: column;
    padding: 8px 3px;
    gap: 4px;
    font-size: 0.75rem;
    position: relative;
  }
  nav svg {
    width: 17px;
    height: 17px;
  }
  .offline-dot {
    position: absolute;
    top: 9px;
    right: calc(50% - 19px);
    width: 5px;
    height: 5px;
  }
}
.field {
  align-content: start;
}
.selected-repo .button {
  margin-left: auto;
}
textarea {
  field-sizing: content;
}
@media (max-width: 600px) {
  dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 24px);
  }
  .stepper {
    gap: 8px;
  }
  .dialog-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
  }
}

@media (max-width: 600px) {
  .welcome-copy {
    padding: 22px 24px;
  }
  .welcome h2 {
    font-size: 1.625rem;
  }
  .welcome p {
    margin: 12px 0 18px;
  }
  .welcome .flow {
    padding: 18px 24px;
  }
  .welcome .flow-row:first-child,
  .welcome .flow-row:last-child,
  .welcome .flow-line {
    display: none;
  }
}
#account {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#account form {
  margin: 0;
}
.account-name {
  font-size: 0.8125rem;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
#account .button {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8125rem;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  max-width: 460px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 40px;
  margin: auto;
}
.login-brand {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.08em;
  margin-bottom: 38px;
}
.login-card h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.login-card > .muted {
  font-size: 0.875rem;
  line-height: 1.8;
}
.login-card form {
  margin: 28px 0 18px;
}
.login-card .button {
  width: 100%;
  min-height: 46px;
}
.login-card > .error {
  margin-top: 20px;
}
.login-card .help {
  font-size: 0.8125rem;
}
@media (max-width: 600px) {
  .account-name {
    max-width: 90px;
  }
  .login-page {
    padding: 16px;
  }
  .login-card {
    padding: 30px 24px;
  }
  .login-card h1 {
    font-size: 1.75rem;
  }
  .topbar {
    gap: 12px;
  }
}
