html,
body.entovia-shell {
  overflow-x: clip;
}

.entovia-shell.ws-mounted {
  background: var(--ws-page-background);
}

.entovia-shell :is(button, .button, input[type="submit"], input[type="button"]) {
  min-height: 44px;
}

.cockpit-sidebar .ws-sidebar-content {
  padding: var(--ws-space-6) var(--ws-space-4);
}

.cockpit-sidebar .cockpit-brand {
  gap: var(--ws-space-3);
  margin: 0 0 var(--ws-space-7);
  font-size: 16px;
  font-weight: 600;
}

.cockpit-brand img {
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--ws-soft-green);
  border-radius: var(--ws-action-radius);
}

.cockpit-sidebar .ws-area-list {
  gap: var(--ws-space-1);
}

.cockpit-sidebar .ws-area-list a {
  padding-inline: var(--ws-space-4);
  font-size: 14px;
}

.cockpit-sidebar .ws-area-list a:hover {
  background: var(--ws-nav-hover-background);
  color: var(--ws-nav-hover-text);
}

.cockpit-sidebar .ws-area-list a[aria-current] {
  background: var(--ws-nav-active-background);
  color: var(--ws-nav-active-text);
}

.cockpit-sidebar .ws-area-list a[aria-current]::before {
  content: none;
}

.entovia-shell .cockpit-main {
  padding: var(--ws-space-7);
}

.cockpit-content {
  max-width: 1280px;
  margin-inline: auto;
}

.cockpit-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 44px;
  gap: var(--ws-space-3);
  margin-bottom: var(--ws-space-6);
}

.cockpit-heading h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
}

.cockpit-heading button {
  padding-inline: var(--ws-space-3);
  cursor: pointer;
}

.today-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ws-space-4);
  margin-bottom: var(--ws-space-6);
  align-items: stretch;
}

.today-tile {
  display: flex;
  flex-direction: column;
  gap: var(--ws-space-3);
  padding: var(--ws-space-5);
}

.today-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-2);
}

.today-tile-head h2 {
  margin: 0;
  font-size: 16px;
}

.today-tile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 28px;
  height: 28px;
  padding-inline: var(--ws-space-2);
  border-radius: 999px;
  background: var(--ws-field);
  color: var(--ws-forest);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.today-tile-needs.has-items {
  border-color: var(--ws-warning);
}

.today-tile-needs.has-items .today-tile-count {
  background: var(--ws-soft-orange);
  color: var(--ws-warning);
}

.today-tile-running.has-items .today-tile-count {
  background: var(--ws-status-fresh-surface);
  color: var(--ws-forest);
}

.today-tile-done.has-items .today-tile-count {
  background: var(--ws-soft-green);
  color: var(--ws-status-approved-text);
}

.today-tile-drafts.has-items .today-tile-count {
  background: var(--ws-soft-orange);
  color: var(--ws-warning);
}

.today-tile-footer {
  margin: auto 0 0;
}

.today-tile-list {
  display: grid;
  gap: var(--ws-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.today-tile-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: var(--ws-space-2) var(--ws-space-3);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-paper);
}

.today-tile-title,
.today-tile-link {
  font-weight: 600;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.today-tile-link {
  color: var(--ws-forest);
  text-underline-offset: .2em;
}

.today-tile-detail {
  font-size: 13px;
  color: var(--ws-warning);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.today-tile-empty {
  margin: 0;
  font-size: 13px;
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: var(--ws-space-6);
  align-items: start;
}

.cockpit-card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: var(--ws-space-6);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-card-radius);
  background: var(--ws-white);
  box-shadow: var(--ws-card-shadow);
}

.cockpit-card > :first-child { margin-top: 0; }
.cockpit-card > :last-child { margin-bottom: 0; }
.cockpit-heading h1, .cockpit-card :is(h2, h3, h4) { color: var(--ws-heading-color); }
.cockpit-card h2 { font-size: 19px; letter-spacing: -.02em; }

