:root {
  color-scheme: dark;
  --ink-950: #0d121b;
  --ink-900: #121923;
  --ink-850: #171f2b;
  --ink-800: #202a38;
  --ink-750: #293445;
  --ink-700: #344156;
  --paper-100: #f8f9fb;
  --paper-200: #eef1f5;
  --paper-300: #e4e9ef;
  --paper-500: #9ba7b7;
  --paper-700: #566170;
  --blue: #4f8cff;
  --blue-soft: #79a9ff;
  --mint: #67e6c4;
  --mint-dim: #3aa98f;
  --violet: #9681e9;
  --amber: #ffc65c;
  --danger: #ff8a93;
  --line-dark: rgba(209, 223, 242, 0.13);
  --line-light: #dfe5ed;
  --shadow-tray: 0 28px 72px rgba(2, 7, 15, 0.42), 0 4px 16px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #9da8b7;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 3%, rgba(255, 255, 255, 0.35), transparent 28rem),
    linear-gradient(145deg, #aab5c3, #7f8b9b 100%);
  color: var(--paper-100);
}

button,
select {
  font: inherit;
}

button,
summary,
select {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
summary,
select,
label {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper-100);
  color: var(--ink-950);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.browser-shell {
  width: min(1500px, calc(100vw - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 18px;
  background: var(--ink-950);
  box-shadow: 0 28px 70px rgba(25, 34, 48, 0.36);
}

.browser-chrome {
  position: relative;
  z-index: 10;
  background: linear-gradient(130deg, #171d27, #111720 62%, #0e141d);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tab-strip {
  display: flex;
  align-items: end;
  min-height: 62px;
  padding: 10px 18px 0;
  gap: 16px;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100px;
  height: 42px;
  padding-left: 5px;
}

.window-controls i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ff665c;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.22);
}

.window-controls i:nth-child(2) {
  background: #ffc64d;
}

.window-controls i:nth-child(3) {
  background: #54d06c;
}

.active-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(390px, 42vw);
  min-width: 230px;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(145deg, #29313d, #202733);
  color: #f6f8fb;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.active-tab > svg {
  width: 21px;
  height: 21px;
  color: #b9c5d6;
}

.active-tab > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.active-tab b {
  margin-left: auto;
  color: #a8b2c0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.new-tab {
  align-self: center;
  margin-top: 8px;
  color: #d9e1ea;
  font-size: 28px;
  font-weight: 250;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 12px 18px;
  gap: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.035);
}

.toolbar-nav,
.toolbar-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 13px;
  color: #c9d1dc;
}

.toolbar-nav svg,
.toolbar-actions svg {
  width: 22px;
  height: 22px;
}

.toolbar-nav .muted {
  color: #5f6978;
}

.toolbar-actions {
  margin-left: auto;
  gap: 18px;
}

.address-field {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  min-width: 160px;
  height: 40px;
  padding: 0 14px;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  background: #252d39;
  color: #94a0af;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.address-field svg {
  width: 16px;
  height: 16px;
  color: #a6b1bf;
}

.page-tray {
  position: relative;
  z-index: 30;
  flex: 0 0 auto;
}

.page-tray > summary,
.demo-controls > summary {
  list-style: none;
}

.page-tray > summary::-webkit-details-marker,
.demo-controls > summary::-webkit-details-marker {
  display: none;
}

.page-tray > summary {
  display: flex;
  align-items: center;
  min-width: 178px;
  height: 46px;
  padding: 4px 11px 4px 7px;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #f4f7fb;
  user-select: none;
}

.page-tray > summary:hover,
.page-tray[open] > summary {
  border-color: rgba(138, 158, 184, 0.26);
  background: rgba(78, 91, 109, 0.36);
}

.bookmark-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(93, 132, 173, 0.38), rgba(67, 98, 133, 0.2));
  color: var(--blue-soft);
}

.bookmark-icon svg {
  width: 20px;
  height: 20px;
}

.tray-summary-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.tray-summary-copy strong,
.tray-summary-copy small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tray-summary-copy strong {
  font-size: 13px;
  font-weight: 750;
}

.tray-summary-copy small {
  color: #aab5c5;
  font-size: 10px;
}

.summary-chevron {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: #a7b5c8;
  transition: transform 160ms ease;
}

.page-tray[open] .summary-chevron {
  transform: rotate(180deg);
}

.tray-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: -6px;
  width: min(408px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 130px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(167, 184, 208, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(41, 54, 70, 0.4), transparent 35%),
    #141c27;
  box-shadow: var(--shadow-tray);
  color: #f2f6fb;
}

