:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-muted: #eef3fb;
  --surface-strong: #0f172a;
  --line: #d9e2f0;
  --text: #182230;
  --text-soft: #5f6c80;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #dbeafe;
  --success: #0f9f61;
  --warning: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
  --radius: 8px;
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
}

.official-page {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 42%, #f4f7fb 100%);
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(243, 246, 251, 0.88);
  border-bottom: 1px solid rgba(217, 226, 240, 0.9);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.brand-copy span {
  color: var(--text-soft);
  font-size: 13px;
}

.nav-links,
.nav-actions,
.button-row,
.chip-row,
.portal-user,
.aside-list,
.metric-row,
.form-actions,
.download-row,
.portal-actions,
.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links button.link-button,
.panel-link {
  color: var(--text-soft);
  background: transparent;
  padding: 0;
}

.link-button {
  background: transparent;
  color: var(--primary-strong);
}

.button,
.button-secondary,
.button-ghost,
.icon-button,
.nav-tile,
.tab-button,
.metric-card,
.portal-nav button,
.conversation,
.small-action {
  border-radius: var(--radius);
}

.button,
.button-secondary,
.button-ghost,
.small-action,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
}

.button {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.button:hover,
.button:focus-visible {
  background: var(--primary-strong);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-ghost {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid transparent;
}

.icon-button {
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}

.button i,
.button-secondary i,
.button-ghost i,
.icon-button i,
.tab-button i,
.small-action i,
.portal-nav button i,
.nav-tile i {
  width: 18px;
  height: 18px;
}

.hero {
  padding: 64px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.hero-copy h1,
.auth-side h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
}

.hero-copy p,
.auth-side p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
}

.hero-visual {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(24, 32, 48, 0.94));
  border: 1px solid rgba(78, 98, 132, 0.48);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  color: #f8fafc;
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.visual-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.visual-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #dce7f8;
  background: rgba(148, 163, 184, 0.16);
}

.chip.primary {
  background: rgba(37, 99, 235, 0.3);
  color: #dbeafe;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.preview-column,
.preview-sidebar {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.preview-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}

.preview-panel strong,
.preview-panel h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
}

.preview-panel p {
  margin: 0;
  color: rgba(226, 232, 240, 0.76);
  font-size: 13px;
}

.preview-message-list,
.preview-rows,
.nav-collection,
.security-list,
.table-rows,
.settings-list,
.mini-stack {
  display: grid;
  gap: 10px;
}

.preview-message,
.preview-row,
.security-item,
.table-row,
.settings-item,
.list-row,
.conversation,
.notice,
.portal-strip,
.download-card,
.auth-card,
.metric-card,
.panel,
.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.preview-message,
.preview-row {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.12);
  padding: 12px;
}

.preview-message b,
.preview-row b {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.preview-message span,
.preview-row span {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.76);
}

.section-band {
  padding: 28px 0 12px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
}

.metrics-grid,
.matrix-grid,
.download-grid,
.auth-grid,
.portal-grid,
.insight-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.metric-card,
.download-card,
.auth-card,
.panel,
.side-panel {
  padding: 18px;
}

.metric-card span,
.download-card span,
.panel-meta,
.muted,
.list-row small,
.table-row small {
  color: var(--text-soft);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 24%),
    linear-gradient(180deg, #f4f8ff 0%, #eff4fb 100%);
}

.auth-shell {
  width: min(1180px, calc(100% - 48px));
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 22px;
  align-items: stretch;
}

.auth-side,
.auth-card {
  padding: 28px;
}

.auth-side {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
  color: #f8fafc;
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
}