.status-markdown :is(h3, h4, h5, h6) { margin-block: var(--ws-space-6) var(--ws-space-2); }
.status-markdown :is(p, ul, ol) { margin-block: var(--ws-space-2) var(--ws-space-4); }
.status-markdown :is(ul, ol) { padding-inline-start: var(--ws-space-5); }
.status-markdown li + li { margin-top: var(--ws-space-1); }
.status-markdown a { color: var(--ws-forest); text-underline-offset: .2em; }
.status-markdown img { max-width: 100%; height: auto; }
.status-markdown pre { overflow-x: auto; padding: var(--ws-space-3); background: var(--ws-field); }
.status-markdown blockquote {
  margin-inline: 0;
  padding-inline-start: var(--ws-space-3);
  border-inline-start: 3px solid var(--ws-line);
  color: var(--ws-muted);
}

.status-markdown table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.status-markdown :is(th, td) {
  padding: var(--ws-space-2);
  border-bottom: 1px solid var(--ws-line);
  vertical-align: top;
}

.status-markdown th { background: var(--ws-soft-green); color: var(--ws-forest); }

.run-list {
  display: grid;
  gap: var(--ws-space-3);
  padding: 0;
  list-style: none;
}

.run-list li {
  min-width: 0;
  padding: var(--ws-space-3);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-paper);
}

.run-heading, .run-meta { display: flex; flex-wrap: wrap; gap: var(--ws-space-2); align-items: baseline; }
.run-heading { justify-content: space-between; }
.run-heading h3 { margin: 0; }
.run-meta { margin-top: var(--ws-space-2); color: var(--ws-muted); font-size: 13px; }
.run-list small { display: block; margin-top: var(--ws-space-2); }

.run-state {
  padding: var(--ws-space-1) var(--ws-space-2);
  border-radius: var(--ws-radius-control);
  background: var(--ws-field);
  color: var(--ws-muted);
  font-size: 12px;
}

.run-state-active { background: var(--ws-status-fresh-surface); color: var(--ws-forest); }

.task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: var(--ws-space-6);
  align-items: start;
}

.task-stack, .task-form { display: grid; gap: var(--ws-space-4); min-width: 0; }
.task-stack > h2 { margin: 0; }
.task-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.task-wide { grid-column: 1 / -1; }
.task-form label:not(.task-checkbox) { display: grid; gap: var(--ws-space-2); font-weight: 500; }
.task-form :is(input:not([type=checkbox]), textarea, select) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: var(--ws-space-2) var(--ws-space-3);
  border: 1px solid var(--ws-control);
  border-radius: var(--ws-radius-control);
}

.task-form textarea { resize: vertical; }
.task-form button { justify-self: start; padding-inline: var(--ws-space-3); cursor: pointer; }
.task-checkbox { display: inline-flex; gap: var(--ws-space-2); align-items: center; min-height: 44px; }
.task-checkbox input { accent-color: var(--ws-forest); }
.task-actions, .task-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ws-space-3);
}

.task-section-heading { justify-content: space-between; }
.task-section-heading h2 { margin: 0; }
.task-link, .issue-list a { color: var(--ws-forest); text-underline-offset: .2em; }
.issue-list h3 { margin: 0; font-size: 15px; }
.issue-list h3 span { margin-right: var(--ws-space-1); color: var(--ws-muted); font-size: 12px; }
.issue-priority[data-priority="1"], .issue-priority[data-priority="2"] {
  background: var(--ws-soft-orange);
  color: var(--ws-warning);
}

.task-back { margin-block: 0 var(--ws-space-4); }
.task-notice { padding: var(--ws-space-3) var(--ws-space-4); }
.task-success { background: var(--ws-soft-green); color: var(--ws-forest); }
.task-description { margin-block-start: var(--ws-space-5); }
.task-comments { list-style: none; padding: 0; }
.task-comments > li { border-top: 1px solid var(--ws-line); padding-block: var(--ws-space-2); }
.task-comments strong { color: var(--ws-forest); }

.kontext-stack { display: grid; gap: var(--ws-space-5); }

.kontext-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.kontext-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ws-space-3);
  align-items: center;
}

.kontext-search-field { flex: 1 1 18rem; min-width: 0; }
.kontext-search-field input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: var(--ws-space-2) var(--ws-space-3);
  border: 1px solid var(--ws-control);
  border-radius: var(--ws-radius-control);
}

