@font-face {
  font-family: Inter;
  src: url('/assets/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/inter-medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/inter-semibold.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --canvas: #f6f6f8;
  --surface: #fff;
  --text: #151517;
  --muted: #58585e;
  --line: #d8d8de;
  --field: #fff;
  --hover: #f2f2f5;
  --subtle: #f7f7fa;
  --link: #0066cc;
  --primary: #007aff;
  --positive: #2f5711;
  --positive-bg: #edf4ea;
  --danger: #bb2010;
  --danger-bg: #fff2ef;
  --pending: #505058;
  --pending-bg: #ededf1;
  --focus: #007aff;
  --panel-radius: 0.75rem;
  --control-radius: 0.5rem;
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  font-size: 100%;
  font-synthesis: none;
  background: var(--canvas);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000;
    --surface: #1c1c1e;
    --text: #f6f6f8;
    --muted: #b4b4bc;
    --line: #454549;
    --field: #151516;
    --hover: #2b2b2f;
    --subtle: #252527;
    --link: #5cb8ff;
    --positive: #a0d677;
    --positive-bg: #22311b;
    --danger: #ff9789;
    --danger-bg: #3b211e;
    --pending: #d7d7dc;
    --pending-bg: #323237;
  }
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.5;
}
button,
input,
textarea,
select,
summary {
  font: inherit;
  color: inherit;
}
button,
a,
summary,
select,
input,
textarea {
  touch-action: manipulation;
}
button,
select,
summary,
label[for='attachments'] {
  cursor: pointer;
}
button[disabled],
select[disabled] {
  cursor: default;
  opacity: 0.51;
}
a {
  color: var(--link);
  text-decoration: none;
}
button {
  border: 0;
}
button,
a,
summary,
select,
input,
textarea {
  outline-offset: 3px;
}
:focus-visible {
  outline: 2px solid var(--focus);
}
button:focus:not(:focus-visible),
main:focus {
  outline: none;
}
button:enabled,
a,
summary,
select {
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: 'Stabil Grotesk', Inter, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.13;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.35;
}
h3 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.015em;
}
small {
  font-size: 0.8125rem;
}
.shell {
  width: min(75rem, 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}
main.shell {
  flex: 1;
  padding-top: clamp(2rem, 5vw, 4.75rem);
  padding-bottom: 4rem;
}
.identity-pending main,
.identity-pending #account,
.identity-pending #navigation,
.identity-pending dialog {
  visibility: hidden;
}
.site-header {
  background: #111113;
  color: white;
  border-bottom: 1px solid #323235;
}
.header-inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  padding-block: 0.5rem;
  flex: 0 0 auto;
}
.brand img {
  display: block;
  width: 8.75rem;
  height: auto;
}
#navigation {
  margin: auto;
}
nav {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}
.nav-link,
.profile summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #bdbdc4;
  border-radius: var(--control-radius);
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
}
.nav-link:hover,
.profile summary:hover,
.profile[open] summary {
  color: white;
  background: #29292c;
}
.nav-link[aria-current='page'] {
  background: #323235;
  color: white;
}
.icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
}
.profile {
  position: relative;
}
.profile summary,
.history-item summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.profile summary {
  color: white;
  max-width: 14rem;
  padding-inline: 0.3rem;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: #dedee3;
  color: #202022;
  font-size: 0.75rem;
  font-weight: 600;
}
.profile-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile summary > .icon {
  width: 0.875rem;
  height: 0.875rem;
}
.profile-menu,
.dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  box-shadow: 0 1rem 3rem #0002;
}
.profile-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 0.6rem);
  width: min(17rem, calc(100vw - 2rem));
  padding: 1rem;
  animation: rise 150ms ease;
}
.profile-menu strong,
.person-info strong {
  font-size: 0.9375rem;
  font-weight: 600;
}
.profile-menu p,
.person-info small {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.profile-menu .role {
  margin: 0.5rem 0 0;
}
.profile-menu .btn {
  display: flex;
  margin-top: 0.75rem;
  width: 100%;
  border-top: 1px solid var(--line);
  border-radius: 0;
  justify-content: flex-start;
}
.signed-out,
.session-loading {
  background: #030406;
  color: #f5f5f6;
}
:is(.signed-out, .session-loading) .site-header {
  display: none;
}
.session-loading main .loading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.signed-out #landing-scene {
  inset: 0 0 auto;
  height: 100svh;
}
.landing-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  touch-action: none;
  overflow: hidden;
}
.landing-scene canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.entering-workspace #landing-scene {
  position: fixed;
  inset: 0;
  height: auto;
  z-index: 1000;
  isolation: isolate;
  background: #030406;
  opacity: 1;
}
.entering-workspace #landing-scene .entry-orbit {
  position: absolute;
  inset: 0;
}
@property --entry-radius {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: false;
}
.entering-workspace #landing-scene[data-entry-phase="revealing"] {
  mask-image: radial-gradient(circle farthest-corner at 55% 47%,
    transparent calc(var(--entry-radius) - .75px), #000 calc(var(--entry-radius) + .75px));
}
.gallery-page {
  min-height: 100svh;
  color: #f6f6f7;
  background: #040506;
}
.gallery-bar {
  position: fixed;
  inset: max(0.85rem, env(safe-area-inset-top)) clamp(1rem, 4vw, 3.5rem) auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.gallery-bar a {
  pointer-events: auto;
}
.gallery-exit {
  padding: 0.65rem 0.9rem;
  border: 1px solid #ffffff35;
  border-radius: 2rem;
  background: #111216da;
  color: #f7f7f9;
  font-size: 0.8125rem;
  font-weight: 500;
}
.gallery-exit:hover { background: #28292c; }
.scene-dock {
  position: absolute;
  z-index: 2;
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
}
.gallery-page .scene-dock { position: fixed; }
.scene-options {
  display: flex;
  gap: 0.15rem;
  padding: 0.28rem;
  border: 1px solid #ffffff33;
  border-radius: 2rem;
  background: #111214e8;
  box-shadow: 0 3px 20px #0006;
}
.scene-choice {
  min-height: 2.75rem;
  padding: 0.5rem 1.05rem;
  border-radius: 2rem;
  background: transparent;
  color: #babcc2;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}
.scene-choice:hover { color: white; background: #2c2d30; }
.scene-choice[aria-checked='true'] { background: #e4e4e7; color: #161619; }
.scene-choice:focus-visible, .gallery-exit:focus-visible { outline: 2px solid #8dc6ff; outline-offset: 2px; }
.scene-status:not(:empty) {
  width: fit-content;
  margin: 0 auto 0.5rem;
  border-radius: 0.5rem;
  background: #1a1b1e;
  color: white;
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
}
@media (max-width: 32rem) {
  .scene-dock {
    width: min(100% - 1rem, 27rem);
    bottom: max(0.6rem, env(safe-area-inset-bottom));
  }
  .scene-options { gap: 0; padding: 0.2rem; }
  .scene-choice { flex: 1 1 auto; padding: 0.45rem 0.25rem; font-size: 0.755rem; }
}
@media (max-width: 20.5rem) {
  .scene-options { display: grid; grid-template-columns: 1fr 1fr; border-radius: 1.25rem; }
  .scene-choice { min-height: 2.3rem; }
}
.signed-out main.shell {
  position: relative;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  min-height: 100svh;
  /* The orbital field is centered at 43% height with a 1.1-unit lower extent. */
  padding-block: calc(43svh + min(32.45vw, 34.76svh) + clamp(0.5rem, 2.6svh, 1.5rem)) max(1rem, env(safe-area-inset-bottom));
}
.login-actions {
  display: grid;
  justify-items: center;
  gap: 0.875rem;
}
.login-actions a,
.login-actions .notice {
  pointer-events: auto;
}
.login-actions .notice {
  --danger: #ffc6bd;
  --danger-bg: #321b19;
  width: fit-content;
  max-width: 27rem;
  margin: 0;
}
.landing-gallery {
  position: fixed;
  inset: max(0.875rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) auto auto;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #9da0a7;
  pointer-events: auto;
}
.landing-gallery .icon {
  width: 1rem;
  height: 1rem;
}
.landing-gallery:hover {
  background: #ffffff0d;
  color: #fff;
}
.post-prompt {
  margin: 0 0 1rem;
  max-width: 34rem;
  line-height: 1.32;
}
.google-signin {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  border-radius: 10rem;
  transition: filter 120ms ease;
}
.google-signin:hover {
  filter: brightness(1.18);
}
.google-signin:focus-visible,
.landing-gallery:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}
.google-signin img {
  display: block;
  width: 12.375rem;
  height: auto;
}
.meta,
.muted {
  color: var(--muted);
}
.schedule {
  background: #151517;
  color: #fafafa;
  padding: 1.5rem;
  border: 1px solid #39393d;
  border-radius: var(--panel-radius);
  min-width: 0;
  overflow: hidden;
}
.cal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
}
.cal-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.055em;
}
.cal-head > span {
  color: #b4b4bc;
  font-size: 0.94rem;
  font-variant-numeric: tabular-nums;
}
.cal-today {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  margin: 0 0 0.85rem;
  color: #f5f5f7;
  font-size: 0.8125rem;
  line-height: 1.45;
}
.cal-today span {
  color: #bfbfc6;
}
.cal-today time {
  font-weight: 500;
}
.calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
  text-align: center;
  border-bottom: 1px solid #3b3b40;
  padding-bottom: 1.25rem;
  margin-bottom: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.cal-day,
.cal-dow {
  height: clamp(1.9rem, 2.7vw, 2.65rem);
  padding: 0;
  vertical-align: middle;
  border-radius: 0.4rem;
  font-size: 0.875rem;
}
.cal-dow {
  font-size: 0.6875rem;
  color: #bfbfc6;
  font-weight: 500;
}
.cal-day.outside {
  color: #8c8c96;
}
.cal-day.in-week {
  background: #29292d;
}
.cal-day.deadline {
  background: #007aff;
  color: #000;
  font-weight: 600;
}
.cal-day[aria-current='date'] {
  box-shadow: inset 0 0 0 2px #f0f0f3;
  color: white;
  font-weight: 600;
}
.cal-day.deadline[aria-current='date'] {
  color: #000;
}
@media (forced-colors: active) {
  .cal-day[aria-current='date'] { outline: 2px solid Highlight; outline-offset: -2px; }
  .cal-day.deadline { text-decoration: underline; }
}
.schedule-fact {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: baseline;
  font-size: 0.8125rem;
  margin-top: 0.65rem;
}
.schedule-fact > span {
  color: #bfbfc6;
}
.schedule-fact strong {
  font-weight: 500;
  text-align: right;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.workspace-dust {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.workspace-dust canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@media print, (forced-colors: active) {
  .workspace-dust { display: none; }
}
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 19.75rem);
  gap: 1.5rem;
  align-items: stretch;
}
.upload-progress {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
  margin-top: 1rem;
  font-size: .875rem;
}
.upload-progress > span { overflow-wrap: anywhere; }
.upload-progress progress { flex: 1 1 9rem; min-width: 0; accent-color: var(--primary); }
.upload-progress[hidden] { display: none; }
.panel,
.history-item,
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
}
.editor-panel {
  padding: clamp(1.15rem, 3vw, 2rem);
}
.editor-heading,
.panel-actions,
.action-group,
.dialog-actions,
.dialog-head,
.member-row,
.row-action,
.editor-heading,
.table-controls,
.admin-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.editor-heading,
.panel-actions,
.dialog-head,
.member-row {
  justify-content: space-between;
}
.editor-heading {
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.status,
.role {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.58rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
}
.status.complete {
  color: var(--positive);
  background: var(--positive-bg);
}
.status.pending,
.status.neutral,
.role {
  color: var(--pending);
  background: var(--pending-bg);
}
.status .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.week-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
}
.week-value {
  padding-inline: 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}
.btn,
.icon-button,
.select-wrap select {
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--control-radius);
  line-height: 1.35;
  font-size: 0.875rem;
  font-weight: 500;
}
.btn {
  padding: 0.55rem 0.95rem;
  white-space: normal;
  text-align: center;
  border: 1px solid transparent;
}
.btn:enabled:active,
.icon-button:enabled:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--primary);
  color: black;
}
.btn.primary:enabled:hover {
  background: #1685ff;
}
.btn.secondary,
.select-wrap select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.secondary:enabled:hover,
.select-wrap select:enabled:hover,
.icon-button:hover {
  background: var(--hover);
}
.btn.plain,
.icon-button {
  background: transparent;
  color: var(--link);
}
.btn.plain:enabled:hover {
  background: var(--subtle);
}
.icon-button {
  min-width: 2.4rem;
  border: none;
  color: inherit;
}
.btn.danger {
  background: var(--danger);
  color: var(--surface);
}
input[type='checkbox'] {
  accent-color: var(--primary);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin: 0;
}
textarea,
input[type='text'],
input[type='email'],
input[type='search'] {
  display: block;
  width: 100%;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  padding: 0.7rem 0.85rem;
  line-height: 1.5;
  font-size: 1rem;
}
textarea {
  resize: vertical;
  min-height: 5.75rem;
}
textarea::placeholder,
input::placeholder {
  color: var(--muted);
}
.response-fields {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.response-fields > label[for='answer'],
.response-fields > label[for='use-case'],
.upload-label,
.dialog-body > label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.9375rem;
  margin: 1.2rem 0 0.5rem;
}
.response-fields > label[for='answer'] {
  margin-top: 0.35rem;
}
.optional,
.meta {
  font-weight: 400;
  font-size: 0.8125rem;
}
.optional {
  color: var(--muted);
}
.drop-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.8rem 1rem;
  border: 1px dashed var(--muted);
  border-radius: var(--control-radius);
  background: var(--subtle);
}
.drop-zone > span {
  font-size: 0.875rem;
}
.drop-zone > span > span {
  color: var(--link);
  font-weight: 500;
}
.drop-zone small {
  color: var(--muted);
  font-size: inherit;
}
.drop-zone:hover,
.drop-zone.dragging {
  background: var(--hover);
  border-color: var(--link);
}
input:focus-visible + .drop-zone {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.upload-help {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.5rem;
}
.action-group,
.dialog-actions {
  justify-content: flex-end;
}
.panel-actions {
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-top: 1.5rem;
}
.editor-panel > .panel-actions {
  justify-content: flex-end;
}
.record-body {
  padding-top: 1.25rem;
}
.record-body > section,
.record-body > p {
  margin-bottom: 1rem;
}
.record-body > section > h3 {
  margin-bottom: 0.35rem;
}
.record-body > :last-child {
  margin-bottom: 0;
}
.pre-wrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.attachment-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.attachment-list:empty {
  display: none;
}
.attachment-row {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.65rem;
  min-width: 0;
}
.file-tile,
.thumb {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.35rem;
  object-fit: cover;
  background: var(--subtle);
}
.file-link {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.file-link strong,
.file-link small {
  display: block;
  font-size: 0.875rem;
}
.file-link small {
  color: var(--muted);
  font-size: 0.8125rem;
}
.preview-link {
  display: block;
}
.attachment-section .thumb {
  width: 4.5rem;
  height: 3.5rem;
}
.notice,
.late-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  margin-block: 0.75rem;
  border-radius: var(--control-radius);
  font-size: 0.9rem;
}
.notice.error {
  background: var(--danger-bg);
  color: var(--danger);
}
.notice .icon {
  margin-top: 0.1rem;
}
.notice.success {
  color: var(--positive);
  background: var(--positive-bg);
}
.late-note {
  background: var(--subtle);
  color: var(--muted);
}
.history-list {
  display: grid;
  gap: 0.75rem;
}
.history-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.35rem;
  gap: 0.75rem;
  border-radius: var(--panel-radius);
}
.history-item summary:hover {
  background: var(--subtle);
}
.history-item summary > .icon,
.profile summary > .icon {
  transition: transform 160ms ease;
}
.history-item[open] summary > .icon,
.profile[open] summary > .icon {
  transform: rotate(180deg);
}
.history-title {
  font-weight: 500;
  min-width: 0;
}
.history-title .meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 55rem;
  margin-top: 0.28rem;
}
.detail-content {
  padding: 0 1.35rem 1.35rem;
}
.detail-content .record-body {
  border-top: 1px solid var(--line);
  margin-bottom: 1rem;
}
.empty-state {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--surface);
  padding: 3.25rem 1rem;
}
.empty-state > .icon {
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.9rem;
  color: var(--muted);
}
.empty-state p {
  color: var(--muted);
  margin: 0.35rem 0 1rem;
}
.empty-state.compact {
  border: none;
  padding: 1.5rem 0.75rem;
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.4rem;
}
.metric span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.metric strong {
  font-size: 2.3rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.admin-list {
  padding: 1.25rem 1.5rem;
}
.segments {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 0.6rem;
  background: var(--hover);
}
.segment {
  background: transparent;
  min-height: 2.25rem;
  color: var(--muted);
}
.segment[aria-pressed='true'] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.table-controls {
  flex-wrap: wrap;
  margin: 1rem 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding-left: 0.7rem;
  flex: 1;
  min-width: 10rem;
  background: var(--field);
}
.search-field input {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.5rem 0.45rem 0;
  font-size: 0.875rem;
  min-height: 2.5rem;
  min-width: 0;
}
.search-field:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.search-field input:focus {
  outline: none;
}
.select-wrap {
  position: relative;
  display: inline-flex;
  min-width: 0;
}
.select-wrap select {
  appearance: none;
  width: 100%;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
}
.select-wrap > .icon {
  pointer-events: none;
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.95rem;
}
.member-row {
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.person-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.person-info small {
  margin-top: 0.15rem;
}
.row-action {
  flex-shrink: 0;
}
.dialog {
  max-height: 85dvh;
  width: min(31rem, calc(100% - 2rem));
  padding: 0;
  inset: 0;
  animation: rise 160ms ease;
}
.dialog::backdrop {
  background: #0008;
}
.dialog-inner {
  padding: 1.35rem;
}
.dialog-head {
  margin-bottom: 1rem;
}
.dialog-head h2 {
  min-width: 0;
}
.dialog-body > label {
  display: block;
}
.dialog-body > label > .optional {
  margin-left: 0.5rem;
}
.dialog-body > label .select-wrap {
  display: flex;
  margin-top: 0.4rem;
}
.dialog-body > p {
  font-size: 0.875rem;
  margin: 1rem 0;
}
.dialog-actions {
  margin-top: 1.2rem;
}
.detail-author {
  color: var(--muted);
  margin-top: -0.5rem;
}
.dialog .record-body {
  border-top: 1px solid var(--line);
  margin-top: 0.8rem;
}
.load-error,
.loading {
  padding: 2rem 0;
}
.load-error {
  max-width: 35rem;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 9;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border-radius: 0.4rem;
}
.enter {
  animation: rise 170ms ease-out;
}
@keyframes rise {
  from {
    opacity: 0.25;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 52rem) {
  .header-inner {
    gap: 0.65rem;
    flex-wrap: wrap;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    min-height: 4rem;
  }
  #account {
    margin-left: auto;
  }
  .profile-name {
    display: none;
  }
  #navigation:not(:empty) {
    order: 3;
    width: 100%;
  }
  nav {
    border-top: 1px solid #36363a;
    padding-top: 0.55rem;
  }
  .nav-link {
    flex: 1;
  }
  .work-layout {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 16rem);
    gap: 0.85rem;
  }
  .schedule {
    padding: 1rem;
  }
  .schedule-fact {
    display: grid;
    gap: 0.05rem;
  }
  .schedule-fact strong {
    text-align: left;
  }
}
@media (max-width: 42rem) {
  .work-layout {
    grid-template-columns: 1fr;
  }
  .schedule {
    margin-top: 0.25rem;
  }
  .calendar {
    border-spacing: 1px;
  }
  .cal-dow,
  .cal-day {
    height: 1.85rem;
  }
  .schedule-fact {
    display: flex;
    gap: 0.5rem;
  }
  .schedule-fact strong {
    text-align: right;
  }
  main.shell {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .page-heading {
    margin-bottom: 1.1rem;
  }
  .panel-actions {
    gap: 0.75rem;
    align-items: flex-start;
  }
  .metrics {
    gap: 0.45rem;
  }
  .metric {
    padding: 0.85rem 0.65rem;
  }
  .metric strong {
    font-size: 1.7rem;
  }
  .admin-list {
    padding: 0.85rem;
  }
  .table-controls {
    gap: 0.55rem;
  }
  .row-action {
    gap: 0.15rem;
  }
  .member-row {
    gap: 0.55rem;
  }
  .history-title .meta {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
  }
}
@media (max-width: 26rem) {
  .brand img {
    width: 6.75rem;
  }
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
  }
  #navigation:empty,
  #account:empty {
    display: none;
  }
  #navigation:not(:empty) {
    grid-row: 2;
    grid-column: 1/-1;
  }
  #account:not(:empty) {
    grid-row: 1;
    grid-column: 3;
  }
  .nav-link {
    padding: 0.4rem 0.32rem;
    gap: 0.25rem;
    font-size: 0.84rem;
    white-space: nowrap;
  }
  .nav-link .icon {
    width: 0.9375rem;
    height: 0.9375rem;
  }
  .editor-heading {
    align-items: center;
  }
  .week-value {
    font-size: 0.8125rem;
  }
  .panel-actions .action-group {
    width: 100%;
  }
  .action-group > .primary {
    flex: 1;
  }
  .table-controls .search-field {
    flex-basis: 100%;
  }
  .member-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .member-row > .row-action {
    margin-left: auto;
  }
  .metric span {
    font-size: 0.8rem;
  }
}
@media (hover: none), (pointer: coarse), (max-width: 42rem) {
  .btn,
  .nav-link,
  .icon-button,
  .select-wrap select,
  .profile summary {
    min-height: 2.75rem;
  }
  .icon-button {
    min-width: 2.75rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.highlights-list {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}
.highlight-card {
  padding: clamp(1rem, 3vw, 1.65rem);
}
.highlight-card h2 {
  font-size: 1.35rem;
}
.highlight-card .pre-wrap {
  margin-top: 0.75rem;
}
.highlight-card .attachment-section {
  margin-top: 1rem;
}
.highlight-card .meta {
  margin-top: 0.2rem;
}
.highlight-card .preview-link {
  color: inherit;
}
.highlight-scope {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.discussion {
  margin-top: 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: .4rem;
}
.discussion > summary, .comment-actions, .comment-form-actions, .comment-byline {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.discussion > summary {
  width: fit-content;
  min-height: 2.5rem;
  cursor: pointer;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  list-style: none;
}
.discussion > summary::-webkit-details-marker { display: none; }
.discussion > summary:hover { color: var(--text); }
.discussion > summary .icon { width: 1rem; height: 1rem; }
.discussion > summary .icon:last-child { width: .8rem; transition: transform .15s ease; }
.discussion[open] > summary .icon:last-child { transform: rotate(180deg); }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment { padding-top: .9rem; overflow-wrap: anywhere; }
.comment-byline { flex-wrap: wrap; gap: .25rem .65rem; font-size: .875rem; }
.comment-byline time { color: var(--muted); font-size: .75rem; }
.comment-body { margin-top: .2rem; white-space: pre-wrap; }
.comment-actions { gap: .85rem; }
.comment-actions .btn, .comment-pager .btn {
  min-height: 2rem; padding: .2rem 0; font-size: .8125rem; color: var(--muted);
}
.comment-actions .btn:hover, .comment-pager .btn:hover { color: var(--text); }
.comment-children { border-left: 1px solid var(--line); padding-left: clamp(.55rem, 1.5vw, 1.15rem); }
.comment-form { margin-top: .8rem; display: grid; gap: .5rem; }
.comment-form-actions { justify-content: flex-end; }
.comment-form-actions .btn { min-height: 2.3rem; font-size: .875rem; }
.comment-input { width: 100%; min-height: 3.5rem; }
.source-post {
  border-block: 1px solid var(--line);
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.source-post .record-body {
  border: 0;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  color: var(--text);
}
.file-picks {
  border: 0;
  padding: 0;
  margin: 1rem 0;
}
.file-picks legend,
.copy-field > label,
.token-create > label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.pick-file,
.highlight-editor > label.pick-file {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.65rem;
  font-size: 0.9rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.file-picks .pick-file {
  margin: 0;
}
.agent-access > p {
  margin: 0.75rem 0;
}
.copy-field,
.token-create {
  margin: 1rem 0;
}
.copy-line {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}
.copy-line input {
  min-width: 0;
}
.copy-line button {
  flex-shrink: 0;
}
.copy-field .meta {
  margin: 0.35rem 0;
}
.token-list {
  margin-top: 1rem;
}
.token-list:empty {
  display: none;
}
.visibility-note {
  flex: 1 1 14rem;
  max-width: 30rem;
}
@media (max-width: 38rem) {
  nav .nav-link .icon {
    display: none;
  }
  .nav-link {
    white-space: nowrap;
  }
}