.tray-panel::before {
  position: absolute;
  top: -8px;
  right: 54px;
  width: 16px;
  height: 16px;
  border-top: 1px solid rgba(167, 184, 208, 0.24);
  border-left: 1px solid rgba(167, 184, 208, 0.24);
  background: #17212d;
  content: "";
  transform: rotate(45deg);
}

.tray-page-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(113, 215, 190, 0.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(89, 208, 180, 0.26), rgba(54, 112, 104, 0.3));
  color: #81f0d1;
}

.page-glyph svg {
  width: 30px;
  height: 30px;
}

.tray-page-header p,
.tray-page-header h1,
.tray-page-header small {
  margin: 0;
}

.tray-page-header p {
  margin-bottom: 3px;
  color: #9ba9bc;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tray-page-header h1 {
  overflow: hidden;
  max-width: 250px;
  color: #fbfcff;
  font-size: 19px;
  font-weight: 740;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray-page-header small {
  display: block;
  margin-top: 5px;
  color: #aab6c7;
  font-size: 11px;
}

.tray-section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
}

.tray-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
  color: #f7f9fd;
  font-size: 15px;
  font-weight: 720;
}

.capability-count {
  color: #9aa8b9;
  font-size: 11px;
  font-weight: 600;
}

.capability-count strong {
  color: var(--mint);
}

#tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  gap: 9px;
  list-style: none;
}

#tool-list li {
  display: grid;
  min-width: 0;
  min-height: 110px;
  padding: 12px 10px;
  align-content: space-between;
  gap: 9px;
  border: 1px solid rgba(180, 199, 223, 0.085);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(54, 68, 87, 0.86), rgba(38, 48, 63, 0.94));
}

#tool-list li > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

#tool-list strong,
#tool-list small {
  overflow: hidden;
  text-overflow: ellipsis;
}

#tool-list strong {
  color: #e8eef7;
  font-size: 11px;
  line-height: 1.2;
}

#tool-list small {
  display: -webkit-box;
  overflow: hidden;
  color: #9ba8ba;
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tool-check,
.tool-lock {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(61, 140, 249, 0.18);
  color: #6ba4ff;
}

.tool-check svg {
  width: 17px;
  height: 17px;
}

.tool-lock {
  color: #c6d0db;
  font-size: 20px;
}

#tool-list .no-tools {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  min-height: 74px;
}

#tool-list .no-tools > div {
  margin-left: 2px;
}

.tray-boundary {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.task-state-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-size: 17px;
  font-weight: 720;
}

.task-state-pill i {
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(103, 230, 196, 0.18);
}

.task-state-pill[data-state="awaiting_human"] {
  color: var(--amber);
}

.task-state-pill[data-state="executing"],
.task-state-pill[data-state="verifying"] {
  color: var(--blue-soft);
}

.task-state-pill[data-state="completed"] {
  color: var(--mint);
}

.task-state-pill[data-state="blocked"],
.task-state-pill[data-state="failed"],
.task-state-pill[data-state="cancelled"] {
  color: var(--danger);
}

.bound-track {
  height: 8px;
  margin: 18px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #3e4857;
}

.bound-track span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #6599ff);
  box-shadow: 0 0 16px rgba(88, 143, 255, 0.38);
  transition: width 260ms ease, background 260ms ease;
}

body[data-task-state="awaiting_human"] .bound-track span {
  width: 100%;
  background: linear-gradient(90deg, var(--amber), #ffd77a);
}

body[data-task-state="completed"] .bound-track span {
  width: 100%;
  background: linear-gradient(90deg, var(--mint-dim), var(--mint));
}

body[data-task-state="blocked"] .bound-track span,
body[data-task-state="failed"] .bound-track span,
body[data-task-state="cancelled"] .bound-track span {
  width: 100%;
  background: linear-gradient(90deg, #e56376, var(--danger));
}

.tray-boundary p {
  margin: 0;
  color: #9ba8b8;
  font-size: 11px;
  line-height: 1.45;
}

.tray-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 15px 0;
  margin: 0;
  gap: 10px;
  border-bottom: 1px solid var(--line-dark);
}

.tray-metrics div {
  min-width: 0;
}

.tray-metrics dt {
  margin-bottom: 5px;
  color: #93a0b1;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tray-metrics dd {
  overflow: hidden;
  margin: 0;
  color: #d9e2ed;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#webmcp-status[data-tone="success"] {
  color: var(--mint);
}

#webmcp-status[data-tone="warning"] {
  color: var(--amber);
}

