/* Workspace-specific interaction layers, loaded after the base visual system. */
/* Run visibility: status belongs to the project header and never overlays chat. */
.project-heading { min-width: 0; }
.project-title-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.project-title-row h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-title-row .live-run {
  position: static;
  z-index: auto;
  width: auto;
  max-width: min(440px, 46vw);
  min-height: 34px;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 8px;
  transform: none;
  border: 1px solid rgba(8,127,103,.22);
  border-radius: 999px;
  background: #edf8f5;
  padding: 4px 5px 4px 9px;
  box-shadow: none;
}
.project-title-row .live-run > i { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #087f67; animation: pulse 1.4s infinite; }
.project-title-row .live-run > span { min-width: 0; display: block; }
.project-title-row .live-run small { display: block; color: #087f67; font-size: 7px; line-height: 1; }
.project-title-row .live-run strong { display: block; max-width: 300px; overflow: hidden; margin: 2px 0 0; color: #173b35; font-size: 9px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.project-title-row .live-run button { flex: 0 0 auto; border: 0; border-radius: 999px; background: #fff; padding: 6px 9px; color: #b42332; font-size: 8px; }

/* A preflight card makes assignment and environment explicit before execution. */
.run-plan-dialog { width: min(820px,calc(100vw - 28px)); max-height: calc(100vh - 28px); margin: auto; border: 0; border-radius: 18px; background: #fff; color: var(--text); padding: 0; box-shadow: 0 28px 90px rgba(15,23,42,.25); }
.run-plan-dialog::backdrop { background: rgba(15,23,42,.46); backdrop-filter: blur(4px); }
.run-plan-dialog form { display: grid; gap: 10px; max-height: calc(100vh - 28px); overflow: auto; padding: 16px; }
.run-plan-dialog form > header,.run-plan-heading,.run-plan-dialog form > footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.run-plan-dialog form > header span,.run-plan-heading small { color: #087f67; font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.run-plan-dialog h2,.run-plan-dialog h3 { margin: 3px 0 4px; }
.run-plan-dialog p { margin: 0; color: var(--muted); }
.run-plan-request { display: grid; gap: 3px; border-left: 3px solid #087f67; border-radius: 9px; background: #edf8f5; padding: 9px 12px; }
.run-plan-request small { color: #087f67; font-weight: 800; }
.run-plan-facts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.run-plan-facts article { min-width: 0; display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafc; padding: 8px 10px; }
.run-plan-facts small,.run-plan-agents small { color: var(--muted); }
.run-plan-facts strong { overflow-wrap: anywhere; }
.run-plan-heading button { border: 1px solid var(--line2); border-radius: 9px; background: #f8fafc; padding: 8px 10px; }
.run-plan-override { display: grid; gap: 7px; border: 1px solid #b7ded5; border-radius: 11px; background: #f3fbf8; padding: 10px 12px; }
.run-plan-override #run-plan-quick { border-color: #087f67; background: #fff; color: #087f67; font-weight: 800; }
.run-plan-control-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.run-plan-control-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 800; }
.run-plan-control-grid select { min-width: 0; border: 1px solid var(--line2); border-radius: 8px; background: #fff; color: var(--text); padding: 7px 8px; }
.run-plan-control-grid select:disabled { background: #eef2f6; color: #7b8794; }
.run-plan-override .run-plan-time-note { font-size: 11px; }
.run-plan-assignment { min-width: 0; }
.run-plan-heading h3 span { color: #087f67; font-size: 11px; font-weight: 800; }
.run-plan-heading-actions { display: flex; align-items: center; gap: 6px; }
.run-plan-select-all { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; }
.run-plan-select-all input,.run-plan-agent input { accent-color: #087f67; }
.run-plan-agent-note { margin: -2px 0 7px !important; font-size: 10px; }
.run-plan-agent-note.error { color: #b42332; font-weight: 800; }
.run-plan-agents { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; max-height: min(32vh,260px); overflow-y: auto; padding-right: 2px; }
.run-plan-agent { min-width: 0; display: grid; grid-template-columns: 16px 28px minmax(0,1fr); align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; cursor: pointer; }
.run-plan-agent.selected { border-color: #9fcfc3; background: #f3fbf8; }
.run-plan-agent.disabled { cursor: default; opacity: .72; }
.run-plan-agent > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #e8f5f1; color: #087f67; font-size: 11px; font-weight: 900; }
.run-plan-agent > div { min-width: 0; }
.run-plan-agent strong,.run-plan-agent small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-plan-agent strong { font-size: 11px; }
.run-plan-agent p { overflow: hidden; margin: 1px 0 !important; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.run-plan-agent small { font-size: 9px; }
.run-plan-dialog form > footer { position: sticky; z-index: 2; bottom: -16px; align-items: center; margin: 0 -16px -16px; border-top: 1px solid var(--line); background: #fff; padding: 10px 16px 16px; }
.run-plan-dialog form > footer span { flex: 1; }
.run-plan-dialog form > footer button { border: 1px solid var(--line2); border-radius: 9px; background: #f8fafc; padding: 9px 13px; }
.run-plan-dialog form > footer button.primary { border-color: #087f67; background: #087f67; color: #fff; }
.run-plan-dialog form > footer button:disabled { cursor: not-allowed; opacity: .45; }

/* Project synthesis keeps the readable result separate from raw execution logs. */
.summary-panel {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #f5f7fb;
  padding: 14px 22px 30px;
}
.summary-panel > header { min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 4px 0 14px; }
.summary-panel > header h2 { margin: 3px 0; }
.summary-panel > header p { margin: 0; color: var(--muted); }
.summary-panel > header button { align-self: center; border: 1px solid var(--line2); border-radius: 9px; background: #fff; padding: 8px 11px; }
.summary-list { width: 100%; min-width: 0; max-width: 980px; display: grid; gap: 14px; margin: 0 auto; }
.summary-thread { width: 100%; min-width: 0; max-width: 100%; display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 18px; box-shadow: var(--shadow); }
.summary-thread > header { min-width: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; color: var(--muted); }
.summary-thread > header small { overflow-wrap: anywhere; }
.summary-thread > header span { color: #087f67; font-weight: 900; letter-spacing: .1em; }
.summary-question { min-width: 0; max-width: 100%; border-radius: 11px; background: #edf4ff; padding: 13px 15px; overflow-wrap: anywhere; }
.summary-question > :first-child,.summary-conclusion > div > :first-child { margin-top: 0; }
.summary-question > :last-child,.summary-conclusion > div > :last-child { margin-bottom: 0; }
.summary-additions { min-width: 0; max-width: 100%; border-left: 3px solid #d0832f; border-radius: 9px; background: #fff8ee; padding: 11px 14px; overflow-wrap: anywhere; }
.summary-additions h3,.summary-conclusion h3 { margin: 0 0 8px; font-size: 11px; }
.summary-additions ul { margin: 0; padding-left: 20px; }
.summary-contributions { min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.summary-contributions > summary { cursor: pointer; padding: 11px 13px; font-weight: 800; }
.summary-contributions > div { min-width: 0; max-width: 100%; display: grid; gap: 8px; border-top: 1px solid var(--line); padding: 10px; }
.summary-contributions article { min-width: 0; max-width: 100%; display: grid; gap: 3px; border-radius: 8px; background: #fff; padding: 10px; }
.summary-contributions article > div { min-width: 0; max-width: 100%; max-height: 180px; overflow: auto; }
.summary-conclusion { width: 100%; min-width: 0; max-width: 100%; border: 1px solid rgba(8,127,103,.16); border-radius: 12px; background: #edf8f5; padding: 14px; overflow-wrap: anywhere; }
.summary-conclusion > div,
.summary-conclusion .markdown-body,
.summary-conclusion .office-inline-preview,
.summary-conclusion .office-slide-grid,
.summary-conclusion .office-sheet { width: 100%; min-width: 0; max-width: 100%; }
.summary-conclusion .markdown-table-scroll,
.summary-conclusion .office-doc-table-scroll,
.summary-conclusion .office-sheet-scroll,
.summary-conclusion pre { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.summary-conclusion img,
.summary-conclusion video,
.summary-conclusion iframe,
.summary-conclusion canvas,
.summary-conclusion svg { max-width: 100%; height: auto; }

.execution-details { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.execution-event { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 9px; border-top: 1px solid var(--line); padding-top: 8px; }
.execution-event > span { align-self: start; border-radius: 999px; background: #eef2f7; padding: 4px 6px; color: var(--muted); text-align: center; font-size: 7px; font-weight: 900; }
.execution-event.activity > span,.execution-event.meeting > span { background: #e8f5f1; color: #087f67; }
.execution-event strong,.execution-event small { display: block; }
.execution-event p { margin: 3px 0; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.execution-event small { color: var(--muted2); }

@media (max-width: 900px) {
  .project-title-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .project-title-row .live-run { max-width: 100%; }
  .run-plan-facts { grid-template-columns: 1fr 1fr; }
  .run-plan-control-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .run-plan-facts { grid-template-columns: 1fr; }
  .run-plan-control-grid { grid-template-columns: 1fr; }
  .summary-panel { padding-inline: 10px; }
}
@media print {
  body * { visibility: hidden !important; }
  #summary-panel,#summary-panel * { visibility: visible !important; }
  #summary-panel { position: absolute; inset: 0; overflow: visible; background: #fff; }
  #summary-print,.view-tabs { display: none !important; }
}

/* Each rail owns its collapse control and leaves a narrow, reachable handle. */
.panel-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

.panel-collapse-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #526077;
  font-size: 12px;
  line-height: 1;
  transition: background .16s ease,color .16s ease;
}

.panel-collapse-toggle:hover,
.panel-collapse-toggle:focus-visible {
  outline: 0;
  background: #e8f5f1;
  color: #087f67;
}

.workspace-shell.left-panel-collapsed .project-rail,
.workspace-shell.right-panel-collapsed .agent-drawer {
  display: grid;
  grid-template-rows: auto;
  overflow: hidden;
  padding: 14px 6px;
}

.workspace-shell.left-panel-collapsed .project-rail > header,
.workspace-shell.right-panel-collapsed .agent-drawer > header {
  justify-content: center;
  padding: 0;
}

.workspace-shell.left-panel-collapsed .project-rail > header > div:first-child,
.workspace-shell.left-panel-collapsed #new-project,
.workspace-shell.left-panel-collapsed .project-list,
.workspace-shell.left-panel-collapsed .rail-files,
.workspace-shell.left-panel-collapsed .project-rail > footer,
.workspace-shell.right-panel-collapsed .agent-drawer > header > div:first-child,
.workspace-shell.right-panel-collapsed #active-count,
.workspace-shell.right-panel-collapsed .agent-policy,
.workspace-shell.right-panel-collapsed .agent-list,
.workspace-shell.right-panel-collapsed .agent-drawer > footer {
  display: none;
}

.workspace-shell.left-panel-collapsed .panel-header-actions,
.workspace-shell.right-panel-collapsed .panel-header-actions {
  width: 100%;
  justify-content: center;
}

@media (min-width: 1281px) {
  .workspace-shell.left-panel-collapsed {
    grid-template-columns: 44px minmax(560px,1fr) 360px;
  }

  .workspace-shell.right-panel-collapsed {
    grid-template-columns: 244px minmax(560px,1fr) 44px;
  }

  .workspace-shell.left-panel-collapsed.right-panel-collapsed {
    grid-template-columns: 44px minmax(0,1fr) 44px;
  }
}

@media (min-width: 761px) and (max-width: 1280px) {
  .workspace-shell.left-panel-collapsed {
    grid-template-columns: 44px minmax(0,1fr);
  }

  .panel-toggle-right {
    display: none;
  }
}

@media (max-width: 760px) {
  .panel-collapse-toggle {
    display: none;
  }
}

/* Mobile workspace adaptation: one readable column with touch-sized controls. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }

  .auth-screen {
    overflow-y: auto;
    place-items: start center;
    padding: calc(76px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom));
  }

  .auth-brand {
    top: calc(18px + env(safe-area-inset-top));
    left: 18px;
  }

  .auth-brand small {
    display: none;
  }

  .auth-card {
    width: 100%;
    border-radius: 16px;
    padding: 22px 18px;
  }

  .auth-card input,
  .auth-card button,
  .composer textarea,
  .harness-panel input,
  .harness-panel select,
  .harness-panel textarea,
  .admin-panel input,
  .admin-panel select {
    font-size: 16px;
  }

  .titlebar {
    height: calc(56px + env(safe-area-inset-top));
    grid-template-columns: auto minmax(0,1fr);
    gap: 10px;
    padding: env(safe-area-inset-top) 10px 0;
  }

  .titlebar-product {
    gap: 5px;
    font-size: 10px;
  }

  .titlebar-command {
    width: 100%;
    min-width: 0;
    height: 38px;
  }

  .titlebar-command #title-project {
    display: none;
  }

  .titlebar-command input[type="search"] {
    width: 100%;
    font-size: 16px;
  }

  .workspace-shell {
    inset: calc(56px + env(safe-area-inset-top)) 0 env(safe-area-inset-bottom);
    min-width: 0;
    grid-template-columns: minmax(0,1fr);
  }

  .conversation-header {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
  }

  .conversation-header h1 {
    margin-top: 2px;
    font-size: 18px;
  }

  .project-title-row {
    gap: 4px;
  }

  .project-title-row .live-run {
    width: 100%;
    max-width: 100%;
  }

  .project-title-row .live-run strong {
    max-width: min(56vw,240px);
  }

  .header-actions {
    align-self: center;
    gap: 6px;
  }

  .header-actions .write-mode {
    min-height: 38px;
    padding: 7px;
  }

  .header-actions .write-mode > span,
  .header-actions .status-chip {
    display: none;
  }

  .view-tabs {
    width: auto;
    max-width: none;
    min-width: 0;
    overflow-x: auto;
    margin: 0 8px 6px;
    padding: 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .view-tabs::-webkit-scrollbar {
    display: none;
  }

  .view-tabs button {
    min-height: 40px;
    flex: 0 0 auto;
    padding-inline: 13px;
    scroll-snap-align: start;
  }

  .chat-empty,
  .project-empty {
    padding: 24px 18px;
  }

  .messages {
    width: calc(100% - 16px);
    gap: 12px;
    padding: 14px 0 24px;
  }

  .message {
    grid-template-columns: 30px minmax(0,1fr);
    gap: 8px;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
  }

  .message > div {
    border-radius: 12px;
    padding: 11px 12px;
  }

  .markdown-body pre,
  .markdown-body table {
    max-width: calc(100vw - 74px);
  }

  .composer {
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  .mention-row {
    gap: 5px;
    margin-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mention-row::-webkit-scrollbar {
    display: none;
  }

  .mention-row button {
    min-height: 36px;
    flex: 0 0 auto;
    padding-inline: 10px;
  }

  .composer textarea {
    min-height: 56px;
    max-height: 132px;
    padding: 10px 11px;
  }

  .chat-attachment-status {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .activity-panel,
  .summary-panel,
  .workflows-panel,
  .git-panel,
  .harness-panel,
  .admin-panel,
  .registrations-panel {
    padding: 10px 9px 22px;
  }

  .activity-panel > header,
  .summary-panel > header,
  .workflows-panel > header,
  .git-panel > header,
  .admin-panel > header,
  .registrations-panel > header {
    align-items: stretch;
    flex-direction: column;
  }

  .harness-section,
  .harness-hero,
  .summary-thread {
    border-radius: 12px;
    padding: 13px;
  }

  .harness-heading,
  .harness-add,
  .git-commit {
    grid-template-columns: minmax(0,1fr);
  }

  .harness-heading {
    display: grid;
  }

  .harness-heading strong {
    justify-self: start;
  }

  .project-wizard,
  .run-plan-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 16px;
  }

  .project-wizard form,
  .run-plan-dialog form {
    max-height: calc(100dvh - 12px);
  }

  .project-wizard form > header,
  .wizard-step,
  .project-wizard form > footer,
  .run-plan-dialog form {
    padding-inline: 15px;
  }

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

  .project-wizard form > footer {
    flex-wrap: wrap;
  }

  .project-wizard form > footer span {
    display: none;
  }

  .run-plan-agents {
    grid-template-columns: minmax(0,1fr);
    max-height: min(34vh,260px);
  }

  .run-plan-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 390px) {
  .titlebar-product strong {
    display: none;
  }
}

/* Persistent document creation entry */
.quick-document-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 10px;
  background: #eff6ff;
  padding: 6px 10px;
  color: #1d4ed8;
  white-space: nowrap;
}

.quick-document-action > span {
  display: grid;
  min-width: 25px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: #2563eb;
  color: #fff;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .05em;
}

.quick-document-action > strong { font-size: 8px; }
.quick-document-action:hover { border-color: #2563eb; background: #dbeafe; }
.quick-document-action:disabled { cursor: not-allowed; opacity: .45; }

@media (max-width: 760px) {
  .quick-document-action {
    width: 38px;
    min-width: 38px;
    justify-content: center;
    padding: 0;
  }

  .quick-document-action > strong { display: none; }
}

/* Safe Office document preview */
.office-inline-preview {
  display: grid;
  gap: 16px;
  color: #24324a;
}

.office-inline-preview > header {
  display: grid;
  gap: 4px;
  padding: 3px 2px;
}

.office-inline-preview > header span {
  color: #2563eb;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.office-inline-preview > header h2 { margin: 0; font-size: 17px; }
.office-preview-caveat { margin: 1px 0 0; color: #64748b; font-size: 9px; line-height: 1.45; }
.office-docx-page { box-sizing: border-box; width: min(760px,100%); min-height: 520px; margin: 0 auto; border: 1px solid #cbd5e1; border-radius: 0; background: #fff; padding: 5.5% 10.7% 7%; box-shadow: 0 10px 26px rgba(31,45,64,.09); }
.office-doc-header { margin: 0 0 46px; border-bottom: 1px solid #bfdbfe; padding: 0 0 5px; color: #2563eb; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-align: right; }
.office-doc-footer { margin: 46px 0 0; border-top: 1px solid #e2e8f0; padding: 7px 0 0; color: #64748b; font-size: 10px; }
.office-docx-page h1 { max-width: 100%; margin: 0 0 9px; color: #0f172a; font-size: 28px; line-height: 1.25; letter-spacing: -.015em; }
.office-docx-page h2 { margin: 28px 0 13px; border-bottom: 2px solid #bfdbfe; padding-bottom: 8px; color: #0f172a; font-size: 21px; line-height: 1.3; }
.office-docx-page h3 { margin: 23px 0 10px; color: #1d4ed8; font-size: 18px; line-height: 1.3; }
.office-docx-page h4 { margin: 17px 0 8px; color: #334155; font-size: 15px; line-height: 1.35; }
.office-docx-page p { margin: 0 0 11px; color: #24324a; font-size: 14px; line-height: 1.43; white-space: pre-wrap; }
.office-docx-page .office-doc-kicker { margin: 0 0 12px; color: #2563eb; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.office-docx-page .office-doc-subtitle { margin-bottom: 12px; color: #64748b; font-size: 13px; line-height: 1.45; }
.office-doc-table-scroll { margin: 16px 0 22px; overflow-x: auto; }
.office-doc-table { width: 100%; min-width: 560px; border-collapse: collapse; color: #334155; font-size: 11px; line-height: 1.55; }
.office-doc-table th,.office-doc-table td { border: 1px solid #e2e8f0; padding: 9px 11px; text-align: left; vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.office-doc-table th { background: #1d4ed8; color: #fff; font-weight: 800; }
.office-doc-table tr:nth-child(even) td { background: #f8fafc; }
.office-slide-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 14px; }
.office-slide { position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid #dbe4f0; border-top: 5px solid #2563eb; border-radius: 14px; background: #f6f8fc; padding: clamp(22px,4vw,38px); box-shadow: 0 14px 32px rgba(31,45,64,.12); }
.office-slide.faithful { container-type: inline-size; border: 1px solid #cbd5e1; border-radius: 0; padding: 0; box-shadow: 0 8px 22px rgba(31,45,64,.08); }
.office-slide-shape { position: absolute; box-sizing: border-box; min-width: 0; overflow: hidden; border: 0 solid transparent; }
.office-slide-shape.text { display: flex; flex-direction: column; white-space: pre-line; overflow-wrap: anywhere; font-family: Aptos,"맑은 고딕","Noto Sans KR",sans-serif; line-height: 1.18; }
.office-slide.cover { border: 0; background: linear-gradient(128deg,#0b1220 0 73%,#111d33 73%); }
.office-slide.cover::before { position: absolute; inset: 0 auto 0 0; width: 7px; background: #3b82f6; content: ""; }
.office-slide small { color: #2563eb; font-size: 7px; font-weight: 900; letter-spacing: .12em; }
.office-slide.cover small { color: #60a5fa; }
.office-slide h3 { max-width: 90%; margin: 12px 0 18px; color: #0f172a; font-size: clamp(18px,2.7vw,28px); line-height: 1.2; letter-spacing: -.02em; }
.office-slide.cover h3 { max-width: 70%; margin-top: 15%; color: #fff; font-size: clamp(22px,3.2vw,34px); }
.office-slide > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.office-slide p { min-width: 0; margin: 0; border: 1px solid #dce4f0; border-left: 4px solid #2563eb; border-radius: 8px; background: #fff; padding: 9px 10px; color: #334155; font-size: 9px; line-height: 1.4; box-shadow: 0 4px 12px rgba(31,45,64,.05); }
.office-slide.cover > div { display: block; max-width: 68%; }
.office-slide.cover p { border: 0; background: transparent; padding: 0; color: #cbd5e1; font-size: 11px; box-shadow: none; }
.office-sheet { display: grid; gap: 8px; min-width: 0; }
.office-sheet > h3 { margin: 0; color: #1d4ed8; font-size: 13px; }
.office-sheet-scroll { overflow: auto; border: 1px solid #dbe4f0; border-radius: 10px; background: #fff; }
.office-sheet table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 10px; }
.office-sheet th,.office-sheet td { max-width: 420px; border: 1px solid #e2e8f0; padding: 8px 10px; text-align: left; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; }
.office-sheet tr:first-child td { height: 44px; background: #0f172a; color: #fff; font-size: 19px; font-weight: 800; }
.office-sheet th { position: sticky; top: 0; height: 30px; background: #2563eb; color: #fff; }
.office-sheet tr:nth-child(n+3) td { height: 38px; }
.office-sheet tr:nth-child(n+3):nth-child(odd) td { background: #f8fafc; }
.office-preview-truncated { margin: 0; border: 1px solid #fed7aa; border-radius: 9px; background: #fff7ed; padding: 9px 11px; color: #9a3412; font-size: 9px; }

@media (max-width: 760px) {
  .office-slide-grid { grid-template-columns: 1fr; }
  .office-docx-page { min-height: 420px; padding: 5.5% 8% 7%; }
  .office-slide:not(.faithful) { min-height: 210px; aspect-ratio: auto; }
  .office-slide > div { grid-template-columns: 1fr; }
}
