.auth-wrap {
  min-height: calc(100vh - 42px);
  display: grid;
  place-items: center;
  padding: 30px 16px;
  background: radial-gradient(ellipse at 20% 10%, #e7edfb, transparent 55%);
}
.auth-card {
  width: min(480px, 100%);
  padding: 34px;
}
.auth-card h1 {
  font-size: 24px;
  margin: 22px 0 12px;
}
.auth-card .brand {
  padding: 0;
}
.auth-card .field {
  margin-top: 18px;
}
.auth-card .btn.primary {
  width: 100%;
  margin-top: 24px;
}
.auth-tabs {
  display: flex;
  gap: 16px;
  margin: 24px 0;
}
.auth-tabs button {
  background: transparent;
  padding: 8px 0;
  color: #7b8798;
}
.auth-tabs button.active {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.field label {
  display: block;
  color: #67768d;
  font-size: 12px;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 12px;
  color: #25344d;
  background: #fff;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  min-width: 0;
}
.field textarea {
  resize: vertical;
  line-height: 1.7;
}
.field.full {
  grid-column: 1/-1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .field {
  min-width: 0;
}
.card + .card {
  margin-top: 20px;
}
.muted {
  color: #8a96a8;
  font-size: 12px;
  line-height: 1.9;
}
.error-panel {
  background: #fff0ec;
  color: #aa4d35;
  border: 1px solid #f1d7ce;
  padding: 14px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.8;
  margin: 15px 0;
}
.error-panel:empty {
  display: none;
}
.mobile-nav {
  display: none;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.stack {
  display: grid;
  gap: 18px;
}
.stack > .card {
  margin: 0;
}
.source-frame {
  width: 100%;
  height: 660px;
  border: 0;
  background: #eef1f6;
}
.source-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
}
.review-grid {
  align-items: start;
}
.doc-panel {
  min-width: 0;
}
.section-block {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.section-block:last-child {
  border-bottom: 0;
}
.section-block h3 {
  margin: 0 0 20px;
  font-weight: 600;
  font-size: 14px;
}
.plan-editor {
  padding: 18px;
  background: #f7f9fc;
  border: 1px solid #e3e9f3;
  border-radius: 8px;
  margin: 14px 0;
}
.plan-editor .actions {
  justify-content: space-between;
  margin-bottom: 15px;
}
.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.8;
  color: #64748b;
}
.check-line input {
  margin-top: 4px;
}
.evidence-list {
  font-size: 12px;
  color: #6a7890;
  line-height: 1.9;
}
.evidence-list details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.evidence-list summary {
  cursor: pointer;
  color: #315feb;
}
.empty h3 {
  color: #364660;
  font-size: 16px;
}
.table-wrap {
  overflow: auto;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.data-table td,
.data-table th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  line-height: 1.8;
}
.data-table th {
  font-weight: 500;
  color: #8190a5;
}
.details-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 12px;
  color: #60718b;
}
.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.summary-value {
  font-size: 13px;
  color: #30405a;
}
.user .btn {
  padding: 5px 8px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.review-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.review-grid[data-view="file"] .doc-panel {
  display: block;
}
.review-grid[data-view="fields"] .form-panel {
  display: block;
}
.sticky-actions {
  position: sticky;
  bottom: 16px;
  z-index: 5;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  box-shadow: 0 5px 30px #192b4d14;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.small-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: end;
}
.small-form .field {
  flex: 1;
  min-width: 140px;
}
.inline-error {
  color: #aa4d35;
  font-size: 12px;
  line-height: 1.8;
}
.topbar select {
  max-width: 200px;
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 5px;
  color: #586b88;
  background: #fff;
}
.main-column {
  min-width: 0;
}
.name-history {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.name-history > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.name-history small {
  display: block;
  color: #8c98a8;
  margin-bottom: 9px;
}
.name-history b {
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.permission-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
  font-size: 12px;
}
.long-name {
  overflow-wrap: anywhere;
}
.content .list-row {
  flex-wrap: wrap;
}
.list-row .grow {
  min-width: 180px;
}
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid #8eaafa;
  outline-offset: 3px;
}
.notice {
  font-size: 12px;
}
.card-head small {
  font-size: 11px;
}
.subtitle {
  font-size: 13px;
}
.card-body .muted {
  margin-top: 0;
}
.app-loading {
  padding: 60px;
  text-align: center;
  color: #7689a6;
}
@container view (max-width:760px) {
  .auth-card {
    padding: 25px;
  }
  .mobile-nav {
    display: flex;
    gap: 10px;
    overflow: auto;
    margin-bottom: 22px;
    padding-bottom: 4px;
  }
  .mobile-nav button {
    font-size: 12px;
    background: #fff;
    border: 1px solid #e3e8f1;
    padding: 9px 12px;
    border-radius: 6px;
    white-space: nowrap;
    color: #6e809c;
  }
  .mobile-nav button.active {
    color: #315feb;
    border-color: #cbd8ff;
    background: #edf2ff;
  }
  .topbar {
    gap: 12px;
  }
  .topbar select {
    max-width: 135px;
    font-size: 11px;
  }
  .topbar .user {
    gap: 5px;
  }
  .topbar .user .avatar {
    display: none;
  }
  .form-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .field.full {
    grid-column: auto;
  }
  .source-frame {
    height: 70vh;
  }
  .review-grid[data-view="fields"] .doc-panel {
    display: none;
  }
  .review-grid[data-view="file"] .form-panel {
    display: none;
  }
  .section-block {
    padding: 18px;
  }
  .sticky-actions {
    bottom: 10px;
    flex-wrap: wrap;
    padding: 13px;
  }
  .sticky-actions .actions {
    margin-left: auto;
  }
  .name-history {
    grid-template-columns: 1fr 1fr;
  }
  .stat b {
    font-size: 21px;
  }
  .data-table {
    min-width: 520px;
  }
  .prototype-bar {
    font-size: 10px;
  }
  .review-header {
    align-items: flex-start;
  }
  .review-header .tag {
    white-space: normal;
  }
  .auth-wrap {
    padding: 20px 14px;
  }
  .auth-card .subtitle {
    font-size: 12px;
  }
  .main-column .content {
    padding-bottom: 80px;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .page-head .subtitle {
    font-size: 12px;
  }
  .user .btn {
    font-size: 10px;
  }
  .list-row .grow {
    min-width: 150px;
  }
  .source-tools {
    padding: 12px;
  }
  .notice {
    font-size: 11px;
  }
}
.source-image-wrap {
  background: #e9edf3;
  padding: 15px;
  max-height: 720px;
  overflow: auto;
}
.source-image {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 2px 10px #20335216;
  background: white;
}
.source-tools {
  align-items: center;
}
.source-tools span {
  font-size: 11px;
  color: #72849e;
}
@container view (max-width:760px) {
  .source-image-wrap {
    max-height: none;
    padding: 10px;
  }
}
.stats > .card,
.settings-grid > .card {
  margin-top: 0;
}
.small-form + .small-form {
  margin-top: 20px;
}
