:root {
  --blue: #2f66e9;
  --blue-dark: #2454c6;
  --blue-soft: #edf3ff;
  --blue-pale: #f6f9ff;
  --ink: #0c1425;
  --text: #33435b;
  --muted: #718198;
  --faint: #96a6bb;
  --line: #dce5f1;
  --line-strong: #cdd9e9;
  --page: #f4f7fb;
  --surface: #ffffff;
  --success: #17875c;
  --success-soft: #edf9f4;
  --warning: #a76509;
  --warning-soft: #fff8e9;
  --shadow: 0 16px 42px rgba(44, 63, 91, 0.08);
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  line-height: 1.7;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(47, 102, 233, 0.22);
  outline-offset: 2px;
}

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

[hidden],
.is-hidden {
  display: none !important;
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 3px;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
  transition: width 100ms linear;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 10px max(24px, calc((100vw - 1720px) / 2));
  border-bottom: 1px solid rgba(205, 217, 233, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d9e4f5;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.brand div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.brand strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.header-meta span + span {
  position: relative;
}

.header-meta span + span::before {
  position: absolute;
  top: 50%;
  left: -11px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.assistant-open-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.assistant-open-button:hover,
.assistant-open-button[aria-expanded="true"] {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}

.assistant-open-mark {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 850;
}

.print-button,
.empty-state button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.print-button:hover,
.empty-state button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.print-button {
  color: var(--blue-dark);
  background: #fff;
}

.print-button:hover {
  color: #fff;
}

.app-shell {
  width: min(1740px, calc(100% - 48px));
  margin: 24px auto 40px;
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: shell-enter 420ms ease both;
}

@keyframes shell-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.workspace-header {
  padding: 30px 32px 0;
  border-bottom: 1px solid var(--line);
}

.title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
}

.title-row h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.35;
}

.title-row p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.offline-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 7px 10px;
  border: 1px solid #cfe8de;
  border-radius: 6px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 12px;
  font-weight: 700;
}

.offline-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(23, 135, 92, 0.11);
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 102, 233, 0.1);
}

.search-icon {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.search-icon::before {
  position: absolute;
  top: 13px;
  left: 15px;
  width: 11px;
  height: 11px;
  border: 2px solid #8fa3be;
  border-radius: 50%;
  content: "";
}

.search-icon::after {
  position: absolute;
  top: 27px;
  left: 27px;
  width: 8px;
  height: 2px;
  background: #8fa3be;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-box input {
  min-width: 0;
  flex: 1;
  align-self: stretch;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #91a3bd;
}

.search-box kbd {
  margin-right: 12px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 4px;
  color: var(--faint);
  background: var(--page);
  font-family: inherit;
  font-size: 11px;
}

#search-status {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  gap: 48px;
  margin-top: 18px;
}

.view-tabs button {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  color: #4c5c72;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.view-tabs button::after {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
  transform: scaleX(0.55);
  transition: background 160ms ease, transform 160ms ease;
}

.view-tabs button:hover {
  color: var(--blue-dark);
}

.view-tabs button.active {
  color: var(--blue-dark);
}

.view-tabs button.active::after {
  background: var(--blue);
  transform: scaleX(1);
}

.view-tabs b {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 5px;
  color: #71839c;
  background: #edf1f7;
  font-size: 11px;
}

.view-tabs button.active b {
  color: #fff;
  background: var(--blue);
}

.content-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  padding: 0 32px;
}

.sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: 28px 20px 28px 0;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

.sidebar-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 4px 12px;
}

.sidebar-title span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.sidebar-title small {
  color: var(--faint);
  font-size: 10px;
}

.sidebar-panel {
  display: none;
}

.sidebar-panel.active {
  display: grid;
  gap: 3px;
}

.side-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  color: #52637a;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, background 150ms ease;
}

.side-link span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
}

.side-link b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-link:hover {
  color: var(--blue-dark);
  background: var(--blue-pale);
}