.auth-side p {
  color: rgba(226, 232, 240, 0.78);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-card h2,
.panel h3,
.side-panel h3,
.download-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.panel p,
.side-panel p,
.download-card p,
.auth-card p {
  margin: 0;
}

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

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

.field label {
  font-size: 13px;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea,
.composer input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.hint {
  font-size: 12px;
  color: var(--text-soft);
}

.status {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.status.ok {
  color: #0f9f61;
  background: #dcfce7;
}

.status.warn {
  color: #b45309;
  background: #ffedd5;
}

.status.info {
  color: #1d4ed8;
  background: #dbeafe;
}

.status.danger {
  color: #b91c1c;
  background: #fee2e2;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  background: #eef3f9;
}

.portal-nav {
  background: #0f172a;
  color: #f8fafc;
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
}

.portal-nav .brand-copy span,
.portal-nav .muted,
.portal-nav button,
.portal-nav p {
  color: rgba(226, 232, 240, 0.78);
}

.portal-nav button {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.portal-nav button span {
  flex: 1;
}

.portal-nav button.active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(96, 165, 250, 0.24);
  color: #fff;
}

.portal-main {
  padding: 18px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 226, 240, 0.9);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.portal-topbar h1,
.portal-topbar p,
.panel h3,
.side-panel h3 {
  margin: 0;
}

.portal-topbar h1 {
  font-size: 24px;
}

.portal-content {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-section {
  display: grid;
  gap: 14px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-header p {
  color: var(--text-soft);
}

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

.panel {
  padding: 18px;
}

.list-row,
.table-row,
.settings-item,
.security-item,
.notice,
.portal-strip {
  padding: 14px 16px;
}

.table-row,
.security-item,
.settings-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.list-row strong,
.table-row strong,
.settings-item strong,
.security-item strong {
  display: block;
  margin-bottom: 4px;
}

.portal-aside {
  background: rgba(246, 249, 253, 0.82);
  border-left: 1px solid rgba(217, 226, 240, 0.88);
  padding: 18px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.side-panel {
  padding: 18px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}

.qr-card {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.qr-box {
  width: 168px;
  aspect-ratio: 1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #0f172a 0 16px, transparent 16px 24px, #0f172a 24px 40px, transparent 40px 52px, #0f172a 52px 72px, transparent 72px 88px, #0f172a 88px 104px, transparent 104px 120px, #0f172a 120px 136px, transparent 136px 152px, #0f172a 152px 168px),
    linear-gradient(#0f172a 0 16px, transparent 16px 24px, #0f172a 24px 40px, transparent 40px 52px, #0f172a 52px 72px, transparent 72px 88px, #0f172a 88px 104px, transparent 104px 120px, #0f172a 120px 136px, transparent 136px 152px, #0f172a 152px 168px);
  position: relative;
  overflow: hidden;
}

.qr-box::after {
  content: attr(data-initials);
  position: absolute;
  inset: 56px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 26px;
  border-radius: 8px;
}

.conversation-list,
.message-stream {
  display: grid;
  gap: 10px;
}

.conversation {
  padding: 14px 16px;
}

.conversation.active {
  border-color: rgba(37, 99, 235, 0.4);
  background: #eef5ff;
}

.message-stream {
  max-height: 320px;
  overflow: auto;
}

.message {
  padding: 14px;
  border-radius: var(--radius);
  background: #f8fbff;
  border: 1px solid #dde7f5;
}

.message.mine {
  background: #dbeafe;
  border-color: #bfdbfe;
}

.message strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.doc-layout,
.drive-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 14px;
}

.notification-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
}

.doc-sidebar,
.doc-editor,
.doc-edit-form,
.meeting-form,
.approval-form,
.notification-form,
.drive-sidebar,
.drive-preview,
.drive-form,
.doc-list,
.drive-list,
.notification-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.doc-row,
.drive-row {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
}

.doc-row strong,
.doc-row small,
.doc-row span,
.drive-row strong,
.drive-row small,
.drive-row span {
  display: block;
}

.doc-row strong,
.drive-row strong {
  margin-bottom: 5px;
}

.doc-row.active,
.drive-row.active {
  border-color: rgba(37, 99, 235, 0.48);
  background: #eef5ff;
}

.doc-editor textarea {
  min-height: 320px;
  line-height: 1.7;
}

.doc-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.drive-preview-box {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.drive-preview-box pre {
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text);
}

.notification-row {
  align-items: start;
}

.notification-row.unread {
  border-color: rgba(37, 99, 235, 0.34);
  background: #f8fbff;
}

.metrics-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.composer input {
  flex: 1;
}

.small-action {
  background: var(--surface-muted);
  color: var(--text);
}

.footer-note {
  padding: 36px 0 52px;
  color: var(--text-soft);
  font-size: 13px;
}

.flash {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-width: 240px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.flash[data-type="warn"] {
  background: rgba(146, 64, 14, 0.96);
}

.flash[data-type="danger"] {
  background: rgba(127, 29, 29, 0.96);
}

.flash.show {
  opacity: 1;
  transform: translateY(0);
}

.empty {
  padding: 24px;
  text-align: center;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.7);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.desktop-only {
  display: inline-flex;
}

@media (max-width: 1180px) {
  .portal-shell {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .portal-aside {
    grid-column: span 2;
    border-left: 0;
    border-top: 1px solid rgba(217, 226, 240, 0.88);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .auth-shell,
  .download-grid,
  .portal-grid,
  .insight-grid,
  .notification-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-nav,
  .portal-aside {
    grid-column: auto;
  }

  .portal-nav {
    grid-template-rows: auto auto auto auto;
  }

  .portal-main {
    padding-top: 8px;
  }

  .portal-aside,
  .panel-grid,
  .doc-layout,
  .drive-layout,
  .doc-subgrid,
  .metrics-grid,
  .matrix-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .container,
  .auth-shell {
    width: min(100%, calc(100% - 28px));
  }

  .top-nav-inner,
  .portal-topbar,
  .panel-header,
  .table-row,
  .security-item,
  .settings-item,
  .composer {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .button-secondary,
  .button-ghost,
  .tab-button {
    width: 100%;
  }

  .nav-actions,
  .download-row,
  .form-actions {
    width: 100%;
  }

  .desktop-only {
    display: none;
  }
}

/* Workspace visual refresh: a quiet, operational design system for dense daily work. */
:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-muted: #eef4f2;
  --surface-strong: #173534;
  --line: #dce5e2;
  --text: #172220;
  --text-soft: #697773;
  --primary: #2676e8;
  --primary-strong: #145fc9;
  --primary-soft: #e8f1ff;
  --success: #09856f;
  --warning: #b56816;
  --danger: #c24c4e;
  --shadow: 0 10px 28px rgba(24, 45, 41, 0.07);
  --radius: 8px;
  --max-width: 1360px;
}

html,
body {
  background: var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

body {
  line-height: 1.45;
}

button,
input,
select,
textarea {
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(38, 118, 232, 0.24);
  outline-offset: 2px;
}

.official-page,
.auth-page {
  background: #f4f7f6;
}

.top-nav {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: #e3e9e7;
}

.top-nav-inner {
  min-height: 68px;
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: #2676e8;
  box-shadow: none;
  font-size: 13px;
}

.brand-copy {
  gap: 1px;
}

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

.brand-copy span {
  font-size: 12px;
}

.button,
.button-secondary,
.button-ghost,
.small-action,
.tab-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.button {
  background: var(--primary);
  box-shadow: 0 6px 14px rgba(38, 118, 232, 0.17);
}

.button:hover,
.button:focus-visible {
  background: var(--primary-strong);
}

.button-secondary {
  background: #ffffff;
  border-color: #d7e1de;
}

.button-secondary:hover,
.button-ghost:hover,
.small-action:hover {
  background: #edf4f2;
  color: var(--text);
}

.button-ghost {
  color: #63706d;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border-color: #d7e1de;
  color: #58706b;
}

.field input,
.field select,
.field textarea,
.composer input {
  min-height: 42px;
  border-color: #d7e1de;
  border-radius: 6px;
  background: #ffffff;
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.composer input:hover {
  border-color: #b8cbc5;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.composer input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(38, 118, 232, 0.12);
  outline: 0;
}

.status {
  min-height: 26px;
  padding: 0 9px;
  font-size: 11px;
}

.status.ok {
  color: #087560;
  background: #dcf5ec;
}

.status.warn {
  color: #9a5913;
  background: #fff0da;
}

.status.info {
  color: #1f67c7;
  background: #e8f1ff;
}

.status.danger {
  color: #a83c42;
  background: #fde8e8;
}

/* Authentication */
.auth-page {
  padding: 32px;
}

.auth-shell {
  width: min(1160px, 100%);
  min-height: 650px;
  grid-template-columns: minmax(0, 1.16fr) minmax(390px, 0.84fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #dce5e2;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-side,
.auth-card {
  border-radius: 0;
  box-shadow: none;
}

.auth-side {
  background: #173534;
  padding: 30px;
  color: #f8fffd;
  grid-template-rows: auto auto 1fr auto;
  gap: 30px;
}

.auth-side .brand-mark {
  background: #4c95ff;
}

.auth-side .brand-copy span,
.auth-side p {
  color: #b9d2ca;
}

.auth-side-top,
.auth-preview-toolbar,
.portal-topbar,
.portal-actions,
.portal-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-side-status,
.portal-presence {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.auth-side-status {
  color: #bceedd;
  background: rgba(117, 221, 184, 0.12);
  border: 1px solid rgba(117, 221, 184, 0.2);
}

.auth-copy {
  display: grid;
  gap: 12px;
  max-width: 500px;
}

.auth-copy .eyebrow {
  color: #89c6ff;
}

.auth-copy h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.auth-copy p:last-child {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
}

.auth-workspace-preview {
  align-self: end;
  display: grid;
  gap: 18px;
  padding: 18px;
  background: #f5fbf8;
  color: #1b302d;
  border: 1px solid rgba(190, 223, 212, 0.7);
  border-radius: 8px;
}

.auth-preview-toolbar {
  font-size: 13px;
  font-weight: 800;
}

.auth-preview-live {
  color: #087560;
  font-size: 11px;
  font-weight: 700;
}

.auth-preview-live i,
.portal-presence span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14a485;
}

.auth-preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-preview-metrics div {
  display: grid;
  gap: 5px;
  padding: 11px;
  background: #ffffff;
  border: 1px solid #dceae4;
  border-radius: 6px;
}

.auth-preview-metrics strong {
  font-size: 20px;
}

.auth-preview-metrics span,
.auth-preview-list small {
  color: #6b7d78;
  font-size: 11px;
}

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

.auth-preview-list > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 6px;
}

.auth-preview-list b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-check,
.preview-avatar {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #aacac0;
  border-radius: 5px;
}

.preview-check.done {
  background: #14a485;
  border-color: #14a485;
}

.preview-check.done::after {
  content: "";
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.preview-avatar {
  border: 0;
  background: #e9edff;
  color: #5266c8;
  font-size: 8px;
  font-weight: 800;
}

.auth-side-footnote {
  margin: 0;
  color: #a8c0b9;
  font-size: 12px;
}

.auth-card {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 42px;
  background: #ffffff;
}

.auth-card h2 {
  margin-bottom: 5px;
  font-size: 28px;
}

.auth-card .panel-meta {
  max-width: 360px;
  color: #6b7874;
  font-size: 14px;
  line-height: 1.65;
}

.auth-form {
  gap: 16px;
}

.auth-card .button-row {
  gap: 16px;
}

.auth-card .link-button {
  color: #326fc6;
  font-size: 13px;
}

/* Desktop workspaces */
.portal-shell {
  grid-template-columns: 236px minmax(0, 1fr) 292px;
  min-height: 100vh;
  background: #f5f7f6;
}

.portal-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px;
  overflow: hidden;
  background: #173534;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
}

.portal-nav-header {
  display: grid;
  gap: 18px;
  padding: 2px 4px 0;
}

.portal-nav .brand-mark {
  background: #3b82f6;
}

.workspace-context {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(207, 235, 226, 0.13);
  border-radius: 7px;
}

.workspace-context span,
.workspace-context small {
  color: rgba(228, 242, 237, 0.58);
  font-size: 11px;
}

.workspace-context strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-nav-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 0 2px 6px;
}

.nav-section-label {
  margin: 0 0 7px;
  padding: 0 10px;
  color: rgba(228, 242, 237, 0.48);
  font-size: 11px;
  font-weight: 800;
}

.nav-collection {
  gap: 4px;
}

.portal-nav button {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 6px;
  color: rgba(235, 247, 242, 0.72);
  font-size: 13px;
}

.portal-nav button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.portal-nav button.active {
  background: #286fd7;
  border-color: #286fd7;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.portal-nav button small {
  color: currentColor;
  font-size: 10px;
  font-weight: 700;
  opacity: 0.72;
}

.portal-footer {
  gap: 6px;
  padding: 0 2px;
}

.portal-footer .button-secondary,
.portal-footer .button-ghost {
  min-height: 36px;
  justify-content: flex-start;
  color: rgba(235, 247, 242, 0.72);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.portal-footer .button-secondary:hover,
.portal-footer .button-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.portal-main {
  min-width: 0;
  padding: 26px 28px 42px;
  gap: 20px;
  background: #f5f7f6;
}

.portal-topbar {
  min-height: 64px;
  padding: 0 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dfe7e4;
  border-radius: 0;
}

.portal-heading {
  display: grid;
  gap: 5px;
}

.portal-topbar .eyebrow {
  color: #2d74d6;
  font-size: 12px;
}

.portal-topbar h1 {
  font-size: 27px;
  letter-spacing: 0;
}

.portal-actions {
  flex-wrap: nowrap;
}

.portal-presence {
  color: #53706a;
  background: #e9f1ef;
}

.metrics-grid,
.metrics-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 94px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #dfe7e4;
  border-radius: 8px;
  box-shadow: none;
}

.metric-card span {
  color: #70807b;
  font-size: 12px;
}

.metric-card strong {
  margin-top: 8px;
  color: #172220;
  font-size: 27px;
  line-height: 1;
}

.portal-content {
  gap: 20px;
}

.panel-section {
  gap: 12px;
}

.panel-header {
  align-items: flex-start;
}

.panel-header h3,
.panel h3,
.side-panel h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.panel-header p,
.panel p,
.side-panel p {
  color: #71817c;
  font-size: 13px;
  line-height: 1.55;
}

.panel-grid {
  gap: 16px;
}

.panel,
.side-panel,
.list-row,
.table-row,
.settings-item,
.security-item,
.notice,
.conversation,
.doc-row,
.drive-row {
  border-color: #dfe7e4;
  border-radius: 8px;
}

.panel,
.side-panel {
  padding: 18px;
  background: #ffffff;
  box-shadow: none;
}

.list-row,
.table-row,
.settings-item,
.security-item,
.notice {
  padding: 12px 14px;
  background: #fbfcfb;
}

.table-row,
.security-item,
.settings-item {
  align-items: flex-start;
}

.list-row strong,
.table-row strong,
.settings-item strong,
.security-item strong {
  color: #22322e;
  font-size: 13px;
}

.portal-aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 24px 18px;
  overflow-y: auto;
  background: #ffffff;
  border-left-color: #dfe7e4;
  gap: 14px;
}

.portal-aside .side-panel {
  padding: 16px;
}

.portal-user {
  align-items: flex-start;
  justify-content: flex-start;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  background: #2676e8;
  font-size: 16px;
}

.portal-user h3 {
  margin: 1px 0 3px;
}

.portal-user .chip-row {
  gap: 6px;
}

.qr-card {
  justify-items: stretch;
}

.qr-box {
  width: 156px;
  justify-self: center;
  border: 8px solid #f2f6f4;
}

.qr-box::after {
  border-radius: 6px;
}

.conversation,
.doc-row,
.drive-row {
  padding: 13px 14px;
  background: #ffffff;
}

.conversation:hover,
.doc-row:hover,
.drive-row:hover {
  border-color: #bad3cb;
  background: #f8fbfa;
}

.conversation.active,
.doc-row.active,
.drive-row.active {
  border-color: #77a6ef;
  background: #eff6ff;
}

.message {
  border-color: #deebe7;
  border-radius: 8px;
  background: #f7fbf9;
}

.message.mine {
  background: #e8f1ff;
  border-color: #c9dcf8;
}

.doc-layout,
.drive-layout,
.notification-layout {
  gap: 16px;
}

.doc-sidebar,
.drive-sidebar {
  background: #ffffff;
}

.drive-preview-box {
  border-color: #dfe7e4;
  border-radius: 8px;
  background: #f8fbfa;
}

.flash {
  right: 24px;
  bottom: 24px;
  border-radius: 8px;
  background: #173534;
  box-shadow: 0 12px 30px rgba(21, 45, 41, 0.22);
}

@media (max-width: 1360px) {
  .portal-shell {
    grid-template-columns: 220px minmax(0, 1fr) 266px;
  }

  .portal-main {
    padding-right: 22px;
    padding-left: 22px;
  }
}

@media (max-width: 1180px) {
  .portal-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .portal-aside {
    position: static;
    grid-column: span 2;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 18px 22px 24px;
    border-top: 1px solid #dfe7e4;
    border-left: 0;
  }

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

@media (max-width: 900px) {
  .auth-page {
    padding: 18px;
  }

  .auth-shell {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding: 24px;
    gap: 18px;
  }

  .auth-workspace-preview {
    display: none;
  }

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

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    position: sticky;
    z-index: 20;
    height: auto;
    padding: 12px 14px;
    grid-template-rows: auto auto auto;
    gap: 10px;
  }

  .portal-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
  }

  .workspace-context {
    max-width: min(48vw, 260px);
    padding: 8px 10px;
  }

  .workspace-context span,
  .workspace-context small {
    display: none;
  }

  .portal-nav-scroll {
    overflow: visible;
    padding: 0;
  }

  .nav-section-label {
    display: none;
  }

  .nav-collection {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-collection::-webkit-scrollbar {
    display: none;
  }

  .portal-nav button {
    width: auto;
    min-width: max-content;
    min-height: 36px;
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  .portal-nav button small {
    display: none;
  }

  .portal-footer {
    display: flex;
    gap: 6px;
    padding: 0;
  }

  .portal-footer .button-secondary,
  .portal-footer .button-ghost {
    width: auto;
    min-height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .portal-main {
    padding: 20px 16px 28px;
  }

  .portal-aside {
    grid-column: auto;
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .portal-topbar {
    align-items: flex-start;
  }

  .portal-topbar h1 {
    font-size: 23px;
  }

  .portal-actions {
    align-items: flex-end;
  }

  .portal-presence {
    display: none;
  }

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

  .metric-card {
    min-height: 82px;
  }

  .doc-layout,
  .drive-layout,
  .notification-layout,
  .doc-subgrid,
  .panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .auth-side-top,
  .portal-topbar,
  .panel-header,
  .table-row,
  .security-item,
  .settings-item,
  .composer {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-copy h1 {
    font-size: 30px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-card .button,
  .auth-card .button-secondary,
  .auth-card .form-actions {
    width: 100%;
  }

  .portal-nav-header .brand-copy span {
    display: none;
  }

  .workspace-context {
    max-width: 44vw;
  }

  .portal-actions .button {
    min-width: 38px;
    padding: 0 10px;
  }

  .portal-actions .button i {
    margin: 0;
  }

  .portal-actions .button {
    font-size: 0;
  }

  .portal-actions .button i {
    font-size: initial;
  }

  .metric-card strong {
    font-size: 24px;
  }
}

/* Focused collaboration workspace: one primary task per screen. */
:root {
  --office-canvas: #f7f8fa;
  --office-surface: #ffffff;
  --office-line: #e5e7eb;
  --office-text: #1f2329;
  --office-soft: #646a73;
  --office-blue: #3370ff;
  --office-blue-soft: #eef4ff;
  --office-green: #14966b;
  --office-warm: #b7791f;
}

.portal-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--office-canvas);
}

.portal-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px 14px;
  gap: 18px;
  background: var(--office-surface);
  border-right: 1px solid var(--office-line);
  box-shadow: none;
}

.portal-nav-header {
  gap: 16px;
  padding: 2px 4px 0;
}

.portal-nav .brand {
  gap: 10px;
}

.portal-nav .brand-mark {
  width: 34px;
  height: 34px;
  background: var(--office-blue);
  border-radius: 7px;
  box-shadow: none;
  font-size: 12px;
}

.portal-nav .brand-copy strong {
  color: var(--office-text);
  font-size: 14px;
}

.portal-nav .brand-copy span {
  color: #89909a;
  font-size: 11px;
}

.workspace-context {
  gap: 3px;
  padding: 10px 11px;
  background: #f6f7f9;
  border: 1px solid #edf0f2;
  border-radius: 7px;
}

.workspace-context span,
.workspace-context small {
  color: #8a919a;
  font-size: 11px;
}

.workspace-context strong {
  color: #3b4148;
  font-size: 12px;
}

.portal-nav-scroll {
  padding: 0 2px 4px;
}

.nav-section-label {
  margin-bottom: 7px;
  padding: 0 10px;
  color: #9aa1aa;
  font-size: 11px;
}

.nav-collection {
  gap: 3px;
}

.portal-nav button {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #555d66;
  font-size: 13px;
  font-weight: 600;
}

.portal-nav button i {
  width: 18px;
  height: 18px;
  color: #7b838d;
}

.portal-nav button:hover {
  background: #f3f5f7;
  color: var(--office-text);
}

.portal-nav button:hover i {
  color: var(--office-text);
}

.portal-nav button.active {
  background: var(--office-blue-soft);
  color: #245bd8;
  box-shadow: none;
}

.portal-nav button.active i {
  color: var(--office-blue);
}

.portal-footer {
  padding: 2px;
}

.portal-footer .button-ghost {
  justify-content: flex-start;
  color: #7b838d;
  background: transparent;
  box-shadow: none;
}

.portal-footer .button-ghost:hover {
  background: #f5f6f8;
  color: #3d444c;
}

.portal-main {
  display: block;
  min-width: 0;
  padding: 0;
  background: var(--office-canvas);
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  padding: 0 30px;
  background: var(--office-surface);
  border: 0;
  border-bottom: 1px solid var(--office-line);
  border-radius: 0;
}

.portal-heading {
  gap: 2px;
}

.portal-topbar .eyebrow {
  color: #8b929c;
  font-size: 11px;
  font-weight: 700;
}

.portal-topbar h1 {
  color: var(--office-text);
  font-size: 20px;
  font-weight: 700;
}

.portal-actions {
  gap: 8px;
}

.portal-actions .button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--office-blue);
  box-shadow: none;
  font-size: 13px;
}

.portal-actions .button:hover {
  background: #285fe0;
}

.portal-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #e8ebef;
  border-radius: 6px;
  background: #ffffff;
  color: #5f6670;
  box-shadow: none;
}

.portal-icon-button:hover {
  border-color: #cdd9fb;
  background: var(--office-blue-soft);
  color: var(--office-blue);
}

.portal-icon-button i {
  width: 17px;
  height: 17px;
}

.metrics-grid,
.portal-aside {
  display: none;
}

.portal-content {
  display: block;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 30px 48px;
}

.panel,
.side-panel {
  padding: 20px;
  background: var(--office-surface);
  border: 1px solid var(--office-line);
  border-radius: 8px;
  box-shadow: none;
}

.panel-grid,
.doc-layout,
.drive-layout,
.notification-layout {
  gap: 16px;
}

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

.panel-header {
  gap: 14px;
  margin-bottom: 16px;
}

.panel-header h3,
.panel h3 {
  color: var(--office-text);
  font-size: 16px;
  font-weight: 700;
}

.panel-header p,
.panel p {
  color: var(--office-soft);
  font-size: 13px;
  line-height: 1.55;
}

.list-row,
.table-row,
.settings-item,
.security-item,
.notice {
  padding: 12px 13px;
  border-color: #eceef1;
  border-radius: 6px;
  background: #ffffff;
}

.list-row:hover,
.table-row:hover {
  border-color: #d7dce3;
  background: #fbfcfd;
}

.list-row strong,
.table-row strong,
.settings-item strong,
.security-item strong {
  color: #2a3038;
  font-size: 13px;
}

.list-row small,
.table-row small,
.settings-item small,
.security-item small {
  color: #7a828d;
}

.status.info {
  background: #edf4ff;
  color: #3d70d8;
}

.status.ok {
  background: #eaf8f1;
  color: #16845f;
}

.status.warn {
  background: #fff6e8;
  color: #a86413;
}

.status.danger {
  background: #fff0f0;
  color: #c34a4a;
}

.button-secondary,
.button-ghost {
  border-radius: 6px;
  box-shadow: none;
}

.workday-page,
.manager-workday,
.member-page {
  display: grid;
  gap: 16px;
}

.workday-hero {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  background: #ffffff;
  border: 1px solid var(--office-line);
  border-radius: 8px;
}

.workday-hero .eyebrow {
  margin-bottom: 6px;
  color: var(--office-blue);
  font-size: 12px;
  font-weight: 700;
}

.workday-hero h2 {
  color: var(--office-text);
  font-size: 24px;
  line-height: 1.3;
}

.workday-hero p:not(.eyebrow) {
  margin-top: 7px;
  color: var(--office-soft);
  font-size: 13px;
}

.workday-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workday-actions .button,
.workday-actions .button-secondary {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.workday-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.workday-panel {
  min-width: 0;
}

.workday-panel--todos,
.workday-panel--docs {
  grid-column: 1;
}

.workday-panel--schedule,
.workday-panel--apps {
  grid-column: 2;
}

.section-link {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3671df;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.section-link:hover {
  background: transparent;
  color: #174eb9;
}

.agenda-list,
.shortcut-grid {
  display: grid;
  gap: 8px;
}

.agenda-row,
.recent-doc-row,
.app-shortcut {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid #eceef1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--office-text);
  text-align: left;
  box-shadow: none;
}

.agenda-row:hover,
.recent-doc-row:hover,
.app-shortcut:hover {
  border-color: #cfdbfb;
  background: #f8faff;
}

.agenda-row > span {
  width: 64px;
  flex: 0 0 64px;
  color: #5c7fcb;
  font-size: 12px;
  font-weight: 700;
}

.agenda-row div,
.recent-doc-row div,
.app-shortcut > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.agenda-row strong,
.recent-doc-row strong,
.app-shortcut strong {
  overflow: hidden;
  color: #2a3038;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agenda-row small,
.recent-doc-row small,
.app-shortcut small {
  overflow: hidden;
  color: #7a828d;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-doc-row > i {
  width: 18px;
  height: 18px;
  color: #5974bd;
}

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

.app-shortcut {
  min-height: 70px;
  align-items: flex-start;
}

.app-shortcut-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #edf4ff;
  color: var(--office-blue);
}

.app-shortcut-icon i {
  width: 16px;
  height: 16px;
}

.portal-content--messages .panel-grid {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
}

.portal-content--messages .panel:first-child {
  min-height: 620px;
}

.conversation,
.doc-row,
.drive-row {
  border-color: #eceef1;
  border-radius: 6px;
  background: #ffffff;
}

.conversation.active,
.doc-row.active,
.drive-row.active {
  border-color: #cddafb;
  background: #f4f7ff;
}

.message {
  border-color: #edf0f2;
  border-radius: 7px;
  background: #f8f9fb;
}

.message.mine {
  border-color: #d6e2ff;
  background: #eef4ff;
}

.manager-workday-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: 16px;
  align-items: start;
}

.manager-summary-actions {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}

.member-page-header {
  padding-bottom: 16px;
}

.member-count {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #5470a5;
  font-size: 12px;
  font-weight: 700;
}

.inline-disclosure {
  margin-top: 2px;
  border-top: 1px solid #eef0f2;
}

.inline-disclosure summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3671df;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.inline-disclosure summary::-webkit-details-marker {
  display: none;
}

.inline-disclosure[open] summary {
  margin-bottom: 12px;
}

.inline-disclosure .employee-form {
  padding-bottom: 2px;
}

.member-list-panel {
  padding: 0;
  overflow: hidden;
}

.member-list-panel .table-row {
  min-height: 64px;
  padding: 14px 18px;
  border-width: 0 0 1px;
  border-radius: 0;
}

.member-list-panel .table-row:last-child {
  border-bottom: 0;
}

.member-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 4px;
}

.member-workspace-header .eyebrow {
  margin-bottom: 5px;
  color: var(--office-blue);
  font-size: 12px;
  font-weight: 700;
}

.member-workspace-header h2 {
  margin: 0;
  color: #252b33;
  font-size: 22px;
  line-height: 1.35;
}

.member-workspace-header p:not(.eyebrow) {
  margin: 6px 0 0;
  color: #7d8792;
  font-size: 13px;
}

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

.member-directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.member-filter-bar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(132px, 0.36fr) minmax(116px, 0.3fr) auto;
  gap: 8px;
  align-items: center;
}

.member-search-field,
.member-select-field {
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  background: #fff;
}

.member-search-field {
  gap: 8px;
  padding: 0 10px;
}

.member-search-field:focus-within,
.member-select-field:focus-within {
  border-color: #80a7ef;
  box-shadow: 0 0 0 2px rgba(70, 121, 219, 0.12);
}

.member-search-field > i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #8b949e;
}

.member-search-field input,
.member-select-field select {
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #3d4650;
  font-size: 13px;
}

.member-search-field input::placeholder {
  color: #9da5ae;
}

.member-select-field select {
  padding: 0 9px;
}

.member-filter-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-filter-actions .icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  background: #fff;
  color: #687481;
}

.member-filter-actions .icon-button:hover {
  border-color: #afc7f3;
  background: #f5f8ff;
  color: #356acb;
}

.member-filter-actions .member-search-submit {
  border-color: #3977dd;
  background: #3977dd;
  color: #fff;
}

.member-filter-actions .member-search-submit:hover {
  border-color: #2767cf;
  background: #2767cf;
  color: #fff;
}

.member-invite-panel {
  min-height: 36px;
  position: relative;
}

.member-invite-panel summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 6px;
  background: #3977dd;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.member-invite-panel summary::-webkit-details-marker {
  display: none;
}

.member-invite-panel summary:hover {
  background: #2767cf;
}

.member-invite-panel summary i {
  width: 15px;
  height: 15px;
}

.member-invite-panel[open] {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid #dfe4ea;
  border-radius: 6px;
  background: #fbfcfe;
}

.member-invite-panel[open] summary {
  width: max-content;
  margin-bottom: 13px;
}

.member-invite-panel .employee-form {
  display: grid;
  gap: 12px;
}

.member-invite-panel .composer {
  margin-top: 0;
}

.invite-code-dialog {
  width: min(420px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(31, 46, 69, 0.2);
}

.invite-code-dialog::backdrop {
  background: rgba(30, 41, 59, 0.36);
}

.invite-code-dialog-content {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.invite-code-dialog-content h2 {
  margin: 0;
  color: #252b33;
  font-size: 18px;
  line-height: 1.35;
}

.invite-code-value {
  min-width: 0;
  display: block;
  padding: 14px;
  border: 1px solid #cfe0fb;
  border-radius: 6px;
  background: #f5f8ff;
  color: #235aa9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  user-select: all;
}

.invite-code-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.invite-code-dialog-actions button {
  min-height: 36px;
  white-space: nowrap;
}

.invite-code-dialog-actions i {
  width: 16px;
  height: 16px;
}

.member-list-panel {
  padding: 0;
  overflow: hidden;
}

.member-table-heading,
.member-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.65fr) minmax(135px, 0.92fr) minmax(170px, 1.16fr) minmax(82px, 0.48fr) minmax(78px, 0.5fr);
  column-gap: 16px;
  align-items: center;
}

.member-table-heading {
  min-height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f3;
  background: #fafbfd;
  color: #8a939d;
  font-size: 12px;
  font-weight: 700;
}

.member-table-heading > span:last-child {
  text-align: right;
}

.member-table {
  display: grid;
}

.member-row {
  min-height: 76px;
  padding: 11px 18px;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

.member-row:last-child {
  border-bottom: 0;
}

.member-row:hover {
  background: #fafcff;
}

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

.member-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.member-avatar--0 {
  background: #e7f0ff;
  color: #4270c9;
}

.member-avatar--1 {
  background: #eaf8f1;
  color: #198163;
}

.member-avatar--2 {
  background: #fff2e5;
  color: #aa681e;
}

.member-avatar--3 {
  background: #fbeef1;
  color: #b15366;
}

.member-avatar--4 {
  background: #edf0f5;
  color: #677384;
}

.member-identity > div,
.member-detail,
.member-state {
  min-width: 0;
}

.member-identity > div {
  display: grid;
  gap: 2px;
}

.member-identity strong {
  overflow: hidden;
  color: #303840;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-identity small {
  overflow: hidden;
  color: #85909b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-detail,
.member-state {
  overflow: hidden;
  color: #596571;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-detail-label {
  display: none;
}

.member-row-actions {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.member-action-button {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 12px;
}

.member-action-button i {
  width: 14px;
  height: 14px;
}

.member-action-placeholder {
  color: #a2aab3;
  font-size: 13px;
}

.member-empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 0;
  background: #fff;
}

.enterprise-app-layout .list-row {
  align-items: center;
}

.auth-page {
  min-height: 100vh;
  padding: 34px;
  background: #f5f7fb;
}

.auth-shell {
  width: min(980px, 100%);
  min-height: 590px;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
  border: 1px solid #e5e8ef;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(31, 46, 78, 0.08);
}

.auth-side {
  padding: 40px;
  background: #17253f;
}

.auth-copy {
  max-width: 390px;
}

.auth-copy h1 {
  font-size: 34px;
  line-height: 1.28;
}

.auth-side-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: start;
  align-items: center;
  height: auto;
}

.auth-side-list span {
  height: 28px;
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(229, 239, 255, 0.18);
  border-radius: 999px;
  color: #d6e3f7;
  font-size: 12px;
}

.auth-card {
  padding: 42px;
}

@media (max-width: 960px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    position: sticky;
    z-index: 20;
    height: auto;
    padding: 12px 16px 10px;
    grid-template-rows: auto auto auto;
    background: #ffffff;
  }

  .portal-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }

  .workspace-context {
    max-width: 48vw;
    padding: 7px 9px;
  }

  .workspace-context span,
  .workspace-context small,
  .nav-section-label {
    display: none;
  }

  .portal-nav-scroll {
    overflow: visible;
    padding: 0;
  }

  .nav-collection {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .nav-collection::-webkit-scrollbar {
    display: none;
  }

  .portal-nav button {
    width: auto;
    min-width: max-content;
    flex: 0 0 auto;
    min-height: 34px;
  }

  .portal-footer {
    display: none;
  }

  .portal-topbar {
    position: static;
    padding: 0 18px;
  }

  .portal-content {
    padding: 20px 18px 32px;
  }

  .workday-grid,
  .manager-workday-grid,
  .portal-content--messages .panel-grid {
    grid-template-columns: 1fr;
  }

  .workday-panel--todos,
  .workday-panel--docs,
  .workday-panel--schedule,
  .workday-panel--apps {
    grid-column: auto;
  }

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

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side {
    min-height: 250px;
  }
}

@media (max-width: 620px) {
  .portal-topbar {
    min-height: 60px;
    padding: 0 14px;
  }

  .portal-topbar h1 {
    font-size: 18px;
  }

  .portal-actions .button {
    min-width: 34px;
    padding: 0 9px;
    font-size: 0;
  }

  .portal-actions .button i {
    margin: 0;
    font-size: initial;
  }

  .portal-content {
    padding: 14px 12px 28px;
  }

  .panel,
  .side-panel {
    padding: 16px;
  }

  .workday-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 19px;
  }

  .workday-hero h2 {
    font-size: 21px;
  }

  .workday-actions {
    width: 100%;
    justify-content: flex-start;
  }

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

  .auth-page {
    padding: 0;
  }

  .auth-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .auth-side,
  .auth-card {
    padding: 26px 20px;
  }

  .auth-copy h1 {
    font-size: 28px;
  }
}

/* Office workspace V2: an application frame with one clear work surface. */
.portal-shell {
  grid-template-columns: 72px minmax(0, 1fr);
  background: #f7f8fa;
}

.portal-nav.portal-rail {
  width: 72px;
  min-width: 72px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  overflow: visible;
  background: #ffffff;
  border-right: 1px solid #e8ebef;
}

.portal-rail .portal-nav-header,
.portal-rail .portal-nav-scroll,
.portal-rail .portal-footer {
  width: 100%;
  padding: 0;
}

.portal-rail .portal-nav-header {
  display: flex;
  justify-content: center;
}

.portal-rail .brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.portal-rail .brand-copy,
.portal-rail .workspace-context,
.portal-rail .nav-section-label,
.portal-rail button span {
  display: none;
}

.portal-rail .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #3370ff;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.portal-rail .portal-nav-scroll {
  flex: 1 1 auto;
  overflow: visible;
}

.portal-rail .nav-collection {
  display: grid;
  justify-items: center;
  gap: 8px;
  overflow: visible;
}

.portal-rail button {
  position: relative;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  color: #68707a;
}

.portal-rail button i {
  width: 19px;
  height: 19px;
  color: inherit;
}

.portal-rail button.active {
  background: #eaf1ff;
  color: #2764ef;
}

.portal-rail button:hover {
  background: #f1f3f5;
  color: #24292f;
}

.portal-rail button.active:hover {
  background: #e4edff;
  color: #2764ef;
}

.portal-rail button::after {
  position: absolute;
  left: calc(100% + 10px);
  z-index: 40;
  min-width: max-content;
  padding: 6px 9px;
  border-radius: 6px;
  background: #1f2329;
  color: #ffffff;
  content: attr(title);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.portal-rail button:hover::after,
.portal-rail button:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.portal-rail .portal-footer {
  display: flex;
  justify-content: center;
}

.portal-rail .portal-footer .button-ghost {
  background: transparent;
  color: #88919c;
}

.portal-main {
  min-height: 100vh;
  background: #f7f8fa;
}

.portal-topbar {
  min-height: 62px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8ebef;
}

.portal-topbar .eyebrow {
  display: none;
}

.portal-topbar h1 {
  font-size: 18px;
  font-weight: 700;
}

.portal-content {
  width: min(1140px, 100%);
  padding: 26px 32px 44px;
}

.panel {
  border-color: #e6e9ee;
  border-radius: 8px;
}

.today-workspace,
.manager-workspace {
  display: grid;
  gap: 18px;
}

.today-workspace-header,
.manager-workspace-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 3px 2px;
}

.today-workspace-header .eyebrow,
.manager-workspace-header .eyebrow {
  margin-bottom: 5px;
  color: #3370ff;
  font-size: 12px;
  font-weight: 700;
}

.manager-workspace-header .eyebrow {
  color: #16866d;
}

.today-workspace-header h2,
.manager-workspace-header h2 {
  color: #1f2329;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.today-workspace-header p:not(.eyebrow),
.manager-workspace-header p:not(.eyebrow) {
  margin-top: 6px;
  color: #737b86;
  font-size: 13px;
}

.today-workspace-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.today-workspace-actions .button,
.today-workspace-actions .button-secondary {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
}

.today-workspace-grid,
.manager-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(300px, 0.74fr);
  gap: 16px;
  align-items: start;
}

.focus-task-panel,
.day-agenda-panel,
.manager-tasks-panel,
.manager-summary-panel {
  min-width: 0;
  padding: 18px 20px;
}

.focus-task-panel .panel-header,
.day-agenda-panel .panel-header,
.manager-tasks-panel .panel-header,
.manager-summary-panel .panel-header {
  margin-bottom: 12px;
}

.focus-task-panel .panel-header h3,
.day-agenda-panel .panel-header h3,
.manager-tasks-panel .panel-header h3,
.manager-summary-panel .panel-header h3 {
  font-size: 16px;
}

.focus-task-list {
  display: grid;
}

.focus-task-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f3;
}

.focus-task-row:last-child {
  border-bottom: 0;
}

.focus-task-row > i {
  width: 18px;
  height: 18px;
  color: #7f9fe8;
}

.focus-task-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.focus-task-copy b {
  overflow: hidden;
  color: #2a3038;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-task-copy span {
  overflow: hidden;
  color: #7a828d;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-task-row > small {
  color: #87909b;
  font-size: 11px;
  white-space: nowrap;
}

.focus-task-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.focus-task-actions .button-secondary,
.focus-task-actions .button-ghost {
  min-height: 29px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 12px;
}

.day-agenda-panel .agenda-list {
  gap: 0;
}

.day-agenda-panel .agenda-row {
  min-height: 62px;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
}

.day-agenda-panel .agenda-row:last-child {
  border-bottom: 0;
}

.day-agenda-panel .agenda-row:hover {
  background: transparent;
}

.day-agenda-panel .agenda-row > span {
  width: 52px;
  flex-basis: 52px;
  color: #5b7bc2;
}

.today-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e5e8ed;
  border-bottom: 1px solid #e5e8ed;
}

.today-quick-links button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid #e5e8ed;
  border-radius: 0;
  background: transparent;
  color: #59636f;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.today-quick-links button:last-child {
  border-right: 0;
}