.kontext-search-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ws-space-3); }
.kontext-search-actions button { padding-inline: var(--ws-space-4); cursor: pointer; }
.kontext-search-results { margin-top: var(--ws-space-4); padding-top: var(--ws-space-4); border-top: 1px solid var(--ws-line); }
.kontext-hit-count { margin: 0 0 var(--ws-space-3); font-size: 13px; }
.kontext-hits h3 { margin: 0; font-size: 15px; }
.kontext-hit-path { margin: var(--ws-space-1) 0 0; font-size: 12px; }
.kontext-excerpt { margin: var(--ws-space-2) 0 0; font-size: 13px; color: var(--ws-text); }

.kontext-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: var(--ws-space-6);
  align-items: start;
}

.kontext-tree-card { max-height: calc(100vh - 10rem); overflow: auto; }
.kontext-tree-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kontext-tree-dir .kontext-tree-list {
  margin-top: 2px;
  margin-left: var(--ws-space-3);
  padding-left: var(--ws-space-3);
  border-left: 1px solid var(--ws-line);
}

.kontext-tree-dir details { margin-top: 0; }
.kontext-tree-dir summary {
  min-height: 38px;
  padding: var(--ws-space-2) var(--ws-space-2);
  border-radius: var(--ws-radius-control);
  font-size: 14px;
  font-weight: 500;
  color: var(--ws-forest);
}

.kontext-tree-dir summary:hover { background: var(--ws-field); }
.kontext-empty-dir { margin: var(--ws-space-1) 0 var(--ws-space-2) var(--ws-space-4); font-size: 13px; }

.kontext-file-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ws-space-2);
  min-height: 38px;
  padding: var(--ws-space-2) var(--ws-space-2);
  border-radius: var(--ws-radius-control);
  color: var(--ws-text);
  text-decoration: none;
  font-size: 14px;
}

.kontext-file-link:hover { background: var(--ws-nav-hover-background); color: var(--ws-forest); }
.kontext-file-link.is-active { background: var(--ws-soft-green); color: var(--ws-forest); font-weight: 600; }
.kontext-file-name { min-width: 0; overflow-wrap: anywhere; }

.kontext-badge {
  flex: none;
  padding: 2px 6px;
  border-radius: var(--ws-radius-control);
  background: var(--ws-field);
  color: var(--ws-muted);
  font-size: 11px;
  font-weight: 500;
}

.kontext-file-link.is-active .kontext-badge { background: var(--ws-white); color: var(--ws-forest); }

.kontext-preview-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--ws-space-3);
  padding-bottom: var(--ws-space-4);
  margin-bottom: var(--ws-space-4);
  border-bottom: 1px solid var(--ws-line);
}

.kontext-preview-header h2 { margin: 0; }
.kontext-preview-actions { display: flex; flex-wrap: wrap; gap: var(--ws-space-3); align-items: center; }

.kontext-pdf-frame {
  display: block;
  width: 100%;
  height: min(75vh, 840px);
  min-height: 420px;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-paper);
}

.kontext-download-row { margin-top: var(--ws-space-4); }
.kontext-download-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--ws-space-4);
  text-decoration: none;
}

.kontext-note-disclosure { margin-top: 0; }
.kontext-note-disclosure > summary.kontext-note-toggle {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0 var(--ws-space-4);
  font-size: 14px;
  list-style: none;
}
.kontext-note-disclosure > summary.kontext-note-toggle::-webkit-details-marker { display: none; }
.kontext-note-panel { margin-top: var(--ws-space-3); }
.kontext-note-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ws-space-4);
}

.agent-stack, .agent-detail-stack { display: grid; gap: var(--ws-space-5); min-width: 0; }
.agent-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.agent-filter-actions { min-height: 44px; }
.agent-count { margin: var(--ws-space-3) 0; font-size: 13px; }
.agent-run-list { margin-top: var(--ws-space-3); }
.agent-summary { margin: var(--ws-space-2) 0 0; color: var(--ws-text); font-size: 14px; }
.agent-summary-detail { margin-top: var(--ws-space-3); font-weight: 500; }