.side-link.active {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.side-link.active span {
  color: var(--blue);
}

.content-column {
  min-width: 0;
  max-width: 1180px;
  padding-bottom: 28px;
}

.content-view {
  animation: view-enter 260ms ease both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.document-intro {
  margin: 28px 0 0;
  padding: 0 0 24px 20px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--blue);
}

.document-intro:empty {
  display: none;
}

.document-intro blockquote,
.document-intro p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.document-intro blockquote {
  padding: 0;
  border-left: 0;
  background: transparent;
}

.document-section,
.video-section {
  padding: 40px 0 46px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 94px;
}

.section-heading {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-index {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  padding: 4px 8px;
  border: 1px solid #d7e4fa;
  border-radius: 5px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 800;
}

.section-heading h2,
.video-heading h2,
.view-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.4;
}

.section-content {
  max-width: 920px;
  padding-left: 100px;
}

.section-content > :first-child {
  margin-top: 0;
}

.section-content h3 {
  margin: 40px 0 14px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.section-content h4 {
  margin: 30px 0 11px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.section-content p,
.range-block > p {
  margin: 13px 0;
  color: #43536a;
  font-size: 15px;
  line-height: 1.82;
}

.section-content ul,
.section-content ol {
  margin: 16px 0;
  padding-left: 26px;
}

.section-content li {
  margin: 8px 0;
  padding-left: 3px;
  color: #3e4e65;
  font-size: 15px;
  line-height: 1.75;
}

code {
  padding: 2px 5px;
  border: 1px solid #d9e4f5;
  border-radius: 4px;
  color: #174aa8;
  background: #f3f7fd;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.9em;
}

pre {
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
}

pre code {
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

blockquote {
  margin: 18px 0;
  padding: 16px 19px;
  border-left: 3px solid #8eabe6;
  color: #50627a;
  background: #f7f9fd;
  line-height: 1.75;
}

blockquote p {
  margin: 0;
}

.callout {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 14px;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #d4e1f7;
  border-radius: 6px;
  color: #314968;
  background: var(--blue-pale);
}

.callout-mark {
  width: 8px;
  height: 100%;
  min-height: 34px;
  border-radius: 3px;
  background: var(--blue);
}

.callout strong {
  color: var(--ink);
  font-size: 14px;
}

.callout p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.75;
}

.callout-caution,
.callout-warning {
  border-color: #f0dfba;
  color: #6d4b19;
  background: var(--warning-soft);
}

.callout-caution .callout-mark,
.callout-warning .callout-mark {
  background: var(--warning);
}

.callout-tip {
  border-color: #cfe8de;
  color: #315e4c;
  background: var(--success-soft);
}

.callout-tip .callout-mark {
  background: var(--success);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
}

th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

th {
  color: #44556d;
  background: #f4f7fb;
  font-weight: 750;
}

td {
  color: #4b5d74;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.media-figure {
  max-width: 900px;
  margin: 26px 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.media-button {
  display: grid;
  width: 100%;
  padding: 0;
  overflow: hidden;
  place-items: center;
  border: 0;
  background: #f4f7fb;
  cursor: zoom-in;
}

.media-button img {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  transition: transform 220ms ease, filter 220ms ease;
}

.media-button:hover img {
  filter: saturate(1.03);
  transform: scale(1.008);
}

.media-figure figcaption {
  padding: 13px 15px 14px;
  border-top: 1px solid var(--line);
  color: #59697f;
  background: #fff;
  font-size: 12px;
  line-height: 1.7;
}

.view-heading {
  padding: 34px 0 26px;
  border-bottom: 1px solid var(--line);
}

.view-heading > span,
.video-heading span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
}

.view-heading p,
.video-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.video-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.video-heading > strong {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
  color: var(--blue);
  font-size: 24px;
}

.video-heading > strong small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.range-block {
  margin: 32px 0 46px;
  scroll-margin-top: 96px;
}

.range-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.gallery-item .media-button {
  height: 330px;
  background: #f5f7fb;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-item figcaption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
  color: #586a81;
  font-size: 11px;
}

.gallery-item figcaption > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timecode {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.empty-state {
  padding: 80px 20px;
  text-align: center;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.empty-state p {
  margin: 6px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fbfcfe;
  font-size: 11px;
}

footer button {
  border: 0;
  color: var(--blue-dark);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(10, 17, 30, 0.94);
}

.lightbox::backdrop {
  background: rgba(10, 17, 30, 0.82);
}

.lightbox[open] {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  grid-template-rows: 58px minmax(0, 1fr);
  animation: lightbox-enter 180ms ease both;
}

@keyframes lightbox-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-toolbar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.lightbox-toolbar span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.lightbox-toolbar button,
.lightbox-nav {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 25px;
}

.lightbox-toolbar button:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-nav {
  align-self: center;
  justify-self: center;
}

.lightbox figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  padding: 18px;
}

.lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  align-self: center;
  justify-self: center;
  object-fit: contain;
}

.lightbox figure figcaption {
  max-width: 900px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  text-align: center;
}

.assistant-scrim {
  position: fixed;
  inset: 0;
  z-index: 109;
  visibility: hidden;
  background: rgba(11, 22, 40, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.assistant-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  display: flex;
  width: min(440px, 100vw);
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid var(--line-strong);
  background: #f6f8fc;
  box-shadow: -18px 0 44px rgba(20, 34, 56, 0.14);
  visibility: hidden;
  transform: translateX(104%);
  pointer-events: none;
  transition: transform 220ms ease, visibility 0s linear 220ms;
}

.assistant-is-open .assistant-drawer {
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition: transform 220ms ease, visibility 0s linear 0s;
}

.assistant-header {
  display: flex;
  flex: 0 0 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
}

.assistant-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.assistant-brand > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.assistant-brand div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}

.assistant-brand strong {
  color: var(--ink);
  font-size: 15px;
}

.assistant-brand small {
  color: var(--muted);
  font-size: 11px;
}

.assistant-header-actions {
  display: flex;
  gap: 6px;
}

.assistant-header-actions button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #4b5d76;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.assistant-header-actions button:hover:not(:disabled) {
  border-color: #b8c7da;
  background: var(--blue-pale);
  color: var(--blue-dark);
}

.assistant-header-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.assistant-context {
  display: flex;
  flex: 0 0 42px;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
  font-size: 11px;
}

.assistant-context span {
  flex: 0 0 auto;
  color: var(--muted);
}

.assistant-context strong {
  overflow: hidden;
  color: var(--blue-dark);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-messages {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 13px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px 22px;
  scrollbar-width: thin;
}

.assistant-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0 70px;
  text-align: center;
}

.assistant-empty[hidden] {
  display: none;
}

.assistant-empty-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 18px;
  font-weight: 850;
}

.assistant-empty h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 20px;
}

.assistant-suggestions {
  display: grid;
  width: min(100%, 310px);
  gap: 8px;
}