.today-quick-links button:hover {
  background: #ffffff;
  color: #2d68ed;
}

.today-quick-links button i {
  width: 17px;
  height: 17px;
  color: #5f83d5;
}

.organization-status-list {
  display: grid;
}

.organization-status-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 14px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: transparent;
  color: #30363e;
  text-align: left;
  box-shadow: none;
}

.organization-status-list button:last-child {
  border-bottom: 0;
}

.organization-status-list button:hover {
  background: transparent;
  color: #2764ef;
}

.organization-status-list span {
  font-size: 13px;
  font-weight: 700;
}

.organization-status-list strong {
  grid-row: span 2;
  grid-column: 2;
  color: #2a3038;
  font-size: 16px;
}

.organization-status-list small {
  color: #89919b;
  font-size: 11px;
}

.management-alert-list {
  display: grid;
  gap: 0;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #edf0f3;
}

.management-alert-list .eyebrow {
  margin-bottom: 5px;
  color: #a86d12;
  font-size: 11px;
  font-weight: 700;
}

.management-alert-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  border-radius: 0;
  background: transparent;
  color: #4d5560;
  text-align: left;
  box-shadow: none;
}

.management-alert-row:last-child {
  border-bottom: 0;
}

.management-alert-row i {
  width: 16px;
  height: 16px;
  color: #c48724;
}

