:root {
  color-scheme: light;
  --primary: #1e3a8a;
  --primary-strong: #0f2a6a;
  --success: #16a34a;
  --warning: #ea580c;
  --danger: #dc2626;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.brand-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 2px;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.topnav {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 16px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover {
  background: #f1f5f9;
  color: var(--text);
}

.language-select {
  flex: 0 0 auto;
  width: 112px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #475569;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.nav-button,
.avatar-button {
  flex: 0 0 auto;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.nav-button.secondary {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.primary-nav,
.avatar-button {
  background: #0f4fd6;
  color: white;
}

.avatar-button {
  width: 36px;
  padding: 0;
  border-radius: 50%;
}

.app-shell {
  width: min(1480px, calc(100% - 56px));
  margin: 0 auto;
  padding: 32px 0 40px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: center;
  min-height: 320px;
  padding: 44px 36px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.home-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.cursor-mark {
  display: inline-block;
  width: 0.07em;
  height: 0.86em;
  margin-left: 0.08em;
  transform: translateY(0.09em);
  background: #2563eb;
  animation: blink 1s steps(1) infinite;
}

.cursor-mark.small {
  height: 1em;
  transform: translateY(0.16em);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  margin: 16px 0 0;
  color: #334155;
  font-size: 22px;
  font-weight: 650;
}

.lede {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.document-stack {
  position: relative;
  width: 230px;
  height: 220px;
}

.doc-card {
  position: absolute;
  right: 44px;
  top: 12px;
  width: 154px;
  height: 188px;
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.doc-card::after {
  content: "";
  position: absolute;
  inset: -18px -48px 42px 76px;
  z-index: -1;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
}

.doc-card span {
  display: block;
  height: 9px;
  margin-bottom: 13px;
  border-radius: 999px;
  background: #e2e8f0;
}

.doc-card span:first-child {
  width: 86%;
  height: 14px;
  background: #cbd5e1;
}

.ai-chip {
  position: absolute;
  left: 40px;
  bottom: 42px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #0f4fd6;
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 79, 214, 0.25);
}

.orbit-dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 900;
}

.user-dot {
  left: 4px;
  top: 62px;
  border: 1px solid #93c5fd;
  background: #dbeafe;
  color: #0f4fd6;
}

.check-dot {
  right: 0;
  bottom: 64px;
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #15803d;
}

.panel,
.configuration-panel,
.output-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.library-panel {
  margin-top: 22px;
  padding: 24px;
}

.my-workflows-panel {
  margin-top: 22px;
  padding: 24px;
}

.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.library-header p,
.panel-header p,
.workflow-top p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workflow-owner {
  margin-top: 4px;
  font-size: 12px;
}

.library-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box input {
  width: 300px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
}

.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.view-toggle button {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin: 18px 0 20px;
}

.filter-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.filter-pill.active {
  background: #eff6ff;
  color: #1d4ed8;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.workflow-card {
  position: relative;
  min-height: 196px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.workflow-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30, 58, 138, 0.12);
}

.workflow-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}

.workflow-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}

.workflow-card p {
  min-height: 52px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.workflow-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
  color: var(--muted-2);
  font-size: 11px;
}

.workflow-meta b {
  color: #475569;
  font-size: 12px;
}

.workflow-card em {
  position: absolute;
  top: 20px;
  right: 20px;
  border-radius: 6px;
  padding: 4px 7px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.my-workflow-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.my-workflow-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.my-workflow-card strong {
  display: block;
  margin-bottom: 6px;
}

.my-workflow-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.reviewer-note {
  margin-top: 8px !important;
  color: #b91c1c !important;
}

.submission-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.submission-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 6px;
  padding: 0 9px;
  font-weight: 850;
}

.submission-status.pending {
  background: #fff7ed;
  color: #ea580c;
}

.submission-status.denied {
  background: #fef2f2;
  color: #dc2626;
}

.compact-empty {
  padding: 18px;
}

.workflow-builder {
  max-width: 720px;
  margin-top: 22px;
  padding: 24px;
}

.builder-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.builder-steps span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
}

.builder-steps .active {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.workflow-markdown-card {
  display: grid;
  gap: 10px;
}

.workflow-markdown-card > span {
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.workflow-markdown-rendered {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #ffffff;
}

.workflow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.workflow-top h1 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.workflow-top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.saved-status {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.configuration-panel {
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
  background: #fbfdff;
}

.output-panel {
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

label strong {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
}

input,
select {
  height: 40px;
  padding: 0 12px;
}

textarea {
  min-height: 82px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.28);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
}

.switch-row strong {
  display: block;
  font-size: 13px;
}

.switch-row strong em {
  margin-left: 8px;
  border-radius: 6px;
  padding: 2px 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
  font-style: normal;
}

.switch-row span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.disabled-row {
  opacity: 0.72;
}

.switch {
  display: inline-block;
  margin: 0;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.25);
  transition: transform 0.16s ease;
}

.switch input:checked + span {
  background: #2563eb;
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.7;
}

.primary,
.ghost,
.danger-button,
.text-button {
  border-radius: 8px;
  font-weight: 850;
  cursor: pointer;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: #0f4fd6;
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 79, 214, 0.16);
}

.primary.compact-primary {
  min-height: 40px;
}

.ghost {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
}

.danger-button {
  min-height: 40px;
  padding: 0 14px;
  background: var(--danger);
  color: #fff;
}

.text-button {
  min-height: 34px;
  padding: 0 4px;
  background: transparent;
  color: var(--primary);
}

.primary:disabled,
.ghost:disabled,
.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.back-button {
  color: #64748b;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.tab {
  min-height: 48px;
  border-right: 1px solid var(--border);
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  position: relative;
  background: #fff;
  color: #0f4fd6;
}

.tab.active::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 0;
  left: 22px;
  height: 2px;
  background: #0f4fd6;
}