.assistant-suggestions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #52637a;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  padding: 0 12px;
}

.assistant-suggestions button:hover {
  border-color: #b7c9e6;
  color: var(--blue-dark);
  background: var(--blue-pale);
}

.assistant-message {
  display: flex;
  width: 100%;
  animation: assistant-message-in 170ms ease-out both;
}

.assistant-message-user {
  justify-content: flex-end;
}

.assistant-message-assistant {
  justify-content: flex-start;
}

.assistant-message-bubble {
  min-width: 0;
  max-width: 88%;
  border-radius: 8px;
  padding: 11px 12px;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.65;
}

.assistant-message-user .assistant-message-bubble {
  color: #fff;
  background: var(--blue);
}

.assistant-message-assistant .assistant-message-bubble {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.assistant-message-text,
.assistant-message-followup,
.assistant-message-warning {
  margin: 0;
  white-space: pre-wrap;
}

.assistant-message-followup,
.assistant-message-warning {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.assistant-message-followup {
  color: #536680;
}

.assistant-message-warning {
  color: #b42318;
}

.assistant-message-attachments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.assistant-message-image {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e9eef6;
}

.assistant-message-image img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.assistant-message-file {
  display: flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  color: inherit;
  padding: 7px 8px;
  text-decoration: none;
}

.assistant-file-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 850;
}

.assistant-file-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.assistant-file-copy strong,
.assistant-file-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-file-copy strong {
  font-size: 11px;
}

.assistant-file-copy small {
  font-size: 10px;
  opacity: 0.72;
}

.assistant-thinking .assistant-message-bubble {
  display: flex;
  min-width: 56px;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.assistant-thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8494aa;
  animation: assistant-dot 900ms ease-in-out infinite;
}

.assistant-thinking i:nth-child(2) {
  animation-delay: 120ms;
}

.assistant-thinking i:nth-child(3) {
  animation-delay: 240ms;
}

.assistant-composer-area {
  position: relative;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
}

.assistant-composer {
  display: flex;
  min-height: 50px;
  align-items: flex-end;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 5px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.assistant-composer:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 102, 233, 0.1);
}