.management-alert-row span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-alert-row small {
  grid-column: 2;
  overflow: hidden;
  color: #89919b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-content--messages {
  width: 100%;
  max-width: none;
  height: calc(100vh - 62px);
  padding: 0;
}

.portal-content--messages .panel-grid {
  height: 100%;
  grid-template-columns: minmax(278px, 0.3fr) minmax(0, 0.7fr);
  gap: 0;
}

.portal-content--messages .panel-grid > .panel {
  min-height: 0;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.portal-content--messages .panel-grid > .panel:first-child {
  min-height: 0;
  border-right: 1px solid #e6e9ee;
}

.portal-content--messages .conversation-list,
.portal-content--messages .message-stream {
  scrollbar-color: #d5d9e0 transparent;
}

@media (max-width: 960px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-nav.portal-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    width: auto;
    min-width: 0;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 14px;
  }

  .portal-rail .portal-nav-header {
    width: auto;
  }

  .portal-rail .portal-nav-scroll {
    width: auto;
    min-width: 0;
  }

  .portal-rail .nav-collection {
    display: flex;
    justify-items: unset;
    gap: 4px;
    overflow-x: auto;
  }

  .portal-rail button {
    width: auto;
    min-width: max-content;
    height: 34px;
    min-height: 34px;
    gap: 6px;
    padding: 0 9px;
    border-radius: 6px;
  }

  .portal-rail button span {
    display: inline;
  }

  .portal-rail button::after,
  .portal-rail .portal-footer {
    display: none;
  }

  .portal-topbar {
    position: static;
    padding: 0 18px;
  }

  .portal-content {
    padding: 20px 18px 32px;
  }

  .portal-content--messages {
    height: auto;
    padding: 0;
  }

  .portal-content--messages .panel-grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .portal-content--messages .panel-grid > .panel:first-child {
    border-right: 0;
    border-bottom: 1px solid #e6e9ee;
  }

  .today-workspace-grid,
  .manager-workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .portal-content {
    padding: 16px 12px 28px;
  }

  .today-workspace-header,
  .manager-workspace-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .today-workspace-header h2,
  .manager-workspace-header h2 {
    font-size: 21px;
  }

  .today-workspace-actions {
    justify-content: flex-start;
  }

  .focus-task-row {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
  }

  .focus-task-row > small,
  .focus-task-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

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

  .today-quick-links button:nth-child(2) {
    border-right: 0;
  }

  .today-quick-links button:nth-child(-n + 2) {
    border-bottom: 1px solid #e5e8ed;
  }
}

