:root {
  color: #17212b;
  background: #eef1f3;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  --ink: #17212b;
  --muted: #68737d;
  --soft: #98a1aa;
  --line: #dfe4e7;
  --surface: #ffffff;
  --canvas: #f4f6f7;
  --brand: #0f766e;
  --brand-deep: #0b5f59;
  --brand-soft: #e8f4f1;
  --nav: #18242d;
  --amber: #d8a03a;
  --code-bg: #172129;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: auto;
  background: var(--canvas);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  background: var(--canvas);
}

.product-bar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: var(--nav);
  color: #fff;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.brand-copy strong {
  font-size: 17px;
  font-weight: 650;
}

.brand-copy small {
  color: #aeb8bf;
  font-size: 12px;
}

.record-date {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cbd3d8;
  font-size: 13px;
}

.record-date > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ecbb7;
  box-shadow: 0 0 0 4px rgb(94 203 183 / 12%);
}

.page-body {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.page-heading {
  display: flex;
  min-height: 66px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid #d5dbde;
}

.page-heading p,
.page-heading h1,
.section-heading h2,
.section-heading p,
.generation-panel h2,
.generation-panel p,
.metadata-summary h2,
.metadata-summary p,
.generated-document h2,
.generated-document p,
.video-prompt h2,
.video-prompt p {
  margin: 0;
  letter-spacing: 0;
}

.page-heading p {
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
}

.page-heading h1 {
  color: var(--ink);
  font-size: 25px;
  font-weight: 650;
  line-height: 31px;
}

.verified-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #4d5b64;
  font-size: 13px;
}

.verified-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.generation-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-bottom: 22px;
}

.generation-panel,
.record-section,
.code-viewer,
.document-view,
.video-layout,
.image-proof-layout,
.audit-record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.generation-panel {
  display: flex;
  min-height: 300px;
  overflow: hidden;
  flex-direction: column;
}