.assistant-composer textarea {
  min-width: 0;
  min-height: 38px;
  max-height: 132px;
  flex: 1 1 auto;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  padding: 9px 2px 7px;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.assistant-composer textarea::placeholder {
  color: #92a1b5;
}

.assistant-upload,
.assistant-send {
  flex: 0 0 auto;
  height: 38px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
}

.assistant-upload {
  width: 38px;
  color: #455873;
  background: var(--page);
  font-size: 19px;
}

.assistant-upload:hover:not(:disabled) {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.assistant-send {
  min-width: 58px;
  color: #fff;
  background: var(--blue);
  padding: 0 10px;
  font-size: 12px;
}

.assistant-send:hover:not(:disabled) {
  background: var(--blue-dark);
}

.assistant-upload:disabled,
.assistant-send:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.assistant-pending-list {
  display: flex;
  gap: 7px;
  margin-bottom: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.assistant-pending-list:empty {
  display: none;
}

.assistant-pending-item {
  display: flex;
  width: min(240px, 72vw);
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 5px 6px;
}

.assistant-pending-thumb,
.assistant-pending-file {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  overflow: hidden;
  place-items: center;
  border-radius: 5px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 10px;
  font-weight: 850;
}

.assistant-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-pending-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.assistant-pending-copy strong,
.assistant-pending-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assistant-pending-copy strong {
  color: var(--ink);
  font-size: 11px;
}

.assistant-pending-copy small {
  color: var(--muted);
  font-size: 10px;
}

.assistant-pending-remove {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #75859b;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}

.assistant-pending-remove:hover {
  color: #b42318;
  background: #f4f6f9;
}

.assistant-drop-hint {
  position: absolute;
  inset: 8px 10px;
  z-index: 2;
  display: none;
  place-items: center;
  margin: 0;
  border: 2px dashed var(--blue);
  border-radius: 8px;
  color: var(--blue-dark);
  background: rgba(237, 243, 255, 0.96);
  font-size: 13px;
  font-weight: 750;
  pointer-events: none;
}

.assistant-composer-area.is-dragging .assistant-drop-hint {
  display: grid;
}

.assistant-toast {
  position: absolute;
  right: 14px;
  bottom: 78px;
  left: 14px;
  z-index: 4;
  visibility: hidden;
  transform: translateY(8px);
  border-radius: 7px;
  color: #fff;
  background: #172033;
  padding: 9px 12px;
  opacity: 0;
  font-size: 12px;
  text-align: center;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.assistant-toast.is-visible {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

.assistant-toast.is-error {
  background: #7f1d1d;
}

@keyframes assistant-message-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes assistant-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 1180px) {
  .header-meta {
    display: none;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .content-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
  }

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

@media (max-width: 860px) {
  html {
    scroll-padding-top: 76px;
  }

  .topbar {
    min-height: 62px;
    gap: 10px;
    padding: 8px 14px;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

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

  .brand small,
  .print-button {
    display: none;
  }

  .assistant-open-button {
    min-height: 38px;
    padding: 0 11px;
  }

  .assistant-is-open {
    overflow: hidden;
  }

  .assistant-is-open .assistant-scrim {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .assistant-drawer {
    width: 100vw;
    border-left: 0;
  }

  .assistant-header {
    padding-top: env(safe-area-inset-top);
    min-height: calc(62px + env(safe-area-inset-top));
  }

  .app-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workspace-header {
    padding: 22px 16px 0;
  }

  .title-row h1 {
    font-size: 22px;
  }

  .title-row p {
    font-size: 13px;
  }

  .offline-status {
    display: none;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-top: 18px;
  }

  .search-box {
    min-height: 46px;
  }

  .search-box kbd {
    display: none;
  }

  #search-status {
    min-height: 18px;
  }

  .view-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }

  .view-tabs button {
    min-width: 0;
    min-height: 52px;
    gap: 4px;
    font-size: 12px;
  }

  .view-tabs b {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 10px;
  }

  .content-layout {
    display: block;
    padding: 0;
  }

  .sidebar {
    position: sticky;
    top: 61px;
    z-index: 60;
    width: 100%;
    max-height: none;
    padding: 8px 12px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-title {
    display: none;
  }

  .sidebar-panel.active {
    display: flex;
    width: max-content;
    gap: 6px;
  }

  .side-link {
    display: block;
    width: auto;
    max-width: 210px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .side-link span {
    display: none;
  }

  .side-link b {
    display: block;
    font-size: 11px;
  }

  .side-link.active {
    border-color: var(--blue);
    color: #fff;
    background: var(--blue);
  }

  .content-column {
    max-width: none;
    padding: 0 16px 24px;
  }

  .document-intro {
    margin-top: 22px;
  }

  .document-section,
  .video-section {
    padding: 30px 0 36px;
    scroll-margin-top: 110px;
  }

  .section-heading {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 18px;
  }

  .section-heading h2,
  .video-heading h2,
  .view-heading h2 {
    font-size: 20px;
  }

  .section-index {
    min-height: 28px;
    font-size: 9px;
  }

  .section-content {
    padding-left: 0;
  }

  .section-content h3 {
    margin-top: 32px;
    font-size: 17px;
  }

  .section-content p,
  .section-content li,
  .range-block > p {
    font-size: 14px;
    line-height: 1.75;
  }

  .callout p {
    font-size: 13px;
  }

  .media-figure figcaption {
    font-size: 12px;
  }

  .media-figure {
    margin: 20px 0 26px;
  }

  .media-button img {
    max-height: 72vh;
  }

  .video-heading {
    gap: 14px;
  }

  .video-heading > strong {
    font-size: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-item .media-button {
    height: 260px;
  }

  footer {
    padding: 18px 16px;
  }

  footer span:nth-child(2) {
    display: none;
  }

  .lightbox[open] {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .lightbox figure {
    padding: 8px;
  }

  .lightbox-nav,
  .lightbox-toolbar button {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 560px) {
  .title-row h1 {
    font-size: 20px;
  }

  .view-tabs button {
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
  }

  .view-tabs b {
    height: 17px;
  }

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

  .gallery-item .media-button {
    height: min(66vh, 520px);
  }

  .video-heading > strong small {
    display: none;
  }

  .table-scroll {
    margin-right: 0;
    overflow-x: visible;
  }

  table {
    min-width: 0;
    table-layout: fixed;
    font-size: 12.5px;
  }

  th,
  td {
    padding: 10px 9px;
    overflow-wrap: anywhere;
  }

  th:first-child,
  td:first-child {
    width: 30%;
  }

  .lightbox[open] {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .lightbox-toolbar {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* DGAI product shell */

textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

.product-page {
  --product-blue: #245ff2;
  --product-blue-dark: #174bd0;
  --product-ink: #0a1020;
  --product-text: #3d485c;
  --product-muted: #7a8699;
  --product-line: #dbe2ec;
  --product-soft: #f5f7fa;
  --product-green: #0d8a62;
  --product-red: #c83f4d;
  color: var(--product-text);
  background: #f7f9fc;
}

.product-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1560px) / 2));
  border-bottom: 1px solid var(--product-line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
}

.product-brand,
.access-home {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--product-ink);
  text-decoration: none;
}

.product-mark {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #bcd0ff;
  border-radius: 6px;
  color: #fff;
  background: var(--product-blue);
  font-size: 12px;
  font-weight: 850;
}

.product-brand > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.product-brand strong {
  color: var(--product-ink);
  font-size: 15px;
}

.product-brand small {
  overflow: hidden;
  color: var(--product-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-nav {
  display: flex;
  height: 68px;
  align-items: stretch;
  gap: 28px;
}

.product-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #667286;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.product-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
  transform: scaleX(0.45);
  transition: background-color 160ms ease, transform 160ms ease;
}

.product-nav a:hover,
.product-nav a.active {
  color: var(--product-ink);
}

.product-nav a.active::after {
  background: var(--product-blue);
  transform: scaleX(1);
}

.identity,
.tutorial-account-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.identity-button {
  display: inline-flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 4px 4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.identity-button:hover,
.identity-button[aria-expanded="true"] {
  border-color: var(--product-line);
  background: var(--product-soft);
}

.identity-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  color: var(--product-blue-dark);
  background: #e9efff;
  font-size: 11px;
  font-weight: 850;
}

.identity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.identity-copy strong {
  overflow: hidden;
  max-width: 100px;
  color: var(--product-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-copy small {
  color: var(--product-muted);
  font-size: 10px;
}

.identity-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 190px;
  padding: 8px;
  border: 1px solid var(--product-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(27, 39, 58, 0.13);
}

.identity-menu span {
  display: block;
  overflow: hidden;
  padding: 8px 10px 10px;
  color: var(--product-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-menu button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 4px;
  color: var(--product-red);
  background: #fff4f5;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.admin-entry,
.tutorial-account-actions .print-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--product-line);
  border-radius: 5px;
  color: #4d5a70;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.admin-entry:hover,
.tutorial-account-actions .print-button:hover {
  border-color: #aab8cc;
  color: var(--product-ink);
  background: var(--product-soft);
  transform: none;
}

.tutorial-page .app-shell {
  width: min(1520px, calc(100% - 48px));
  margin-top: 22px;
  box-shadow: 0 18px 56px rgba(31, 47, 72, 0.06);
}

.tutorial-page {
  min-width: 0;
}

.tutorial-page .workspace-header {
  background: #fff;
}

.product-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid #bed1ff;
  border-radius: 5px;
  color: #143778;
  background: #edf3ff;
  box-shadow: 0 14px 34px rgba(29, 55, 102, 0.13);
  font-size: 12px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.product-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-toast.is-error {
  border-color: #f0c5ca;
  color: #96313c;
  background: #fff1f2;
}

/* Access */

.access-page {
  --product-blue: #245ff2;
  --product-blue-dark: #174bd0;
  --product-ink: #0a1020;
  --product-text: #3d485c;
  --product-muted: #7a8699;
  --product-line: #d9e1eb;
  margin: 0;
  min-height: 100svh;
  color: var(--product-text);
  background: #f5f8fc;
}

.access-topbar {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--product-line);
  background: rgba(255, 255, 255, 0.94);
}

.access-home-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}

.access-home-copy strong {
  color: var(--product-ink);
  font-size: 13px;
}

.access-home-copy small {
  color: var(--product-muted);
  font-size: 10px;
}

.access-gate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #647186;
  font-size: 11px;
  font-weight: 700;
}

.access-gate i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--product-blue);
  box-shadow: 0 0 0 4px rgba(36, 95, 242, 0.1);
}

.access-shell {
  display: grid;
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100svh - 70px);
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 72px;
  margin: 0 auto;
  padding: 56px 0;
}

.access-brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-right: 12px;
}

.access-brand-copy {
  max-width: 610px;
}

.access-kicker {
  color: var(--product-blue-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.access-brand-copy h1 {
  max-width: 610px;
  margin: 13px 0 0;
  color: var(--product-ink);
  font-size: clamp(44px, 4.2vw, 60px);
  font-weight: 850;
  line-height: 1.08;
}

.access-brand-copy p {
  margin: 18px 0 0;
  color: #58657a;
  font-size: 15px;
  line-height: 1.7;
}

.access-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.access-steps li {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #b8c5d7;
}

.access-steps > li > span {
  color: var(--product-blue);
  font-size: 10px;
  font-weight: 850;
}

.access-steps div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.access-steps strong {
  color: var(--product-ink);
  font-size: 12px;
}

.access-steps small {
  color: var(--product-muted);
  font-size: 10px;
  line-height: 1.4;
}

.access-panel {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 36px 38px 40px;
  border: 1px solid #d4deea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(35, 52, 79, 0.08);
}

.access-panel-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 24px;
}

.access-panel-head > span {
  color: var(--product-blue-dark);
  font-size: 9px;
  font-weight: 850;
}

.access-panel-head strong {
  color: var(--product-ink);
  font-size: 24px;
  line-height: 1.25;
}

.access-panel-head p {
  margin: 0;
  color: var(--product-muted);
  font-size: 11px;
}

.access-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--product-line);
}

.access-tabs button {
  position: relative;
  min-height: 42px;
  border: 0;
  color: var(--product-muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

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

.access-tabs button.active {
  color: var(--product-ink);
}

.access-tabs button.active::after {
  background: var(--product-blue);
}

.access-form {
  display: none;
  animation: access-form-in 180ms ease-out both;
}

.access-form.active {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.access-form label,
.review-dialog label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.access-form label > span,
.review-dialog label > span {
  color: #4d596d;
  font-size: 11px;
  font-weight: 750;
}

.access-form input,
.review-dialog textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #ccd6e3;
  border-radius: 5px;
  color: var(--product-ink);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.access-form input:focus,
.review-dialog textarea:focus {
  border-color: var(--product-blue);
  box-shadow: 0 0 0 3px rgba(36, 95, 242, 0.12);
}

.access-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.access-message {
  min-height: 17px;
  margin: -2px 0;
  color: var(--product-muted);
  font-size: 11px;
  line-height: 1.5;
}

.access-message.is-error {
  color: var(--product-red);
}

.access-primary,
.access-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--product-blue);
  border-radius: 5px;
  color: #fff;
  background: var(--product-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background-color 150ms ease, transform 150ms ease;
}

.access-primary:hover:not(:disabled) {
  background: var(--product-blue-dark);
  transform: translateY(-1px);
}

.access-primary:disabled {
  cursor: wait;
  opacity: 0.66;
}

.access-success {
  padding: 12px 0 4px;
  animation: access-form-in 180ms ease-out both;
}

.access-success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0d8a62;
  font-weight: 850;
}

.access-success h2 {
  margin: 0;
  color: var(--product-ink);
  font-size: 24px;
}

.access-success p {
  margin: 10px 0 28px;
  color: #667286;
  font-size: 13px;
}

.access-secondary {
  min-height: 44px;
  padding: 0 22px;
  color: var(--product-blue-dark);
  background: #fff;
}

@keyframes access-form-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DGAI */

.dgai-page {
  height: 100svh;
  overflow: hidden;
  background: #fff;
}

.dgai-workspace {
  display: grid;
  height: calc(100svh - 68px);
  grid-template-columns: 292px minmax(0, 1fr);
}

.dgai-rail {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 34px 28px 24px;
  border-right: 1px solid var(--product-line);
  background: #f4f7fb;
}

.dgai-rail-head > span,
.review-heading > div > span,
.dgai-context-block > span {
  color: var(--product-blue-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0;
}

.dgai-rail-head h1 {
  margin: 8px 0 4px;
  color: var(--product-ink);
  font-size: 30px;
  line-height: 1.1;
}

.dgai-rail-head p {
  margin: 0;
  color: var(--product-muted);
  font-size: 11px;
}

.dgai-context-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 44px;
  padding: 17px 0;
  border-top: 1px solid #cdd7e4;
  border-bottom: 1px solid #cdd7e4;
}

.dgai-context-block strong {
  color: var(--product-ink);
  font-size: 13px;
  line-height: 1.5;
}

.dgai-rail-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 22px;
}

.dgai-rail-actions button,
.dgai-rail-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #46536a;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dgai-rail-actions button:hover,
.dgai-rail-actions a:hover {
  border-color: #ced8e6;
  color: var(--product-ink);
  background: #fff;
}

.dgai-rail-actions span {
  color: var(--product-blue);
  font-size: 16px;
}

.dgai-rail-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--product-muted);
  font-size: 10px;
}

.dgai-rail-foot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--product-green);
  box-shadow: 0 0 0 4px rgba(13, 138, 98, 0.1);
}

.dgai-conversation {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
}

.dgai-messages {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(34px, 5vw, 72px) max(28px, calc((100% - 920px) / 2));
  scrollbar-gutter: stable;
}

.dgai-empty {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 8vh;
}

.dgai-empty[hidden] {
  display: none;
}

.dgai-empty-index {
  color: var(--product-blue-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.dgai-empty h2 {
  margin: 12px 0 30px;
  color: var(--product-ink);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.08;
}

.dgai-prompts {
  display: flex;
  max-width: 680px;
  flex-direction: column;
  border-top: 1px solid var(--product-line);
}

.dgai-prompts button {
  position: relative;
  min-height: 50px;
  padding: 0 40px 0 0;
  border: 0;
  border-bottom: 1px solid var(--product-line);
  color: #46536a;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  transition: color 140ms ease, padding-left 140ms ease;
}

.dgai-prompts button::after {
  position: absolute;
  right: 4px;
  color: #8b98ab;
  content: "→";
}

.dgai-prompts button:hover {
  padding-left: 8px;
  color: var(--product-blue-dark);
}

.dgai-message {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid #e4e9f0;
  animation: dgai-message-in 170ms ease-out both;
}

.dgai-message-label {
  padding-top: 2px;
  color: var(--product-blue-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.dgai-message-user .dgai-message-label {
  color: var(--product-muted);
}

.dgai-message-body {
  min-width: 0;
  color: #273247;
}

.dgai-message-user .dgai-message-body {
  padding: 16px 18px;
  border-left: 3px solid var(--product-blue);
  background: #f1f5ff;
}

.dgai-message-text {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.75;
}

.dgai-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.dgai-followups button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #c8d5eb;
  border-radius: 4px;
  color: #31558f;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
}

.dgai-followups button:hover {
  border-color: var(--product-blue);
  color: var(--product-blue-dark);
}

.dgai-message-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
  gap: 8px;
  margin-bottom: 14px;
}

.dgai-message-image {
  display: block;
  overflow: hidden;
  border: 1px solid #ced8e5;
  border-radius: 5px;
  background: #fff;
}

.dgai-message-image img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.dgai-message-file {
  display: grid;
  min-height: 62px;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #ced8e5;
  border-radius: 5px;
  color: var(--product-ink);
  background: #fff;
  text-decoration: none;
}

.dgai-file-icon {
  display: grid;
  grid-row: 1 / 3;
  width: 32px;
  height: 38px;
  place-items: center;
  border-radius: 4px;
  color: var(--product-blue-dark);
  background: #edf3ff;
  font-size: 11px;
  font-weight: 850;
}

.dgai-message-file strong,
.dgai-message-file small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dgai-message-file strong {
  align-self: end;
  font-size: 11px;
}

.dgai-message-file small {
  align-self: start;
  color: var(--product-muted);
  font-size: 9px;
}

.dgai-thinking .dgai-message-body {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
}

.dgai-thinking i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--product-blue);
  animation: dgai-dot 900ms ease-in-out infinite;
}

.dgai-thinking i:nth-child(2) { animation-delay: 120ms; }
.dgai-thinking i:nth-child(3) { animation-delay: 240ms; }

.dgai-composer-area {
  position: relative;
  padding: 14px max(28px, calc((100% - 920px) / 2)) 18px;
  border-top: 1px solid var(--product-line);
  background: #fff;
}

.dgai-composer {
  display: grid;
  min-height: 58px;
  grid-template-columns: 42px minmax(0, 1fr) 68px;
  align-items: end;
  gap: 8px;
  padding: 7px;
  border: 1px solid #bfcbdc;
  border-radius: 5px;
  background: #fff;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.dgai-composer:focus-within {
  border-color: var(--product-blue);
  box-shadow: 0 0 0 3px rgba(36, 95, 242, 0.1);
}

.dgai-composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 144px;
  padding: 10px 4px 8px;
  border: 0;
  outline: 0;
  resize: none;
  color: var(--product-ink);
  background: transparent;
  font-size: 13px;
  line-height: 1.55;
}

.dgai-upload,
.dgai-send {
  display: grid;
  height: 42px;
  place-items: center;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.dgai-upload {
  border: 1px solid #d3dce8;
  color: var(--product-blue-dark);
  background: #f5f7fa;
  font-size: 18px;
}

.dgai-send {
  border: 1px solid var(--product-blue);
  color: #fff;
  background: var(--product-blue);
  font-size: 12px;
}

.dgai-upload:hover:not(:disabled),
.dgai-send:hover:not(:disabled) {
  border-color: var(--product-blue-dark);
  background: var(--product-blue-dark);
  color: #fff;
}

.dgai-upload:disabled,
.dgai-send:disabled {
  cursor: default;
  opacity: 0.45;
}

.dgai-pending {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.dgai-pending:empty {
  display: none;
}

.dgai-pending-item {
  display: grid;
  flex: 0 0 min(260px, 75vw);
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #d6dfeb;
  border-radius: 5px;
  background: #f8fafc;
}

.dgai-pending-thumb,
.dgai-pending-file {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  color: var(--product-blue-dark);
  background: #eaf0ff;
  font-size: 10px;
  font-weight: 850;
}

.dgai-pending-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dgai-pending-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.dgai-pending-copy strong,
.dgai-pending-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dgai-pending-copy strong { color: var(--product-ink); font-size: 10px; }
.dgai-pending-copy small { color: var(--product-muted); font-size: 9px; }

.dgai-pending-remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  color: #7c8899;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
}

.dgai-pending-remove:hover { color: var(--product-red); background: #fff0f1; }

.dgai-drop-hint {
  display: none;
  margin: 7px 0 0;
  color: var(--product-blue-dark);
  font-size: 10px;
  text-align: center;
}

.dgai-composer-area.is-dragging .dgai-drop-hint { display: block; }

@keyframes dgai-message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dgai-dot {
  0%, 70%, 100% { opacity: 0.3; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

/* Review */

.review-page {
  min-height: 100svh;
  background: #f7f9fc;
}

.review-workspace {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.review-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid #aeb9ca;
}

.review-heading h1 {
  margin: 9px 0 7px;
  color: var(--product-ink);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.review-heading p {
  margin: 0;
  color: var(--product-muted);
  font-size: 12px;
}

.review-heading-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.review-heading-actions strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--product-ink);
}

.review-heading-actions b {
  font-size: 30px;
}

.review-heading-actions span {
  color: var(--product-muted);
  font-size: 10px;
}

.review-heading-actions button,
.review-dialog-actions button,
.review-actions button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #cbd5e2;
  border-radius: 4px;
  color: #4d596d;
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.review-heading-actions button:hover { border-color: #9dacc0; color: var(--product-ink); }

.review-toolbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--product-line);
}

.review-filters {
  display: flex;
  align-self: stretch;
  gap: 24px;
}

.review-filters button {
  position: relative;
  border: 0;
  color: var(--product-muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

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

.review-filters button.active { color: var(--product-ink); }
.review-filters button.active::after { background: var(--product-blue); }
.review-toolbar > span { color: var(--product-muted); font-size: 10px; }

.review-list {
  border-bottom: 1px solid var(--product-line);
}

.review-row {
  display: grid;
  min-height: 86px;
  grid-template-columns: 48px minmax(190px, 1.2fr) minmax(150px, 0.8fr) 92px minmax(150px, 0.8fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--product-line);
  background: transparent;
  transition: background-color 130ms ease;
}

.review-row:last-child { border-bottom: 0; }
.review-row:hover { background: #fff; }
.review-index { color: #9aa6b7; font-size: 10px; font-weight: 800; }

.review-person,
.review-time {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.45;
}

.review-person strong,
.review-time strong {
  overflow: hidden;
  color: var(--product-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-person span,
.review-time span {
  color: var(--product-muted);
  font-size: 10px;
}

.review-state {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 4px;
  color: #667286;
  background: #e9edf3;
  font-size: 10px;
  font-weight: 750;
}

.review-state.is-pending {
  color: #87520b;
  background: #fff3d6;
}

.review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.review-actions .review-approve {
  border-color: var(--product-blue);
  color: #fff;
  background: var(--product-blue);
}

.review-actions .review-reject:hover { border-color: #e1a7ad; color: var(--product-red); }
.review-actions .review-approve:hover { background: var(--product-blue-dark); }
.review-result { color: var(--product-muted); font-size: 10px; text-align: right; }

.review-empty {
  padding: 90px 0;
  text-align: center;
}

.review-empty > span {
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--product-green);
}

.review-empty h2 { margin: 0; color: var(--product-ink); font-size: 18px; }

.review-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 1px solid #c9d3df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 31, 48, 0.2);
}

.review-dialog::backdrop { background: rgba(14, 21, 34, 0.42); }
.review-dialog form { padding: 22px; }
.review-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.review-dialog-head span { color: var(--product-ink); font-size: 16px; font-weight: 800; }
.review-dialog-head button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 20px; }
.review-dialog textarea { min-height: 110px; padding: 10px 12px; resize: vertical; }
.review-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.review-dialog-actions button:last-child { border-color: var(--product-red); color: #fff; background: var(--product-red); }

@media (max-width: 900px) {
  .product-topbar {
    grid-template-columns: minmax(120px, 1fr) auto auto;
    gap: 12px;
    padding: 0 16px;
  }

  .product-brand small,
  .identity-copy,
  .tutorial-account-actions .print-button {
    display: none;
  }

  .product-nav { gap: 18px; }
  .admin-entry { padding: 0 9px; }

  .access-topbar {
    padding: 0 20px;
  }

  .access-shell {
    width: min(720px, calc(100% - 40px));
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
    padding: 46px 0 64px;
  }

  .access-brand {
    padding-right: 0;
  }

  .access-brand-copy h1 {
    font-size: 46px;
  }

  .access-steps {
    margin-top: 34px;
  }

  .access-panel {
    width: min(100%, 540px);
    justify-self: start;
  }

  .dgai-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .dgai-rail {
    padding: 26px 20px 20px;
  }

  .dgai-message {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
  }

  .review-row {
    grid-template-columns: 36px minmax(160px, 1.2fr) minmax(130px, 0.8fr) 82px minmax(140px, 0.8fr);
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .product-topbar {
    min-height: 60px;
    grid-template-columns: auto 1fr auto;
  }

  .product-brand > span:last-child,
  .tutorial-page .product-brand > span:last-child {
    display: none;
  }

  .product-mark {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .product-nav {
    height: 60px;
    justify-content: center;
    gap: 20px;
  }

  .product-nav a { font-size: 12px; }
  .admin-entry { display: none; }
  .identity-button { padding: 3px; }
  .identity-avatar { width: 32px; height: 32px; flex-basis: 32px; }

  .access-topbar {
    min-height: 60px;
    padding: 0 16px;
  }

  .access-topbar .product-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .access-home-copy small {
    display: none;
  }

  .access-gate {
    font-size: 10px;
  }

  .access-shell {
    width: 100%;
    min-height: calc(100svh - 60px);
    gap: 0;
    padding: 0;
  }

  .access-brand {
    padding: 30px 20px 26px;
    border-bottom: 1px solid var(--product-line);
    background: #eef3fa;
  }

  .access-brand-copy h1 {
    max-width: 360px;
    margin-top: 10px;
    font-size: 36px;
  }

  .access-brand-copy p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
  }

  .access-steps {
    gap: 10px;
    margin-top: 26px;
  }

  .access-steps li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 11px;
  }

  .access-steps div {
    gap: 0;
  }

  .access-steps small {
    display: none;
  }

  .access-panel {
    width: 100%;
    padding: 30px 20px 44px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .tutorial-page .app-shell {
    width: 100%;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .dgai-page { height: 100dvh; }
  .dgai-workspace {
    height: calc(100dvh - 60px);
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .dgai-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--product-line);
  }

  .dgai-rail-head,
  .dgai-rail-foot,
  .dgai-rail-actions a {
    display: none;
  }

  .dgai-context-block {
    min-width: 0;
    gap: 1px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .dgai-context-block strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dgai-rail-actions {
    margin: 0;
  }

  .dgai-rail-actions button {
    min-height: 38px;
    padding: 0 9px;
    border-color: #ced8e6;
    background: #fff;
  }

  .dgai-messages {
    padding: 24px 16px;
  }

  .dgai-empty {
    justify-content: flex-start;
    padding-top: 9vh;
    padding-bottom: 0;
  }

  .dgai-empty h2 {
    margin-bottom: 24px;
    font-size: 31px;
  }

  .dgai-message {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .dgai-message-label {
    padding: 0;
  }

  .dgai-message-user .dgai-message-body {
    padding: 13px 14px;
  }

  .dgai-message-text { font-size: 13px; }
  .dgai-message-attachments { grid-template-columns: minmax(0, 1fr); }

  .dgai-composer-area {
    padding: 10px max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .dgai-composer {
    grid-template-columns: 38px minmax(0, 1fr) 58px;
  }

  .dgai-upload,
  .dgai-send { height: 40px; }

  .review-workspace {
    width: 100%;
    padding: 34px 16px 60px;
  }

  .review-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    padding-bottom: 24px;
  }

  .review-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .review-toolbar { min-height: 58px; }
  .review-row {
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 17px 0;
  }

  .review-person { grid-column: 2; }
  .review-time { grid-column: 2; }
  .review-state { grid-column: 3; grid-row: 1; }
  .review-actions { grid-column: 2 / 4; justify-content: flex-start; }
  .review-actions button { flex: 1; }
  .review-result { text-align: left; }
}

@media (max-width: 480px) {
  .access-field-grid { grid-template-columns: 1fr; }
  .access-panel-head { margin-bottom: 22px; }
  .review-toolbar > span { display: none; }
}

@media print {
  :root,
  body {
    background: #fff;
  }

  .reading-progress,
  .topbar,
  .product-topbar,
  .workspace-header,
  .sidebar,
  .assistant-drawer,
  .assistant-scrim,
  footer,
  .lightbox,
  .empty-state {
    display: none !important;
  }

  .app-shell {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .content-layout {
    display: block;
    padding: 0;
  }

  .content-column {
    max-width: none;
  }

  .content-view:not(.active) {
    display: none !important;
  }

  .document-section {
    break-inside: avoid;
  }

  .section-content {
    padding-left: 0;
  }

  .media-figure {
    break-inside: avoid;
  }
}