/* Meeting creation is a compact scheduling surface, not a second card inside the calendar panel. */
.calendar-meeting-grid {
  align-items: start;
}

.meeting-form {
  gap: 16px;
}

.meeting-time-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr);
}

.meeting-mode-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.meeting-mode-fieldset legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #68736f;
  font-size: 12px;
  font-weight: 700;
}

.meeting-mode-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.meeting-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.meeting-mode-option span {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #d7e1de;
  border-radius: 6px;
  color: #52615d;
  font-size: 13px;
  font-weight: 700;
}

.meeting-mode-option i,
.meeting-recording-toggle i {
  width: 16px;
  height: 16px;
}

.meeting-mode-option input:checked + span {
  border-color: #2676e8;
  background: #edf5ff;
  color: #1f67c7;
}

.meeting-mode-option input:focus-visible + span {
  outline: 3px solid rgba(38, 118, 232, 0.18);
  outline-offset: 2px;
}

.meeting-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.meeting-recording-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  color: #596763;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.meeting-recording-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2676e8;
}

.meeting-recording-toggle span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.meeting-row {
  align-items: flex-start;
}

.meeting-row > div {
  min-width: 0;
}

.meeting-row small {
  display: block;
}

.meeting-agenda {
  margin-top: 4px;
  color: #75817d;
}

.meeting-action-danger {
  border-color: #efc8c8;
  color: #ab4a4f;
}

.meeting-action-danger:hover,
.meeting-action-danger:focus-visible {
  border-color: #d89094;
  background: #fff2f2;
  color: #93393e;
}

@media (max-width: 620px) {
  .meeting-time-grid,
  .meeting-mode-fieldset {
    grid-template-columns: 1fr;
  }

  .meeting-form-footer {
    align-items: stretch;
  }

  .meeting-form-footer .button {
    width: 100%;
  }

  .meeting-row {
    gap: 10px;
  }
}

/* Unified product surface: public site and PC workspace share one restrained visual language. */
:root {
  --ff-ink: #20242b;
  --ff-muted: #6f7782;
  --ff-subtle: #f5f6f8;
  --ff-line: #e5e8ed;
  --ff-blue: #3370ff;
  --ff-blue-hover: #2464ee;
  --ff-blue-soft: #edf3ff;
  --ff-green: #19866f;
  --ff-green-soft: #eaf7f1;
  --ff-amber: #ae7418;
  --ff-amber-soft: #fff6e7;
  --ff-radius: 8px;
}

body {
  background: var(--ff-subtle);
  color: var(--ff-ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* Public site */
.official-page {
  min-height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.official-page .top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ff-line);
  box-shadow: none;
}

.official-page .top-nav-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
}

.official-page .site-brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--ff-ink);
  text-decoration: none;
}

.official-page .site-brand .brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ff-blue);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.official-page .site-brand .brand-copy {
  display: grid;
  gap: 2px;
}

.official-page .site-brand .brand-copy strong {
  color: var(--ff-ink);
  font-size: 15px;
  line-height: 1.15;
}

.official-page .site-brand .brand-copy span {
  color: var(--ff-muted);
  font-size: 11px;
  line-height: 1.15;
}