.generation-panel > header {
  display: flex;
  height: 53px;
  flex: 0 0 53px;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.generation-panel > header > span {
  color: var(--brand);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.generation-panel h2 {
  font-size: 16px;
  font-weight: 650;
}

.generation-panel .panel-content {
  flex: 1;
  padding: 25px 24px;
  background: #fbfcfc;
}

.generation-panel .panel-content p {
  color: #3f4b53;
  font-size: 16px;
  line-height: 29px;
}

.result-copy p + p {
  margin-top: 14px;
}

.generation-panel > footer {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  color: #7e8890;
  font-size: 12px;
}

.record-section {
  overflow: hidden;
}

.section-heading {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 650;
}

.section-heading p {
  color: var(--muted);
  font-size: 12px;
}

.record-seal {
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 650;
}

.record-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.record-grid > div {
  min-width: 0;
  min-height: 94px;
  padding: 20px 20px 16px;
  border-right: 1px solid var(--line);
}

.record-grid > div:last-child {
  border-right: 0;
}

.record-grid dt,
.record-grid dd {
  margin: 0;
  letter-spacing: 0;
}

.record-grid dt {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
}

.record-grid dd {
  overflow-wrap: anywhere;
  color: #28343d;
  font-family: Arial, "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
}

.generation-grid--image {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.generation-grid--image .generation-panel {
  min-height: 502px;
}

.image-result {
  height: 410px;
  margin: 0;
  overflow: hidden;
  background: #111c24;
}

.image-result img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.generation-grid--video {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.generation-grid--video .generation-panel {
  min-height: 502px;
}

.trace-video-result {
  position: relative;
  display: grid;
  height: 410px;
  overflow: hidden;
  place-items: center;
  background: #111c24;
}

.trace-video-result video {
  display: block;
  width: 231px;
  height: 410px;
  object-fit: cover;
}

.metadata-layout {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metadata-stack {
  display: grid;
  gap: 22px;
}

.metadata-summary {
  padding: 24px 22px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.metadata-summary h2 {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 650;
}

.metadata-summary dl {
  margin: 0;
}

.metadata-summary dl > div {
  margin-bottom: 24px;
}

.metadata-summary dt,
.metadata-summary dd {
  margin: 0;
  letter-spacing: 0;
}

.metadata-summary dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.metadata-summary dd {
  overflow-wrap: anywhere;
  color: #2d3941;
  font-size: 13px;
  font-weight: 600;
  line-height: 19px;
}

.summary-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.metadata-summary > p {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--brand-deep);
  font-size: 12px;
  line-height: 19px;
}

.code-viewer {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--code-bg);
}

.code-viewer > header {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: #1d2932;
}

.code-file {
  color: #dbe3e7;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.code-type {
  color: #7fbeb4;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.json-code {
  margin: 0;
  padding: 19px 27px 23px;
  color: #d2d9dd;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: 0;
  tab-size: 2;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.key {
  color: #e7b85b;
}

.string {
  color: #7dd3c3;
}

.punctuation {
  color: #cdd5d9;
}

.metadata-rules {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.metadata-rules > header {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}

.metadata-rules h2,
.metadata-rules p {
  margin: 0;
}

.metadata-rules h2 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
}

.metadata-rules p,
.metadata-rules > header > span {
  color: var(--muted);
  font-size: 11px;
}

.metadata-rule-table-wrap {
  overflow-x: auto;
}

.metadata-rules table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.metadata-rules th,
.metadata-rules td {
  border-bottom: 1px solid var(--line);
  padding: 13px 22px;
  text-align: left;
  vertical-align: top;
}

.metadata-rules tr:last-child th,
.metadata-rules tr:last-child td {
  border-bottom: 0;
}

.metadata-rules th {
  width: 210px;
  background: #fbfcfc;
  color: #324049;
  font-size: 12px;
  font-weight: 600;
}

.metadata-rules th code {
  color: var(--brand-deep);
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.metadata-rules td {
  overflow-wrap: anywhere;
  color: #505d65;
  font-size: 12px;
  line-height: 20px;
}

.document-view {
  min-height: 550px;
  overflow: hidden;
}

.document-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.document-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.document-toolbar > div > span {
  color: #35434c;
  font-size: 13px;
  font-weight: 650;
}

.document-toolbar time {
  color: var(--muted);
  font-size: 12px;
}

.ai-marker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 27px;
  white-space: nowrap;
}

.ai-marker strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.ai-marker--text {
  border: 1px solid #bedbd5;
  padding: 2px 10px 2px 3px;
  background: #f5fbfa;
  color: var(--brand-deep);
}

.ai-marker--text strong {
  background: var(--brand);
  color: #fff;
}

.generated-document {
  max-width: 850px;
  margin: 0 auto;
  padding: 50px 42px 70px;
}

.generated-document h2 {
  margin-bottom: 30px;
  color: #1e2a33;
  font-size: 26px;
  font-weight: 650;
  line-height: 36px;
}

.generated-document h2::after {
  display: block;
  width: 38px;
  height: 3px;
  margin-top: 17px;
  background: var(--brand);
  content: "";
}

.generated-document p {
  color: #45515a;
  font-size: 17px;
  line-height: 34px;
}

.generated-document p + p {
  margin-top: 18px;
}

.video-layout {
  display: grid;
  min-height: 580px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 430px;
}

.video-prompt {
  padding: 42px 44px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.video-prompt > span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
}

.video-prompt h2 {
  margin-top: 13px;
  margin-bottom: 27px;
  font-size: 24px;
  font-weight: 650;
}

.video-prompt .script-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.speech-script {
  max-width: 570px;
  margin: 0;
  border-left: 3px solid var(--brand);
  padding: 18px 22px;
  background: #f5f8f7;
  color: #46535c;
  font-size: 15px;
  font-style: normal;
  line-height: 29px;
}

.video-prompt dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}

.video-prompt dl > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.video-prompt dt,
.video-prompt dd {
  margin: 0;
}

.video-prompt dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.video-prompt dd {
  color: #2d3941;
  font-size: 13px;
  font-weight: 600;
}

.sync-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.video-result {
  padding: 22px 27px 29px;
  background: #eef1f2;
}

.video-result > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #59656d;
  font-size: 12px;
}

.video-stage {
  position: relative;
  width: 278px;
  height: 494px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background: #111;
  box-shadow: 0 14px 30px rgb(25 35 43 / 18%);
}

.video-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-marker--video {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 3px 9px 3px 4px;
  background: rgb(18 28 34 / 88%);
  color: #fff;
  backdrop-filter: blur(4px);
}

.ai-marker--video strong {
  background: #fff;
  color: #152028;
}

.image-proof-layout {
  display: grid;
  min-height: 580px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 430px;
}

.image-proof-prompt {
  padding: 42px 44px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.image-proof-prompt > span,
.audit-section-label {
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
}

.image-proof-prompt h2 {
  margin: 13px 0 27px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 650;
  line-height: 34px;
}

.image-proof-prompt > p {
  max-width: 560px;
  margin: 0;
  color: #46535c;
  font-size: 16px;
  line-height: 31px;
}

.image-proof-prompt dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 42px 0 0;
  border-top: 1px solid var(--line);
}

.image-proof-prompt dl > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.image-proof-prompt dt,
.image-proof-prompt dd {
  margin: 0;
}

.image-proof-prompt dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.image-proof-prompt dd {
  color: #2d3941;
  font-size: 13px;
  font-weight: 600;
}

.image-proof-result {
  padding: 22px 27px 29px;
  background: #eef1f2;
}

.image-proof-result > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: #59656d;
  font-size: 12px;
}

.image-proof-stage {
  position: relative;
  width: 330px;
  height: 495px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 5px;
  background: #111c24;
  box-shadow: 0 14px 30px rgb(25 35 43 / 18%);
}

.image-proof-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-marker--image {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 3px 9px 3px 4px;
  background: rgb(18 28 34 / 88%);
  color: #fff;
  backdrop-filter: blur(4px);
}

.ai-marker--image strong {
  background: #fff;
  color: #152028;
}

.audit-record {
  overflow: hidden;
}

.audit-overview {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.audit-overview > div {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.audit-overview > div > span {
  color: var(--muted);
  font-size: 11px;
}

.audit-overview strong {
  color: #34414a;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.approved-state,
.check-result {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 650;
}

.approved-state i,
.check-result i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.audit-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  min-height: 322px;
  border-bottom: 1px solid var(--line);
}

.audit-content,
.audit-conclusion {
  padding: 28px 30px;
}

.audit-content {
  border-right: 1px solid var(--line);
  background: #fff;
}

.audit-content h2,
.audit-conclusion h2,
.audit-checks h2 {
  margin: 10px 0 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 27px;
}

.audit-text-preview {
  min-height: 178px;
  border-left: 3px solid var(--brand);
  padding: 22px 24px;
  background: #f5f8f7;
}

.audit-text-preview h3,
.audit-text-preview p {
  margin: 0;
}

.audit-text-preview h3 {
  margin-bottom: 13px;
  color: #28353d;
  font-size: 16px;
}

.audit-text-preview p {
  color: #56616a;
  font-size: 14px;
  line-height: 28px;
}

.audit-media-preview {
  position: relative;
  width: 210px;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #172129;
}

.audit-media-preview img {
  display: block;
  width: 210px;
  height: 232px;
  object-fit: contain;
}

.audit-media-preview--video img {
  object-fit: cover;
  object-position: center 28%;
}

.audit-media-preview figcaption {
  min-height: 30px;
  padding: 8px 11px;
  background: #202d36;
  color: #cbd5da;
  font-size: 10px;
}

.audit-conclusion {
  background: #fbfcfc;
}

.audit-conclusion dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  margin: 0;
}

.audit-conclusion dl > div {
  min-width: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.audit-conclusion dt,
.audit-conclusion dd {
  margin: 0;
}

.audit-conclusion dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.audit-conclusion dd {
  overflow-wrap: anywhere;
  color: #34414a;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
}

.audit-checks > header {
  display: flex;
  min-height: 59px;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.audit-checks h2 {
  margin: 0;
  font-size: 15px;
}

.audit-checks > header > span {
  color: var(--muted);
  font-size: 11px;
}

.audit-checks table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.audit-checks th,
.audit-checks td {
  height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  text-align: left;
  font-size: 12px;
}

.audit-checks th {
  background: #fbfcfc;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.audit-checks td {
  color: #35424a;
}

.audit-checks th:nth-child(1),
.audit-checks td:nth-child(1) {
  width: 42%;
}

.audit-checks th:nth-child(2),
.audit-checks td:nth-child(2) {
  width: 36%;
}

.audit-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 20px 24px;
  background: #f5f8f7;
}

.audit-timeline > div {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 3px 8px;
}

.audit-timeline i {
  grid-row: 1 / 3;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.audit-timeline span {
  color: #34414a;
  font-size: 11px;
  font-weight: 600;
}

.audit-timeline time {
  color: var(--muted);
  font-size: 10px;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 60px;
  height: 60px;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 50%;
  background: rgb(12 20 25 / 72%);
  cursor: pointer;
}

.play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 22px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.play-button.is-playing {
  opacity: 0;
}

.play-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.public-shell {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
}

.public-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: var(--nav);
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.public-brand > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.public-brand strong {
  font-size: 16px;
  font-weight: 650;
}

.public-brand small {
  color: #aeb8bf;
  font-size: 12px;
}

.public-header-action {
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: 4px;
  padding: 8px 13px;
  color: #dce4e8;
  font-size: 12px;
  text-decoration: none;
}

.public-header-action:hover,
.public-header-action:focus-visible {
  border-color: #75cbbb;
  color: #fff;
}

.public-footer {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: #77828a;
  font-size: 11px;
}

.auth-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.auth-main {
  display: grid;
  width: min(1100px, calc(100% - 64px));
  min-height: 610px;
  margin: 42px auto;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) 470px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 50px rgb(31 44 53 / 9%);
}

.auth-intro {
  padding: 64px 58px;
  background: #1b2831;
  color: #fff;
}

.auth-intro-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 6px;
  background: var(--brand);
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
}

.auth-intro h1,
.auth-intro p {
  margin: 0;
}

.auth-intro h1 {
  max-width: 430px;
  margin-top: 34px;
  font-size: 32px;
  font-weight: 650;
  line-height: 45px;
}

.auth-intro > p {
  max-width: 450px;
  margin-top: 21px;
  color: #bac5cb;
  font-size: 15px;
  line-height: 28px;
}

.auth-intro dl {
  display: grid;
  gap: 0;
  margin: 54px 0 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.auth-intro dl > div {
  display: grid;
  grid-template-columns: 94px 1fr;
  padding: 15px 0;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.auth-intro dt,
.auth-intro dd {
  margin: 0;
  font-size: 12px;
  line-height: 21px;
}

.auth-intro dt {
  color: #86959e;
}

.auth-intro dd {
  color: #e4eaed;
  font-weight: 550;
}

.auth-panel {
  padding: 58px 48px 46px;
  background: #fff;
}

.auth-panel > header h2,
.auth-panel > header p {
  margin: 0;
}

.auth-panel > header h2 {
  font-size: 25px;
  font-weight: 650;
}

.auth-panel > header p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 31px 0 27px;
  border-bottom: 1px solid var(--line);
}

.auth-tab {
  position: relative;
  height: 43px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #7a858d;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.auth-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.auth-tab.is-active {
  color: var(--brand-deep);
}

.auth-tab.is-active::after {
  background: var(--brand);
}

.auth-form {
  display: grid;
  gap: 20px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > span:first-child {
  color: #536069;
  font-size: 12px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #d7dee1;
  border-radius: 4px;
  padding: 0 13px;
  outline: none;
  background: #fbfcfc;
  color: #25313a;
  font-size: 14px;
  letter-spacing: 0;
}

.auth-field input:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(15 118 110 / 10%);
}

.auth-field input::placeholder {
  color: #a1abb2;
}

.auth-code-control {
  position: relative;
  display: block;
}

.auth-code-control input {
  padding-right: 122px;
}

.send-code-button {
  position: absolute;
  top: 5px;
  right: 5px;
  height: 34px;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 10px;
  background: transparent;
  color: var(--brand-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.send-code-button:disabled {
  color: #8b959c;
  cursor: default;
}

.auth-consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  border: 1px solid #ecd78d;
  border-radius: 4px;
  padding: 11px 12px;
  background: #fff9df;
  color: #59646b;
  font-size: 11px;
  line-height: 20px;
}

.auth-consent input {
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
  accent-color: var(--brand);
}

.auth-consent a {
  color: var(--brand-deep);
  font-weight: 650;
  text-decoration: none;
}

.auth-submit {
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  background: var(--brand-deep);
}

.auth-status {
  min-height: 20px;
  margin: -7px 0 0;
  color: #7c878e;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.legal-heading {
  padding: 52px max(32px, calc((100% - 1120px) / 2)) 40px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-heading h1,
.legal-heading p {
  margin: 0;
}

.legal-heading h1 {
  font-size: 32px;
  font-weight: 650;
  line-height: 43px;
}

.legal-heading > p {
  max-width: 780px;
  margin-top: 14px;
  color: #59656d;
  font-size: 14px;
  line-height: 26px;
}

.legal-heading > div {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  color: #7d888f;
  font-size: 11px;
}

.legal-main {
  display: grid;
  width: min(1120px, calc(100% - 64px));
  margin: 34px auto 46px;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 24px;
  display: grid;
  border-top: 1px solid #cad2d6;
}

.legal-nav a {
  border-bottom: 1px solid var(--line);
  padding: 12px 4px;
  color: #58656d;
  font-size: 12px;
  text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--brand-deep);
}

.legal-document {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 42px 42px;
  background: #fff;
}

.legal-document section {
  scroll-margin-top: 20px;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.legal-document section:last-child {
  border-bottom: 0;
}

.legal-document h2,
.legal-document p {
  margin: 0;
}

.legal-document h2 {
  margin-bottom: 13px;
  color: #26323b;
  font-size: 17px;
  font-weight: 650;
}

.legal-document p {
  color: #56626a;
  font-size: 14px;
  line-height: 28px;
}

.legal-document p + p {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .product-bar {
    padding: 0 22px;
  }

  .page-body {
    width: min(100% - 32px, 720px);
    padding-top: 27px;
  }

  .generation-grid,
  .generation-grid--image,
  .generation-grid--video,
  .metadata-layout,
  .video-layout,
  .image-proof-layout,
  .audit-main {
    grid-template-columns: 1fr;
  }

  .generation-grid--image .generation-panel {
    min-height: 0;
  }

  .generation-grid--video .generation-panel {
    min-height: 0;
  }

  .image-result {
    height: 420px;
  }

  .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-grid > div {
    border-bottom: 1px solid var(--line);
  }

  .record-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .metadata-summary,
  .video-prompt,
  .image-proof-prompt,
  .audit-content {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metadata-layout {
    overflow: visible;
  }

  .metadata-summary {
    display: none;
  }

  .video-result {
    padding-bottom: 32px;
  }

  .image-proof-result {
    padding-bottom: 32px;
  }

  .auth-main {
    width: min(720px, calc(100% - 40px));
    grid-template-columns: 1fr;
  }

  .auth-intro {
    padding: 38px 42px;
  }

  .auth-intro h1 {
    font-size: 27px;
    line-height: 39px;
  }

  .auth-intro dl {
    margin-top: 30px;
  }

  .legal-main {
    width: min(760px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid var(--line);
  }

  .legal-nav a {
    border-right: 1px solid var(--line);
    padding: 11px 12px;
  }
}

@media (max-width: 560px) {
  .product-bar {
    min-height: 58px;
    padding: 0 16px;
  }

  .brand-copy {
    gap: 0;
    flex-direction: column;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    display: none;
  }

  .record-date {
    display: none;
  }

  .page-body {
    width: calc(100% - 24px);
    padding: 22px 0 30px;
  }

  .page-heading {
    min-height: 60px;
    margin-bottom: 16px;
  }

  .page-heading h1 {
    font-size: 21px;
  }

  .verified-state {
    display: none;
  }

  .generation-panel .panel-content {
    padding: 20px 18px;
  }

  .generation-panel .panel-content p {
    font-size: 15px;
    line-height: 27px;
  }

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

  .record-grid > div,
  .record-grid > div:nth-child(2n) {
    min-height: 76px;
    border-right: 0;
  }

  .section-heading {
    padding: 0 18px;
  }

  .record-seal {
    display: none;
  }

  .image-result {
    height: 390px;
  }

  .json-code {
    padding: 18px 14px 22px;
    font-size: 11px;
    line-height: 21px;
  }

  .metadata-rules > header {
    padding: 0 18px;
  }

  .metadata-rules table {
    min-width: 680px;
  }

  .document-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 17px 18px;
  }

  .document-toolbar > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .generated-document {
    padding: 34px 24px 48px;
  }

  .generated-document h2 {
    font-size: 22px;
  }

  .generated-document p {
    font-size: 16px;
    line-height: 31px;
  }

  .video-prompt {
    padding: 30px 24px;
  }

  .video-stage {
    width: min(278px, 100%);
    aspect-ratio: 9 / 16;
    height: auto;
  }

  .image-proof-prompt {
    padding: 30px 24px;
  }

  .image-proof-stage {
    width: min(330px, 100%);
    aspect-ratio: 2 / 3;
    height: auto;
  }

  .audit-overview {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
  }

  .audit-overview > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .audit-content,
  .audit-conclusion {
    padding: 24px 20px;
  }

  .audit-conclusion dl {
    grid-template-columns: 1fr;
  }

  .audit-checks {
    overflow-x: auto;
  }

  .audit-checks table {
    min-width: 560px;
  }

  .audit-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .public-header {
    min-height: 58px;
    padding: 0 16px;
  }

  .public-brand {
    gap: 9px;
  }

  .public-brand .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .public-brand > span:last-child {
    display: block;
  }

  .public-brand strong {
    display: block;
    max-width: 215px;
    font-size: 13px;
    line-height: 18px;
  }

  .public-brand small {
    display: none;
  }

  .public-header-action {
    padding: 7px 9px;
    font-size: 11px;
  }

  .public-footer {
    align-items: center;
    flex-direction: column;
    gap: 4px;
    padding: 15px 12px;
    text-align: center;
  }

  .auth-main {
    width: calc(100% - 24px);
    min-height: 0;
    margin: 18px auto 26px;
  }

  .auth-intro {
    padding: 28px 24px;
  }

  .auth-intro-mark {
    width: 40px;
    height: 40px;
    font-size: 19px;
  }

  .auth-intro h1 {
    margin-top: 21px;
    font-size: 23px;
    line-height: 34px;
  }

  .auth-intro > p {
    margin-top: 13px;
    font-size: 13px;
    line-height: 24px;
  }

  .auth-intro dl {
    display: none;
  }

  .auth-panel {
    padding: 30px 24px 28px;
  }

  .auth-panel > header h2 {
    font-size: 22px;
  }

  .auth-tabs {
    margin-top: 23px;
  }

  .auth-consent {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .legal-heading {
    padding: 34px 20px 28px;
  }

  .legal-heading h1 {
    font-size: 27px;
  }

  .legal-heading > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .legal-main {
    width: calc(100% - 24px);
    margin: 20px auto 30px;
  }

  .legal-nav {
    overflow: hidden;
    grid-template-columns: 1fr;
    border-radius: 4px;
  }

  .legal-document {
    padding: 8px 20px 28px;
  }

  .legal-document section {
    padding: 23px 0;
  }

  .legal-document p {
    font-size: 13px;
    line-height: 26px;
  }
}

/* Content-governance console redesign. */
:root {
  --console-ink: #172033;
  --console-muted: #687386;
  --console-line: #e3e8ef;
  --console-canvas: #f5f7fa;
  --console-navy: #111827;
  --console-panel: #ffffff;
  --console-blue: #2563eb;
  --console-blue-soft: #eff6ff;
  --console-green: #059669;
  --console-green-soft: #ecfdf5;
  --console-amber: #b7791f;
}

body {
  background: var(--console-canvas);
  color: var(--console-ink);
}

.console-shell {
  min-height: 100vh;
  background: var(--console-canvas);
}

.console-topbar {
  display: grid;
  min-height: 56px;
  grid-template-columns: 238px minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 9%);
  background: var(--console-navy);
  color: #fff;
}

.console-brand {
  display: flex;
  height: 56px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid rgb(255 255 255 / 9%);
  color: #fff;
  text-decoration: none;
}

.console-brand .brand-mark {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: #2563eb;
  font-size: 15px;
}

.console-brand > span:last-child,
.console-topbar-user > span:last-child {
  display: grid;
  gap: 1px;
}

.console-brand strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 17px;
}

.console-brand small {
  color: #8f9bb0;
  font-size: 10px;
  line-height: 13px;
}

.console-topbar-context {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-left: 22px;
  color: #8793a7;
  font-size: 11px;
}

.console-topbar-context strong {
  overflow: hidden;
  color: #d7deea;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 56px;
  padding: 0 21px;
  border-left: 1px solid rgb(255 255 255 / 9%);
}

.user-avatar {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #334155;
  color: #e5ebf6;
  font-size: 11px;
  font-weight: 700;
}

.console-topbar-user strong {
  display: block;
  color: #e6ebf4;
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
}

.console-topbar-user small {
  display: block;
  color: #8e9aaf;
  font-size: 10px;
  line-height: 13px;
}

.console-frame {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 238px minmax(0, 1fr);
}

.console-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--console-line);
  background: #fff;
}

.console-sidebar-title {
  padding: 19px 20px 10px;
  color: #98a3b3;
  font-size: 10px;
  font-weight: 650;
}

.console-nav {
  display: grid;
  gap: 2px;
  padding: 0 10px;
}

.console-nav p {
  margin: 17px 10px 5px;
  color: #98a3b3;
  font-size: 10px;
  font-weight: 650;
}

.console-nav p:first-child {
  margin-top: 6px;
}

.console-nav-item {
  display: grid;
  min-height: 36px;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 4px;
  padding: 0 10px;
  color: #536174;
  font-size: 13px;
  text-decoration: none;
}

.console-nav-mark {
  width: 9px;
  height: 9px;
  border: 1.5px solid #a8b2c2;
  border-radius: 2px;
}

.console-nav-item em {
  min-width: 18px;
  border-radius: 9px;
  padding: 1px 5px;
  background: #eef2f7;
  color: #778398;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.console-nav-item:hover {
  background: #f6f8fb;
  color: #1c2a3b;
}

.console-nav-item.is-active {
  background: var(--console-blue-soft);
  color: #1d4ed8;
  font-weight: 650;
}

.console-nav-item.is-active .console-nav-mark {
  border-color: var(--console-blue);
  background: var(--console-blue);
  box-shadow: inset 0 0 0 2px var(--console-blue-soft);
}

.console-nav-item.is-active em {
  background: #dbeafe;
  color: #2563eb;
}

.console-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: auto 16px 18px;
  border-top: 1px solid #edf0f4;
  padding-top: 15px;
}

.service-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--console-green);
  box-shadow: 0 0 0 3px #d1fae5;
}

.console-sidebar-footer strong,
.console-sidebar-footer small {
  display: block;
}

.console-sidebar-footer strong {
  color: #536174;
  font-size: 10px;
  font-weight: 650;
}

.console-sidebar-footer small {
  margin-top: 2px;
  color: #a1abb9;
  font-size: 9px;
}

.console-main {
  min-width: 0;
  padding: 18px 28px 34px;
  background: var(--console-canvas);
}

.console-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  color: #8a96a7;
  font-size: 11px;
}