.tray-primary-action {
  display: flex;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(102, 153, 255, 0.68);
  border-radius: 13px;
  background: linear-gradient(145deg, #4582ed, #326bc7);
  box-shadow: 0 10px 24px rgba(34, 83, 171, 0.28);
  color: white;
  text-align: left;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.tray-primary-action:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.tray-primary-action:disabled {
  border-color: rgba(148, 163, 184, 0.2);
  background: #313d4f;
  box-shadow: none;
  color: #9ba8b8;
}

.action-icon {
  display: grid;
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.action-icon svg {
  width: 19px;
  height: 19px;
}

.tray-primary-action > span:last-child {
  display: grid;
  gap: 3px;
}

.tray-primary-action strong {
  font-size: 12px;
  font-weight: 760;
}

.tray-primary-action small {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
}

.tray-footer-actions {
  padding-top: 10px;
}

.history-button {
  display: flex;
  width: 100%;
  min-height: 57px;
  padding: 8px 2px;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #eef3fa;
  text-align: left;
}

.history-button > svg:first-child {
  width: 24px;
  height: 24px;
  color: var(--blue-soft);
}

.history-button > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.history-button strong {
  font-size: 13px;
  font-weight: 700;
}

.history-button small {
  color: #99a7b8;
  font-size: 10px;
}

.history-chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: #aab5c4;
}

.history-button:disabled {
  color: #748092;
}

.history-button:disabled > svg:first-child,
.history-button:disabled .history-chevron {
  color: #687486;
}

.demo-controls {
  margin-top: 2px;
  border-top: 1px solid var(--line-dark);
}

.demo-controls > summary {
  padding: 10px 0 0;
  color: #a9b5c5;
  font-size: 11px;
  font-weight: 650;
}

.demo-controls > summary::after {
  margin-left: 7px;
  color: var(--blue-soft);
  content: "+";
}

.demo-controls[open] > summary::after {
  content: "−";
}

.switch-row {
  display: flex;
  padding: 12px 0 3px;
  align-items: center;
  gap: 11px;
}

.switch-row > span:first-child {
  display: grid;
  gap: 3px;
}

.switch-row strong {
  color: #e2e9f2;
  font-size: 11px;
}

.switch-row small {
  color: #95a2b2;
  font-size: 9px;
}

.switch-row input {
  width: 18px;
  height: 18px;
  margin-left: auto;
  accent-color: var(--mint);
}

.document-screen {
  min-height: 780px;
  padding: clamp(44px, 6vw, 88px) 32px 84px;
  background:
    linear-gradient(135deg, rgba(200, 209, 220, 0.38), transparent 44%),
    #e5eaf0;
  color: #17202d;
}

.document-page {
  width: min(100%, 1040px);
  min-height: 650px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #d9e0e8;
  border-radius: 10px;
  background: rgba(253, 254, 255, 0.91);
  box-shadow: 0 20px 48px rgba(54, 67, 84, 0.15);
}

.document-header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.document-header > div:first-child {
  max-width: 720px;
}

.document-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: #69798f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-header h2,
.document-header p,
.briefing-copy h3,
.briefing-copy p,
.document-section h3,
.activity-surface h3 {
  margin-top: 0;
}

.document-header h2 {
  margin-bottom: 12px;
  color: #172131;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 770;
  letter-spacing: -0.045em;
}

.document-header p:last-child {
  margin-bottom: 0;
  color: #536174;
  font-size: 17px;
  line-height: 1.65;
}

.presence-stack {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 30px;
  margin-top: 10px;
}

.presence-stack i {
  display: block;
  width: 30px;
  height: 30px;
  margin-left: -7px;
  border: 3px solid #fdfefe;
  border-radius: 50%;
  background: #73a593;
}

.presence-stack i:nth-child(2) { background: #9375b7; }
.presence-stack i:nth-child(3) { background: #7182b9; }
.presence-stack i:nth-child(4) { background: #476596; }

.intent-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  padding: 18px 20px;
  margin-top: 40px;
  align-items: center;
  gap: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: linear-gradient(120deg, #f3f8fd, #f9fcfe);
}

.intent-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 11px;
  background: #e4f2fd;
  color: #337be8;
}

.intent-icon svg {
  width: 21px;
  height: 21px;
}

.intent-panel p,
.intent-panel strong {
  margin: 0;
}

.intent-panel p {
  margin-bottom: 4px;
  color: #68788c;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.intent-panel strong {
  display: block;
  color: #243148;
  font-size: 15px;
  line-height: 1.45;
}

.intent-panel > span {
  padding: 7px 9px;
  border-radius: 999px;
  background: #e4f5ef;
  color: #2f8e74;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.briefing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.68fr);
  margin-top: 54px;
  gap: 50px;
}

.briefing-copy h3,
.document-section h3,
.activity-surface h3 {
  color: #18253a;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.briefing-copy > p:not(.section-kicker) {
  margin-bottom: 19px;
  color: #526174;
  font-size: 15px;
  line-height: 1.7;
}

.briefing-copy ul {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 11px;
  list-style: none;
}

.briefing-copy li {
  position: relative;
  padding-left: 26px;
  color: #34445a;
  font-size: 14px;
  line-height: 1.45;
}

.briefing-copy li::before {
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid #368f79;
  border-left: 2px solid #368f79;
  content: "";
  transform: rotate(-45deg);
}

.fixture-card {
  padding: 18px;
  border: 1px solid #d7e1ec;
  border-radius: 15px;
  background: linear-gradient(160deg, #eef5fc, #f9fcff);
  box-shadow: 0 8px 24px rgba(50, 74, 103, 0.07);
}

.fixture-card-header {
  display: flex;
  padding-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dce6ef;
  color: #52677f;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fixture-card-header i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5dd1ad;
  box-shadow: 0 0 0 4px rgba(93, 209, 173, 0.16);
}

.fixture-row {
  display: grid;
  padding: 15px 0;
  gap: 4px;
  border-bottom: 1px solid #e0e8f0;
}

.fixture-row span,
.fixture-row small {
  color: #718198;
  font-size: 11px;
}

.fixture-row strong {
  color: #22314a;
  font-size: 16px;
  font-weight: 730;
}

.preparation-state {
  display: flex;
  padding-top: 15px;
  align-items: center;
  gap: 8px;
  color: #3b7fc9;
  font-size: 12px;
  font-weight: 700;
}

.preparation-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(59, 127, 201, 0.12);
}

.preparation-state[data-tone="awaiting_human"] { color: #ba7b17; }
.preparation-state[data-tone="completed"] { color: #28876e; }
.preparation-state[data-tone="blocked"],
.preparation-state[data-tone="failed"],
.preparation-state[data-tone="cancelled"] { color: #bd4c62; }

.document-section {
  padding-top: 52px;
  margin-top: 52px;
  border-top: 1px solid #e0e5eb;
}

.document-section h3 {
  max-width: 570px;
  margin-bottom: 26px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.principle-grid > div {
  min-height: 164px;
  padding: 18px;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  background: #fbfcfe;
}

.principle-grid span,
.principle-grid strong,
.principle-grid p {
  display: block;
}

.principle-grid span {
  color: #5f89d2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.principle-grid strong {
  margin: 17px 0 8px;
  color: #27364e;
  font-size: 16px;
}

.principle-grid p {
  margin: 0;
  color: #68788d;
  font-size: 12px;
  line-height: 1.55;
}

.activity-surface {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  padding-top: 52px;
  margin-top: 52px;
  gap: 38px;
  border-top: 1px solid #e0e5eb;
}

.activity-surface h3 {
  margin-bottom: 0;
}

#activity-list {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 12px;
  list-style: none;
}

#activity-list li {
  display: flex;
  min-width: 0;
  padding: 12px;
  align-items: start;
  gap: 11px;
  border: 1px solid #e1e7ee;
  border-radius: 10px;
  background: #f8fafc;
}

#activity-list i {
  display: block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #6096e2;
}

#activity-list li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

#activity-list strong {
  color: #31415a;
  font-size: 12px;
  font-weight: 680;
}

#activity-list small {
  color: #74849a;
  font-size: 10px;
}

.browser-footer {
  display: flex;
  min-height: 54px;
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #111720;
  color: #9aa7b6;
  font-size: 11px;
}

.browser-footer span:last-child {
  color: #718095;
}

.docket-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: min(90vh, 920px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(167, 184, 208, 0.25);
  border-radius: 20px;
  background: transparent;
  color: #f3f7fc;
  box-shadow: 0 35px 90px rgba(1, 6, 13, 0.52);
}

.docket-dialog::backdrop {
  background: rgba(16, 23, 34, 0.63);
  backdrop-filter: blur(5px);
}

.docket-sheet {
  padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(circle at 85% 0%, rgba(76, 122, 189, 0.22), transparent 20rem),
    linear-gradient(145deg, #202b39, #121923 67%);
}

.docket-topline {
  display: flex;
  padding-bottom: 15px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  color: #9dabbc;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docket-topline span:last-child {
  padding: 5px 8px;
  border: 1px solid rgba(103, 230, 196, 0.23);
  border-radius: 999px;
  color: var(--mint);
  letter-spacing: 0.04em;
}

.docket-header,
.receipt-header {
  display: flex;
  padding: 27px 0 24px;
  align-items: flex-start;
  gap: 16px;
}

.docket-glyph,
.receipt-glyph {
  display: grid;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
}

.docket-glyph {
  border: 1px solid rgba(255, 196, 89, 0.21);
  background: rgba(255, 196, 89, 0.13);
  color: var(--amber);
}

.docket-glyph svg,
.receipt-glyph svg {
  width: 28px;
  height: 28px;
}

.docket-header p,
.docket-header h2,
.docket-header span,
.receipt-header p,
.receipt-header h2,
.receipt-header span {
  margin: 0;
}

.docket-header p,
.receipt-header p {
  margin-bottom: 4px;
  color: #adb9c8;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docket-header h2,
.receipt-header h2,
.processing-view h2 {
  color: #fbfdff;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.docket-header span,
.receipt-header span {
  display: block;
  max-width: 620px;
  margin-top: 8px;
  color: #aeb9c7;
  font-size: 14px;
  line-height: 1.55;
}

.docket-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  border: 1px solid rgba(175, 195, 219, 0.13);
  border-radius: 13px;
  background: rgba(10, 15, 24, 0.25);
}

.docket-summary div {
  min-width: 0;
  padding: 14px 15px;
  border-right: 1px solid rgba(175, 195, 219, 0.11);
}

.docket-summary div:last-child {
  border-right: 0;
}

.docket-summary span,
.docket-summary strong {
  display: block;
}

.docket-summary span {
  margin-bottom: 6px;
  color: #9baabc;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docket-summary strong {
  overflow: hidden;
  color: #e6edf6;
  font-size: 12px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-exact-note {
  padding: 10px 13px;
  margin: -5px 0 16px;
  border: 1px solid rgba(116, 162, 241, 0.2);
  border-radius: 10px;
  background: rgba(59, 91, 143, 0.16);
  color: #b9cef1;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.review-section {
  padding: 19px;
  margin-top: 16px;
  border: 1px solid rgba(171, 192, 217, 0.14);
  border-radius: 14px;
  background: rgba(24, 35, 49, 0.63);
}

.human-section {
  background: rgba(17, 25, 36, 0.68);
}

.review-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
}

.review-section-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.step-number {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: rgba(86, 137, 239, 0.2);
  color: #83b0ff;
  font-size: 10px;
  font-weight: 800;
}

.review-section h3 {
  margin: 0;
  color: #f5f8fc;
  font-size: 15px;
  font-weight: 720;
}

.prepared-label,
.human-label {
  display: inline-flex;
  padding: 5px 8px;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.prepared-label {
  background: rgba(92, 153, 246, 0.15);
  color: #85b1ff;
}

.human-label {
  background: rgba(255, 194, 86, 0.14);
  color: #ffd06f;
}

.prepared-label i,
.human-label i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.review-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(166px, 0.45fr);
  padding: 15px 0;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line-dark);
}

.review-field > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.review-field strong {
  color: #e9eff7;
  font-size: 13px;
}

.review-field small {
  color: #9aa8b9;
  font-size: 10px;
}

.review-field select {
  width: 100%;
  min-height: 39px;
  padding: 0 10px;
  border: 1px solid rgba(159, 185, 218, 0.24);
  border-radius: 8px;
  background: #131c28;
  color: #eef4fb;
  font-size: 11px;
}

.source-summary-value {
  display: block;
  padding: 9px 10px;
  border: 1px solid rgba(159, 185, 218, 0.2);
  border-radius: 8px;
  background: rgba(19, 28, 40, 0.68);
  color: #d6e2f1;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.45;
}

.review-total {
  display: grid;
  padding-top: 15px;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 16px;
}

.review-total span,
.review-total small {
  color: #a3b0c0;
  font-size: 10px;
}

.review-total strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #fbfdff;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.modification-note {
  padding: 8px 10px;
  margin: 12px 0 0;
  border-radius: 8px;
  background: rgba(120, 165, 239, 0.12);
  color: #a9c8ff;
  font-size: 11px;
}

.collaborator-note-choice {
  display: grid;
  padding: 15px 0;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--line-dark);
}

.collaborator-note-choice input,
.sharing-confirmation input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--mint);
}