.official-page .nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.official-page .nav-links a {
  padding: 6px 0;
  color: #5c6570;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.official-page .nav-links a:hover,
.official-page .nav-links a:focus-visible {
  color: var(--ff-blue);
}

.official-page .nav-actions {
  justify-content: flex-end;
  gap: 8px;
}

.official-page .button,
.official-page .button-secondary,
.official-page .button-ghost {
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.official-page .button {
  background: var(--ff-blue);
  box-shadow: 0 1px 2px rgba(32, 36, 43, 0.12);
}

.official-page .button:hover,
.official-page .button:focus-visible {
  background: var(--ff-blue-hover);
}

.official-page .button-secondary {
  border-color: #d9dfe7;
  background: #ffffff;
  color: #353c45;
}

.official-page .button-secondary:hover,
.official-page .button-secondary:focus-visible {
  border-color: #b9c7e3;
  background: #f7f9fd;
  color: var(--ff-blue-hover);
}

.official-page .hero {
  min-height: min(720px, calc(100vh - 118px));
  display: flex;
  align-items: center;
  padding: 52px 0 46px;
  background: #ffffff;
}

.site-hero-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(500px, 1.18fr);
  align-items: center;
  gap: 58px;
}

.site-hero-copy {
  min-width: 0;
  padding: 14px 0;
}

.site-hero-copy .eyebrow,
.site-section-heading .eyebrow,
.site-client-copy .eyebrow,
.site-download-inner .eyebrow {
  margin: 0 0 12px;
  color: var(--ff-blue);
  font-size: 13px;
  font-weight: 700;
}

.site-hero-copy h1 {
  margin: 0;
  color: var(--ff-ink);
  font-size: 48px;
  font-weight: 760;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.site-hero-copy h2 {
  max-width: 520px;
  margin: 17px 0 0;
  color: #29313d;
  font-size: 34px;
  font-weight: 720;
  line-height: 1.27;
  overflow-wrap: anywhere;
}

.site-hero-lead {
  max-width: 530px;
  margin: 20px 0 0;
  color: var(--ff-muted);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.site-hero-actions {
  margin-top: 28px;
  gap: 10px;
}

.site-hero-actions .button,
.site-hero-actions .button-secondary {
  min-height: 42px;
  padding: 0 15px;
}

.site-hero-copy .chip-row {
  margin-top: 22px;
  gap: 8px;
}

.site-hero-copy .status {
  min-height: 25px;
  padding: 0 9px;
  border: 0;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.site-product-stage {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce2e9;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 44, 63, 0.14);
}

.site-product-reference {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top left;
}

.site-product-stage figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  background: rgba(33, 40, 51, 0.88);
  color: #ffffff;
  font-size: 11px;
}

.site-product-stage figcaption span:last-child {
  color: #d7dce4;
}

.site-stage-topbar {
  height: 46px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #e7ebf0;
  color: #59636f;
  font-size: 12px;
  font-weight: 700;
}

.site-stage-dots {
  display: flex;
  gap: 5px;
}

.site-stage-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d5dbe3;
}

.site-stage-dots span:nth-child(2) {
  background: #bdd2ff;
}

.site-stage-avatar {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 50%;
  background: #dff1ea;
  color: #247e69;
  font-size: 11px;
}

.site-stage-body {
  min-height: 390px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  background: #f6f7f9;
}

.site-stage-rail {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 22px;
  padding-top: 16px;
  border-right: 1px solid #e7ebf0;
  background: #ffffff;
  color: #7a838d;
}

.site-stage-rail i {
  width: 17px;
  height: 17px;
}

.site-stage-rail i:nth-of-type(2) {
  color: var(--ff-blue);
}

.site-stage-logo {
  width: 27px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--ff-blue);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
}

.site-stage-main {
  min-width: 0;
  padding: 28px 28px 20px;
}

.site-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.site-stage-heading div {
  display: grid;
  gap: 6px;
}

.site-stage-heading small {
  color: var(--ff-blue);
  font-size: 11px;
  font-weight: 700;
}

.site-stage-heading strong {
  color: #242a33;
  font-size: 20px;
  line-height: 1.25;
}

.site-stage-heading > span:not(.site-stage-avatar) {
  color: #89919b;
  font-size: 11px;
  white-space: nowrap;
}

.site-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(160px, 0.76fr);
  gap: 12px;
  margin-top: 25px;
}

.site-stage-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid #e5e9ee;
  border-radius: 7px;
  background: #ffffff;
}

.site-stage-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #242a33;
  font-size: 12px;
}

.site-stage-panel header span {
  color: var(--ff-blue);
  font-size: 10px;
}

.site-stage-task {
  min-width: 0;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-top: 1px solid #edf0f3;
}

.site-stage-task > i {
  width: 15px;
  height: 15px;
  color: #7da3f4;
}

.site-stage-task > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.site-stage-task b,
.site-stage-task small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-stage-task b {
  color: #38414c;
  font-size: 11px;
}

.site-stage-task small {
  color: #8a929c;
  font-size: 10px;
}

.site-stage-task em {
  color: #4c77c8;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.site-stage-agenda > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #edf0f3;
}

.site-stage-agenda time {
  color: #6386cc;
  font-size: 10px;
  font-weight: 700;
}

.site-stage-agenda div span {
  overflow: hidden;
  color: #434b55;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-stage-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid #e7ebf0;
  border-bottom: 1px solid #e7ebf0;
}

.site-stage-shortcuts span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 13px 4px;
  border-right: 1px solid #e7ebf0;
  color: #69727c;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.site-stage-shortcuts span:last-child {
  border-right: 0;
}

.site-stage-shortcuts i {
  width: 13px;
  height: 13px;
  color: #6187d4;
}

.site-capability-band {
  padding: 92px 0;
  border-top: 1px solid #edf0f3;
  background: #f7f8fa;
}

.site-section-heading {
  max-width: 630px;
}

.site-section-heading h2,
.site-client-copy h2,
.site-download-inner h2 {
  margin: 0;
  color: var(--ff-ink);
  font-size: 30px;
  font-weight: 730;
  line-height: 1.35;
}

.site-section-heading > p:last-child,
.site-client-copy > p:last-child,
.site-download-inner > div > p:last-child {
  margin: 14px 0 0;
  color: var(--ff-muted);
  font-size: 15px;
  line-height: 1.7;
}

.site-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--ff-line);
}

.site-capability {
  min-width: 0;
  padding: 28px 28px 6px 0;
  border-right: 1px solid var(--ff-line);
}

.site-capability + .site-capability {
  padding-left: 28px;
}

.site-capability:last-child {
  border-right: 0;
}

.site-capability-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ff-blue-soft);
  color: var(--ff-blue);
}

.site-capability-icon--green {
  background: var(--ff-green-soft);
  color: var(--ff-green);
}

.site-capability-icon--amber {
  background: var(--ff-amber-soft);
  color: var(--ff-amber);
}

.site-capability-icon i {
  width: 19px;
  height: 19px;
}

.site-capability h3 {
  margin: 18px 0 0;
  color: #2a3039;
  font-size: 18px;
  font-weight: 720;
}

.site-capability p {
  margin: 12px 0 0;
  color: var(--ff-muted);
  font-size: 14px;
  line-height: 1.72;
}

.site-client-band {
  padding: 92px 0;
  background: #ffffff;
}

.site-client-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: start;
  gap: 92px;
}

.site-client-copy {
  max-width: 500px;
}

.site-client-list {
  border-top: 1px solid #dfe4ea;
}

.site-client-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #dfe4ea;
  color: #3f4853;
  text-decoration: none;
}

.site-client-row > i:first-child {
  width: 22px;
  height: 22px;
  color: #5b7bbd;
}

.site-client-row > i:last-child {
  width: 17px;
  height: 17px;
  color: #a3abb5;
}

.site-client-row span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.site-client-row strong {
  color: #2c333c;
  font-size: 16px;
}

.site-client-row small {
  color: var(--ff-muted);
  font-size: 13px;
}

.site-client-row:hover strong,
.site-client-row:hover > i {
  color: var(--ff-blue);
}

.site-download-band {
  padding: 64px 0;
  background: #27313d;
}

.site-download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-download-inner .eyebrow {
  color: #8eb2ff;
}

.site-download-inner h2 {
  color: #ffffff;
}

.site-download-inner > div > p:last-child {
  color: #c4cad2;
}

.site-download-inner .button-secondary {
  border-color: #596575;
  background: transparent;
  color: #ffffff;
}

.site-download-inner .button-secondary:hover,
.site-download-inner .button-secondary:focus-visible {
  border-color: #8daff8;
  background: #354152;
}

.site-footer {
  padding: 20px 0;
  background: #ffffff;
  border-top: 1px solid #e5e8ed;
  color: #7b838d;
  font-size: 12px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* PC workspace frame */
.portal-shell {
  grid-template-columns: 68px minmax(0, 1fr);
  background: var(--ff-subtle);
}

.portal-nav.portal-rail {
  width: 68px;
  min-width: 68px;
  padding: 12px 8px;
  gap: 14px;
  border-right-color: var(--ff-line);
  background: #ffffff;
}

.portal-rail .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ff-blue);
  font-size: 11px;
}

.portal-rail .nav-collection {
  gap: 7px;
}

.portal-rail button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 8px;
  color: #737c87;
}

.portal-rail button.active {
  background: var(--ff-blue-soft);
  color: var(--ff-blue);
}

.portal-rail button:hover {
  background: #f2f4f7;
  color: #39424c;
}

.portal-rail button::after {
  left: calc(100% + 8px);
  padding: 6px 8px;
  border-radius: 5px;
  background: #2c333c;
  font-weight: 600;
}

.portal-main {
  background: var(--ff-subtle);
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 60px;
  padding: 0 28px;
  border-bottom-color: var(--ff-line);
  background: rgba(255, 255, 255, 0.97);
}

.portal-topbar h1 {
  color: #252b33;
  font-size: 18px;
  font-weight: 720;
}

.portal-actions {
  gap: 8px;
}

.portal-actions .button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 13px;
}

.portal-icon-button {
  width: 34px;
  height: 34px;
  border-color: #e0e5eb;
  border-radius: 6px;
  background: #ffffff;
  color: #59636f;
}

.portal-profile-control {
  max-width: 220px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 5px 3px 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #404852;
  text-align: left;
}

.portal-profile-control:hover,
.portal-profile-control:focus-visible {
  background: #f3f5f7;
}

.portal-profile-avatar {
  width: 26px;
  height: 26px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: #dfeaff;
  color: #3866b9;
  font-size: 11px;
  font-weight: 800;
}

.portal-profile-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

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

.portal-profile-copy strong {
  color: #3a424c;
  font-size: 12px;
  font-weight: 700;
}

.portal-profile-copy small {
  color: #8a929b;
  font-size: 10px;
}

.portal-profile-control > i {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #9098a2;
}

.portal-content {
  width: min(1180px, 100%);
  padding: 24px 30px 42px;
}

.portal-content:not(.portal-content--messages) .panel {
  border-color: #e3e7ec;
  border-radius: var(--ff-radius);
  background: #ffffff;
  box-shadow: none;
}

.portal-content:not(.portal-content--messages) .panel-grid {
  gap: 16px;
}

.portal-content:not(.portal-content--messages) .panel-header {
  margin-bottom: 15px;
}

.portal-content:not(.portal-content--messages) .panel-header h3 {
  color: #2a3038;
  font-size: 16px;
  font-weight: 720;
}