.console-breadcrumb i {
  color: #c3cad4;
  font-style: normal;
}

.console-breadcrumb strong {
  overflow: hidden;
  color: #5b6778;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-heading {
  min-height: 76px;
  align-items: center;
  margin: 4px 0 16px;
  border-bottom: 0;
}

.page-heading h1 {
  color: #172033;
  font-size: 22px;
  font-weight: 650;
  line-height: 30px;
}

.page-heading p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 7px 0 0;
  color: #8a96a7;
  font-size: 11px;
  font-weight: 400;
}

.page-heading p span {
  width: 1px;
  height: 10px;
  background: #d9dfe7;
}

.page-heading p code {
  color: #64748b;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.heading-status {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.heading-utilities {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.record-actions {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 4px;
  background: #fff;
}

.record-actions a {
  min-height: 27px;
  padding: 0 9px;
  border-right: 1px solid #e2e8f0;
  color: #526176;
  font-size: 10px;
  line-height: 27px;
  text-decoration: none;
}

.record-actions a:last-child {
  border-right: 0;
}

.record-actions a:hover,
.record-actions a:focus-visible {
  background: #f4f7fb;
  color: #1d4ed8;
}

.verified-state {
  margin: 0;
  border: 1px solid #a7e3c6;
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--console-green-soft);
  color: #047857;
  font-size: 11px;
  font-weight: 650;
}