.token-mark {
  display: grid;
  width: 38px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, #576c88, #36485e);
  color: #dce7f5;
  font-size: 8px;
  font-weight: 820;
  letter-spacing: 0.06em;
}

.collaborator-note-choice > span:nth-child(3) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.collaborator-note-choice strong {
  color: #e8eef6;
  font-size: 12px;
}

.collaborator-note-choice small {
  color: #9aa8b9;
  font-size: 10px;
}

.collaborator-note-choice > svg {
  width: 19px;
  height: 19px;
  color: var(--mint);
}

.sharing-confirmation {
  display: grid;
  padding: 15px 0 4px;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: #c3cedb;
  font-size: 12px;
  line-height: 1.5;
}

.privacy-note {
  display: flex;
  margin: 14px 0 0;
  align-items: start;
  gap: 7px;
  color: #93a2b5;
  font-size: 10px;
  line-height: 1.45;
}

.privacy-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #a9bad0;
}

.authorization-note {
  display: flex;
  padding: 13px 14px;
  margin-top: 16px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(110, 143, 189, 0.24);
  border-radius: 11px;
  background: rgba(54, 81, 120, 0.22);
}

.digest-icon {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  background: rgba(89, 139, 232, 0.24);
  color: #a8c5ff;
  font-size: 14px;
  font-weight: 800;
}