.output-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 8px;
}

.output-toolbar h2 {
  margin: 0;
  font-size: 18px;
}

.output-toolbar h2 span {
  margin-left: 10px;
  border-radius: 6px;
  padding: 4px 7px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  vertical-align: middle;
}

.actions {
  display: flex;
  gap: 8px;
}

.ai-disclaimer {
  margin: 12px 28px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 12px;
  background: #eff6ff;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.output {
  display: none;
  margin: 0 28px 24px;
}

.output.active {
  display: block;
}

.article-scroll {
  height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.article-card {
  max-width: 820px;
}

.article-card h1 {
  margin-bottom: 12px;
  font-size: 26px;
}

.article-card h2 {
  color: #475569;
  font-size: 18px;
  font-weight: 650;
}

.markdown-body {
  line-height: 1.8;
  color: #243244;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin-top: 28px;
}

.json-output {
  min-height: 520px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #0f172a;
  color: #dbeafe;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 28px 24px;
}

.progress-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.progress-card div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.progress-card strong {
  color: #0f4fd6;
}

.progress-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.progress-card.done strong {
  color: var(--success);
}

.score-badge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.audit-tool {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.audit-view {
  display: grid;
  gap: 18px;
}

.audit-input-panel,
.audit-result-panel {
  padding: 24px;
}

#auditArticleInput {
  min-height: 220px;
}

.audit-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.audit-summary div,
.info-block,
.verify-item,
.empty-state,
.error-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.audit-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.audit-summary strong {
  font-size: 28px;
}

.info-block {
  margin-bottom: 14px;
}

.empty-state {
  color: var(--muted);
}

.error-box {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
  padding: 24px;
}

.auth-modal {
  width: min(430px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.auth-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.auth-header strong {
  font-size: 18px;
}

.auth-header p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.auth-fields,
.register-fields,
.privacy-consent,
.account-panel {
  display: grid;
  gap: 10px;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f5f9;
}

.auth-mode {
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.auth-mode.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.08);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.privacy-link-row,
.small-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.privacy-link-row a,
.privacy-consent a,
.site-footer a,
.modal-content a {
  color: var(--primary);
  font-weight: 800;
}

.settings-modal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  width: min(720px, 100%);
}

.settings-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  border-right: 1px solid var(--border);
  padding-right: 18px;
}

.settings-sidebar button {
  min-height: 38px;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.settings-sidebar .active {
  background: #eff6ff;
  color: #1d4ed8;
}

.settings-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.settings-card span {
  color: var(--muted);
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: flex;
}

label.settings-section.active {
  display: grid;
}

.panel-header.settings-section.active,
.danger-zone.settings-section.active {
  display: block;
}

.small-note.settings-section.active {
  display: block;
}

.danger-zone {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.danger-zone h3 {
  color: var(--danger);
}

.signed-out-settings {
  display: grid;
  align-content: start;
  gap: 12px;
}

.modal-content {
  color: #334155;
  line-height: 1.7;
}

.dataset-copyright-panel {
  width: min(620px, 100%);
}

.dataset-copyright-panel h2 {
  margin: 0 0 16px;
}

.modal-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px 0;
  color: var(--muted);
  font-size: 13px;
}

.legal-page {
  max-width: 900px;
}

.legal-page .panel {
  padding: 36px;
}

.legal-page h1 {
  margin-bottom: 18px;
}

.legal-page p,
.legal-page li {
  color: #334155;
  line-height: 1.75;
}

.legal-tools {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 28px 0;
}

.legal-tools a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace,
  .audit-tool {
    grid-template-columns: 1fr;
  }

  .configuration-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    padding: 14px 18px;
    align-items: flex-start;
    gap: 14px;
  }

  .topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .app-shell {
    width: min(100% - 24px, 1480px);
    padding-top: 18px;
  }

  .hero-panel,
  .workflow-top,
  .library-header,
  .output-toolbar,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 28px 20px;
  }

  .hero-visual {
    display: none;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .search-box input {
    width: 100%;
  }

	  .library-tools,
	  .hero-actions,
	  .actions {
	    flex-wrap: wrap;
	  }

  .my-workflow-card {
    display: grid;
  }

  .submission-meta {
    justify-items: start;
  }

	  .tabs {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .settings-modal {
    grid-template-columns: 1fr;
  }

  .settings-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 0 16px;
  }
}