.verified-state i {
  width: 6px;
  height: 6px;
  background: var(--console-green);
}

.heading-status small {
  color: #9aa5b3;
  font-size: 10px;
}

.console-content {
  min-width: 0;
}

.generation-panel,
.record-section,
.metadata-layout,
.metadata-rules,
.document-view,
.video-layout,
.image-proof-layout,
.audit-record {
  border-color: var(--console-line);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

.generation-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  margin-bottom: 14px;
}

.generation-grid--image,
.generation-grid--video {
  grid-template-columns: minmax(0, 1fr) 376px;
}

.trace-source-stack {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.trace-source-stack .generation-panel {
  min-height: 0;
}

.execution-context {
  overflow: hidden;
  border: 1px solid var(--console-line);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

.execution-context > header {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid #e8edf3;
  background: #fbfcfe;
}

.execution-context h3 {
  margin: 0;
  color: #4b5b70;
  font-size: 11px;
  font-weight: 650;
}

.execution-context > header > span {
  color: #8c98a9;
  font-size: 10px;
}

.execution-context dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.execution-context dl > div {
  min-width: 0;
  padding: 11px 15px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}

.execution-context dl > div:nth-child(2n) {
  border-right: 0;
}

.execution-context dl > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.execution-context dt,
.execution-context dd {
  margin: 0;
}

.execution-context dt {
  margin-bottom: 5px;
  color: #8a96a7;
  font-size: 9px;
}

.execution-context dd {
  overflow-wrap: anywhere;
  color: #435168;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
}

.inline-success {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #047857;
  font-weight: 600;
}

.inline-success i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--console-green);
}