.authorization-note div {
  display: grid;
  gap: 3px;
}

.authorization-note strong {
  color: #e7eef8;
  font-size: 11px;
}

.authorization-note small {
  color: #a6b4c6;
  font-size: 10px;
  line-height: 1.4;
}

.form-error {
  padding: 10px 12px;
  margin: 14px 0 0;
  border: 1px solid rgba(255, 137, 149, 0.3);
  border-radius: 9px;
  background: rgba(194, 67, 81, 0.16);
  color: #ffd1d6;
  font-size: 12px;
}

.docket-actions {
  display: grid;
  margin-top: 18px;
  gap: 9px;
}

.review-actions {
  grid-template-columns: auto auto minmax(190px, 1fr);
}

.docket-actions button,
.docket-actions a {
  display: inline-flex;
  min-height: 45px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
}

.quiet-button,
.deny-button {
  border: 1px solid rgba(163, 184, 211, 0.2);
  background: rgba(52, 65, 83, 0.5);
  color: #cfdae7;
}

.deny-button {
  color: #e6eaf0;
}

.deny-button:hover {
  border-color: rgba(207, 222, 238, 0.4);
  background: rgba(65, 79, 99, 0.72);
}

.authorize-button {
  border: 1px solid rgba(112, 243, 208, 0.56);
  background: linear-gradient(145deg, #4cc6a9, #2a9c86);
  color: #062b27;
}

.authorize-button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.authorize-button:disabled {
  border-color: rgba(126, 150, 165, 0.16);
  background: #374355;
  color: #8e9cac;
}

.authorize-button svg,
.deny-button svg {
  width: 18px;
  height: 18px;
}

.processing-view {
  padding: 58px 22px 44px;
  text-align: center;
}

.processing-orbit {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 22px;
  border: 2px solid rgba(103, 230, 196, 0.18);
  border-radius: 50%;
}

.processing-orbit span,
.processing-orbit i {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.processing-orbit span {
  top: 8px;
  right: 8px;
  width: 13px;
  height: 13px;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(103, 230, 196, 0.6);
  animation: orbit 1.2s linear infinite;
  transform-origin: -19px 27px;
}

.processing-orbit i {
  top: 29px;
  left: 29px;
  width: 10px;
  height: 10px;
  background: var(--blue);
}

.processing-view > p {
  margin: 0 0 7px;
  color: #9eb0c5;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.processing-view h2 {
  margin: 0;
}

.processing-view > span {
  display: block;
  max-width: 470px;
  margin: 11px auto 0;
  color: #aab7c7;
  font-size: 13px;
  line-height: 1.55;
}

.processing-steps {
  display: grid;
  max-width: 470px;
  padding: 0;
  margin: 32px auto 0;
  gap: 10px;
  list-style: none;
  text-align: left;
}

.processing-steps li {
  display: flex;
  padding: 12px 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  color: #aebaca;
  font-size: 12px;
}

.processing-steps i {
  width: 9px;
  height: 9px;
  border: 1px solid #8291a5;
  border-radius: 50%;
}

.processing-steps .done i {
  border-color: var(--mint);
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(103, 230, 196, 0.12);
}

.processing-steps .active {
  border-color: rgba(107, 161, 255, 0.38);
  color: #dce9ff;
}

.processing-steps .active i {
  border-color: var(--blue-soft);
  background: var(--blue-soft);
  box-shadow: 0 0 0 4px rgba(107, 161, 255, 0.13);
}

.processing-steps .blocked i {
  border-color: var(--danger);
  background: var(--danger);
}

.receipt-glyph {
  border: 1px solid rgba(104, 229, 196, 0.23);
  background: rgba(76, 189, 161, 0.15);
  color: var(--mint);
}

.receipt-view[data-tone="blocked"] .receipt-glyph,
.receipt-view[data-tone="critical"] .receipt-glyph,
.receipt-view[data-tone="neutral"] .receipt-glyph {
  border-color: rgba(255, 185, 92, 0.25);
  background: rgba(255, 185, 92, 0.13);
  color: var(--amber);
}

.receipt-view[data-tone="critical"] .receipt-glyph {
  border-color: rgba(255, 126, 139, 0.28);
  background: rgba(255, 126, 139, 0.14);
  color: var(--danger);
}

.receipt-consequence {
  display: grid;
  padding: 19px;
  margin-bottom: 15px;
  gap: 4px;
  border: 1px solid rgba(103, 230, 196, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(39, 109, 94, 0.25), rgba(21, 39, 51, 0.5));
}

.receipt-consequence span,
.receipt-consequence small {
  color: #adbdc9;
  font-size: 10px;
}

.receipt-consequence strong {
  color: #f4fffb;
  font-size: 31px;
  font-weight: 770;
  letter-spacing: -0.05em;
}

.receipt-consequence[data-tone="blocked"],
.receipt-consequence[data-tone="critical"],
.receipt-consequence[data-tone="neutral"] {
  border-color: rgba(255, 191, 100, 0.22);
  background: linear-gradient(135deg, rgba(119, 79, 27, 0.25), rgba(39, 32, 25, 0.48));
}

.receipt-consequence[data-tone="critical"] {
  border-color: rgba(255, 126, 139, 0.25);
  background: linear-gradient(135deg, rgba(126, 50, 66, 0.22), rgba(39, 24, 30, 0.48));
}

.receipt-comparison {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 13px;
}

.receipt-row {
  display: grid;
  padding: 13px 15px;
  grid-template-columns: 125px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-row > span {
  color: #94a5b9;
  font-size: 10px;
  font-weight: 740;
}

.receipt-row > strong {
  color: #e2eaf3;
  font-size: 11px;
  font-weight: 620;
  line-height: 1.45;
}

.match-badge {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(103, 230, 196, 0.13);
  color: var(--mint);
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.divergence-badge {
  background: rgba(255, 177, 83, 0.15);
  color: #ffcf7d;
}

.divergence-detail {
  display: flex;
  padding: 14px;
  margin-top: 15px;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(255, 164, 89, 0.28);
  border-radius: 10px;
  background: rgba(132, 83, 33, 0.2);
}

.divergence-detail > svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: #ffca70;
}

.divergence-detail > div {
  display: grid;
  gap: 4px;
}

.divergence-detail strong {
  color: #ffe0ab;
  font-size: 12px;
}

.divergence-detail span {
  color: #d6c3a7;
  font-size: 11px;
  line-height: 1.5;
}

.receipt-proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 13px 0;
  gap: 10px;
}

.receipt-proof > div {
  min-width: 0;
}

.receipt-proof span,
.receipt-proof strong,
.receipt-proof code {
  display: block;
}

.receipt-proof span {
  margin-bottom: 5px;
  color: #92a1b4;
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.receipt-proof strong,
.receipt-proof code {
  overflow: hidden;
  color: #dce6f0;
  font-size: 11px;
  font-weight: 630;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-proof code {
  color: #a8c6f8;
}

.receipt-actions {
  grid-template-columns: auto 1fr;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(390px, calc(100vw - 48px));
  padding: 12px 15px;
  border: 1px solid rgba(176, 198, 226, 0.23);
  border-radius: 10px;
  background: #16202d;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  color: #edf3fb;
  font-size: 12px;
  line-height: 1.45;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@media (min-width: 701px) and (max-height: 760px) {
  .docket-dialog {
    width: min(1080px, calc(100vw - 40px));
    max-height: calc(100dvh - 20px);
  }

  .docket-sheet {
    padding: 18px 28px;
  }

  .docket-topline {
    padding-bottom: 8px;
  }

  .docket-header {
    padding: 12px 0 10px;
    gap: 10px;
  }

  .docket-header .docket-glyph {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .docket-header .docket-glyph svg {
    width: 20px;
    height: 20px;
  }

  .docket-header p {
    margin-bottom: 2px;
    font-size: 9px;
  }

  .docket-header h2 {
    font-size: 24px;
  }

  .docket-header span {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
  }

  .docket-summary {
    margin-bottom: 9px;
  }

  .docket-summary div {
    padding: 8px 10px;
  }

  .fixture-exact-note {
    padding: 7px 10px;
    margin: -2px 0 8px;
  }

  #review-view {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  #review-view > .docket-header,
  #review-view > .docket-summary,
  #review-view > .fixture-exact-note,
  #review-view > .authorization-note,
  #review-view > .form-error,
  #review-view > .review-actions {
    grid-column: 1 / -1;
  }

  #review-view .review-section {
    padding: 12px;
    margin-top: 8px;
  }

  #review-view .review-section-heading {
    margin-bottom: 10px;
  }

  #review-view .review-field,
  #review-view .collaborator-note-choice,
  #review-view .sharing-confirmation {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  #review-view > .review-section:not(.human-section) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
  }

  #review-view > .review-section:not(.human-section) > .review-section-heading,
  #review-view > .review-section:not(.human-section) > .source-summary,
  #review-view > .review-section:not(.human-section) > .review-total,
  #review-view > .review-section:not(.human-section) > .modification-note {
    grid-column: 1 / -1;
  }

  #review-view > .review-section:not(.human-section) > .review-field {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  #review-view > .review-section:not(.human-section) > .review-field select {
    min-height: 34px;
  }

  #review-view .review-total {
    padding-top: 8px;
    margin-top: 6px;
  }

  #review-view .authorization-note,
  #review-view .review-actions {
    margin-top: 12px;
  }
}

