.ws-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--tl-accent);
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.ws-source-link:focus-visible {
  outline: 3px solid var(--tl-accent);
  outline-offset: 3px;
}
.ws-secret.tl-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--tl-space-3);
}
.ws-secret pre {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.ws-secret button {
  width: 100%;
}
.ws-rule-group,
.ws-rule {
  display: grid;
  min-width: 0;
  gap: var(--tl-space-3);
}
.ws-rule-group[hidden] {
  display: none;
}
.ws-panel > *,
.ws-admin > *,
.ws-panel section,
.ws-admin section {
  min-width: 0;
  max-width: 100%;
}
.ws-panel .tl-table-scroll,
.ws-admin .tl-table-scroll {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.ws-panel .tl-table,
.ws-admin .tl-table {
  width: max-content;
  min-width: 100%;
  overflow-wrap: normal;
}
.ws-panel .tl-table td,
.ws-admin .tl-table td {
  max-width: 24rem;
}
.ws-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tl-space-2);
  margin-bottom: var(--tl-space-4);
}
.ws-panel,
.ws-admin {
  display: grid;
  gap: var(--tl-space-4);
  min-width: 0;
}
.ws-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--tl-space-3);
  padding: var(--tl-space-4);
  border: 1px solid var(--tl-border);
  border-radius: var(--tl-radius-md);
}
.ws-form h3 {
  grid-column: 1/-1;
}
.ws-panel svg,
.ws-admin svg {
  display: block;
  width: 100%;
  max-height: 260px;
}
.ws-panel pre,
.ws-admin pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ws-panel details,
.ws-admin details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ws-panel summary,
.ws-admin summary {
  min-height: 44px;
  cursor: pointer;
}
.ws-panel caption,
.ws-admin caption {
  text-align: left;
  color: var(--tl-muted);
}
.ws-preview {
  display: grid;
  gap: var(--tl-space-3);
}
.ws-preview .tl-check-label {
  min-height: 44px;
}
.ws-panel button,
.ws-admin button,
.ws-tabs button {
  min-height: 44px;
  overflow-wrap: anywhere;
  white-space: normal;
}
#workspace {
  padding-bottom: env(safe-area-inset-bottom);
}
.shell,
main,
.page {
  min-width: 0;
}
main {
  max-width: 100%;
}
.header-actions {
  flex-wrap: wrap;
}
body {
  overflow-wrap: anywhere;
}
button,
input,
select {
  max-width: 100%;
  box-sizing: border-box;
}
table {
  max-width: 100%;
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  aside {
    width: auto;
    max-width: 100%;
    padding: var(--tl-space-3);
  }
  #nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tl-space-1);
  }
  #nav button {
    flex: 1 1 120px;
    min-height: 44px;
  }
  main {
    padding: var(--tl-space-3);
    padding-bottom: max(var(--tl-space-4), env(safe-area-inset-bottom));
  }
  header {
    flex-wrap: wrap;
    gap: var(--tl-space-3);
  }
  .grid.two,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    flex-wrap: wrap;
  }
  .hero-stat {
    min-width: 0;
  }
  .header-actions {
    min-width: 0;
  }
  .ws-tabs button {
    flex: 1 1 120px;
  }
  .table-scroll,
  .tl-table-scroll {
    max-width: 100%;
    overflow-x: auto;
  }
}