.generation-panel {
  min-height: 256px;
}

.generation-grid--image .generation-panel,
.generation-grid--video .generation-panel {
  min-height: 430px;
}

.trace-view--image .trace-source-stack .generation-panel,
.trace-view--video .trace-source-stack .generation-panel {
  min-height: 0;
}

.generation-panel > header {
  height: 46px;
  flex-basis: 46px;
  gap: 10px;
  padding: 0 16px;
  background: #fbfcfe;
}

.generation-panel > header > span {
  color: #2563eb;
  font-size: 11px;
}

.generation-panel h2 {
  color: #263347;
  font-size: 14px;
}

.generation-panel .panel-content {
  padding: 18px 20px;
  background: #fff;
}

.generation-panel .panel-content p {
  color: #526073;
  font-size: 14px;
  line-height: 25px;
}

.generation-panel > footer {
  min-height: 35px;
  padding: 0 16px;
  background: #fbfcfe;
  font-size: 11px;
}

.image-result,
.trace-video-result {
  height: 348px;
}

.trace-video-result video {
  width: 196px;
  height: 348px;
}

.record-section {
  background: #fff;
}

.section-heading {
  min-height: 55px;
  padding: 0 18px;
  background: #fbfcfe;
}

.section-heading h2 {
  color: #263347;
  font-size: 14px;
}