@media (max-width: 920px) {
  .browser-shell {
    width: min(100%, calc(100vw - 20px));
    margin: 10px auto;
  }

  .window-controls {
    width: 76px;
  }

  .window-controls i {
    width: 11px;
    height: 11px;
  }

  .toolbar-nav {
    display: none;
  }

  .briefing-grid,
  .activity-surface {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .activity-surface {
    gap: 20px;
  }

  .docket-dialog {
    width: min(720px, calc(100vw - 28px));
  }
}

@media (max-width: 700px) {
  .browser-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .tab-strip {
    min-height: 51px;
    padding: 6px 11px 0;
    gap: 10px;
  }

  .window-controls {
    width: 54px;
    height: 36px;
    gap: 6px;
    padding-left: 0;
  }

  .window-controls i {
    width: 9px;
    height: 9px;
  }

  .active-tab {
    width: auto;
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 10px;
    font-size: 12px;
  }

  .active-tab > svg {
    width: 17px;
    height: 17px;
  }

  .active-tab b {
    font-size: 18px;
  }

  .new-tab {
    margin-top: 3px;
    font-size: 23px;
  }

  .browser-toolbar {
    display: grid;
    padding: 8px 11px 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .address-field {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 34px;
    font-size: 11px;
  }

  .page-tray {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .page-tray > summary {
    min-width: 166px;
    height: 42px;
  }

  .toolbar-actions {
    grid-column: 2 / 3;
    grid-row: 2;
    gap: 10px;
  }

  .toolbar-actions svg {
    width: 19px;
    height: 19px;
  }

  .tray-panel {
    position: fixed;
    top: 115px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 130px);
    padding: 17px;
  }

  .tray-panel::before {
    display: none;
  }

  #tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tool-list li {
    min-height: 88px;
  }

  .document-screen {
    min-height: 690px;
    padding: 32px 12px 48px;
  }

  .document-page {
    padding: 25px 20px;
  }

  .document-header {
    display: block;
  }

  .presence-stack {
    margin-top: 20px;
  }

  .intent-panel {
    grid-template-columns: auto 1fr;
    margin-top: 28px;
  }

  .intent-panel > span {
    grid-column: 2;
    justify-self: start;
  }

  .briefing-grid,
  .document-section,
  .activity-surface {
    margin-top: 36px;
    padding-top: 36px;
  }

  .briefing-grid {
    padding-top: 0;
    border-top: 0;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid > div {
    min-height: 0;
  }

  .browser-footer {
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
    font-size: 10px;
  }

  .docket-dialog {
    width: 100dvw;
    max-width: 100dvw;
    min-width: 0;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
  }

  .docket-sheet {
    min-height: 100dvh;
    padding: 22px 17px 25px;
  }

  .docket-header,
  .receipt-header {
    padding: 22px 0 19px;
  }

  .docket-glyph,
  .receipt-glyph {
    width: 43px;
    height: 43px;
    border-radius: 12px;
  }

  .docket-glyph svg,
  .receipt-glyph svg {
    width: 24px;
    height: 24px;
  }

  .docket-summary {
    grid-template-columns: 1fr;
  }

  .docket-summary div {
    padding: 11px 13px;
    border-right: 0;
    border-bottom: 1px solid rgba(175, 195, 219, 0.11);
  }

  .docket-summary div:last-child {
    border-bottom: 0;
  }

  .review-section {
    padding: 15px;
  }

  .review-field {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .review-actions {
    grid-template-columns: 1fr 1fr;
  }

  .review-actions .authorize-button {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .receipt-row {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
  }

  .receipt-row em {
    grid-column: 2;
    justify-self: start;
  }

  .receipt-proof,
  .receipt-actions {
    grid-template-columns: 1fr;
  }

  .processing-view {
    padding: 48px 0 30px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 410px) {
  .toolbar-actions svg:first-child {
    display: none;
  }

  .page-tray > summary {
    min-width: 150px;
  }

  .tray-summary-copy small {
    display: none;
  }

  .document-header h2 {
    font-size: 33px;
  }

  .intent-panel strong {
    font-size: 13px;
  }

  .docket-header h2,
  .receipt-header h2,
  .processing-view h2 {
    font-size: 26px;
  }

  .collaborator-note-choice {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .collaborator-note-choice > svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