.portal-content:not(.portal-content--messages) .panel-header p {
  margin-top: 5px;
  color: #7c8590;
  font-size: 12px;
  line-height: 1.5;
}

.portal-content:not(.portal-content--messages) .settings-list,
.portal-content:not(.portal-content--messages) .security-list,
.portal-content:not(.portal-content--messages) .table-rows {
  border-top: 1px solid #edf0f3;
}

.portal-content:not(.portal-content--messages) .list-row,
.portal-content:not(.portal-content--messages) .table-row,
.portal-content:not(.portal-content--messages) .security-item {
  min-height: 60px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-content:not(.portal-content--messages) .list-row:hover,
.portal-content:not(.portal-content--messages) .table-row:hover {
  background: #fafbfd;
}

.portal-content:not(.portal-content--messages) .list-row strong,
.portal-content:not(.portal-content--messages) .table-row strong,
.portal-content:not(.portal-content--messages) .security-item strong {
  color: #353d46;
  font-size: 13px;
  font-weight: 700;
}

.portal-content:not(.portal-content--messages) .list-row small,
.portal-content:not(.portal-content--messages) .table-row small,
.portal-content:not(.portal-content--messages) .security-item small {
  margin-top: 4px;
  color: #87909a;
  font-size: 12px;
  line-height: 1.45;
}

.portal-content .status {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.portal-content .status.info {
  background: var(--ff-blue-soft);
  color: #4d76c6;
}

.portal-content .status.ok {
  background: var(--ff-green-soft);
  color: #25836e;
}

.portal-content .status.warn {
  background: var(--ff-amber-soft);
  color: #a16b18;
}

.portal-content .status.danger {
  background: #ffefef;
  color: #b54d50;
}

.portal-content .button,
.portal-content .button-secondary,
.portal-content .button-ghost {
  min-height: 34px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.portal-content .button {
  background: var(--ff-blue);
}

.portal-content .button:hover,
.portal-content .button:focus-visible {
  background: var(--ff-blue-hover);
}

.portal-content .button-secondary,
.portal-content .button-ghost {
  border-color: #dce2e8;
  background: #ffffff;
  color: #56616d;
}

.portal-content .button-secondary:hover,
.portal-content .button-secondary:focus-visible,
.portal-content .button-ghost:hover,
.portal-content .button-ghost:focus-visible {
  border-color: #bdc9dc;
  background: #f7f9fd;
  color: var(--ff-blue-hover);
}

/* Workbench */
.today-workspace,
.manager-workspace {
  gap: 16px;
}

.today-workspace-header,
.manager-workspace-header {
  min-height: 74px;
  padding: 1px 2px;
}

.today-workspace-header h2,
.manager-workspace-header h2 {
  font-size: 24px;
  font-weight: 730;
}

.today-workspace-grid,
.manager-workspace-grid {
  gap: 16px;
}

.focus-task-panel,
.day-agenda-panel,
.manager-tasks-panel,
.manager-summary-panel {
  padding: 18px 20px;
}

.today-quick-links {
  border-color: #e3e7ec;
  background: #ffffff;
}

.today-quick-links button {
  min-height: 56px;
  color: #59636d;
}

.today-quick-links button:hover {
  background: #f8faff;
  color: var(--ff-blue);
}

/* Messaging is a continuous work surface, not a stack of forms. */
.portal-content--messages {
  width: 100%;
  max-width: none;
  height: calc(100vh - 60px);
  padding: 0;
  background: #ffffff;
}

.portal-content--messages .panel-grid {
  height: 100%;
  grid-template-columns: minmax(300px, 0.32fr) minmax(0, 0.68fr);
  gap: 0;
}

.portal-content--messages .panel-grid > .panel {
  min-height: 0;
  padding: 18px 20px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.portal-content--messages .panel-grid > .panel:first-child {
  border-right: 1px solid var(--ff-line);
}

.conversation-pane,
.chat-pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.conversation-pane-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.conversation-pane-heading .panel-header,
.chat-pane > .panel-header {
  margin-bottom: 14px;
}

.portal-content--messages .panel-header h3 {
  color: #2c333c;
  font-size: 16px;
  font-weight: 720;
}

.portal-content--messages .panel-header p {
  margin-top: 4px;
  color: #8a929c;
  font-size: 12px;
}

.compact-disclosure {
  position: relative;
  flex: 0 0 auto;
}

.compact-disclosure summary {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #dce2e8;
  border-radius: 6px;
  color: #59636d;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.compact-disclosure summary::-webkit-details-marker {
  display: none;
}

.compact-disclosure summary i {
  width: 14px;
  height: 14px;
}

.compact-disclosure[open] summary {
  border-color: #b7c8eb;
  background: #f5f8ff;
  color: #3768c4;
}

.group-create-disclosure > form,
.chat-members-disclosure > form,
.attachment-disclosure > form {
  margin-top: 8px;
}

.group-create-disclosure > form {
  position: absolute;
  top: 30px;
  right: 0;
  z-index: 12;
  width: 278px;
  padding: 10px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(39, 49, 61, 0.13);
}

.portal-content--messages .composer {
  gap: 8px;
}

.portal-content--messages .compact-composer {
  align-items: stretch;
}

.portal-content--messages .compact-composer input {
  min-width: 0;
}

.portal-content--messages .conversation-list,
.portal-content--messages .message-stream {
  min-height: 0;
  max-height: none;
  display: flex;
  align-items: stretch;
  align-content: flex-start;
  flex-direction: column;
  overflow: auto;
  scrollbar-color: #d5dbe3 transparent;
}

.portal-content--messages .conversation-list {
  flex: 1 1 auto;
  margin: 4px -8px -18px;
  padding: 0 8px 18px;
}

.portal-content--messages .conversation {
  flex: 0 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.portal-content--messages .conversation:hover {
  background: #f8f9fb;
}

.portal-content--messages .conversation.active {
  background: var(--ff-blue-soft);
}

.portal-content--messages .conversation strong {
  color: #373f49;
  font-size: 13px;
}

.conversation-avatar {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #4c76c6;
  font-size: 12px;
  font-weight: 750;
}

.conversation-avatar i {
  width: 18px;
  height: 18px;
}

.conversation-avatar--0 {
  background: #e8f0ff;
  color: #4973c5;
}

.conversation-avatar--1 {
  background: #eaf8f1;
  color: #1a8464;
}

.conversation-avatar--2 {
  background: #fff1e7;
  color: #ad6a24;
}

.conversation-avatar--3 {
  background: #f7eef8;
  color: #97679b;
}

.conversation-avatar--bot {
  background: #e8f2ff;
  color: #3d75cf;
}

.conversation-avatar--group {
  background: #edf1f5;
  color: #65717e;
}

.conversation-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.conversation-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conversation-line strong,
.conversation-line time,
.conversation-copy small,
.conversation-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-line strong {
  flex: 1 1 auto;
}

.conversation-line time {
  flex: 0 1 auto;
  color: #9aa2ac;
  font-size: 11px;
}

.portal-content--messages .conversation small,
.conversation-description {
  color: #858e98;
  font-size: 12px;
}

.conversation-description {
  color: #9aa2ac;
  font-size: 11px;
}

.conversation-unread {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 9px;
  background: #3c75d8;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.chat-pane .message-stream {
  flex: 1 1 auto;
  margin: 4px 0 10px;
  padding: 4px 2px 16px;
}

.portal-content--messages .message {
  flex: 0 0 auto;
  min-height: 0;
  max-width: min(680px, 86%);
  margin: 10px 0;
  padding: 11px 13px;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  background: #f8f9fb;
  color: #424a54;
  box-shadow: none;
}

.portal-content--messages .message.mine {
  margin-left: auto;
  border-color: #d9e6ff;
  background: #edf4ff;
}

.portal-content--messages .message strong {
  color: #68727d;
  font-size: 11px;
}

.portal-content--messages .message > div {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.6;
}

.portal-content--messages .chat-pane > .composer {
  flex: 0 0 auto;
  margin-top: 0;
}

.portal-content--messages .attachment-disclosure {
  margin-top: 8px;
}

.portal-content--messages .attachment-disclosure > form {
  display: flex;
}

/* Directory, calendar, attendance and settings remain dense lists rather than nested cards. */
.portal-content--contacts .panel-grid,
.portal-content--calendar .panel-grid,
.portal-content--attendance .panel-grid,
.portal-content--settings .panel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-content--contacts .panel,
.portal-content--calendar .panel,
.portal-content--attendance .panel,
.portal-content--settings .panel {
  padding: 19px 20px;
}

.portal-content--contacts .panel-grid + .panel-grid {
  margin-top: 16px;
}

.portal-content--contacts .composer,
.portal-content--calendar .composer,
.portal-content--attendance .composer,
.portal-content--settings .composer {
  margin-top: 14px;
}

.portal-content--contacts .panel-meta {
  margin: 12px 0 4px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f7f9fb;
  color: #74808b;
  font-size: 12px;
}

.calendar-meeting-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
}

.calendar-meeting-grid .table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.calendar-meeting-grid .meeting-form {
  padding-bottom: 16px;
  border-bottom: 1px solid #edf0f3;
}

.calendar-meeting-grid .settings-list {
  margin-top: 15px;
}

.meeting-list-section {
  margin-top: 18px;
}

.meeting-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
  margin-bottom: 8px;
}

.meeting-list-heading h4 {
  margin: 0;
  color: #4b5560;
  font-size: 13px;
  font-weight: 720;
}

.meeting-list-section .settings-list {
  margin-top: 0;
}

.calendar-event-row--cancelled {
  opacity: 0.64;
}

.calendar-event-row--cancelled strong {
  text-decoration: line-through;
}

.profile-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.9fr);
  gap: 16px;
  padding: 2px 0 18px;
  border-bottom: 1px solid #edf0f3;
}

.profile-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar-large {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbdcff;
  border-radius: 50%;
  background: #e7efff;
  color: #3568c9;
  font-size: 22px;
  font-weight: 800;
}

.profile-person-copy {
  min-width: 0;
}

.profile-person-copy h4,
.profile-qr-copy strong {
  margin: 0;
  color: #303841;
  font-size: 16px;
  font-weight: 720;
}

.profile-qr-copy strong {
  white-space: nowrap;
}

.profile-person-copy p,
.profile-qr-copy p,
.profile-qr-copy small {
  display: block;
  margin: 4px 0 0;
  color: #7c8590;
  font-size: 12px;
  line-height: 1.5;
}

.profile-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-tag-row span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 99px;
  background: #edf3ff;
  color: #4d70b7;
  font-size: 11px;
  font-weight: 700;
}