.section-heading p {
  font-size: 11px;
}

.record-seal {
  border: 1px solid #c8d7fb;
  border-radius: 3px;
  padding: 3px 7px;
  background: #f5f8ff;
  color: #3159b8;
  font-size: 10px;
}

.record-grid > div {
  min-height: 79px;
  padding: 14px 16px;
}

.record-grid dt {
  margin-bottom: 8px;
  color: #8793a3;
  font-size: 10px;
}

.record-grid dd {
  color: #344155;
  font-size: 11px;
  line-height: 17px;
}

.metadata-stack {
  gap: 14px;
}

.metadata-layout {
  min-height: 540px;
  grid-template-columns: 222px minmax(0, 1fr);
}

.metadata-summary {
  padding: 20px 18px;
  background: #fbfcfe;
}

.metadata-summary h2 {
  margin-bottom: 19px;
  color: #27354a;
  font-size: 14px;
}

.metadata-summary dl > div {
  margin-bottom: 18px;
}

.metadata-summary dt {
  font-size: 10px;
}

.metadata-summary dd {
  color: #445267;
  font-size: 11px;
  line-height: 17px;
}

.metadata-summary > p {
  margin-top: 23px;
  padding-top: 14px;
  color: #2563eb;
  font-size: 10px;
}

.code-viewer {
  background: #111c2d;
}

.code-viewer > header {
  height: 42px;
  padding: 0 18px;
  background: #17243a;
}

.json-code {
  padding: 16px 23px 21px;
  font-size: 12px;
  line-height: 22px;
}

.metadata-rules > header {
  min-height: 56px;
  padding: 0 18px;
  background: #fbfcfe;
}

.metadata-rules h2 {
  color: #27354a;
  font-size: 14px;
}

.metadata-rules p,
.metadata-rules > header > span {
  font-size: 10px;
}

.metadata-rules th,
.metadata-rules td {
  padding: 10px 18px;
}

.metadata-rules th {
  width: 190px;
  background: #fbfcfe;
  font-size: 11px;
}

.metadata-rules td {
  color: #607085;
  font-size: 11px;
  line-height: 18px;
}

.document-view {
  min-height: 440px;
}

.document-toolbar {
  min-height: 48px;
  padding: 0 20px;
  background: #fbfcfe;
}

.generated-document {
  max-width: 920px;
  margin: 0;
  padding: 36px 44px 44px;
}

.generated-document h2 {
  margin-bottom: 23px;
  font-size: 22px;
  line-height: 32px;
}

.generated-document p {
  color: #536174;
  font-size: 15px;
  line-height: 30px;
}

.video-layout,
.image-proof-layout {
  min-height: 506px;
  grid-template-columns: minmax(0, 1fr) 390px;
}

.video-prompt,
.image-proof-prompt {
  padding: 30px 34px;
}

.video-prompt h2,
.image-proof-prompt h2 {
  margin-top: 9px;
  margin-bottom: 20px;
  color: #263347;
  font-size: 21px;
}

.video-prompt .script-label,
.image-proof-prompt > span,
.audit-section-label {
  color: #2563eb;
}

.speech-script {
  max-width: 600px;
  border-left-color: #2563eb;
  padding: 14px 17px;
  background: #f5f8ff;
  color: #526073;
  font-size: 13px;
  line-height: 24px;
}

.video-prompt dl,
.image-proof-prompt dl {
  margin-top: 23px;
}

.video-prompt dl > div,
.image-proof-prompt dl > div {
  padding: 13px 0;
}

.video-prompt dd .inline-success,
.image-proof-prompt dd .inline-success {
  font-size: 12px;
}

.video-result,
.image-proof-result {
  padding: 17px 19px 20px;
  background: #f7f9fc;
}

.video-stage {
  width: 246px;
  height: 437px;
  box-shadow: 0 10px 22px rgb(15 23 42 / 16%);
}

.image-proof-stage {
  width: 294px;
  height: 441px;
  box-shadow: 0 10px 22px rgb(15 23 42 / 16%);
}

.ai-marker--image,
.ai-marker--video {
  top: 10px;
  right: 10px;
  padding: 2px 8px 2px 3px;
  font-size: 10px;
}

.audit-overview {
  min-height: 54px;
  padding: 0 19px;
  background: #fbfcfe;
}

.audit-main {
  min-height: 274px;
  grid-template-columns: minmax(0, 1fr) 390px;
}

.audit-content,
.audit-conclusion {
  padding: 21px 24px;
}

.audit-content h2,
.audit-conclusion h2,
.audit-checks h2 {
  margin: 7px 0 14px;
  color: #253249;
  font-size: 16px;
}

.audit-text-preview {
  min-height: 134px;
  padding: 16px 18px;
  border-left-color: #2563eb;
  background: #f7faff;
}