.agent-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--ws-radius-control);
  background: var(--ws-soft-green);
  color: var(--ws-forest);
  font-size: 12px;
  font-weight: 500;
}

.agent-times {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ws-space-2) var(--ws-space-4);
  margin-top: var(--ws-space-2);
  color: var(--ws-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.agent-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--ws-space-3);
  margin: var(--ws-space-4) 0 var(--ws-space-3);
}

.agent-meta-grid dt {
  margin: 0 0 var(--ws-space-1);
  color: var(--ws-muted);
  font-size: 12px;
  font-weight: 500;
}

.agent-meta-grid dd {
  margin: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.agent-final { margin-top: var(--ws-space-3); }
.agent-log-details { margin-top: var(--ws-space-2); }
.agent-log-details summary { font-size: 14px; font-weight: 500; }

.agent-log {
  margin: var(--ws-space-3) 0 0;
  padding: var(--ws-space-3);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-field);
  color: var(--ws-text);
  font-size: 12px;
  line-height: 1.5;
  max-height: 65vh;
  overflow: auto;
  white-space: pre;
  overflow-wrap: normal;
}

.agent-log code { white-space: pre; overflow-wrap: normal; }

.entwuerfe-stack { display: grid; gap: var(--ws-space-5); min-width: 0; }
.entwuerfe-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.entwuerfe-filter-actions { min-height: 44px; }
.entwuerfe-count { margin: var(--ws-space-3) 0; font-size: 13px; }
.entwuerfe-day + .entwuerfe-day {
  margin-top: var(--ws-space-5);
  padding-top: var(--ws-space-5);
  border-top: 1px solid var(--ws-line);
}
.entwuerfe-day-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--ws-space-2);
  margin-bottom: var(--ws-space-3);
}
.entwuerfe-day-heading h3 { margin: 0; font-size: 16px; }
.entwuerfe-day-folder { font-size: 12px; color: var(--ws-muted); }
.entwuerfe-list { margin: 0; }
.entwuerfe-list h4 { margin: 0; font-size: 15px; }
.entwuerfe-state-open { background: var(--ws-soft-orange); color: var(--ws-warning); }
.entwuerfe-state-sent { background: var(--ws-soft-green); color: var(--ws-status-approved-text); }
.entwuerfe-pdfs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ws-space-2);
  margin-top: var(--ws-space-3);
}
.entwuerfe-pdfs-label { font-size: 13px; }
.entwuerfe-pdf-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ws-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.entwuerfe-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: var(--ws-space-2);
  min-height: 36px;
  padding: var(--ws-space-1) var(--ws-space-3);
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius-control);
  background: var(--ws-paper);
  color: var(--ws-forest);
  text-decoration: none;
  font-size: 13px;
}
.entwuerfe-pdf-link:hover { background: var(--ws-soft-green); }

.offline-content { max-width: 36rem; margin-inline: auto; }

@media (max-width: 1050px) {
  .today-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-grid, .task-grid, .kontext-grid { grid-template-columns: minmax(0, 1fr); }
  .kontext-tree-card { max-height: 45vh; }
}