.profile-qr {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid #edf0f3;
}

.profile-qr-code {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dce3eb;
  border-radius: 6px;
  background: #ffffff;
}

.profile-qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-qr-fallback {
  max-width: 82px;
  color: #7a838d;
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
}

.profile-meta-grid > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 0;
}

.profile-meta-grid > div + div {
  padding-left: 18px;
  border-left: 1px solid #edf0f3;
}

.profile-meta-grid span {
  color: #87909a;
  font-size: 11px;
}

.profile-meta-grid strong {
  overflow: hidden;
  color: #3d4650;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.profile-edit-form .field {
  min-width: 0;
}

.profile-edit-field--wide {
  grid-column: 1 / -1;
}

.profile-form-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.profile-form-actions .button {
  width: 100%;
}

.portal-content--attendance .button-row {
  margin-top: 16px;
}

.portal-content--settings .security-list {
  margin-top: 0;
}

@media (max-width: 1080px) {
  .site-hero-grid {
    grid-template-columns: minmax(300px, 0.8fr) minmax(420px, 1.2fr);
    gap: 36px;
  }

  .site-hero-copy h1 {
    font-size: 42px;
  }

  .site-hero-copy h2 {
    font-size: 30px;
  }

  .site-client-layout {
    gap: 50px;
  }

  .portal-content {
    padding: 22px 24px 38px;
  }
}

@media (max-width: 900px) {
  .official-page .top-nav-inner {
    grid-template-columns: 1fr auto;
  }

  .official-page .nav-links {
    display: none;
  }

  .site-hero-grid,
  .site-client-layout {
    grid-template-columns: 1fr;
  }

  .official-page .hero {
    min-height: 0;
    padding: 62px 0 54px;
  }

  .site-product-stage {
    max-width: 700px;
  }

  .site-client-copy {
    max-width: 640px;
  }

  .portal-shell {
    grid-template-columns: 1fr;
  }

  .portal-nav.portal-rail {
    width: auto;
    min-width: 0;
    min-height: 56px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 9px 14px;
  }

  .portal-rail .portal-nav-header,
  .portal-rail .portal-nav-scroll {
    width: auto;
  }

  .portal-rail .nav-collection {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .portal-rail button {
    width: auto;
    min-width: max-content;
    height: 34px;
    min-height: 34px;
    gap: 6px;
    padding: 0 9px;
    border-radius: 6px;
  }

  .portal-rail button span {
    display: inline;
  }

  .portal-rail button::after,
  .portal-rail .portal-footer {
    display: none;
  }

  .portal-topbar {
    position: static;
    padding: 0 20px;
  }

  .portal-content--messages {
    height: auto;
  }

  .portal-content--messages .panel-grid {
    height: auto;
    grid-template-columns: 1fr;
  }

  .portal-content--messages .panel-grid > .panel:first-child {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--ff-line);
  }

  .portal-content--messages .conversation-list {
    max-height: 260px;
  }
}

@media (max-width: 640px) {
  .official-page .top-nav-inner {
    min-height: 60px;
    gap: 12px;
  }

  .official-page .top-nav {
    min-height: 60px;
  }

  .official-page .site-invite,
  .official-page .desktop-only {
    display: none;
  }

  .official-page .site-brand .brand-copy span {
    display: none;
  }

  .official-page .nav-actions .button {
    min-height: 34px;
    padding: 0 11px;
  }

  .site-hero-copy h1 {
    font-size: 36px;
  }

  .site-hero-copy h2,
  .site-section-heading h2,
  .site-client-copy h2,
  .site-download-inner h2 {
    font-size: 24px;
  }

  .site-hero-copy h2 {
    line-height: 1.35;
  }

  .site-hero-lead {
    font-size: 14px;
  }

  .site-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  .site-hero-actions .button,
  .site-hero-actions .button-secondary {
    width: 100%;
    min-width: 0;
    gap: 6px;
    padding: 0 8px;
    font-size: 12px;
    justify-content: center;
  }

  .site-hero-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .site-hero-grid {
    width: min(520px, calc(100% - 32px));
    gap: 20px;
  }

  .official-page .hero {
    padding: 32px 0 22px;
  }

  .site-hero-copy {
    padding: 0;
  }

  .site-product-reference {
    height: 132px;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .site-product-stage figcaption span:last-child {
    display: none;
  }

  .site-stage-body {
    min-height: 330px;
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .site-stage-rail {
    gap: 18px;
  }

  .site-stage-main {
    padding: 20px 15px 16px;
  }

  .site-stage-heading strong {
    font-size: 16px;
  }

  .site-stage-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 16px;
  }

  .site-stage-agenda {
    display: none;
  }

  .site-capability-band,
  .site-client-band {
    padding: 62px 0;
  }

  .site-capability-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .site-capability,
  .site-capability + .site-capability {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ff-line);
  }

  .site-capability:last-child {
    border-bottom: 0;
  }

  .site-download-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-download-inner .button-row {
    width: 100%;
  }

  .site-download-inner .button,
  .site-download-inner .button-secondary {
    flex: 1 1 auto;
    justify-content: center;
  }

  .site-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  /* Keep every primary workspace destination reachable in a 390px-wide viewport. */
  .portal-nav.portal-rail {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .portal-rail .nav-collection {
    justify-content: space-between;
    gap: 4px;
    overflow-x: visible;
  }

  .portal-rail button {
    width: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
  }

  .portal-rail button span {
    display: none;
  }

  .portal-topbar {
    min-height: 56px;
    padding: 0 14px;
  }

  .portal-content {
    padding: 16px 12px 28px;
  }

  .portal-profile-copy,
  .portal-profile-control > i {
    display: none;
  }

  .portal-profile-control {
    padding: 4px;
  }

  .portal-content--contacts .panel-grid,
  .portal-content--calendar .panel-grid,
  .portal-content--attendance .panel-grid,
  .portal-content--settings .panel-grid,
  .calendar-meeting-grid {
    grid-template-columns: 1fr;
  }

  .profile-overview,
  .profile-edit-form {
    grid-template-columns: 1fr;
  }

  .profile-qr {
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid #edf0f3;
    border-left: 0;
  }

  .profile-meta-grid {
    grid-template-columns: 1fr;
  }

  .profile-meta-grid > div + div {
    padding-left: 0;
    border-top: 1px solid #edf0f3;
    border-left: 0;
  }

  .profile-edit-field--wide {
    grid-column: auto;
  }

  .profile-form-actions {
    justify-content: stretch;
  }

  .portal-content--messages .panel-grid > .panel {
    padding: 16px 14px;
  }

  .conversation-pane-heading {
    align-items: center;
  }

  .group-create-disclosure > form {
    width: min(278px, calc(100vw - 48px));
  }
}

@media (max-width: 960px) {
  .member-table-heading {
    display: none;
  }

  .member-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "identity state"
      "department account"
      "actions actions";
    row-gap: 10px;
    padding: 14px 16px;
  }

  .member-identity {
    grid-area: identity;
  }

  .member-department {
    grid-area: department;
  }

  .member-account {
    grid-area: account;
  }

  .member-state {
    grid-area: state;
  }

  .member-row-actions {
    grid-area: actions;
    justify-content: flex-start;
  }

  .member-detail,
  .member-state {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .member-detail-label {
    display: inline;
    flex: 0 0 auto;
    color: #939ca6;
    font-size: 11px;
  }
}

@media (max-width: 680px) {
  .member-workspace-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .member-workspace-header h2 {
    font-size: 20px;
  }

  .member-directory-tools {
    grid-template-columns: 1fr;
  }

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

  .member-search-field {
    grid-column: 1 / -1;
  }

  .member-invite-panel {
    width: max-content;
  }

  .member-invite-panel[open] {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .member-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .member-filter-actions {
    grid-column: 1 / -1;
  }

  .member-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "identity"
      "state"
      "department"
      "account"
      "actions";
  }

  .member-state {
    justify-content: space-between;
  }
}

/* Desktop client authentication intentionally fills the application window.
   The official site is a separate surface, so this view stays focused on sign-in. */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  padding: 0;
  background: #f5f7fb;
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  gap: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-side {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding: clamp(48px, 8vw, 112px);
  background: #172b4d;
  color: #f8fbff;
}

.auth-side-top {
  margin-bottom: clamp(54px, 9vh, 104px);
}

.auth-side .brand-copy span,
.auth-side p {
  color: #b8c9df;
}

.auth-side-status {
  color: #d6e9ff;
  background: rgba(91, 162, 244, 0.14);
  border-color: rgba(151, 202, 255, 0.25);
}

.auth-copy {
  max-width: 470px;
  gap: 14px;
}

.auth-copy .eyebrow {
  color: #8fc3ff;
}

.auth-copy h1 {
  font-size: 38px;
  line-height: 1.2;
}

.auth-copy p:last-child {
  max-width: 420px;
  color: #c5d4e7;
  font-size: 16px;
  line-height: 1.7;
}

.auth-side-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  height: auto;
  margin-top: 22px;
}

.auth-side-list span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(210, 228, 249, 0.22);
  border-radius: 999px;
  color: #d7e6f8;
  font-size: 12px;
}

.auth-side-footnote {
  display: none;
}

.auth-card {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(48px, 7vw, 104px);
  overflow-y: auto;
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.auth-card > h2,
.auth-card > .panel-meta,
.auth-card > .auth-form,
.auth-card > .button-row {
  width: min(100%, 390px);
}

.auth-card h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
}

.auth-card .panel-meta {
  color: #657387;
  font-size: 14px;
  line-height: 1.7;
}

.auth-card .auth-form {
  gap: 16px;
}

.auth-card .form-actions {
  margin-top: 2px;
}

.auth-card .button {
  min-height: 44px;
}

.auth-card .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.auth-card .link-button {
  color: #226ed0;
  font-size: 13px;
}

@media (max-width: 960px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side {
    min-height: 0;
    padding: 22px 28px;
    justify-content: flex-start;
  }

  .auth-side-top {
    margin: 0;
  }

  .auth-copy,
  .auth-side-list {
    display: none;
  }

  .auth-card {
    min-height: calc(100dvh - 80px);
    padding: 44px 32px;
    align-content: center;
  }
}

@media (max-width: 620px) {
  .auth-side {
    padding: 18px 20px;
  }

  .auth-card {
    min-height: calc(100dvh - 72px);
    padding: 32px 20px;
  }

  .auth-card h2 {
    font-size: 26px;
  }
}

.auth-card.auth-card--invite {
  padding-block: clamp(32px, 4vw, 56px);
}

@media (max-width: 960px) {
  .auth-card.auth-card--invite {
    padding-block: 28px;
  }
}