.audit-text-preview h3 {
  font-size: 14px;
}

.audit-text-preview p {
  font-size: 12px;
  line-height: 23px;
}

.audit-media-preview,
.audit-media-preview img {
  width: 176px;
}

.audit-media-preview img {
  height: 176px;
}

.audit-media-workspace {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.audit-media-facts {
  display: grid;
  min-width: 160px;
  margin: 0;
  border-top: 1px solid #e0e6ee;
}

.audit-media-facts > div {
  min-width: 0;
  border-bottom: 1px solid #e0e6ee;
  padding: 10px 0;
}

.audit-media-facts dt,
.audit-media-facts dd {
  margin: 0;
}

.audit-media-facts dt {
  margin-bottom: 5px;
  color: #8793a3;
  font-size: 9px;
}

.audit-media-facts dd {
  color: #46546a;
  font-size: 11px;
  font-weight: 600;
}

.audit-conclusion {
  background: #fbfcfe;
}

.audit-conclusion dl > div {
  padding: 8px 0;
}

.audit-conclusion dt {
  font-size: 9px;
}

.audit-conclusion dd {
  font-size: 11px;
  line-height: 16px;
}

.audit-checks > header {
  min-height: 51px;
  padding: 0 20px;
  background: #fbfcfe;
}

.audit-checks th,
.audit-checks td {
  height: 37px;
  padding: 0 20px;
  font-size: 11px;
}

.audit-timeline {
  padding: 15px 20px;
  background: #f7f9fc;
}

.audit-timeline span {
  font-size: 10px;
}

.audit-timeline time {
  font-size: 9px;
}

.approved-state,
.check-result {
  color: #047857;
  font-size: 11px;
}

.approved-state i,
.check-result i,
.sync-dot {
  background: var(--console-green);
}

.public-shell {
  background: #f5f7fa;
}

.public-header {
  min-height: 56px;
  padding: 0 32px;
  background: var(--console-navy);
}

.public-brand .brand-mark {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: #2563eb;
  font-size: 15px;
}

.public-brand strong {
  color: #e9edf4;
  font-size: 13px;
}

.public-brand small {
  color: #8e9aaf;
  font-size: 10px;
}

.public-header-action {
  border-color: #46536a;
  border-radius: 4px;
  color: #d9e0eb;
  font-size: 11px;
}

.auth-main {
  width: min(910px, calc(100% - 48px));
  min-height: 505px;
  grid-template-columns: 350px minmax(0, 1fr);
  margin: 48px auto;
  border-color: var(--console-line);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgb(15 23 42 / 7%);
}

.auth-intro {
  padding: 39px 36px;
  background: #162033;
}

.auth-intro-mark {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 5px;
  background: #2563eb;
  font-size: 18px;
}

.auth-kicker {
  margin-top: 24px !important;
  color: #85a8ff !important;
  font-size: 11px !important;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.auth-intro h1 {
  margin-top: 9px;
  font-size: 26px;
  line-height: 37px;
}

.auth-intro > p:not(.auth-kicker) {
  margin-top: 15px;
  font-size: 13px;
  line-height: 24px;
}

.auth-intro dl {
  margin-top: 34px;
}

.auth-intro dl > div {
  grid-template-columns: 82px 1fr;
  padding: 11px 0;
}

.auth-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #34d399;
}

.auth-panel {
  padding: 42px 48px 34px;
}

.auth-panel > header h2 {
  color: #1f2b3f;
  font-size: 22px;
}

.auth-panel > header p {
  font-size: 12px;
}

.auth-tabs {
  margin: 27px 0 21px;
}

.auth-form {
  gap: 15px;
}

.auth-field input {
  height: 42px;
  font-size: 13px;
}

.auth-consent {
  border-color: #d9e4fb;
  background: #f7faff;
  color: #68758a;
}

.auth-consent a,
.send-code-button {
  color: #2563eb;
}

.auth-submit {
  height: 42px;
  border-radius: 4px;
  background: #2563eb;
  font-size: 13px;
}

.auth-submit:hover,
.auth-submit:focus-visible {
  background: #1d4ed8;
}

.public-footer {
  min-height: 52px;
  border-top-color: var(--console-line);
  font-size: 10px;
}

.legal-heading {
  padding: 34px max(32px, calc((100% - 1160px) / 2)) 26px;
  border-bottom-color: var(--console-line);
}

.legal-heading h1 {
  color: #202c3f;
  font-size: 26px;
  line-height: 36px;
}

.legal-heading > p {
  margin-top: 10px;
  color: #657286;
  font-size: 13px;
  line-height: 23px;
}

.legal-heading > div {
  margin-top: 16px;
  color: #8b97a8;
  font-size: 10px;
}

.legal-main {
  width: min(1160px, calc(100% - 64px));
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 22px;
  margin: 24px auto 34px;
}

.legal-nav {
  border-top-color: #cbd5e1;
}

.legal-nav a {
  padding: 11px 5px;
  color: #647187;
  font-size: 11px;
}

.legal-document {
  border-color: var(--console-line);
  border-radius: 5px;
  padding: 10px 34px 30px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
}

.legal-document section {
  padding: 21px 0;
}

.legal-document h2 {
  color: #263348;
  font-size: 15px;
}

.legal-document p {
  color: #5c697c;
  font-size: 13px;
  line-height: 25px;
}

@media (max-width: 1000px) {
  .console-topbar {
    grid-template-columns: 210px minmax(0, 1fr) auto;
  }

  .console-frame {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .console-brand {
    padding: 0 15px;
  }

  .console-sidebar {
    min-width: 0;
  }

  .console-main {
    padding: 17px 18px 28px;
  }

  .generation-grid--image,
  .generation-grid--video,
  .video-layout,
  .image-proof-layout,
  .audit-main {
    grid-template-columns: 1fr;
  }

  .generation-grid--image .generation-panel,
  .generation-grid--video .generation-panel {
    min-height: 0;
  }

  .trace-source-stack {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .trace-source-stack .generation-panel {
    height: auto;
  }

  .generation-grid--image .result-panel,
  .generation-grid--video .result-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 46px minmax(0, 1fr) 35px;
  }

  .generation-grid--image .result-panel > header,
  .generation-grid--video .result-panel > header {
    grid-column: 1 / -1;
  }

  .generation-grid--image .result-panel > footer,
  .generation-grid--video .result-panel > footer {
    grid-column: 1 / -1;
  }

  .image-result,
  .trace-video-result {
    height: 320px;
  }

  .video-prompt,
  .image-proof-prompt,
  .audit-content {
    border-right: 0;
  }

  .video-result,
  .image-proof-result {
    border-top: 1px solid var(--console-line);
  }
}

@media (max-width: 760px) {
  .console-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .console-topbar-context {
    display: none;
  }

  .console-topbar-user {
    padding: 0 13px;
  }

  .console-topbar-user > span:last-child {
    display: none;
  }

  .console-frame {
    display: block;
  }

  .console-sidebar {
    min-height: 47px;
    border-right: 0;
    border-bottom: 1px solid var(--console-line);
  }

  .console-sidebar-title,
  .console-nav p,
  .console-sidebar-footer {
    display: none;
  }

  .console-nav {
    display: flex;
    width: 100%;
    gap: 3px;
    overflow-x: auto;
    padding: 6px 10px;
  }

  .console-nav-item {
    min-height: 34px;
    flex: 0 0 auto;
    grid-template-columns: 9px auto;
    gap: 6px;
    padding: 0 8px;
    font-size: 11px;
  }

  .console-nav-item em {
    display: none;
  }

  .console-main {
    padding: 13px 12px 24px;
  }

  .console-breadcrumb {
    font-size: 10px;
  }

  .page-heading {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    margin: 5px 0 11px;
  }

  .page-heading h1 {
    font-size: 19px;
    line-height: 27px;
  }

  .page-heading p {
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 3px;
  }

  .heading-status {
    display: none;
  }

  .heading-utilities {
    display: block;
  }

  .record-actions {
    margin-top: 1px;
  }

  .generation-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .trace-source-stack {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .execution-context dl > div {
    padding: 10px 12px;
  }

  .generation-panel {
    min-height: 0;
  }

  .generation-panel .panel-content {
    min-height: 160px;
    padding: 15px;
  }

  .generation-panel .panel-content p {
    font-size: 13px;
    line-height: 23px;
  }

  .generation-grid--image .result-panel,
  .generation-grid--video .result-panel {
    display: flex;
  }

  .image-result,
  .trace-video-result {
    height: 332px;
  }

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

  .record-grid > div {
    min-height: 72px;
  }

  .record-grid > div:nth-child(2n) {
    border-right: 0;
  }

  .record-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .section-heading {
    min-height: 51px;
  }

  .metadata-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .metadata-summary {
    display: none;
  }

  .json-code {
    padding: 13px;
    font-size: 10px;
    line-height: 19px;
  }

  .metadata-rules th,
  .metadata-rules td {
    padding: 9px 12px;
  }

  .metadata-rules th {
    width: 145px;
  }

  .document-toolbar {
    min-height: 48px;
    align-items: center;
    flex-direction: row;
    padding: 0 15px;
  }

  .document-toolbar > div {
    gap: 4px;
  }

  .generated-document {
    padding: 25px 20px 34px;
  }

  .generated-document h2 {
    font-size: 20px;
  }

  .generated-document p {
    font-size: 14px;
    line-height: 28px;
  }

  .video-prompt,
  .image-proof-prompt {
    padding: 23px 20px;
  }

  .video-prompt h2,
  .image-proof-prompt h2 {
    font-size: 19px;
  }

  .video-stage {
    width: 220px;
    height: 391px;
  }

  .image-proof-stage {
    width: min(280px, 100%);
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .audit-main {
    grid-template-columns: 1fr;
  }

  .audit-content,
  .audit-conclusion {
    padding: 18px;
  }

  .audit-conclusion dl {
    grid-template-columns: 1fr 1fr;
  }

  .audit-checks {
    overflow-x: auto;
  }

  .audit-checks table {
    min-width: 540px;
  }

  .audit-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .auth-main {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    margin: 20px auto 28px;
  }

  .auth-intro {
    padding: 25px 22px;
  }

  .auth-intro h1 {
    font-size: 22px;
    line-height: 31px;
  }

  .auth-intro dl {
    display: none;
  }

  .auth-panel {
    padding: 27px 22px;
  }

  .public-header {
    min-width: 0;
    padding: 0 14px;
  }

  .public-brand {
    min-width: 0;
  }

  .public-brand > span:last-child {
    min-width: 0;
  }

  .public-brand strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-brand small,
  .public-header-action {
    display: none;
  }

  .auth-intro > p:not(.auth-kicker),
  .legal-heading > p,
  .legal-heading > div,
  .legal-document p {
    overflow-wrap: anywhere;
  }

  .legal-heading {
    padding: 25px 18px 20px;
  }

  .legal-main {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 16px auto 24px;
  }

  .legal-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid var(--console-line);
  }

  .legal-nav a {
    border-right: 1px solid var(--console-line);
    padding: 9px 10px;
  }

  .legal-document {
    padding: 6px 18px 22px;
  }
}

.auth-main--simple {
  display: block;
  align-self: start;
  width: min(430px, calc(100% - 48px));
  min-height: 0;
  margin: 72px auto 78px;
}

.auth-main--simple .auth-panel {
  padding: 39px 42px 34px;
}

.auth-panel-brand {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 5px;
  background: #2563eb;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.auth-main--simple .auth-panel > header {
  margin-top: 25px;
}

.auth-main--simple .auth-panel > header h1 {
  margin: 0;
  color: #1f2b3f;
  font-size: 24px;
  font-weight: 650;
  line-height: 33px;
}

.auth-main--simple .auth-panel > header p {
  margin: 8px 0 0;
  color: #7b8798;
  font-size: 12px;
}

.auth-main--simple .auth-form {
  margin-top: 29px;
}

@media (max-width: 760px) {
  .auth-main--simple {
    width: calc(100% - 24px);
    margin: 32px auto 46px;
  }

  .auth-main--simple .auth-panel {
    padding: 30px 22px 28px;
  }
}