@media (max-width: 899px) {
  html:root .entovia-shell .cockpit-sidebar {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    z-index: 40;
    border: 0;
    border-top: 1px solid var(--ws-line);
    background: var(--ws-paper);
    box-shadow: 0 -6px 20px rgba(17, 17, 17, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .cockpit-sidebar .ws-sidebar-content {
    padding: var(--ws-space-1) var(--ws-space-2);
    max-height: none;
    overflow: visible;
  }

  .cockpit-sidebar .cockpit-brand { display: none; }

  .cockpit-sidebar .ws-area-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--ws-space-1);
  }

  .cockpit-sidebar .ws-area-list a {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    min-width: 0;
    padding: var(--ws-space-1);
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }

  .cockpit-sidebar .ws-area-list a span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .entovia-shell .cockpit-main {
    padding: var(--ws-space-5) var(--ws-space-4) calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .cockpit-heading { margin-bottom: var(--ws-space-4); }
  .today-tiles { grid-template-columns: minmax(0, 1fr); gap: var(--ws-space-3); margin-bottom: var(--ws-space-4); }
  .today-tile { padding: var(--ws-space-4); }
  .today-grid, .task-grid, .kontext-grid, .kontext-stack, .agent-stack, .agent-detail-stack, .entwuerfe-stack { gap: var(--ws-space-4); }
  .cockpit-card { padding: var(--ws-space-4); }
  .kontext-file-link, .kontext-tree-dir summary, .entwuerfe-pdf-link { min-height: 44px; }
  .task-link, .today-tile-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
  .kontext-pdf-frame { height: 60vh; min-height: 360px; }
  .agent-log { max-height: 55vh; font-size: 11.5px; }
}

@media (max-width: 640px) {
  .status-markdown table,
  .status-markdown tbody {
    display: block;
    width: 100%;
  }

  .status-markdown thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .status-markdown tbody {
    display: grid;
    gap: var(--ws-space-3);
  }

  .status-markdown tbody tr {
    display: grid;
    gap: var(--ws-space-2);
    min-width: 0;
    padding: var(--ws-space-3);
    border: 1px solid var(--ws-line);
    border-radius: var(--ws-radius);
    background: var(--ws-paper);
  }

  .status-markdown tbody td {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .status-markdown tbody td + td {
    padding-top: var(--ws-space-2);
    border-top: 1px solid var(--ws-line);
  }

  .status-markdown tbody td[data-label]::before {
    content: attr(data-label);
    color: var(--ws-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .task-filters,
  .agent-filters,
  .entwuerfe-filters,
  .kontext-note-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .kontext-search-field {
    flex: 1 1 100%;
    width: 100%;
  }

  .kontext-search-actions {
    width: 100%;
  }

  .task-form button,
  .kontext-search-actions button,
  .kontext-note-disclosure > summary.kontext-note-toggle,
  .kontext-download-btn {
    width: 100%;
    min-height: 44px;
    justify-self: stretch;
    justify-content: center;
  }

  .agent-meta-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr));
  }
}

@media (max-width: 420px) {
  .entovia-shell .cockpit-main {
    padding: var(--ws-space-4) var(--ws-space-3) calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .cockpit-card,
  .today-tile {
    padding: var(--ws-space-3);
  }

  .cockpit-heading h1 {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .cockpit-heading button {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .cockpit-sidebar .ws-sidebar-content {
    padding: var(--ws-space-1);
  }

  .cockpit-sidebar .ws-area-list a {
    min-height: 50px;
    font-size: 11px;
  }

  .status-markdown pre {
    max-width: 100%;
    font-size: 12px;
  }
}
.bridge-result {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}

.copilot-auth .auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100dvh;
}

.copilot-auth .auth-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--ws-space-4);
  min-height: 100dvh;
  padding: var(--ws-space-7);
  border-right: 1px solid var(--ws-line);
}

.copilot-auth .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.copilot-auth .auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--ws-space-7);
}

.copilot-auth .auth-card {
  width: 100%;
  max-width: 440px;
  min-width: 0;
}

.copilot-auth .auth-card h1 {
  margin: 0 0 var(--ws-space-5);
}

.copilot-auth .auth-card :is(.button, button) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.copilot-auth .auth-card button.secondary:hover {
  background: var(--ws-field);
  border-color: var(--ws-forest);
}

.copilot-auth .auth-status {
  margin: 0 0 var(--ws-space-5);
  padding: 14px 16px;
  border: 1px solid var(--ws-line);
  border-radius: var(--ws-radius);
  background: var(--ws-field);
  color: var(--ws-text);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .copilot-auth .auth-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .copilot-auth .auth-story {
    min-height: unset;
    padding: var(--ws-space-5);
    border-right: 0;
    border-bottom: 1px solid var(--ws-line);
  }

  .copilot-auth .auth-panel {
    padding: var(--ws-space-5) var(--ws-space-5) var(--ws-space-7);
  }

  .copilot-auth .brand {
    font-size: 20px;
  }

  .copilot-auth .brand img {
    width: 37px;
    height: 37px;
  }
}
