:root {
  --ink: #17213b;
  --ink-soft: #5f687d;
  --navy: #192541;
  --cream: #f5f3ee;
  --paper: #fffefa;
  --line: #d9dce3;
  --line-strong: #bbc1ce;
  --coral: #ee745b;
  --coral-soft: #fff0eb;
  --blue: #4568e8;
  --blue-soft: #eaf0ff;
  --green: #2d9b75;
  --green-soft: #e7f6f0;
  --gold: #c48b2f;
  --gold-soft: #fff5df;
  --shadow-sm: 0 2px 8px rgba(24, 33, 58, 0.08);
  --shadow-lg: 0 20px 46px rgba(24, 33, 58, 0.16), 0 2px 7px rgba(24, 33, 58, 0.08);
  font-family: Inter, Aptos, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

button {
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid rgba(69, 104, 232, 0.35);
  outline-offset: 2px;
}

.app-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

body.is-suite-runtime {
  display: flex;
  flex-direction: column;
}

body.is-suite-runtime > #suitePersistentHeader {
  flex: 0 0 auto;
}

body.is-suite-runtime > .suite-home,
body.is-suite-runtime > .app-shell,
body.is-suite-runtime > .suite-flowchart-host {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.suite-flowchart-host {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--cream);
}

#embeddedFlowchartRoot {
  width: 100%;
  height: 100%;
}

#embeddedFlowchartRoot > .jaybee-flowchart-root,
#embeddedFlowchartRoot .jaybee-flowchart-root {
  width: 100%;
  height: 100%;
}

.login-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) 1.15fr;
  overflow: hidden;
  background: #efeee9;
  background-image: radial-gradient(circle, rgba(83, 91, 109, 0.17) 1px, transparent 1.2px);
  background-size: 23px 23px;
}

.landing-footer {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 24px;
  color: #697084;
  background: rgba(255, 254, 250, 0.92);
  border-top: 1px solid rgba(187, 193, 206, 0.72);
  backdrop-filter: blur(14px);
  font-size: 10px;
}

.landing-footer nav,
.legal-page-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.landing-footer a,
.legal-page-footer a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.landing-footer a:hover,
.legal-page-footer a:hover,
.legal-page-footer a[aria-current="page"] {
  color: var(--coral);
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 48px));
  align-self: center;
  justify-self: center;
  padding: 34px 36px 36px;
  background: rgba(255, 254, 250, 0.98);
  border: 1px solid rgba(187, 193, 206, 0.85);
  border-radius: 17px;
  box-shadow: 0 28px 80px rgba(24, 33, 58, 0.18);
  backdrop-filter: blur(18px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

.login-brand strong {
  color: var(--coral);
}

.login-card h1 {
  margin: 5px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  letter-spacing: -0.8px;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.login-submit {
  width: 100%;
  margin-top: 5px;
}

.form-message {
  min-height: 16px;
  margin: 0 0 7px;
  color: #b44332;
  font-size: 9px;
  line-height: 1.4;
}

.form-message.is-success {
  color: #28745a;
}

.login-canvas {
  position: relative;
}

.login-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #aeb4c0;
  stroke-width: 2;
}

.login-canvas circle {
  fill: #aeb4c0;
  stroke: #efeee9;
  stroke-width: 3;
}

.login-sheet {
  position: absolute;
  z-index: 1;
  width: 210px;
  height: 135px;
  background: var(--paper);
  border: 1px solid rgba(180, 184, 195, 0.88);
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.login-sheet::before,
.login-sheet::after {
  content: "";
  position: absolute;
  left: 18px;
  border-radius: 99px;
  background: #d9dce3;
}

.login-sheet::before {
  top: 27px;
  width: 110px;
  height: 8px;
  background: var(--navy);
}

.login-sheet::after {
  top: 48px;
  width: 150px;
  height: 5px;
  box-shadow: 0 16px 0 #e6e6e1, 0 32px 0 #e6e6e1;
}

.login-sheet-one { left: 36px; top: calc(50% - 70px); }
.login-sheet-two { left: 47%; top: calc(50% - 185px); border-left-color: var(--blue); }
.login-sheet-three { left: 50%; top: calc(50% + 30px); border-left-color: var(--green); }

.topbar {
  position: relative;
  z-index: 20;
  height: 66px;
  flex: 0 0 66px;
  display: grid;
  grid-template-columns: 272px 1fr 540px;
  align-items: center;
  padding: 0 18px 0 20px;
  background: rgba(255, 254, 250, 0.96);
  border-bottom: 1px solid rgba(187, 193, 206, 0.58);
  backdrop-filter: blur(18px);
}

.brand,
.topbar-actions,
.project-identity,
.project-title,
.presentation-button,
.share-button,
.save-status {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
}

.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
}

.brand-mark span {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid var(--navy);
  border-radius: 4px;
  background: var(--paper);
}

.brand-mark span:nth-child(1) {
  left: 0;
  top: 0;
}

.brand-mark span:nth-child(2) {
  right: 0;
  top: 7px;
  background: var(--coral);
  border-color: var(--coral);
}

.brand-mark span:nth-child(3) {
  left: 4px;
  bottom: 0;
  width: 21px;
  height: 10px;
  background: var(--navy);
}

.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-name strong {
  color: var(--coral);
}

.project-identity {
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.project-label {
  color: var(--ink-soft);
  font-size: 12px;
}

.project-title {
  border: 0;
  padding: 6px 8px;
  gap: 5px;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

.project-title:hover {
  background: #f1f1ee;
}

.project-title svg,
.presentation-button svg,
.share-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.save-status {
  gap: 5px;
  color: var(--ink-soft);
  font-size: 11px;
}

.save-status > span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
}

.save-status > span:last-child {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
}

.save-status.is-saving > span:first-child {
  background: var(--gold);
  animation: save-pulse 1s ease-in-out infinite;
}

.save-status.is-error > span:first-child,
.save-status.is-offline > span:first-child {
  background: var(--coral);
}

@keyframes save-pulse {
  50% { opacity: 0.35; }
}

.topbar-actions {
  position: relative;
  justify-content: flex-end;
  gap: 9px;
}

.mobile-project-identity,
.mobile-action-backdrop,
.mobile-action-menu {
  display: none;
}

.topbar-actions > .mobile-more-button {
  display: none;
}

.icon-button,
.tool-button,
.nav-arrow,
.zoom-controls button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.icon-button:hover {
  background: #f0f0ec;
}

.icon-button svg,
.tool-button svg,
.nav-arrow svg,
.fit-button svg,
.add-sheet-button svg,
.edit-sheet-button svg,
.auto-arrange-button svg,
.global-layout-button svg,
.orientation-button svg,
.canvas-hint svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comment-total-count,
.activity-total-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 99px;
  color: #fff;
  background: var(--coral);
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--paper);
}

#notificationsNotification,
#activityNotification {
  top: auto;
  right: calc(50% - 2.5px);
  bottom: 2px;
  width: 5px;
  min-width: 5px;
  height: 5px;
  padding: 0;
  box-shadow: 0 0 0 2px var(--paper);
}

.presentation-button {
  height: 36px;
  padding: 0 12px;
  gap: 7px;
  color: #a84231;
  background: var(--coral-soft);
  border: 1px solid rgba(238, 116, 91, 0.34);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.presentation-button:hover {
  background: #ffe4db;
  border-color: rgba(238, 116, 91, 0.56);
}

.share-button {
  height: 36px;
  padding: 0 14px;
  gap: 7px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(25, 37, 65, 0.18);
}

.share-button:hover {
  background: #243354;
}

.avatar {
  width: 35px;
  height: 35px;
  padding: 0;
  border: 2px solid var(--paper);
  border-radius: 99px;
  color: #fff;
  background: #a66048;
  box-shadow: 0 0 0 1px #d9c7bf;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.workspace {
  height: auto;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.sidebar {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 24px 15px 16px;
  background: rgba(255, 254, 250, 0.91);
  border-right: 1px solid rgba(187, 193, 206, 0.64);
  backdrop-filter: blur(16px);
}

.sidebar-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 9px 19px;
}

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.05px;
  text-transform: uppercase;
}

.sidebar h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.35px;
}

.sidebar-close,
.mobile-only {
  display: none;
}

.sheet-tree {
  flex: 1;
  overflow-y: auto;
  padding: 2px 0;
  scrollbar-width: thin;
}

.tree-item {
  position: relative;
}

.tree-item::before {
  content: "";
  position: absolute;
  left: 19px;
  top: -8px;
  bottom: 50%;
  width: 1px;
  background: #d8dbe2;
}

.tree-item:first-child::before {
  display: none;
}

.tree-button {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 8px 6px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.tree-button:hover {
  background: #f1f1ed;
}

.tree-button.is-active {
  background: var(--coral-soft);
  color: #a84231;
}

.tree-button.is-parent-choice {
  color: #23664f;
  background: rgba(45, 155, 117, 0.1);
}

.tree-button.is-parent-choice:hover {
  background: rgba(45, 155, 117, 0.2);
}

.tree-button.is-parent-choice-current {
  color: #9a641c;
  background: rgba(216, 144, 47, 0.1);
}

.tree-button.is-parent-choice-invalid,
.tree-button.is-parent-move-source {
  opacity: 0.45;
}

.tree-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(24, 33, 58, 0.05);
}

.tree-button.is-active .tree-number {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.tree-copy {
  min-width: 0;
}

.tree-copy strong,
.tree-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tree-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.tree-copy span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

.tree-button.is-active .tree-copy span {
  color: #b96a5c;
}

.tree-workflow {
  width: 8px;
  height: 8px;
  background: var(--workflow-color);
  border-radius: 50%;
}

.tree-branch {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.55;
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 12px 5px 0;
  padding: 14px 10px 2px;
  border-top: 1px solid var(--line);
}

.team-stack {
  display: flex;
  padding-left: 6px;
}

.team-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  margin-left: -6px;
  border: 2px solid var(--paper);
  border-radius: 99px;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
}

.profile-menu {
  position: absolute;
  z-index: 60;
  top: 48px;
  right: 0;
  width: 230px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid rgba(187, 193, 206, 0.9);
  border-radius: 11px;
  box-shadow: 0 18px 42px rgba(24, 33, 58, 0.2);
}

.profile-menu-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 11px;
  border-bottom: 1px solid var(--line);
}

.profile-menu-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
}

.profile-menu-user strong,
.profile-menu-user span {
  display: block;
}

.profile-menu-user strong {
  font-size: 10px;
}

.profile-menu-user div span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.profile-menu > button {
  width: 100%;
  padding: 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 10px;
  cursor: pointer;
}

.profile-menu > button:hover {
  background: #f1f1ed;
}

.profile-menu-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 11px;
  margin: 4px 0;
  padding: 9px 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-menu-legal a {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
  text-decoration: none;
}

.profile-menu-legal a:hover {
  color: var(--coral);
}

html.legal-document {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.legal-page {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(238, 116, 91, 0.1), transparent 24rem),
    radial-gradient(circle, rgba(83, 91, 109, 0.14) 1px, transparent 1.2px),
    #efeee9;
  background-size: auto, 23px 23px, auto;
}

.legal-header {
  position: sticky;
  z-index: 10;
  top: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(255, 254, 250, 0.94);
  border-bottom: 1px solid rgba(187, 193, 206, 0.72);
  backdrop-filter: blur(16px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.legal-brand > .brand-mark {
  display: block;
}

.legal-brand strong {
  color: var(--coral);
}

.legal-back-link {
  padding: 9px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.legal-back-link:hover {
  color: var(--coral);
  border-color: rgba(238, 116, 91, 0.55);
}

.legal-main {
  flex: 1 0 auto;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.legal-intro {
  padding: 0 6px 25px;
}

.legal-intro h1 {
  margin: 7px 0 10px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.legal-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.legal-updated {
  display: inline-block;
  margin-top: 13px;
  padding: 5px 9px;
  color: #2b755d;
  background: var(--green-soft);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
}

.legal-card {
  margin-top: 14px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 254, 250, 0.97);
  border: 1px solid rgba(187, 193, 206, 0.8);
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(24, 33, 58, 0.08);
}

.legal-card h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-card p,
.legal-card li,
.legal-card address {
  color: #4f586d;
  font-size: 12px;
  line-height: 1.72;
}

.legal-card p {
  margin: 10px 0 0;
}

.legal-card p:first-of-type {
  margin-top: 0;
}

.legal-card address {
  font-style: normal;
}

.legal-card a {
  color: #3558c7;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 7px;
}

.legal-data {
  margin: 16px 0 0;
  border-top: 1px solid var(--line);
}

.legal-data > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.legal-data dt,
.legal-data dd {
  margin: 0;
  font-size: 11px;
}

.legal-data dt {
  color: var(--ink-soft);
  font-weight: 600;
}

.legal-data dd {
  color: var(--ink);
}

.legal-contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.legal-contact-card > div {
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
}

.legal-contact-card > div + div {
  border-left: 1px solid var(--line);
}

.legal-card-label {
  display: block;
  margin-bottom: 7px;
  color: var(--coral);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-primary-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.legal-notice {
  margin: 16px 6px 0;
  padding: 18px 20px;
  color: #536055;
  background: rgba(231, 246, 240, 0.88);
  border: 1px solid rgba(45, 155, 117, 0.25);
  border-radius: 12px;
}

.legal-notice strong {
  color: #2b755d;
  font-size: 11px;
}

.legal-notice p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.6;
}

.legal-notice-warning {
  color: #71572e;
  background: rgba(255, 245, 223, 0.94);
  border-color: rgba(196, 139, 47, 0.32);
}

.legal-notice-warning strong {
  color: #9a681f;
}

.legal-page-footer {
  flex: 0 0 auto;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 58px);
  color: #697084;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 10px;
}

button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.team-avatar.peach { background: #d7846a; }
.team-avatar.blue { background: #637fc0; }
.team-avatar.green { background: #5d9a82; }
.team-avatar.more { background: var(--navy); }

.sidebar-footer strong,
.sidebar-footer span {
  display: block;
}

.sidebar-footer strong {
  font-size: 10px;
  font-weight: 600;
}

.sidebar-footer > div:last-child span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
}

.canvas-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: #efeee9;
  background-image: radial-gradient(circle, rgba(83, 91, 109, 0.19) 1px, transparent 1.2px);
  background-size: 23px 23px;
}

.canvas-area::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(71, 76, 90, 0.045) 100%);
}

.canvas-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  cursor: grab;
  touch-action: none;
}

.canvas-viewport.is-dragging {
  cursor: grabbing;
}

.canvas-stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 2350px;
  height: 1340px;
  transform-origin: 0 0;
}

.canvas-stage.is-animated {
  transition: transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.canvas-viewport.is-dragging .canvas-stage {
  will-change: transform;
}

.connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.connection-path {
  fill: none;
  stroke: var(--connection-color, #8b95a9);
  stroke-width: var(--connection-width, 1.75px);
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.connection-path.is-group-connection {
  stroke: rgba(75, 103, 168, 0.68);
  stroke-width: 2.35;
}

.connection-path.is-cascade-trunk {
  stroke-width: calc(var(--connection-width, 1.75px) + 0.45px);
  opacity: 0.9;
}

.connection-path.is-cascade-branch {
  opacity: 0.82;
}

.connection-dot {
  fill: var(--connection-color, #8b95a9);
  stroke: #efeee9;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.connection-dot.is-group-dot {
  fill: #647eb8;
  stroke-width: 3.5;
}

.connection-dot.is-cascade-dot {
  stroke-width: 3.2;
}

.sheet-groups-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sheet-group {
  position: absolute;
  border: 1.5px dashed rgba(69, 104, 232, 0.34);
  border-radius: 18px;
  background: rgba(69, 104, 232, 0.025);
  transition: border-color 160ms ease, background 160ms ease;
}

.sheet-group.is-dragging {
  border-color: rgba(238, 116, 91, 0.72);
  background: rgba(238, 116, 91, 0.045);
}

.sheet-group-toolbar {
  position: absolute;
  left: 12px;
  top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  pointer-events: auto;
  z-index: 4;
}

.sheet-group-handle,
.sheet-group-rotate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(171, 177, 191, 0.72);
  border-radius: 9px;
  color: #56627c;
  background: rgba(251, 250, 247, 0.96);
  box-shadow: 0 3px 10px rgba(24, 33, 58, 0.08);
  font: 700 12px/1 "DM Sans", sans-serif;
  white-space: nowrap;
}

.sheet-group-handle {
  cursor: grab;
  touch-action: none;
}

.sheet-group-handle:active {
  cursor: grabbing;
}

.sheet-group-handle:hover,
.sheet-group-rotate:hover {
  color: #26334e;
  border-color: #8d98ad;
  background: #fff;
}

.sheet-group-handle svg,
.sheet-group-rotate svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-group-rotate {
  cursor: pointer;
}

.sheet-group-handle:disabled,
.sheet-group-rotate:disabled {
  cursor: default;
  opacity: 0.55;
}

.sheet {
  position: absolute;
  width: 420px;
  height: 297px;
  overflow: visible;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(180, 184, 195, 0.88);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transform-origin: center;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
  user-select: none;
  z-index: 2;
}

.sheet:hover {
  border-color: #9ea5b3;
  box-shadow: 0 9px 28px rgba(24, 33, 58, 0.13);
  transform: translateY(-2px);
}

.sheet.is-active {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(238, 116, 91, 0.2), var(--shadow-lg);
}

.sheet.is-parent-choice {
  border-color: rgba(45, 155, 117, 0.78);
  box-shadow: 0 0 0 2px rgba(45, 155, 117, 0.14), var(--shadow-sm);
  cursor: copy;
}

.sheet.is-parent-choice:hover,
.sheet.is-parent-drop-target {
  border-color: #2d9b75;
  box-shadow: 0 0 0 5px rgba(45, 155, 117, 0.25), var(--shadow-lg);
  transform: translateY(-2px) scale(1.015);
}

.sheet.is-parent-choice-pending {
  border-color: #237e61;
  box-shadow: 0 0 0 6px rgba(45, 155, 117, 0.3), var(--shadow-lg);
}

.sheet.is-parent-move-source,
.sheet.is-parent-drag-source {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(238, 116, 91, 0.24), var(--shadow-lg);
}

.sheet.is-parent-choice-current,
.sheet.is-parent-drop-current {
  border-color: rgba(216, 144, 47, 0.82);
  box-shadow: 0 0 0 3px rgba(216, 144, 47, 0.18), var(--shadow-sm);
  cursor: not-allowed;
}

.sheet.is-parent-choice-invalid,
.sheet.is-parent-drop-invalid {
  opacity: 0.42;
  cursor: not-allowed;
}

.sheet-parent-choice-label {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 50%;
  padding: 6px 10px;
  color: #fff;
  white-space: nowrap;
  background: #237e61;
  border-radius: 99px;
  box-shadow: 0 7px 18px rgba(24, 33, 58, 0.2);
  font-size: 9px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 120ms ease, transform 120ms ease;
}

.sheet.is-parent-choice:hover .sheet-parent-choice-label,
.sheet-parent-choice-label.is-source,
.sheet-parent-choice-label.is-current {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.sheet-parent-choice-label.is-source { background: var(--coral); }
.sheet-parent-choice-label.is-current { background: #c27b1f; }

body.is-selecting-sheet-parent .sheet-quick-toolbar {
  display: none;
}

.sheet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--sheet-accent, var(--coral));
}

.sheet-header {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 5px 14px 4px 20px;
  border-bottom: 1px solid #ecebe6;
}

.sheet-header > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.sheet-kicker {
  display: block;
  margin-bottom: 2px;
  color: var(--sheet-accent, var(--coral));
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.sheet-header h2 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.18px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sheet.is-title-long .sheet-header h2 {
  font-size: 12px;
}

.sheet.is-title-very-long .sheet-header h2 {
  font-size: 10.75px;
  letter-spacing: -0.08px;
}

.sheet-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--ink-soft);
  font-size: 8px;
}

.status-planned { --workflow-color: #7b8391; --workflow-bg: #eef0f2; --workflow-text: #596170; }
.status-in_progress { --workflow-color: #4568e8; --workflow-bg: #e9edff; --workflow-text: #3553bb; }
.status-review { --workflow-color: #c48b2f; --workflow-bg: #fff3d8; --workflow-text: #8b631f; }
.status-done { --workflow-color: #2d9b75; --workflow-bg: #e4f4ed; --workflow-text: #23785b; }

.sheet-workflow-status {
  height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  color: var(--workflow-text);
  background: var(--workflow-bg);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.sheet-meta-avatar {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #fff;
  background: var(--meta-color, #637fc0);
  border-radius: 50%;
  font-size: 7px;
  font-weight: 700;
}

.sheet-comment-count {
  height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 6px;
  color: #a84231;
  background: var(--coral-soft);
  border: 1px solid rgba(238, 116, 91, 0.26);
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
}

.sheet-comment-count svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-body {
  height: calc(100% - 62px);
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  padding: 8px 18px 7px 20px;
}

.sheet-main-content,
.sheet-content-view {
  min-height: 0;
}

.sheet-main-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.sheet-description {
  margin: 0;
  color: #5a6476;
  font-size: 7.1px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.sheet-bottom-stack {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.sheet-footer {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 13px 2px 20px;
  color: #71798a;
  background: rgba(248, 247, 243, 0.84);
  border-top: 1px solid #ecebe6;
  font-size: 5.6px;
}

.sheet-footer .sheet-workflow-status {
  height: 14px;
  padding-inline: 5px;
  font-size: 5.2px;
}

.sheet-footer .sheet-meta-avatar {
  font-size: 6px;
}

.sheet-footer-date.is-overdue {
  color: #b44332;
  font-weight: 700;
}

.sheet-footer-updated {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-tab-dock {
  position: absolute;
  z-index: 4;
  left: 14px;
  bottom: -21px;
  width: max-content;
  max-width: calc(100% - 28px);
  height: 21px;
  display: flex;
  align-items: start;
  gap: 3px;
}

.sheet-tab-rail {
  min-width: 0;
  height: 21px;
  display: flex;
  flex: 1 1 auto;
  align-items: start;
  gap: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px;
  background: transparent;
  border: 0;
  box-shadow: none;
  scrollbar-width: none;
}

.sheet-tab-rail::-webkit-scrollbar {
  display: none;
}

.sheet-tab-context {
  height: 20px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 7px;
  color: #5f687a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dfe2e8;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 7px rgba(24, 33, 58, 0.09);
  font: 750 6px/1 "Manrope", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sheet-tab {
  min-width: 48px;
  max-width: 92px;
  height: 20px;
  overflow: hidden;
  flex: 0 0 auto;
  padding: 0 7px;
  color: #687184;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f1f2f5;
  border: 1px solid #dfe2e8;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 7px rgba(24, 33, 58, 0.09);
  font: 650 6.5px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.sheet-tab:hover,
.sheet-tab.is-active {
  color: var(--sheet-accent, var(--blue));
  background: #fff;
  border-color: color-mix(in srgb, var(--sheet-accent, var(--blue)) 42%, #dfe2e8);
}

.sheet-tab.is-active {
  box-shadow: inset 0 -2px 0 var(--sheet-accent, var(--blue)), 0 3px 8px rgba(24, 33, 58, 0.11);
}

.sheet-tab-add {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--sheet-accent, var(--blue));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid color-mix(in srgb, var(--sheet-accent, var(--blue)) 34%, #dfe2e8);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 7px rgba(24, 33, 58, 0.09);
  font: 750 12px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.sheet-tab-add:hover,
.sheet-tab-add:focus-visible {
  color: #fff;
  background: var(--sheet-accent, var(--blue));
  outline: none;
}

.sheet-tab-indicator {
  position: absolute;
  z-index: 4;
  right: 11px;
  bottom: -19px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px;
  color: #667085;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #dfe2e8;
  border-top: 0;
  border-radius: 5px;
  box-shadow: 0 4px 9px rgba(24, 33, 58, 0.07);
  font: 700 6.5px/1 "Manrope", sans-serif;
}

.sheet-tab-indicator svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-tab-quick-popover {
  position: absolute;
  z-index: 24;
  width: min(286px, calc(100% - 24px));
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.98);
  border: 1px solid rgba(187, 193, 206, 0.84);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(24, 33, 58, 0.2);
  backdrop-filter: blur(16px);
}

.sheet-tab-quick-popover[hidden] {
  display: none;
}

.sheet-tab-quick-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sheet-tab-quick-heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sheet-tab-quick-heading strong {
  font-size: 11px;
}

.sheet-tab-quick-heading span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-tab-quick-heading > button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.sheet-tab-quick-heading > button:hover {
  color: var(--ink);
  background: #f0f1f4;
}

.sheet-tab-quick-actions {
  display: grid;
  gap: 5px;
}

.sheet-tab-quick-actions > button {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  text-align: left;
  color: var(--ink);
  background: #f7f7f5;
  border: 1px solid #e2e4e9;
  border-radius: 8px;
  cursor: pointer;
}

.sheet-tab-quick-actions > button:hover,
.sheet-tab-quick-actions > button:focus-visible {
  border-color: rgba(69, 104, 232, 0.44);
  background: #f0f3ff;
  outline: none;
}

.sheet-tab-quick-actions strong {
  font-size: 9px;
}

.sheet-tab-quick-actions span,
.sheet-tab-quick-copy label > span,
.sheet-tab-quick-copy p {
  color: var(--ink-soft);
  font-size: 7.5px;
}

.sheet-tab-quick-copy {
  display: grid;
  gap: 10px;
}

.sheet-tab-quick-copy[hidden] {
  display: none;
}

.sheet-tab-quick-copy label {
  display: grid;
  gap: 5px;
}

.sheet-tab-quick-copy p {
  margin: 0;
  padding: 9px;
  background: #f7f7f5;
  border-radius: 7px;
}

.sheet-tab-quick-copy > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.sheet-tab-quick-copy .secondary-button,
.sheet-tab-quick-copy .primary-button {
  min-height: 31px;
  padding: 0 11px;
  font-size: 8px;
}

.sheet-dependency-state {
  min-width: 0;
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 3px 7px;
  background: #f0f5f2;
  border: 1px solid #cfe1d8;
  border-radius: 7px;
}

.sheet-dependency-state.is-blocked {
  background: #fff0ed;
  border-color: #efc7bf;
}

.sheet-dependency-label {
  flex: 0 0 auto;
  color: #23785b;
  font-size: 6.2px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.sheet-dependency-state.is-blocked .sheet-dependency-label {
  color: #ad4938;
}

.sheet-dependency-links {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.sheet-dependency-links button,
.sheet-dependency-links > span {
  min-width: 0;
  max-width: 145px;
  overflow: hidden;
  padding: 2px 5px;
  color: #515b6f;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 151, 166, 0.34);
  border-radius: 99px;
  font-size: 6.2px;
}

.sheet-dependency-links button {
  cursor: pointer;
}

.sheet-dependency-links button:hover {
  color: var(--blue);
  border-color: rgba(69, 104, 232, 0.45);
}

.sheet-content-view {
  flex: 1 1 auto;
  overflow: hidden;
}

.sheet-content-view > * {
  height: 100%;
}

.sheet-content-view:empty {
  display: none;
}

.sheet-body.has-document {
  padding: 5px 12px 5px 14px;
}

.sheet-body.has-document .sheet-main-content {
  gap: 0;
}

.sheet-body.has-document .sheet-description {
  display: none;
}

.sheet-document-view {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e9ebef;
  border: 1px solid #d7dbe3;
  border-radius: 4px;
}

.sheet-document-frame {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  background: #fff;
  border: 0;
}

.sheet-document-caption {
  position: absolute;
  left: 5px;
  bottom: 5px;
  max-width: calc(100% - 42px);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  color: #39445a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(201, 206, 216, 0.85);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(24, 33, 58, 0.1);
  font-size: 5.8px;
  backdrop-filter: blur(7px);
}

.sheet-document-caption span {
  flex: 0 0 auto;
  color: var(--blue);
  font-weight: 800;
}

.sheet-document-caption strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-document-open {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #33405a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(190, 196, 208, 0.9);
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(24, 33, 58, 0.12);
  cursor: pointer;
}

.sheet-document-open:hover,
.sheet-document-open:focus-visible {
  color: var(--blue);
  border-color: rgba(69, 104, 232, 0.55);
  outline: none;
}

.sheet-document-open svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-document-missing {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 18px;
  text-align: center;
  color: #7a4b43;
  background: #fff1ee;
  border: 1px dashed #e2a99f;
  border-radius: 6px;
  font-size: 7px;
}

.sheet-document-missing strong {
  color: var(--ink);
  font-size: 9px;
}

.sheet-quick-toolbar {
  position: absolute;
  z-index: 7;
  top: -12px;
  right: 13px;
  height: 23px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  color: #657086;
  background: rgba(255, 254, 250, 0.9);
  border: 1px solid rgba(190, 194, 203, 0.78);
  border-radius: 7px;
  box-shadow: 0 4px 11px rgba(24, 33, 58, 0.09);
  opacity: 0.8;
  backdrop-filter: blur(7px);
  transition: opacity 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.sheet-quick-toolbar button {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.sheet-quick-toolbar button:not(.is-primary) {
  width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: width 150ms ease, opacity 120ms ease;
}

.sheet:hover .sheet-quick-toolbar,
.sheet.is-active .sheet-quick-toolbar,
.sheet-quick-toolbar:focus-within {
  opacity: 1;
  border-color: rgba(151, 159, 176, 0.9);
  box-shadow: 0 5px 13px rgba(24, 33, 58, 0.13);
}

.sheet:hover .sheet-quick-toolbar button:not(.is-primary),
.sheet.is-active .sheet-quick-toolbar button:not(.is-primary),
.sheet-quick-toolbar:focus-within button:not(.is-primary) {
  width: 17px;
  opacity: 1;
  pointer-events: auto;
}

.sheet-quick-toolbar button:hover,
.sheet-quick-toolbar button:focus-visible,
.sheet-quick-toolbar button.is-primary:hover,
.sheet-quick-toolbar button.is-primary:focus-visible {
  color: var(--sheet-accent, var(--blue));
  background: rgba(69, 104, 232, 0.1);
  outline: none;
}

.sheet-quick-toolbar button:disabled {
  color: #aeb4bf;
  background: transparent;
  cursor: not-allowed;
  opacity: 0.58;
}

.sheet-quick-toolbar svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-attachment-strip {
  position: absolute;
  z-index: 3;
  top: 51px;
  right: -29px;
  width: 28px;
  max-height: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  overflow: hidden;
  padding: 4px 2px;
  background: rgba(255, 254, 250, 0.82);
  border: 1px solid rgba(190, 194, 203, 0.7);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  box-shadow: 3px 4px 10px rgba(24, 33, 58, 0.06);
  opacity: 0.58;
  transition: right 160ms ease, width 160ms ease, max-height 160ms ease, gap 160ms ease, padding 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(6px);
}

.sheet:not(.is-active) .sheet-attachment,
.sheet:not(.is-active) .sheet-attachment-more {
  display: none;
}

.sheet:hover .sheet-attachment-strip {
  opacity: 0.78;
}

.sheet.is-active .sheet-attachment-strip {
  right: -33px;
  width: 32px;
  max-height: 178px;
  gap: 5px;
  overflow: visible;
  padding: 5px 3px;
  opacity: 0.94;
  box-shadow: 4px 6px 14px rgba(24, 33, 58, 0.1);
}

.sheet-attachment-label {
  position: relative;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #657086;
  background: transparent;
  border: 0;
  border-radius: 5px;
  padding: 0;
}

.sheet-attachment-label.is-upload {
  cursor: pointer;
}

.sheet-attachment-label.is-upload::after {
  content: "+";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 1px solid #fff;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
}

.sheet-attachment-label.is-upload:hover,
.sheet-attachment-label.is-upload:focus-visible {
  color: var(--blue);
  background: rgba(69, 104, 232, 0.09);
  outline: none;
  box-shadow: 0 0 0 2px rgba(69, 104, 232, 0.13);
}

.sheet-attachment-label svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-attachment,
.sheet-attachment-more {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7d9df;
  border-radius: 5px;
  cursor: pointer;
}

.sheet-attachment:hover,
.sheet-attachment:focus-visible,
.sheet-attachment-more:hover,
.sheet-attachment-more:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(69, 104, 232, 0.13);
}

.sheet-attachment img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sheet-attachment-more {
  color: var(--blue);
  font-size: 7px;
  font-weight: 700;
}

.attachment-type {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 3px;
  color: #fff;
  background: #657086;
  border-radius: 4px;
  font-size: 5px;
  font-weight: 800;
  letter-spacing: -0.1px;
}

.attachment-type-pdf { background: #c75a48; }
.attachment-type-office { background: #4568a8; }

.summary-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  height: 100%;
}

.summary-intro p {
  margin: 0 0 12px;
  color: #4f596e;
  font-size: 8.4px;
  line-height: 1.45;
}

.mini-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 6.8px;
  font-weight: 700;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  padding: 3px 6px;
  border-radius: 99px;
  color: #46516a;
  background: #f0f1f4;
  font-size: 6.3px;
  font-weight: 600;
}

.metric-stack {
  display: grid;
  align-content: start;
  gap: 5px;
}

.metric-box {
  padding: 7px 9px;
  background: #f5f3ef;
  border-radius: 6px;
}

.metric-box strong,
.metric-box span {
  display: block;
}

.metric-box strong {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
}

.metric-box span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 6.2px;
}

.chart-layout {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 18px;
  height: 100%;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 126px;
  padding: 8px 2px 20px;
  border-bottom: 1px solid #dfe1e6;
  background-image: linear-gradient(to bottom, transparent 32%, #eceef2 33%, transparent 34%, transparent 65%, #eceef2 66%, transparent 67%);
}

.bar-group {
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar {
  width: 28px;
  height: var(--height);
  min-height: 8px;
  border-radius: 4px 4px 1px 1px;
  background: var(--bar-color, var(--blue));
}

.bar-value {
  position: absolute;
  bottom: calc(var(--height) + 5px);
  font-size: 7px;
  font-weight: 700;
}

.bar-name {
  position: absolute;
  top: calc(100% + 5px);
  color: var(--ink-soft);
  font-size: 7px;
  white-space: nowrap;
}

.chart-note {
  align-self: start;
  padding: 9px;
  background: var(--blue-soft);
  border-radius: 6px;
  font-size: 7px;
  line-height: 1.45;
}

.chart-note strong {
  display: block;
  margin-bottom: 3px;
  font-size: 8.5px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  background: #d9dde5;
}

.milestone {
  position: relative;
  padding-top: 22px;
}

.milestone-dot {
  position: absolute;
  z-index: 1;
  left: 2px;
  top: 2px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: var(--milestone-color, var(--blue));
  box-shadow: 0 0 0 1px var(--milestone-color, var(--blue));
}

.milestone time,
.milestone strong,
.milestone span {
  display: block;
}

.milestone time {
  color: var(--ink-soft);
  font-size: 7px;
}

.milestone strong {
  margin-top: 4px;
  font-size: 8px;
}

.milestone span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 6.3px;
  line-height: 1.35;
}

.budget-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.donut-wrap {
  position: relative;
  width: 112px;
  height: 112px;
}

.donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--coral) 0 38%, var(--blue) 38% 68%, var(--green) 68% 87%, #e2b459 87% 100%);
}

.donut::after {
  content: "";
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: var(--paper);
}

.donut-total {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
}

.donut-total span {
  margin-top: 1px;
  color: var(--ink-soft);
  font-family: "DM Sans", sans-serif;
  font-size: 7px;
  font-weight: 400;
}

.legend-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.legend-item {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  align-items: center;
  gap: 5px;
  font-size: 7px;
}

.legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--legend-color);
}

.legend-item strong {
  font-size: 7px;
}

.research-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 7px;
}

.research-table th {
  padding: 0 7px 7px;
  color: var(--ink-soft);
  text-align: left;
  font-size: 7px;
  font-weight: 600;
}

.research-table td {
  padding: 6px 7px;
  border-top: 1px solid #e8e8e4;
}

.research-table td:first-child {
  font-weight: 600;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.signal::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-color, var(--green));
}

.image-layout {
  position: relative;
  height: 100%;
  margin: -12px -18px -14px -20px;
  overflow: hidden;
  background: #253253;
}

.image-layout img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  max-width: 210px;
  padding: 9px 11px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.92);
  border-radius: 5px;
  box-shadow: 0 5px 18px rgba(19, 29, 52, 0.18);
  backdrop-filter: blur(8px);
}

.image-caption strong,
.image-caption span {
  display: block;
}

.image-caption strong {
  font-size: 10px;
}

.image-caption span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 7px;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  height: 100%;
}

.quote-layout blockquote {
  position: relative;
  margin: 0;
  padding: 10px 0 0 23px;
  color: #354057;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.quote-layout blockquote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -7px;
  color: var(--coral);
  font-size: 31px;
}

.quote-layout cite {
  display: block;
  margin-top: 9px;
  color: var(--ink-soft);
  font-family: "DM Sans", sans-serif;
  font-size: 7px;
  font-style: normal;
}

.principles {
  display: grid;
  gap: 7px;
  align-content: center;
}

.principle {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 7px;
  border-radius: 5px;
  background: #f3f2ee;
  font-size: 7px;
  font-weight: 600;
}

.principle::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 8px;
}

.generic-layout {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 20px;
  height: 100%;
}

.generic-lines span {
  display: block;
  height: 7px;
  margin-bottom: 9px;
  border-radius: 99px;
  background: #e9e9e5;
}

.generic-lines span:nth-child(2) { width: 82%; }
.generic-lines span:nth-child(3) { width: 66%; }

.generic-tile {
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 28px;
}

.custom-content {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 5px;
  overflow: hidden;
}

.custom-content.is-dense,
.custom-content.is-compact {
  gap: 4px;
}

.custom-content.is-dense .custom-heading,
.custom-content.is-compact .custom-heading {
  font-size: 10.75px;
}

.custom-content.is-dense .custom-text,
.custom-content.is-compact .custom-text {
  font-size: 7.1px;
  line-height: 1.36;
}

.custom-content.is-dense .custom-note,
.custom-content.is-compact .custom-note {
  padding-block: 5px;
  font-size: 5.35px;
}

.custom-content.is-condensed {
  gap: 3px;
}

.custom-content.is-condensed .custom-heading { font-size: 10.1px; }
.custom-content.is-condensed .custom-text { font-size: 6.7px; line-height: 1.31; }
.custom-content.is-condensed .custom-note { padding: 4px 7px; font-size: 5.1px; line-height: 1.28; }
.custom-content.is-condensed .custom-table { font-size: 5.85px; }
.custom-content.is-condensed .custom-table th,
.custom-content.is-condensed .custom-table td { padding: 2px 4px; }
.custom-content.is-condensed .custom-timeline { gap: 4px; }
.custom-content.is-condensed .custom-timeline-row { gap: 4px; padding-top: 7px; }
.custom-content.is-condensed .custom-diagram { gap: 3px; }
.custom-content.is-condensed .diagram-card { padding: 4px 5px; }
.custom-content.is-condensed .diagram-card strong { font-size: 5.9px; }
.custom-content.is-condensed .diagram-card p { font-size: 5.35px; line-height: 1.22; }

.custom-content.is-pagination-probe {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.custom-heading,
.custom-text,
.custom-note,
.custom-table,
.custom-chart,
.custom-timeline,
.custom-diagram,
.custom-image,
.custom-file,
.custom-empty {
  grid-column: 1 / -1;
}

.custom-heading {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.1px;
  overflow-wrap: anywhere;
}

.custom-text {
  margin: 0;
  color: #4f596e;
  font-size: 7.5px;
  line-height: 1.42;
  overflow-wrap: anywhere;
  white-space: normal;
}

.custom-note {
  min-height: 0;
  padding: 6px 8px;
  color: #000;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 5px 5px 0;
  font-size: 5.7px;
  line-height: 1.35;
}

.custom-note span {
  display: block;
  margin-bottom: 2px;
  color: #000;
  font-size: 5.2px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.custom-note p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.custom-metric {
  grid-column: span 2;
  min-width: 0;
  padding: 6px 7px;
  background: #f3f2ee;
  border-radius: 6px;
}

.custom-metric strong,
.custom-metric span,
.custom-metric small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-metric strong {
  font-family: "Manrope", sans-serif;
  font-size: 11px;
}

.custom-metric span {
  margin-top: 1px;
  font-size: 6.2px;
  font-weight: 600;
}

.custom-metric small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 5.6px;
}

.custom-table-wrap {
  min-width: 0;
  grid-column: 1 / -1;
  overflow: hidden;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 6.2px;
}

.custom-table th,
.custom-table td {
  padding: 3px 5px;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
  border-bottom: 1px solid #e5e6e8;
}

.custom-table th {
  color: var(--ink-soft);
  background: #f3f2ee;
  font-weight: 700;
}

.custom-table.is-compact-rows {
  font-size: 5.35px;
  line-height: 1.08;
}

.custom-table.is-compact-rows th,
.custom-table.is-compact-rows td {
  padding: 1px 4px;
  vertical-align: middle;
}

.custom-content.is-condensed .custom-table.is-compact-rows th,
.custom-content.is-condensed .custom-table.is-compact-rows td {
  padding: 0 3px;
  font-size: 5px;
  line-height: 1;
}

.custom-block-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 6.2px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.custom-chart {
  display: grid;
  gap: 4px;
}

.custom-chart-row {
  display: grid;
  grid-template-columns: 96px minmax(30px, 1fr) 25px;
  align-items: center;
  gap: 6px;
  font-size: 6.2px;
}

.custom-chart-row > span {
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}

.custom-chart-row > i {
  height: 7px;
  overflow: hidden;
  background: #eceef2;
  border-radius: 99px;
}

.custom-chart-row > i b {
  display: block;
  height: 100%;
  background: var(--sheet-accent, var(--blue));
  border-radius: inherit;
}

.custom-chart-row > strong {
  text-align: right;
  font-size: 6.2px;
}

/* Lange dynamische Ranglisten müssen zusammen mit ihrer Leseregel auf eine
   A4-Seite passen. Die Verdichtung greift erst ab zehn sichtbaren Balken. */
.custom-content .data-chart[data-chart-items="10"],
.custom-content .data-chart[data-chart-items="11"],
.custom-content .data-chart[data-chart-items="12"] {
  gap: 1.5px;
}

.custom-content .data-chart[data-chart-items="10"] > .custom-block-label,
.custom-content .data-chart[data-chart-items="11"] > .custom-block-label,
.custom-content .data-chart[data-chart-items="12"] > .custom-block-label {
  margin-bottom: 2px;
}

.custom-content .data-chart[data-chart-items="10"] .custom-chart-row,
.custom-content .data-chart[data-chart-items="11"] .custom-chart-row,
.custom-content .data-chart[data-chart-items="12"] .custom-chart-row {
  font-size: 5.75px;
  line-height: 1.05;
}

.custom-content .data-chart[data-chart-items="10"] .custom-chart-row > span,
.custom-content .data-chart[data-chart-items="11"] .custom-chart-row > span,
.custom-content .data-chart[data-chart-items="12"] .custom-chart-row > span {
  line-height: 1.05;
}

.custom-content .data-chart[data-chart-items="10"] .custom-chart-row > strong,
.custom-content .data-chart[data-chart-items="11"] .custom-chart-row > strong,
.custom-content .data-chart[data-chart-items="12"] .custom-chart-row > strong {
  font-size: 5.75px;
}

.custom-timeline {
  display: grid;
  gap: 6px;
}

.custom-timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--timeline-columns, 4), minmax(0, 1fr));
  gap: 6px;
  padding-top: 8px;
}

.custom-timeline-row::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 12px;
  height: 1px;
  background: #d8dbe2;
}

.custom-timeline-item {
  position: relative;
  min-width: 0;
  padding-top: 14px;
}

.custom-timeline-item i {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--sheet-accent, var(--blue));
  box-shadow: 0 0 0 1px var(--sheet-accent, var(--blue));
}

.custom-timeline-item span,
.custom-timeline-item strong {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.custom-timeline-item span {
  color: var(--ink-soft);
  font-size: 5.6px;
}

.custom-timeline-item strong {
  margin-top: 2px;
  font-size: 6.2px;
}

.custom-diagram,
.report-diagram {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.diagram-flow-grid,
.diagram-group-items,
.diagram-network-spokes {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--diagram-columns, 4), minmax(0, 1fr));
  gap: 5px;
}

.diagram-card {
  position: relative;
  min-width: 0;
  padding: 6px 7px;
  overflow: hidden;
  background: #f4f6f9;
  border: 1px solid #dce1e9;
  border-top: 3px solid var(--diagram-accent, var(--sheet-accent, var(--blue)));
  border-radius: 5px;
}

.diagram-card strong,
.diagram-card p {
  display: block;
  overflow-wrap: anywhere;
  white-space: normal;
}

.diagram-card strong {
  color: var(--ink);
  font-size: 6.35px;
  line-height: 1.2;
}

.diagram-card p {
  margin: 2px 0 0;
  color: #586277;
  font-size: 5.65px;
  line-height: 1.28;
}

.diagram-step {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  color: #fff;
  background: var(--diagram-accent, var(--sheet-accent, var(--blue)));
  border-radius: 50%;
  font-size: 5.5px;
  font-weight: 700;
}

.diagram-groups {
  display: grid;
  gap: 5px;
}

.diagram-group-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 5px;
  align-items: stretch;
}

.diagram-group-label {
  display: grid;
  place-items: center start;
  padding: 5px 7px;
  color: #fff;
  background: var(--diagram-accent, var(--sheet-accent, var(--blue)));
  border-radius: 5px;
  font-size: 5.8px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.diagram-type-hierarchy .diagram-group-row {
  grid-template-columns: 78px minmax(0, 1fr);
}

.diagram-type-hierarchy .diagram-group-label {
  background: var(--diagram-accent, #192541);
}

.diagram-network-hub {
  width: min(44%, 220px);
  margin: 0 auto;
}

.diagram-network-hub .diagram-card {
  color: #fff;
  background: var(--diagram-accent, var(--sheet-accent, var(--blue)));
  border-color: transparent;
  text-align: center;
}

.diagram-network-hub .diagram-card strong,
.diagram-network-hub .diagram-card p {
  color: inherit;
}

.diagram-network-spokes {
  --diagram-columns: 3;
  position: relative;
  padding-top: 8px;
}

.diagram-network-spokes::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: #cfd5df;
}

.custom-image {
  height: auto;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.custom-image.image-size-small { grid-column: span 2; }
.custom-image.image-size-medium { grid-column: span 3; }
.custom-image.image-size-large { grid-column: span 4; }

.custom-image-open {
  width: 100%;
  height: 72px;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #e8e9ec;
  border: 0;
  border-radius: 6px;
  cursor: zoom-in;
}

.custom-image.image-size-small .custom-image-open { height: 58px; }
.custom-image.image-size-large .custom-image-open { height: 88px; }

.custom-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.custom-image figcaption {
  max-width: 100%;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 6px;
}

.custom-file {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  color: var(--ink);
  text-decoration: none;
  background: var(--blue-soft);
  border-radius: 6px;
}

.custom-file > span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 5px;
  font-size: 12px;
}

.custom-file strong,
.custom-file small {
  display: block;
}

.custom-file strong {
  font-size: 8px;
}

.custom-file small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 6px;
}

.custom-empty {
  padding: 12px;
  color: var(--ink-soft);
  text-align: center;
  background: #f3f2ee;
  border-radius: 6px;
  font-size: 8px;
}

.canvas-toolbar {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 43px;
  padding: 5px;
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid rgba(187, 193, 206, 0.75);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(24, 33, 58, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.tool-button {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.tool-button:hover,
.tool-button.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.tool-button:disabled {
  color: #a9aebb;
  cursor: not-allowed;
  background: transparent;
}

.connection-style-popover {
  position: absolute;
  z-index: 22;
  top: calc(100% + 9px);
  right: 0;
  width: 270px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.98);
  border: 1px solid rgba(187, 193, 206, 0.82);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(24, 33, 58, 0.18);
  backdrop-filter: blur(16px);
}

.connection-style-popover[hidden] {
  display: none;
}

.connection-style-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.connection-style-heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.connection-style-heading strong {
  font-size: 12px;
}

.connection-style-heading span {
  color: var(--ink-soft);
  font-size: 9px;
}

.connection-style-close {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.connection-style-close:hover {
  color: var(--ink);
  background: #f0f1f5;
}

.connection-style-field {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.connection-color-control,
.connection-width-control {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.connection-color-control input {
  width: 42px;
  height: 30px;
  padding: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.connection-color-control output,
.connection-width-control output {
  color: var(--ink);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.connection-width-control input {
  min-width: 0;
  flex: 1 1 auto;
  accent-color: var(--blue);
}

.connection-width-control output {
  width: 43px;
  flex: 0 0 auto;
  text-align: right;
}

.connection-style-preview {
  height: 34px;
  display: flex;
  align-items: center;
  margin-top: 12px;
  padding: 0 12px;
  overflow: hidden;
  background-color: #f5f4f0;
  background-image: radial-gradient(circle, rgba(142, 151, 169, 0.28) 0.7px, transparent 0.8px);
  background-size: 13px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.connection-style-preview span {
  width: 100%;
  height: var(--connection-width, 1.75px);
  background: var(--connection-color, #8b95a9);
  border-radius: 99px;
}

.connection-style-reset {
  width: 100%;
  height: 31px;
  margin-top: 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.connection-style-reset:hover {
  color: var(--blue);
  border-color: rgba(69, 104, 232, 0.42);
  background: var(--blue-soft);
}

.connection-path.is-parent-preview {
  stroke: #2d9b75;
  stroke-width: 4px;
  stroke-dasharray: 11 8;
  opacity: 0.96;
  filter: drop-shadow(0 0 4px rgba(45, 155, 117, 0.45));
  animation: parent-preview-flow 720ms linear infinite;
}

@keyframes parent-preview-flow {
  to { stroke-dashoffset: -19; }
}

.toolbar-separator {
  width: 1px;
  height: 22px;
  margin: 0 3px;
  background: var(--line);
}

.add-sheet-button,
.edit-sheet-button,
.auto-arrange-button,
.global-layout-button,
.orientation-button {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.add-sheet-button {
  color: #fff;
  background: var(--coral);
}

.edit-sheet-button {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.edit-sheet-button:hover,
.auto-arrange-button:hover,
.global-layout-button:hover {
  background: #f0f0ec;
}

.add-sheet-button:hover {
  background: #dc644f;
}

.orientation-button:hover {
  background: #f0f0ec;
}

.orientation-button svg {
  width: 19px;
}

.global-layout-button svg {
  width: 19px;
}

.global-layout-button.is-all-cascade {
  color: #7950a5;
  background: #f0eafb;
}

.canvas-hint {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 91px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px 8px 11px;
  color: #667087;
  background: rgba(255, 254, 250, 0.9);
  border: 1px solid rgba(187, 193, 206, 0.64);
  border-radius: 99px;
  box-shadow: var(--shadow-sm);
  font-size: 9px;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.sheet-parent-move-banner {
  position: absolute;
  z-index: 21;
  left: 50%;
  top: 72px;
  min-width: 360px;
  max-width: min(620px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  color: #183d31;
  background: rgba(239, 251, 246, 0.97);
  border: 1px solid rgba(45, 155, 117, 0.58);
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(24, 33, 58, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.sheet-parent-move-banner[hidden] { display: none; }

.sheet-parent-move-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2d9b75;
  border-radius: 8px;
}

.sheet-parent-move-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-parent-move-banner > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sheet-parent-move-banner strong,
.sheet-parent-move-banner small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-parent-move-banner strong { font-size: 11px; }
.sheet-parent-move-banner small { color: #527267; font-size: 8px; }

.sheet-parent-move-banner button {
  height: 29px;
  padding: 0 10px;
  color: #245a48;
  background: #fff;
  border: 1px solid rgba(45, 155, 117, 0.4);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.sheet-parent-move-banner button:hover {
  border-color: #2d9b75;
  background: #f8fffc;
}

.sheet-parent-move-banner button.is-confirm {
  color: #fff;
  background: #2d9b75;
  border-color: #2d9b75;
}

.sheet-parent-move-banner button.is-confirm:hover {
  background: #237e61;
}

.sheet-parent-move-banner button[hidden] { display: none; }

@media (max-width: 720px) {
  .sheet-parent-move-banner {
    top: 66px;
    width: calc(100% - 24px);
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .sheet-parent-move-icon { display: none; }
  .sheet-parent-move-banner small { white-space: normal; }
}

.canvas-hint.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 5px);
}

.canvas-hint svg {
  width: 14px;
  height: 14px;
}

.canvas-hint button {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #7b8496;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.canvas-hint button:hover {
  color: var(--ink);
  background: #e8e8e4;
}

.bottom-controls {
  position: absolute;
  z-index: 10;
  left: 18px;
  right: 18px;
  bottom: 17px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.sequence-nav,
.zoom-controls {
  display: flex;
  align-items: center;
  pointer-events: auto;
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid rgba(187, 193, 206, 0.75);
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(24, 33, 58, 0.11);
  backdrop-filter: blur(14px);
}

.sequence-nav {
  padding: 5px;
}

.nav-arrow {
  width: 34px;
  height: 38px;
  border-radius: 7px;
}

.nav-arrow:hover {
  background: #f0f0ec;
}

.current-sheet {
  width: 172px;
  height: 38px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--ink);
  text-align: left;
  background: #f3f2ee;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.current-sheet span {
  color: var(--coral);
  font-size: 8px;
  font-weight: 700;
}

.current-sheet strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
}

.zoom-controls {
  height: 45px;
  padding: 5px;
}

.zoom-controls button {
  min-width: 31px;
  height: 33px;
  border-radius: 7px;
  font-size: 16px;
}

.zoom-controls button:hover {
  background: #f0f0ec;
}

.zoom-controls > span:not(.toolbar-separator) {
  width: 43px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.zoom-controls .fit-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  font-size: 10px;
}

.fit-button svg {
  width: 15px;
  height: 15px;
}

.minimap {
  position: absolute;
  z-index: 8;
  right: 19px;
  bottom: 76px;
  width: 210px;
  height: 140px;
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  overflow: hidden;
  background: rgba(255, 254, 250, 0.9);
  border: 1px solid rgba(187, 193, 206, 0.7);
  border-radius: 11px;
  box-shadow: 0 10px 32px rgba(24, 33, 58, 0.13);
  backdrop-filter: blur(16px);
}

.minimap-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(187, 193, 206, 0.42);
  pointer-events: none;
}

.minimap-header strong {
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
}

.minimap-header span {
  font-size: 7px;
  font-variant-numeric: tabular-nums;
}

.minimap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.minimap-edge {
  fill: none;
  stroke: rgba(117, 128, 149, 0.32);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.minimap-edge.is-active-path {
  stroke: rgba(247, 113, 86, 0.82);
  stroke-width: 1.4;
}

.minimap-viewport {
  fill: rgba(69, 104, 232, 0.08);
  stroke: rgba(69, 104, 232, 0.72);
  stroke-width: 1;
  stroke-dasharray: 3 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.minimap-node {
  outline: none;
  cursor: pointer;
}

.minimap-node-hit {
  fill: transparent;
}

.minimap-node-shape {
  fill: #aeb5c2;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  transition: fill 150ms ease, stroke 150ms ease;
}

.minimap-node.is-root .minimap-node-shape,
.minimap-node.is-topic .minimap-node-shape {
  fill: var(--minimap-accent, var(--blue));
}

.minimap-node:hover .minimap-node-shape,
.minimap-node:focus .minimap-node-shape {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 1.4;
}

.minimap-node.is-active .minimap-node-shape {
  fill: var(--coral);
  stroke: #fff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 2px rgba(238, 116, 91, 0.75));
}

.minimap-node.is-parent-choice .minimap-node-shape {
  fill: #2d9b75;
  stroke: #fff;
  stroke-width: 1.2;
}

.minimap-node.is-parent-choice-current .minimap-node-shape {
  fill: #d8902f;
}

.minimap-node.is-parent-choice-invalid,
.minimap-node.is-parent-move-source {
  opacity: 0.34;
}

.toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 76px;
  padding: 9px 13px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 33, 58, 0.22);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.presentation-hud,
.presentation-controls,
.presentation-topic-rail,
.presentation-navigator {
  display: none;
}

.presentation-navigator.is-combined {
  width: calc(clamp(560px, 31vw, 620px) - 28px);
}

.presentation-hud {
  position: absolute;
  z-index: 28;
  left: 24px;
  right: 24px;
  top: 20px;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  pointer-events: none;
}

.presentation-identity span,
.presentation-identity strong {
  display: block;
}

.presentation-identity span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.presentation-identity strong {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
}

.presentation-shortcuts {
  position: absolute;
  left: 50%;
  color: rgba(255, 255, 255, 0.52);
  font-size: 9px;
  transform: translateX(-50%);
}

.presentation-exit,
.presentation-nav-button,
.presentation-overview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  cursor: pointer;
}

.presentation-exit {
  height: 36px;
  gap: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  font-size: 11px;
  pointer-events: auto;
  backdrop-filter: blur(14px);
}

.presentation-exit:hover,
.presentation-nav-button:hover,
.presentation-overview-button:hover,
.presentation-overview-button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.2);
}

.presentation-exit svg,
.presentation-nav-button svg,
.presentation-overview-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.presentation-controls {
  position: absolute;
  z-index: 28;
  left: 50%;
  bottom: 20px;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 24px);
  padding: 5px;
  color: #fff;
  background: rgba(18, 25, 41, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(4, 8, 18, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.presentation-nav-button {
  width: 38px;
  height: 40px;
  padding: 0;
  background: transparent;
  border-radius: 8px;
}

.presentation-nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.presentation-current {
  width: 210px;
  min-width: 0;
  padding: 0 12px;
}

.presentation-current span,
.presentation-current strong {
  display: block;
}

.presentation-current span {
  margin-bottom: 2px;
  color: var(--coral);
  font-size: 8px;
  font-weight: 700;
}

.presentation-current strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.presentation-divider {
  width: 1px;
  height: 25px;
  margin: 0 3px;
  background: rgba(255, 255, 255, 0.16);
}

.presentation-overview-button {
  height: 40px;
  gap: 7px;
  padding: 0 11px;
  background: transparent;
  border-radius: 8px;
  font-size: 10px;
}

.presentation-topic-rail {
  position: absolute;
  z-index: 27;
  top: 68px;
  left: 20px;
  right: 20px;
  height: 44px;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}

.presentation-topic-rail::-webkit-scrollbar {
  display: none;
}

.presentation-topic-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  height: 34px;
  max-width: 230px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.63);
  background: rgba(18, 25, 41, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(4, 8, 18, 0.16);
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.presentation-topic-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
}

.presentation-topic-button small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.presentation-topic-button:hover,
.presentation-topic-button.is-location {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}

.presentation-topic-button.is-active {
  color: #fff;
  background: rgba(247, 113, 86, 0.22);
  border-color: rgba(247, 113, 86, 0.62);
  box-shadow: 0 8px 26px rgba(247, 113, 86, 0.13);
}

.presentation-topic-button.is-active small {
  color: #fff;
  background: rgba(247, 113, 86, 0.32);
}

.presentation-topic-button.is-location:not(.is-active)::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: #4fc298;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(79, 194, 152, 0.13);
}

.presentation-navigator {
  position: absolute;
  z-index: 26;
  top: 122px;
  bottom: 78px;
  left: 16px;
  width: calc(clamp(320px, 20vw, 360px) - 28px);
  min-height: 260px;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: rgba(14, 20, 34, 0.82);
  border: 1px solid rgba(248, 250, 255, 0.42);
  border-radius: 14px;
  box-shadow: 0 22px 62px rgba(2, 6, 16, 0.3);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 180ms ease, transform 220ms ease;
  pointer-events: auto;
  backdrop-filter: blur(20px);
}

.presentation-navigator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 13px 13px 9px;
}

.presentation-navigator-header > div:first-child {
  min-width: 0;
}

.presentation-navigator-header span,
.presentation-navigator-header strong {
  display: block;
}

.presentation-navigator-header span {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.presentation-navigator-header strong {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
}

.presentation-map-view {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
}

.presentation-navigator-header .presentation-map-view button {
  width: auto;
  height: 24px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.48);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.presentation-navigator-header .presentation-map-view button:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.86);
}

.presentation-navigator-header .presentation-map-view button[aria-pressed="true"] {
  color: #fff;
  background: rgba(247, 113, 86, 0.24);
  box-shadow: inset 0 0 0 1px rgba(247, 113, 86, 0.38);
}

.presentation-navigator-header .presentation-map-view [data-presentation-auto-compact][aria-pressed="true"] {
  color: #dffaf2;
  background: rgba(50, 164, 145, 0.25);
  box-shadow: inset 0 0 0 1px rgba(79, 194, 152, 0.45);
}

.presentation-navigator-header .presentation-map-view button:disabled {
  color: rgba(255, 255, 255, 0.2);
  cursor: default;
}

.presentation-navigator-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.presentation-navigator-header button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.presentation-navigator-header svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.presentation-map-context {
  margin: 0 13px 8px;
  padding: 8px 9px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.35;
}

.presentation-map-context strong {
  display: block;
  margin-bottom: 2px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.presentation-map-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.presentation-map-breadcrumb span,
.presentation-map-breadcrumb i {
  flex: 0 0 auto;
}

.presentation-map-breadcrumb i {
  color: rgba(255, 255, 255, 0.32);
  font-style: normal;
}

.presentation-map-breadcrumb strong {
  min-width: 0;
  margin: 0;
  font-size: 9px;
}

.presentation-map-context small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.54);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}

.presentation-map {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0 6px;
}

.presentation-map.is-combined {
  display: grid;
  gap: 7px;
  margin: 0 7px;
}

.presentation-navigator.is-map-horizontal .presentation-map.is-combined {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.presentation-navigator.is-map-vertical .presentation-map.is-combined {
  grid-template-rows: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.presentation-map-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(248, 250, 255, 0.64);
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.presentation-map-panel > header {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.presentation-map-panel > header strong,
.presentation-map-panel > header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-map-panel > header strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
}

.presentation-map-panel > header small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 7.5px;
}

.presentation-map-canvas {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
}

.presentation-map-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.presentation-map-neighbors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  padding: 5px 7px 0;
}

.presentation-map-neighbors button,
.presentation-map-neighbors .is-empty {
  min-width: 0;
  height: 20px;
}

.presentation-map-neighbors button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7.5px;
  cursor: pointer;
}

.presentation-map-neighbors button:last-child {
  justify-content: flex-end;
}

.presentation-map-neighbors button:hover,
.presentation-map-neighbors button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  outline: none;
}

.presentation-map svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
}

.presentation-map-edge {
  fill: none;
  stroke: rgba(187, 197, 218, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.presentation-map-edge.is-scope {
  stroke: rgba(187, 197, 218, 0.34);
}

.presentation-map-edge.is-active-path {
  stroke: rgba(247, 113, 86, 0.82);
  stroke-width: 1.7;
}

.presentation-map-node {
  outline: none;
}

.presentation-map-node .node-shape {
  fill: rgba(206, 213, 228, 0.36);
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease, opacity 160ms ease, stroke 160ms ease;
}

.presentation-map-node.is-out-of-scope {
  opacity: 0.24;
}

.presentation-map-node.is-in-scope {
  cursor: pointer;
}

.presentation-map-node.is-in-scope:hover .node-shape,
.presentation-map-node.is-in-scope:focus .node-shape {
  fill: rgba(255, 255, 255, 0.78);
  stroke: #fff;
}

.presentation-map-node.is-topic .node-shape {
  fill: color-mix(in srgb, var(--map-accent, #4568e8) 64%, #fff 8%);
  stroke: rgba(255, 255, 255, 0.62);
}

.presentation-map-node.is-topic.is-auto-cascade .node-shape {
  stroke-dasharray: 2 1.4;
}

.presentation-navigator.is-topic-focus .presentation-map-node.is-topic-section .node-shape {
  fill: color-mix(in srgb, var(--map-accent, #4568e8) 44%, #fff 7%);
  stroke: rgba(255, 255, 255, 0.48);
}

.presentation-map-node.is-past .node-shape {
  fill: rgba(79, 194, 152, 0.6);
}

.presentation-map-node.is-next .node-shape {
  fill: rgba(69, 104, 232, 0.82);
  stroke: rgba(255, 255, 255, 0.9);
}

.presentation-map-node.is-active .node-shape {
  fill: #f77156;
  stroke: #fff;
  stroke-width: 1.7;
  filter: drop-shadow(0 0 5px rgba(247, 113, 86, 0.72));
}

.presentation-map-node .node-hit {
  fill: transparent;
}

.presentation-map-node text {
  fill: rgba(255, 255, 255, 0.86);
  font-family: "DM Sans", sans-serif;
  font-size: 8.4px;
  font-weight: 650;
  paint-order: stroke;
  stroke: rgba(14, 20, 34, 0.76);
  stroke-linejoin: round;
  stroke-width: 0.65px;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.presentation-map-node.is-active text {
  fill: #fff;
  font-weight: 700;
}

.presentation-navigator.is-topic-focus .presentation-map-node text,
.presentation-map-panel.is-topic-map .presentation-map-node text {
  font-size: 9.2px;
}

.presentation-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 8px 13px 11px;
  color: rgba(255, 255, 255, 0.43);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 8px;
}

.presentation-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.presentation-map-legend i {
  width: 6px;
  height: 6px;
  background: rgba(206, 213, 228, 0.4);
  border-radius: 2px;
}

.presentation-map-legend i.is-current {
  background: #f77156;
}

.presentation-map-legend i.is-route {
  height: 2px;
  background: rgba(247, 113, 86, 0.82);
  border-radius: 999px;
}

.presentation-navigator-toggle[aria-pressed="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

body.is-presenting #suitePersistentHeader,
body.is-presenting #canvasSuiteCoreHeader,
body.is-presenting .suite-application-header,
body.is-presenting .topbar,
body.is-presenting .sidebar,
body.is-presenting .canvas-toolbar,
body.is-presenting .canvas-hint,
body.is-presenting .minimap,
body.is-presenting .bottom-controls,
body.is-presenting .sheet-editor,
body.is-presenting .comments-panel {
  display: none;
}

body.is-presenting .workspace {
  height: 100%;
  display: block;
}

body.is-presenting .canvas-area {
  --presentation-nav-space: clamp(320px, 20vw, 360px);
  width: 100%;
  height: 100%;
  background-color: #151b2a;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.2px);
  background-size: 25px 25px;
}

body.is-presenting.is-presentation-map-combined .canvas-area {
  --presentation-nav-space: clamp(560px, 31vw, 620px);
}

body.is-presenting .canvas-area::after {
  background: radial-gradient(circle at center, transparent 34%, rgba(3, 7, 17, 0.34) 100%);
}

body.is-presenting .presentation-hud,
body.is-presenting .presentation-controls,
body.is-presenting .presentation-topic-rail,
body.is-presenting .presentation-navigator {
  display: flex;
}

body.is-presenting .canvas-viewport {
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--presentation-nav-space);
  transition: left 220ms ease;
}

body.is-presenting.is-presentation-layout-snap .canvas-viewport {
  transition: none;
}

body.is-presenting.is-presentation-navigator-hidden .canvas-viewport {
  left: 0;
}

body.is-presenting.is-presentation-navigator-hidden .presentation-navigator {
  opacity: 0;
  transform: translateX(calc(-100% - 24px));
  pointer-events: none;
}

body.is-presenting .connections,
body.is-presenting .sheet,
body.is-presenting .sheet-group {
  transition: opacity 220ms ease, visibility 220ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.is-presenting:not(.is-presentation-overview) .connections,
body.is-presenting:not(.is-presentation-overview) .sheet:not(.is-active),
body.is-presenting:not(.is-presentation-overview) .sheet-group {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.is-presenting .sheet-group-toolbar,
body.is-readonly .sheet-group-toolbar {
  display: none;
}

body.is-presenting .sheet.is-active {
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 30px 80px rgba(2, 6, 16, 0.44), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

body.is-presenting .sheet-tab-dock.is-presentation-tabs {
  bottom: -24px;
  height: 24px;
}

body.is-presenting .sheet-tab-dock.is-presentation-tabs .sheet-tab-rail {
  height: 24px;
}

body.is-presenting .sheet-tab-dock.is-presentation-tabs .sheet-tab,
body.is-presenting .sheet-tab-dock.is-presentation-tabs .sheet-tab-context {
  height: 23px;
  font-size: 7px;
}

body.is-presenting .sheet:hover {
  transform: none;
}

body.is-presenting.is-presentation-overview .connections,
body.is-presenting.is-presentation-overview .sheet {
  visibility: visible;
  opacity: 1;
}

body.is-presenting.is-presentation-overview .connection-path {
  stroke: rgba(225, 229, 239, 0.58);
}

body.is-presenting.is-presentation-overview .connection-dot {
  fill: #dfe3ec;
  stroke: #151b2a;
}

.sheet.is-dragging {
  z-index: 5;
  cursor: grabbing;
  box-shadow: var(--shadow-lg);
  transition: none;
}

.sheet-editor {
  position: absolute;
  z-index: 16;
  top: 76px;
  right: 16px;
  bottom: 77px;
  width: 366px;
  overflow: hidden;
  background: rgba(255, 254, 250, 0.97);
  border: 1px solid rgba(187, 193, 206, 0.8);
  border-radius: 13px;
  box-shadow: 0 20px 46px rgba(24, 33, 58, 0.18);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease;
  backdrop-filter: blur(18px);
}

.sheet-editor.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.comments-panel {
  position: absolute;
  z-index: 17;
  top: 76px;
  right: 16px;
  bottom: 77px;
  width: 366px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: rgba(255, 254, 250, 0.98);
  border: 1px solid rgba(187, 193, 206, 0.8);
  border-radius: 13px;
  box-shadow: 0 20px 46px rgba(24, 33, 58, 0.18);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease;
  backdrop-filter: blur(18px);
}

.comments-panel.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.comments-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.comments-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.35px;
}

.comments-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 14px 4px;
  padding: 10px 11px;
  background: #f5f3ee;
  border: 1px solid #e8e5dc;
  border-radius: 9px;
}

.comments-context > div {
  min-width: 0;
}

.comments-context span,
.comments-context strong {
  display: block;
}

.comments-context > div > span {
  margin-bottom: 2px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

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

.comments-context .comments-sheet-count {
  flex-shrink: 0;
  padding: 4px 7px;
  color: #a84231;
  background: var(--coral-soft);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
}

.comments-list {
  min-height: 0;
  overflow-y: auto;
  padding: 5px 14px 12px;
}

.comments-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  color: var(--ink-soft);
  text-align: center;
}

.comments-empty svg {
  width: 25px;
  height: 25px;
  margin-bottom: 9px;
  fill: none;
  stroke: #9ca3b1;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.comments-empty strong,
.comments-empty span {
  display: block;
}

.comments-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.comments-empty span {
  max-width: 220px;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.45;
}

.comment-item {
  padding: 13px 2px 12px;
  border-bottom: 1px solid #ece9e1;
}

.comment-item.is-resolved {
  opacity: 0.64;
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #a66048;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
}

.comment-author-copy {
  min-width: 0;
  flex: 1;
}

.comment-author-copy strong,
.comment-author-copy span {
  display: block;
}

.comment-author-copy strong {
  font-size: 10px;
}

.comment-author-copy span {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 8px;
}

.comment-status {
  padding: 3px 6px;
  color: #28745a;
  background: #e6f4ed;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
}

.comment-body-copy {
  margin: 9px 0 8px 35px;
  color: #424b5f;
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment-action {
  display: block;
  margin-left: 35px;
  padding: 0;
  color: #59647a;
  background: transparent;
  border: 0;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.comment-action:hover {
  color: var(--coral-dark);
}

.comment-form {
  padding: 13px 14px 14px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.comment-form textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9d9d4;
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-size: 10px;
  line-height: 1.45;
}

.comment-form textarea:focus {
  border-color: rgba(238, 116, 91, 0.8);
  box-shadow: 0 0 0 3px rgba(238, 116, 91, 0.12);
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.comment-form-footer > span {
  color: var(--ink-soft);
  font-size: 8px;
}

.sheet-editor form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.editor-header,
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.editor-header {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.editor-header h2,
.dialog-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: -0.35px;
}

.editor-fields {
  flex: 1;
  overflow-y: auto;
  padding: 17px 18px;
}

.editor-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 7px;
  background: #f2f1ed;
  border-bottom: 1px solid var(--line);
}

.editor-tab {
  height: 31px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.editor-tab:hover {
  color: var(--ink);
}

.editor-tab.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(24, 33, 58, 0.1);
}

.editor-panel[hidden] {
  display: none;
}

.content-editor {
  flex: 1;
  overflow-y: auto;
  padding: 15px 14px 18px;
}

.document-sheet-editor {
  margin-bottom: 12px;
  padding: 12px;
  background: linear-gradient(145deg, #f0f4ff, #f7f8fb 62%);
  border: 1px solid rgba(69, 104, 232, 0.24);
  border-radius: 10px;
}

.document-sheet-heading,
.document-sheet-active,
.document-sheet-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-sheet-heading {
  justify-content: space-between;
}

.document-sheet-heading > div {
  min-width: 0;
}

.document-sheet-heading .field-label {
  margin-bottom: 2px;
  color: var(--blue);
  font-size: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.document-sheet-heading strong {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-sheet-status {
  flex: 0 0 auto;
  padding: 4px 7px;
  color: #3553bb;
  background: #e3e9ff;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 800;
}

.document-sheet-status.is-ready {
  color: #23785b;
  background: #e2f3eb;
}

.document-sheet-editor > p {
  margin: 7px 0 10px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.document-sheet-active {
  margin-top: 10px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #dce1eb;
  border-radius: 8px;
}

.document-sheet-file-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink-soft);
  background: #edf0f6;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
}

.document-sheet-active > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.document-sheet-active strong,
.document-sheet-active small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-sheet-active strong {
  font-size: 9px;
}

.document-sheet-active small {
  color: var(--ink-soft);
  font-size: 7px;
}

.document-sheet-picker label {
  display: grid;
  gap: 4px;
}

.document-sheet-picker .select-input {
  height: 34px;
  margin: 0;
  font-size: 9px;
}

.document-sheet-actions {
  flex-wrap: wrap;
  margin-top: 8px;
}

.document-sheet-actions .primary-button,
.document-sheet-actions .secondary-button,
.document-sheet-actions .danger-button {
  min-height: 31px;
  padding-inline: 9px;
  font-size: 7.5px;
}

.manual-content-editor[hidden] {
  display: none;
}

.visual-editor-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: linear-gradient(135deg, #eef1ff, #f8f8fb);
  border: 1px solid rgba(69, 104, 232, 0.22);
  border-radius: 10px;
}

.visual-editor-launch > div {
  min-width: 0;
}

.visual-editor-launch .field-label {
  margin-bottom: 3px;
  color: var(--blue);
  font-size: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.visual-editor-launch strong {
  display: block;
  font-size: 10px;
}

.visual-editor-launch p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.4;
}

.visual-editor-launch .primary-button {
  min-height: 34px;
  flex: 0 0 auto;
  padding-inline: 11px;
  font-size: 8px;
}

.multisheet-editor {
  margin-bottom: 14px;
  padding: 11px;
  background: #f5f6f9;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
}

.multisheet-editor-heading,
.multisheet-editor-title-row,
.multisheet-transfer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.multisheet-editor-heading .field-label {
  margin-bottom: 2px;
  font-size: 7px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.multisheet-editor-heading strong {
  display: block;
  font-size: 11px;
}

.multisheet-editor-help {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.multisheet-editor-controls {
  margin-top: 10px;
}

.multisheet-editor-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 1px 7px;
}

.multisheet-editor-tab,
.multisheet-editor-add {
  height: 29px;
  flex: 0 0 auto;
  padding: 0 9px;
  color: #59647a;
  background: #fff;
  border: 1px solid #d7dbe4;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.multisheet-editor-tab {
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multisheet-editor-tab.is-active {
  color: var(--blue);
  background: #eef1ff;
  border-color: rgba(69, 104, 232, 0.42);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.multisheet-editor-add {
  width: 29px;
  padding: 0;
  color: var(--blue);
  font-size: 15px;
}

.multisheet-editor-title-row {
  align-items: end;
  padding-top: 8px;
  border-top: 1px solid #e1e4eb;
}

.multisheet-editor-title-row > label,
.multisheet-transfer > label {
  min-width: 0;
  flex: 1;
}

.multisheet-editor-title-row .text-input,
.multisheet-transfer .select-input {
  height: 33px;
  margin: 0;
  font-size: 10px;
}

.multisheet-editor-order {
  display: flex;
  gap: 3px;
}

.multisheet-editor-order .icon-button {
  width: 29px;
  height: 29px;
  font-size: 12px;
}

.multisheet-editor-order .icon-button.is-danger {
  color: #b44332;
}

.multisheet-transfer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e1e4eb;
}

.multisheet-transfer-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 7px;
}

.multisheet-transfer-actions .secondary-button {
  min-height: 30px;
  padding-inline: 9px;
  font-size: 8px;
}

.template-tools,
.add-block-tools {
  padding: 0 4px;
}

.template-tools {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.template-tools .select-input,
.add-block-tools .select-input {
  margin-bottom: 0;
}

.block-list {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.block-list-empty {
  padding: 20px 14px;
  color: var(--ink-soft);
  text-align: center;
  background: #f4f3ef;
  border: 1px dashed #cdd1da;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.45;
}

.custom-content.is-freeform {
  position: relative;
  display: block;
  overflow: hidden;
}

.custom-positioned-block {
  position: absolute;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--block-text-color, var(--ink));
  font-family: var(--block-font-family, "Manrope", sans-serif);
  text-align: var(--block-text-align, left);
  transform-origin: center;
}

.custom-positioned-block.is-rotated,
.visual-block.is-rotated {
  transform: rotate(var(--block-rotation));
}

.custom-positioned-block > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.custom-positioned-block .custom-image,
.custom-positioned-block .custom-image-open {
  height: 100%;
}

.custom-positioned-block .custom-image figcaption {
  position: absolute;
  right: 4px;
  bottom: 3px;
  left: 4px;
  padding: 2px 4px;
  color: #fff;
  background: rgba(24, 33, 58, 0.66);
  border-radius: 3px;
}

.custom-positioned-block .custom-heading {
  color: var(--block-text-color);
  font-family: inherit;
  font-size: calc(11.5px * var(--block-font-scale, 1));
  text-align: inherit;
}

.custom-positioned-block .custom-text {
  color: var(--block-text-color);
  font-family: inherit;
  font-size: calc(7.5px * var(--block-font-scale, 1));
  text-align: inherit;
}

.custom-positioned-block .custom-note,
.custom-positioned-block .custom-metric,
.custom-positioned-block .custom-table,
.custom-positioned-block .custom-chart,
.custom-positioned-block .custom-timeline,
.custom-positioned-block .custom-diagram {
  color: var(--block-text-color);
  font-family: inherit;
  text-align: inherit;
}

.custom-positioned-block .custom-note {
  padding: 2px 8px;
  color: #000;
  font-size: calc(5.7px * var(--block-font-scale, 1));
  line-height: 1.2;
}
.custom-positioned-block .custom-note span {
  margin-bottom: 1px;
  color: #000;
  font-size: calc(5.2px * var(--block-font-scale, 1));
}
.custom-positioned-block .custom-metric strong { color: var(--block-text-color); font-family: inherit; font-size: calc(11px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-metric span { font-size: calc(6.2px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-metric small { font-size: calc(5.6px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-table { font-size: calc(6.2px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-table th,
.custom-positioned-block .custom-table td { color: var(--block-text-color); text-align: inherit; }
.custom-positioned-block .custom-chart-row { font-size: calc(6.2px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-chart-row > strong { font-size: calc(6.2px * var(--block-font-scale, 1)); text-align: inherit; }
.custom-positioned-block .custom-timeline span { font-size: calc(5.6px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-timeline strong { color: var(--block-text-color); font-size: calc(6.2px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-diagram .diagram-card strong { color: var(--block-text-color); font-size: calc(6.35px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-diagram .diagram-card p { color: var(--block-text-color); font-size: calc(5.65px * var(--block-font-scale, 1)); }
.custom-positioned-block .custom-image img {
  object-fit: var(--block-image-fit, cover);
  object-position: var(--block-image-position, center);
}

.visual-sheet-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: #eceef3;
  border: 0;
}

.visual-sheet-dialog::backdrop {
  background: rgba(15, 22, 39, 0.72);
  backdrop-filter: blur(5px);
}

.visual-sheet-editor-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.visual-sheet-editor-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 20px;
  background: #fffefa;
  border-bottom: 1px solid #d9dde6;
}

.visual-sheet-editor-header h2 {
  margin: 1px 0 0;
  font: 700 18px/1.2 "Manrope", sans-serif;
  letter-spacing: -0.35px;
}

.visual-sheet-editor-header p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.visual-sheet-editor-header-actions {
  display: flex;
  gap: 8px;
}

.visual-sheet-editor-header-actions button {
  min-height: 36px;
}

.visual-sheet-editor-toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
  gap: 7px;
  overflow: visible;
  padding: 8px 16px;
  background: #f8f8f6;
  border-bottom: 1px solid #d9dde6;
  box-shadow: 0 3px 12px rgba(24, 33, 58, 0.05);
}

.visual-sheet-editor-toolbar > label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.visual-sheet-editor-toolbar > label > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.visual-sheet-editor-toolbar .select-input {
  width: 138px;
  height: 33px;
  margin: 0;
  font-size: 10px;
}

.visual-tool-button {
  min-height: 33px;
  padding: 0 10px;
  color: #4f596e;
  background: #fff;
  border: 1px solid #d7dbe4;
  border-radius: 7px;
  font: 700 9px/1 "Manrope", sans-serif;
  cursor: pointer;
  flex: 0 0 auto;
}

.visual-tool-button:hover:not(:disabled),
.visual-tool-button:focus-visible:not(:disabled) {
  color: var(--blue);
  border-color: rgba(69, 104, 232, 0.45);
  outline: none;
}

.visual-tool-button.is-primary {
  min-width: 72px;
  color: #fff !important;
  background: var(--blue);
  border-color: var(--blue);
}

.visual-tool-button.is-active {
  color: #3151bd;
  background: #edf1ff;
  border-color: rgba(69, 104, 232, 0.48);
}

.visual-tool-button.is-danger {
  color: #ae4737;
}

.visual-tool-button:disabled {
  opacity: 0.38;
  cursor: default;
}

.visual-toolbar-divider {
  width: 1px;
  height: 25px;
  margin: 0 2px;
  background: #d7dbe4;
}

.visual-toolbar-select {
  flex: 0 0 auto;
}

.visual-toolbar-select .select-input {
  width: 116px;
}

.visual-editor-shortcuts {
  min-width: 280px;
  flex: 1 1 360px;
  margin-left: auto;
  color: #808899;
  font-size: 8px;
  text-align: right;
  white-space: normal;
}

.visual-sheet-editor-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
}

.visual-sheet-stage {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 32px;
  background-color: #e7e9ef;
  background-image: radial-gradient(circle, rgba(117, 126, 145, 0.28) 1px, transparent 1px);
  background-size: 18px 18px;
}

.visual-a4-sheet {
  --visual-accent: var(--blue);
  position: relative;
  width: min(100%, 980px, calc((100dvh - 245px) * 1.414));
  min-width: 690px;
  aspect-ratio: 420 / 297;
  display: grid;
  grid-template-rows: 13.8% 6.5% minmax(0, 1fr) 7.5%;
  overflow: hidden;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #cfd3dc;
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(24, 33, 58, 0.2);
}

.visual-a4-sheet::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--visual-accent);
}

.visual-a4-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 22px 9px 30px;
  border-bottom: 1px solid #ebe9e2;
}

.visual-a4-header > div:first-child {
  min-width: 0;
}

.visual-a4-header span:first-child {
  display: block;
  margin-bottom: 2px;
  color: var(--visual-accent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.visual-a4-header h3 {
  overflow: hidden;
  margin: 0;
  font: 700 21px/1.12 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-a4-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.visual-a4-meta > span {
  margin: 0;
  padding: 5px 8px;
  color: #4f596e;
  background: #eef0f2;
  border-radius: 99px;
  font-size: 8px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.visual-a4-meta i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #637fc0;
  border-radius: 50%;
  font: normal 800 9px/1 "Manrope", sans-serif;
}

.visual-a4-description {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 5px 24px 4px 30px;
  color: #687184;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-a4-body {
  position: relative;
  min-height: 0;
  margin: 0 24px 8px 30px;
  overflow: hidden;
  background-image: linear-gradient(rgba(69, 104, 232, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(69, 104, 232, 0.055) 1px, transparent 1px);
  background-size: 5% 5%;
  border: 1px dashed rgba(69, 104, 232, 0.2);
  border-radius: 5px;
  outline: none;
}

.visual-a4-body.is-empty::after {
  content: "Noch keine Elemente · Über die Werkzeugleiste hinzufügen";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #8b92a1;
  font-size: 11px;
}

.visual-a4-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 24px 7px 30px;
  color: #7a8292;
  background: #f8f7f3;
  border-top: 1px solid #ebe9e2;
  font-size: 8px;
}

.visual-a4-footer span:last-child {
  margin-left: auto;
}

.visual-a4-footer span:first-child {
  padding: 4px 7px;
  color: #3553bb;
  background: #e9edff;
  border-radius: 99px;
  font-weight: 700;
}

.visual-block {
  position: absolute;
  min-width: 0;
  min-height: 0;
  padding: 7px;
  overflow: hidden;
  background: rgba(255, 254, 250, 0.2);
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: move;
  touch-action: none;
  user-select: none;
  color: var(--block-text-color, var(--ink));
  font-family: var(--block-font-family, "Manrope", sans-serif);
  text-align: var(--block-text-align, left);
  transform-origin: center;
}

.visual-block:hover {
  border-color: rgba(69, 104, 232, 0.35);
  background: rgba(238, 241, 255, 0.28);
}

.visual-block.is-selected {
  z-index: 50 !important;
  overflow: visible;
  border-color: var(--blue);
  background: rgba(238, 241, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(69, 104, 232, 0.22);
}

.visual-block.is-primary-selected {
  z-index: 51 !important;
  box-shadow: 0 0 0 1px rgba(69, 104, 232, 0.35), 0 0 0 4px rgba(69, 104, 232, 0.08);
}

.visual-block.is-locked {
  cursor: not-allowed;
  border-style: dashed;
}

.visual-block.is-grouped:not(.is-selected) {
  border-color: rgba(69, 104, 232, 0.18);
}

.visual-block-state {
  position: absolute;
  z-index: 4;
  top: -8px;
  right: -5px;
  padding: 3px 5px;
  color: #3151bd;
  background: #fff;
  border: 1px solid rgba(69, 104, 232, 0.42);
  border-radius: 99px;
  box-shadow: 0 2px 5px rgba(24, 33, 58, 0.12);
  font: 700 7px/1 "Manrope", sans-serif;
  pointer-events: none;
}

.visual-selection-marquee {
  position: absolute;
  z-index: 90;
  pointer-events: none;
  background: rgba(69, 104, 232, 0.1);
  border: 1px solid rgba(69, 104, 232, 0.85);
  border-radius: 3px;
}

.visual-smart-guide {
  position: absolute;
  z-index: 85;
  pointer-events: none;
  background: #e8328a;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.visual-smart-guide.is-vertical {
  top: 0;
  bottom: 0;
  width: 1px;
}

.visual-smart-guide.is-horizontal {
  right: 0;
  left: 0;
  height: 1px;
}

.visual-block-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: auto;
}

.visual-block-content > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.visual-block-content [data-inline-field],
.visual-block-content [data-inline-item-field],
.visual-block-content [data-inline-table-row] {
  cursor: text;
  pointer-events: auto;
  border-radius: 2px;
  transition: box-shadow 120ms ease, background 120ms ease;
}

.visual-block.is-selected .visual-block-content [data-inline-field]:hover,
.visual-block.is-selected .visual-block-content [data-inline-item-field]:hover,
.visual-block.is-selected .visual-block-content [data-inline-table-row]:hover {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(69, 104, 232, 0.32);
}

.visual-block-content .is-inline-editing {
  min-width: 18px;
  min-height: 1em;
  padding: 1px 2px;
  color: var(--block-text-color) !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px #4568e8, 0 3px 10px rgba(24, 33, 58, 0.16) !important;
  outline: none;
  cursor: text;
  user-select: text;
  white-space: pre-wrap;
}

.visual-block .visual-inline-placeholder:not(.is-inline-editing) {
  min-height: 16px;
  padding: 2px 4px;
  color: #677189;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed #c8ceda;
  border-radius: 4px;
  font-weight: 650;
  opacity: 0.78;
  cursor: text;
}

.visual-block .custom-diagram p.visual-inline-placeholder:not(.is-inline-editing) {
  display: flex;
  align-items: center;
  margin-top: 3px;
}

.visual-block .visual-inline-placeholder:not(.is-inline-editing):hover {
  color: #3151bd;
  background: #fff;
  border-color: #7890e6;
  opacity: 1;
}

.visual-block .custom-metric .visual-placeholder-metric-value:not(.is-inline-editing) {
  font-size: calc(8px * var(--block-font-scale, 1));
  line-height: 1.2;
}

.visual-block .custom-metric .visual-placeholder-metric-label:not(.is-inline-editing),
.visual-block .custom-metric .visual-placeholder-metric-context:not(.is-inline-editing) {
  display: inline-block;
  font-size: calc(6px * var(--block-font-scale, 1));
  line-height: 1.2;
}

.visual-block .custom-table .visual-placeholder-table-cell:not(.is-inline-editing) {
  min-height: 0;
  padding: 2px 4px;
  font-size: inherit;
}

.visual-block .custom-image figcaption.visual-inline-placeholder:not(.is-inline-editing) {
  display: block;
  margin-top: 3px;
}

.visual-block .custom-heading {
  color: var(--block-text-color);
  font-family: inherit;
  font-size: calc(18px * var(--block-font-scale, 1));
  line-height: 1.2;
  text-align: inherit;
}

.visual-block .custom-text {
  color: var(--block-text-color);
  font-family: inherit;
  font-size: calc(12px * var(--block-font-scale, 1));
  line-height: 1.42;
  text-align: inherit;
}

.visual-block .custom-note {
  height: 100%;
  padding: 10px 12px;
  color: var(--block-text-color);
  font-family: inherit;
  font-size: calc(11px * var(--block-font-scale, 1));
  text-align: inherit;
}

.visual-block .custom-note span { font-size: calc(8px * var(--block-font-scale, 1)); }

.visual-block .custom-metric {
  height: 100%;
  padding: 7px 10px;
}

.visual-block .custom-metric { color: var(--block-text-color); font-family: inherit; text-align: inherit; }
.visual-block .custom-metric strong { color: var(--block-text-color); font-family: inherit; font-size: calc(19px * var(--block-font-scale, 1)); }
.visual-block .custom-metric span { font-size: calc(9px * var(--block-font-scale, 1)); }
.visual-block .custom-metric small { font-size: calc(8px * var(--block-font-scale, 1)); }
.visual-block .custom-table { color: var(--block-text-color); font-family: inherit; font-size: calc(9px * var(--block-font-scale, 1)); }
.visual-block .custom-table th,
.visual-block .custom-table td { color: var(--block-text-color); text-align: inherit; }
.visual-block .custom-table th,
.visual-block .custom-table td { padding: 5px 7px; }
.visual-block .custom-block-label { font-size: 9px; }
.visual-block .custom-chart { color: var(--block-text-color); font-family: inherit; text-align: inherit; }
.visual-block .custom-chart-row { grid-template-columns: 110px minmax(40px, 1fr) 40px; gap: 8px; font-size: calc(9px * var(--block-font-scale, 1)); }
.visual-block .custom-chart-row > i { height: 10px; }
.visual-block .custom-chart-row > strong { color: var(--block-text-color); font-size: calc(9px * var(--block-font-scale, 1)); text-align: inherit; }
.visual-block .custom-timeline { color: var(--block-text-color); font-family: inherit; text-align: inherit; }
.visual-block .custom-timeline span { font-size: calc(8px * var(--block-font-scale, 1)); }
.visual-block .custom-timeline strong { color: var(--block-text-color); font-size: calc(9px * var(--block-font-scale, 1)); }
.visual-block .custom-diagram { color: var(--block-text-color); font-family: inherit; text-align: inherit; }
.visual-block .custom-diagram .diagram-card strong { color: var(--block-text-color); font-size: calc(9px * var(--block-font-scale, 1)); }
.visual-block .custom-diagram .diagram-card p { color: var(--block-text-color); font-size: calc(8px * var(--block-font-scale, 1)); }
.visual-block .custom-diagram .diagram-group-label { font-size: calc(8px * var(--block-font-scale, 1)); }
.visual-block .custom-image,
.visual-block .custom-image-open { height: 100%; }
.visual-block .custom-image.image-size-small .custom-image-open,
.visual-block .custom-image.image-size-medium .custom-image-open,
.visual-block .custom-image.image-size-large .custom-image-open { height: 100%; }
.visual-block .custom-image figcaption { font-size: 9px; }
.visual-block .custom-image img {
  object-fit: var(--block-image-fit, cover);
  object-position: var(--block-image-position, center);
}

.visual-block-resize {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  display: none;
  padding: 0;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 2px;
  cursor: nwse-resize;
  touch-action: none;
}

.visual-block.is-primary-selected .visual-block-resize {
  display: block;
}

.visual-sheet-inspector {
  min-width: 0;
  overflow-y: auto;
  padding: 18px;
  background: #fffefa;
  border-left: 1px solid #d9dde6;
}

.visual-inspector-empty {
  padding: 14px;
  color: var(--ink-soft);
  text-align: center;
  background: #f5f5f2;
  border: 1px dashed #cfd3dc;
  border-radius: 10px;
}

.visual-inspector-empty h3 {
  margin: 5px 0;
  color: var(--ink);
  font: 700 14px/1.3 "Manrope", sans-serif;
}

.visual-inspector-empty p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
}

.visual-inspector-content[hidden] {
  display: none;
}

.visual-inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.visual-inspector-heading h3 {
  margin: 2px 0 0;
  font: 700 14px/1.2 "Manrope", sans-serif;
}

.visual-layout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
  padding: 10px;
  background: #f5f6f9;
  border: 1px solid #e0e3e9;
  border-radius: 8px;
}

.visual-layout-fields label span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.visual-layout-fields input {
  width: 100%;
  height: 31px;
  padding: 0 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6dae3;
  border-radius: 6px;
  font: 600 9px/1 "Manrope", sans-serif;
}

.visual-layout-fields input:disabled {
  color: #8b92a1;
  background: #eceef2;
}

.visual-format-panel {
  margin-bottom: 12px;
  padding: 10px;
  background: #fffaf0;
  border: 1px solid #e8e0cf;
  border-radius: 8px;
}

.visual-format-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 9px;
}

.visual-format-panel > header span {
  color: #7d6b4f;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.visual-format-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.visual-format-fields label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.visual-format-fields input,
.visual-format-fields select {
  width: 100%;
  height: 31px;
  padding: 0 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6dae3;
  border-radius: 6px;
  font: 600 9px/1 "Manrope", sans-serif;
}

.visual-format-fields .visual-color-input {
  padding: 3px 5px;
  cursor: pointer;
}

.visual-format-fields .visual-text-color-field {
  grid-column: 1 / -1;
}

.visual-text-color-palette {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: 1px solid #d6dae3;
  border-radius: 6px;
}

.visual-text-color-palette button {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  background: var(--swatch-color);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cfd4df;
  cursor: pointer;
}

.visual-text-color-palette button.is-selected {
  box-shadow: 0 0 0 2px #18213a;
}

.visual-image-layout-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e8e0cf;
}

.visual-image-layout-actions .secondary-button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 8px;
}

.visual-image-layout-actions span {
  color: #7d6b4f;
  font-size: 7px;
  line-height: 1.45;
}

.visual-inspector-content .block-editor-item {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.visual-inspector-content .block-editor-item > .block-editor-header {
  display: none;
}

.visual-structured-editor,
.visual-color-sequence-panel,
.visual-table-editor {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  background: #f7f8fb;
  border: 1px solid #dde1e9;
  border-radius: 9px;
}

.visual-structured-editor > header,
.visual-color-sequence-panel > header,
.visual-table-editor > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.visual-structured-editor > header > span,
.visual-color-sequence-panel > header span,
.visual-table-editor > header > span {
  color: #737c8e;
  font-size: 7px;
  line-height: 1.35;
  text-align: right;
}

.visual-color-sequence-panel > header > div {
  display: grid;
  gap: 2px;
}

.visual-color-sequence-panel > header > div span {
  text-align: left;
}

.visual-color-sequence-panel > header > b {
  padding: 3px 6px;
  color: #3151bd;
  background: #e9edff;
  border-radius: 99px;
  font-size: 7px;
}

.visual-structured-row {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 9px;
  background: #fff;
  border: 1px solid #e0e3e9;
  border-radius: 8px;
}

.visual-structured-row.is-compact {
  grid-template-columns: minmax(78px, 0.8fr) minmax(0, 1.4fr);
  padding-top: 30px;
}

.visual-structured-row label > span {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: 7px;
  font-weight: 700;
}

.visual-structured-row input,
.visual-structured-row textarea {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 6px 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5d9e2;
  border-radius: 6px;
  font: 600 9px/1.35 "Manrope", sans-serif;
}

.visual-structured-row textarea {
  min-height: 48px;
  resize: vertical;
}

.visual-structured-row-actions {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  gap: 3px;
}

.visual-structured-row-actions button,
.visual-structured-add,
.visual-table-editor-actions button {
  min-height: 24px;
  padding: 0 7px;
  color: #536078;
  background: #fff;
  border: 1px solid #d6dae3;
  border-radius: 5px;
  font: 700 8px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.visual-structured-row-actions button {
  width: 24px;
  padding: 0;
}

.visual-structured-row-actions button.is-delete { color: #ae4737; }
.visual-structured-row-actions button:disabled,
.visual-structured-add:disabled,
.visual-table-editor-actions button:disabled { opacity: 0.35; cursor: default; }

.visual-structured-add {
  justify-self: stretch;
  min-height: 31px;
  color: #3151bd;
  border-style: dashed;
}

.visual-color-sequence-slots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.visual-color-sequence-slot {
  position: relative;
  height: 31px;
  padding: 0;
  overflow: hidden;
  background: var(--slot-color);
  border: 2px solid #fff;
  border-radius: 7px;
  box-shadow: 0 0 0 1px #cfd4df;
  cursor: pointer;
}

.visual-color-sequence-slot.is-selected {
  box-shadow: 0 0 0 2px #4568e8;
}

.visual-color-sequence-slot i {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 13px;
  height: 13px;
  display: grid;
  place-items: center;
  color: #18213a;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  font: normal 700 6px/1 "Manrope", sans-serif;
}

.visual-color-palette-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #667085;
  font-size: 8px;
}

.visual-color-palette-heading strong { color: var(--ink); }

.visual-color-palette {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.visual-color-swatch {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  background: var(--swatch-color);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cfd4df;
  cursor: pointer;
}

.visual-color-swatch.is-selected {
  box-shadow: 0 0 0 2px #18213a;
}

.visual-color-sequence-actions,
.visual-color-sequence-project-actions,
.visual-table-editor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.visual-color-sequence-project-actions {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 7px;
  border-top: 1px solid #e0e3e9;
}

.visual-color-sequence-panel .secondary-button {
  min-height: 30px;
  padding: 5px 7px;
  font-size: 7px;
  white-space: normal;
}

.visual-color-sequence-panel > p {
  margin: 0;
  color: #667085;
  font-size: 7px;
  line-height: 1.45;
}

.visual-table-editor-grid {
  display: grid;
  grid-template-columns: repeat(var(--visual-table-columns, 2), minmax(0, 1fr));
  gap: 3px;
  overflow-x: auto;
}

.visual-table-editor-grid input {
  min-width: 0;
  height: 29px;
  padding: 0 6px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d6dae3;
  border-radius: 4px;
  font: 600 8px/1 "Manrope", sans-serif;
}

.visual-table-editor-grid input.is-header {
  background: #eeefed;
  font-weight: 800;
}

.visual-multi-selection-summary {
  display: grid;
  gap: 5px;
  padding: 12px;
  color: #5d6679;
  background: #f2f5ff;
  border: 1px solid #dbe3ff;
  border-radius: 9px;
  font-size: 9px;
}

.visual-multi-selection-summary strong {
  color: #263b84;
  font-size: 11px;
}

.visual-multi-selection-summary span {
  color: #4568e8;
  font-weight: 700;
}

.visual-multi-selection-summary p {
  margin: 3px 0 0;
  line-height: 1.5;
}

.visual-multi-selection-list {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.visual-multi-selection-list li {
  padding: 7px 9px;
  color: #586278;
  background: #f7f7f5;
  border: 1px solid #e3e4e7;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 1500px) {
  .visual-editor-shortcuts {
    display: none;
  }
}

@media (max-width: 900px) {
  .visual-sheet-editor-header {
    padding: 10px 12px;
  }

  .visual-sheet-editor-header p,
  .visual-editor-shortcuts,
  .visual-toolbar-divider {
    display: none;
  }

  .visual-sheet-editor-header-actions .secondary-button {
    display: none;
  }

  .visual-sheet-editor-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-sheet-stage {
    place-items: start center;
    padding: 18px;
  }

  .visual-a4-sheet {
    min-width: 640px;
  }

  .visual-sheet-inspector {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: min(310px, calc(100vw - 20px));
    max-height: 48vh;
    border: 1px solid #d9dde6;
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(24, 33, 58, 0.22);
  }
}

@media (max-width: 620px) {
  .visual-editor-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .visual-sheet-editor-header h2 {
    font-size: 14px;
  }

  .visual-sheet-editor-header-actions button {
    min-height: 32px;
    padding-inline: 9px;
    font-size: 8px;
  }

  .visual-sheet-editor-toolbar {
    padding-inline: 9px;
  }

  .visual-sheet-editor-toolbar > label > span {
    display: none;
  }

  .visual-sheet-editor-toolbar .select-input {
    width: 120px;
  }
}

.block-editor-item {
  padding: 10px;
  background: #fff;
  border: 1px solid #d9dbe1;
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(24, 33, 58, 0.05);
}

.block-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.block-editor-header strong {
  font-size: 10px;
  font-weight: 700;
}

.block-editor-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.block-action {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
}

.block-action:hover {
  color: var(--ink);
  background: #f0f0ec;
}

.block-action.is-delete:hover {
  color: #b44332;
  background: var(--coral-soft);
}

.block-action:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  background: transparent;
}

.block-input,
.block-textarea,
.block-select {
  width: 100%;
  color: var(--ink);
  background: #fbfbf9;
  border: 1px solid #d9dbe1;
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
}

.block-input {
  height: 32px;
  padding: 0 9px;
}

.block-textarea {
  min-height: 68px;
  padding: 8px 9px;
  resize: vertical;
  line-height: 1.45;
}

.block-input + .block-input,
.block-input + .block-textarea,
.block-textarea + .block-input {
  margin-top: 6px;
}

.block-upload-picker {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: #f7f8fb;
  border: 1px solid #d9dbe1;
  border-radius: 7px;
  cursor: pointer;
}

.block-upload-picker .block-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.block-upload-picker > span {
  padding: 7px 9px;
  color: #3151bd;
  background: #fff;
  border: 1px solid rgba(69, 104, 232, 0.38);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.block-upload-picker > strong {
  min-width: 0;
  overflow: hidden;
  color: #5c6578;
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-upload-picker:hover > span {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.block-upload-picker .block-file-input:focus-visible + span {
  outline: 2px solid rgba(69, 104, 232, 0.36);
  outline-offset: 2px;
}

.block-option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 7px;
}

.block-option-grid.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.block-option-grid label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.block-select {
  height: 32px;
  padding: 0 7px;
}

.block-option-grid + .block-input {
  margin-top: 7px;
}

.block-help,
.upload-result {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.35;
}

.upload-result.is-uploading {
  color: var(--gold);
}

.upload-result.is-error {
  color: #b44332;
}

.add-block-tools {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.field-label {
  display: block;
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.text-input,
.select-input {
  width: 100%;
  height: 38px;
  margin: 0 0 15px;
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cdd1da;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
}

.text-input:focus,
.select-input:focus,
.color-input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(69, 104, 232, 0.15);
}

.field-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 12px;
}

.topic-toggle {
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  padding: 10px;
  background: #f7f6f2;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
}

.topic-toggle:has(input:checked) {
  background: #eef1fb;
  border-color: rgba(69, 104, 232, 0.42);
}

.topic-toggle > input {
  margin: 0;
  accent-color: var(--blue);
}

.topic-toggle-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #69758f;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.topic-toggle:has(input:checked) .topic-toggle-icon {
  color: var(--blue);
  border-color: rgba(69, 104, 232, 0.32);
}

.topic-toggle-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-toggle > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.topic-toggle strong {
  font-size: 10px;
}

.topic-toggle small {
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.4;
}

.child-layout-field {
  margin: -3px 0 15px;
  padding: 11px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.child-layout-field .select-input {
  margin-bottom: 7px;
}

.child-layout-field p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.workflow-editor-section {
  margin: 2px 0 15px;
  padding: 13px 0 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}

.workflow-field-grid .text-input,
.workflow-field-grid .select-input {
  margin-bottom: 12px;
}

.dependency-editor-field {
  padding-bottom: 12px;
}

.dependency-editor-field > p {
  margin: -2px 0 8px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.4;
}

.dependency-editor-list {
  max-height: 172px;
  display: grid;
  gap: 5px;
  overflow-y: auto;
  padding-right: 3px;
}

.dependency-editor-option {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 25px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dedfe4;
  border-radius: 8px;
  cursor: pointer;
}

.dependency-editor-option.is-selected {
  background: #edf0ff;
  border-color: #aebaf0;
}

.dependency-editor-option.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.dependency-editor-option input {
  accent-color: var(--blue);
}

.dependency-editor-number {
  color: #6d7585;
  font: 700 8px/1 "Manrope", sans-serif;
}

.dependency-editor-copy,
.dependency-editor-copy strong,
.dependency-editor-copy small {
  min-width: 0;
}

.dependency-editor-copy strong,
.dependency-editor-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dependency-editor-copy strong {
  color: var(--ink);
  font-size: 9px;
}

.dependency-editor-copy small {
  margin-top: 2px;
  color: var(--workflow-text);
  font-size: 7px;
  font-weight: 700;
}

.dependency-editor-empty {
  display: block;
  padding: 9px;
  color: var(--ink-soft);
  background: #f4f3ef;
  border-radius: 8px;
  font-size: 8px;
}

.color-input {
  width: 100%;
  height: 38px;
  padding: 4px;
  background: #fff;
  border: 1px solid #cdd1da;
  border-radius: 8px;
  cursor: pointer;
}

.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
}

.primary-button:hover {
  background: #243354;
}

.secondary-button {
  color: var(--ink);
  background: #f2f1ed;
  border: 1px solid #d8d9dc;
}

.danger-button {
  color: #b44332;
  background: transparent;
  border: 1px solid #e6b9b1;
}

.danger-button:hover {
  background: var(--coral-soft);
}

.danger-button:disabled {
  color: #a6aab3;
  border-color: #dedfe2;
  cursor: not-allowed;
  background: transparent;
}

.app-dialog {
  width: min(510px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(187, 193, 206, 0.9);
  border-radius: 15px;
  box-shadow: 0 28px 80px rgba(24, 33, 58, 0.28);
}

.app-dialog::backdrop {
  background: rgba(25, 33, 51, 0.36);
  backdrop-filter: blur(3px);
}

.guide-dialog {
  width: min(1020px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 40px));
}

.guide-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
}

.guide-dialog-header,
.guide-hero,
.guide-footer,
.guide-coachmark-progress,
.guide-coachmark-actions {
  display: flex;
  align-items: center;
}

.guide-dialog-header,
.guide-footer {
  justify-content: space-between;
  gap: 14px;
}

.guide-hero {
  gap: 15px;
  margin: 14px 18px 10px;
  padding: 13px 15px;
  background: linear-gradient(120deg, #f0f4ff, #edf8f4);
  border: 1px solid #d8e1f2;
  border-radius: 12px;
}

.guide-hero > div:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.guide-hero > div:nth-child(2) > strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.guide-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.guide-progress-ring {
  --guide-progress: 0deg;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  text-align: center;
  background: radial-gradient(circle at center, #fff 58%, transparent 60%), conic-gradient(var(--blue) var(--guide-progress), #dfe5ef 0);
  border-radius: 50%;
}

.guide-progress-ring strong,
.guide-progress-ring span {
  display: block;
}

.guide-progress-ring strong {
  font-size: 12px;
}

.guide-progress-ring span {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 6px;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-search-field {
  height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 0 18px 5px;
  padding: 0 11px;
  background: #fff;
  border: 1px solid #cfd3dd;
  border-radius: 9px;
}

.guide-search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(69, 104, 232, 0.12);
}

.guide-search-field svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #737d90;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.guide-search-field input {
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: 500 11px/1.2 "Manrope", sans-serif;
}

.guide-search-summary {
  min-height: 18px;
  margin: 0;
  padding: 0 20px 5px;
  color: var(--ink-soft);
  font-size: 8px;
}

.guide-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  gap: 1px;
  margin: 0 18px 12px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.guide-lesson-list,
.guide-lesson-detail {
  min-height: 0;
  overflow-y: auto;
  background: #fff;
}

.guide-lesson-list {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 7px;
}

.guide-lesson-button {
  width: 100%;
  min-height: 53px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.guide-lesson-button:hover,
.guide-lesson-button.is-active {
  background: #f2f5ff;
  border-color: #d7dffc;
}

.guide-lesson-button.is-completed {
  background: #eff8f4;
  border-color: #cee9dd;
}

.guide-lesson-number {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #536078;
  background: #f1f2f5;
  border-radius: 8px;
  font-size: 8px;
  font-weight: 800;
}

.guide-lesson-button.is-completed .guide-lesson-number {
  color: #fff;
  background: var(--green);
}

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

.guide-lesson-copy strong,
.guide-lesson-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-lesson-copy strong {
  font-size: 9px;
}

.guide-lesson-copy span,
.guide-lesson-count {
  color: var(--ink-soft);
  font-size: 7px;
}

.guide-lesson-detail {
  padding: 20px 22px;
}

.guide-detail-kicker {
  color: var(--blue);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-lesson-detail h3 {
  margin: 5px 0 6px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  line-height: 1.15;
}

.guide-detail-summary {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.guide-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.guide-feature-chips span {
  padding: 5px 7px;
  color: #42506c;
  background: #f2f3f6;
  border: 1px solid #e0e2e7;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
}

.guide-step-list {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.guide-step-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
  background: #fafaf8;
  border: 1px solid #e3e4e7;
  border-radius: 8px;
}

.guide-step-state {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #7a8497;
  background: #fff;
  border: 1px solid #ced2dc;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.guide-step-list li.is-completed .guide-step-state {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.guide-step-list strong,
.guide-step-list span {
  display: block;
}

.guide-step-list strong {
  margin-bottom: 2px;
  font-size: 9px;
}

.guide-step-list span {
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.guide-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.guide-locked-note {
  margin: 0 0 14px;
  padding: 9px 11px;
  color: #765e23;
  background: #fff6df;
  border: 1px solid #eddba9;
  border-radius: 8px;
  font-size: 8px;
  line-height: 1.45;
}

.guide-footer {
  padding: 11px 18px 15px;
  border-top: 1px solid var(--line);
}

.guide-footer > span {
  color: var(--ink-soft);
  font-size: 8px;
}

.guide-footer > div {
  display: flex;
  gap: 7px;
}

.guide-coachmark {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5000;
  width: min(370px, calc(100vw - 28px));
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 252, 0.98);
  border: 1px solid #bfc9e8;
  border-radius: 13px;
  box-shadow: 0 22px 70px rgba(24, 33, 58, 0.33);
  transition: left 120ms ease, top 120ms ease;
}

.guide-coachmark[hidden] {
  display: none;
}

.guide-coachmark-progress {
  justify-content: space-between;
  color: var(--blue);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guide-coachmark h2 {
  margin: 7px 0 5px;
  font: 800 16px/1.2 "Manrope", sans-serif;
}

.guide-coachmark p {
  margin: 0 0 13px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}

.guide-coachmark-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-coachmark-actions button {
  min-height: 31px;
  padding: 0 10px;
  color: #556077;
  background: #f5f5f2;
  border: 1px solid #d9dbe1;
  border-radius: 7px;
  font: 700 8px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.guide-coachmark-actions .primary-button {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.guide-tour-target {
  position: relative !important;
  z-index: 4500 !important;
  outline: 3px solid #ff826a !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 9px rgba(238, 116, 91, 0.18), 0 10px 35px rgba(24, 33, 58, 0.2) !important;
}

.presentation-setup-dialog {
  width: min(760px, calc(100vw - 32px));
  height: min(760px, calc(100vh - 40px));
}

.presentation-setup-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.presentation-setup-body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 20px 12px;
}

.presentation-resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 13px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff8e8, #f2f5ff);
  border: 1px solid #d8dce8;
  border-left: 4px solid var(--coral);
  border-radius: 10px;
}

.presentation-resume-card[hidden] {
  display: none;
}

.presentation-resume-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.presentation-resume-copy strong {
  font-size: 11px;
}

.presentation-resume-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.presentation-resume-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
}

.presentation-scope-field {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.presentation-scope-field .field-label {
  margin: 0;
}

.presentation-scope-field .select-input {
  margin: 0;
}

.presentation-scope-summary {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 15px;
  padding: 9px 11px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.45;
}

.presentation-scope-summary strong {
  color: var(--ink);
}

.presentation-scope-summary .presentation-topic-chip {
  flex: 0 0 auto;
}

.presentation-order-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 9px;
}

.presentation-order-heading > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.presentation-order-heading strong {
  font-size: 11px;
}

.presentation-order-heading span {
  color: var(--ink-soft);
  font-size: 8px;
}

.presentation-order-heading .secondary-button {
  flex: 0 0 auto;
}

.presentation-order-list {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow-y: auto;
  padding: 2px 4px 2px 1px;
}

.presentation-order-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px 24px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 6px 7px;
  background: #fff;
  border: 1px solid #dedfe4;
  border-radius: 9px;
  transition: opacity 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.presentation-order-row.is-excluded {
  opacity: 0.56;
  background: #f5f4f1;
}

.presentation-order-row.is-dragging {
  opacity: 0.4;
  border-color: var(--blue);
}

.presentation-order-drag {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #858d9c;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: grab;
}

.presentation-order-drag:active {
  cursor: grabbing;
}

.presentation-order-drag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.presentation-order-check {
  margin: 0;
  accent-color: var(--blue);
}

.presentation-order-number {
  color: #737c90;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

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

.presentation-order-copy strong,
.presentation-order-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-order-copy strong {
  font-size: 10px;
}

.presentation-order-copy span {
  color: var(--ink-soft);
  font-size: 8px;
}

.presentation-order-actions {
  display: flex;
  gap: 3px;
}

.presentation-order-actions button {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #687184;
  background: #f7f7f5;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.presentation-order-actions button:hover:not(:disabled) {
  color: var(--blue);
  background: var(--blue-soft);
}

.presentation-order-actions button:disabled,
.presentation-order-drag:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.presentation-order-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.presentation-setup-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
}

.presentation-setup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
}

.presentation-topic-chip,
.sheet-topic-badge,
.sheet-cascade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4058a7;
  background: #e9edff;
  border: 1px solid #cbd4ff;
  border-radius: 99px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.presentation-topic-chip {
  height: 23px;
  padding: 0 8px;
  font-size: 7px;
}

.sheet-topic-badge {
  height: 16px;
  padding: 0 5px;
  font-size: 5.5px;
}

.sheet-cascade-badge {
  height: 16px;
  padding: 0 5px;
  color: #6f4da0;
  background: #f2ebfb;
  border: 1px solid #ddcef1;
  font-size: 5.5px;
}

.dialog-header {
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--line);
}

.search-dialog {
  width: min(690px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 48px));
}

.search-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.search-dialog-header {
  padding-bottom: 14px;
}

.project-search-field {
  min-width: 0;
  height: 48px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 16px 20px 8px;
  padding: 0 13px;
  background: #fff;
  border: 1px solid #cfd3dd;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(24, 33, 58, 0.05);
}

.project-search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(69, 104, 232, 0.13);
}

.project-search-field > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #7c8494;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.project-search-field input {
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
}

.project-search-field input::placeholder {
  color: #959ba7;
}

.project-search-field kbd,
.search-help kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0 6px;
  color: #6d7482;
  background: #f2f2ee;
  border: 1px solid #dedfdc;
  border-bottom-color: #c9cbc9;
  border-radius: 5px;
  box-shadow: 0 1px 0 #cfd0cd;
  font: 600 8px/1 "Manrope", sans-serif;
  white-space: nowrap;
}

.search-summary {
  min-height: 18px;
  margin: 0;
  padding: 0 21px 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.search-results {
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 10px;
}

.search-result {
  --search-accent: var(--blue);
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.search-result:hover,
.search-result.is-selected {
  background: #f0f2f8;
}

.search-result.is-selected {
  box-shadow: inset 3px 0 0 var(--blue);
}

.search-result-number {
  position: relative;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #626b7e;
  background: #fff;
  border: 1px solid #dfe1e7;
  border-radius: 9px;
  font: 700 9px/1 "Manrope", sans-serif;
}

.search-result-number::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--search-accent);
  border-radius: 50%;
}

.search-result-copy {
  min-width: 0;
}

.search-result-copy strong,
.search-result-copy span {
  display: block;
}

.search-result-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-copy span {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.search-result-kicker {
  padding: 4px 7px;
  color: #626b7e;
  background: #fff;
  border: 1px solid #e0e1e4;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.search-result > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #7e8593;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-empty {
  min-height: 245px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.search-empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #73809a;
  background: #eef0f5;
  border-radius: 12px;
  font: 700 17px/1 "Manrope", sans-serif;
}

.search-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.search-empty > span:last-child {
  max-width: 360px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.5;
}

.search-help {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 20px 11px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.search-help span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.my-tasks-dialog {
  width: min(900px, calc(100vw - 32px));
  height: min(700px, calc(100vh - 40px));
}

.my-tasks-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
}

.my-tasks-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.my-tasks-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-tasks-context > span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.my-tasks-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 9px;
}

.my-tasks-metric {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 8px;
  padding: 11px 12px;
  color: var(--ink-soft);
  text-align: left;
  background: #f4f3ef;
  border: 1px solid #e5e3dd;
  border-top: 3px solid var(--blue);
  border-radius: 10px;
  cursor: pointer;
}

.my-tasks-metric:nth-child(2) {
  border-top-color: var(--coral);
}

.my-tasks-metric:nth-child(3) {
  border-top-color: var(--gold);
}

.my-tasks-metric:nth-child(4) {
  border-top-color: var(--green);
}

.my-tasks-metric:hover,
.my-tasks-metric:focus-visible {
  background: #eeece7;
}

.my-tasks-metric.is-active {
  background: #fff;
  border-color: rgba(69, 104, 232, 0.55);
  box-shadow: 0 4px 14px rgba(24, 33, 58, 0.08);
}

.my-tasks-metric span,
.my-tasks-metric small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-tasks-metric span {
  align-self: start;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.my-tasks-metric strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--navy);
  font: 700 22px/1 "Manrope", sans-serif;
}

.my-tasks-metric.has-alert strong {
  color: #ad4938;
}

.my-tasks-metric small {
  font-size: 7px;
}

.my-tasks-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 2px 16px 7px;
}

.my-tasks-filters button {
  min-height: 29px;
  flex: 0 0 auto;
  padding: 0 10px;
  color: #626b7e;
  background: #efeee9;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.my-tasks-filters button:hover {
  color: var(--ink);
  background: #e7e5df;
}

.my-tasks-filters button.is-active {
  color: #fff;
  background: var(--navy);
}

.my-tasks-summary {
  min-height: 23px;
  margin: 0;
  padding: 1px 18px 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.my-tasks-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 15px;
}

.my-task-group {
  padding: 10px 11px 11px;
  background: #fff;
  border: 1px solid #e3e3df;
  border-radius: 11px;
}

.my-task-group + .my-task-group {
  margin-top: 8px;
}

.my-task-group > header {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 2px 8px;
}

.my-task-group > header > div {
  min-width: 0;
}

.my-task-group h3,
.my-task-group header span {
  display: block;
  margin: 0;
}

.my-task-group h3 {
  color: var(--ink);
  font-size: 11px;
}

.my-task-group header span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 7px;
}

.my-task-group > header > strong {
  min-width: 27px;
  margin-left: auto;
  padding: 5px 7px;
  color: #626b7e;
  text-align: center;
  background: #eeece7;
  border-radius: 99px;
  font-size: 8px;
}

.my-task-group > div {
  display: grid;
  gap: 4px;
}

.my-task-row {
  width: 100%;
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 40px minmax(170px, 1fr) 76px 58px 120px 16px;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  color: var(--ink);
  text-align: left;
  background: #f8f8f6;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.my-task-row:hover,
.my-task-row:focus-visible {
  background: #eef0f6;
}

.my-task-row.is-overdue {
  box-shadow: inset 3px 0 0 var(--coral);
}

.my-task-project-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font: 700 11px/1 "Manrope", sans-serif;
}

.my-task-copy,
.my-task-copy strong,
.my-task-copy span {
  min-width: 0;
}

.my-task-copy strong,
.my-task-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-task-copy strong {
  font-size: 10px;
}

.my-task-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 7px;
}

.my-task-due {
  color: #636c7e;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.my-task-due.is-overdue {
  color: #ad4938;
}

.my-task-row > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #7e8593;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.my-tasks-empty {
  min-height: 245px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.my-tasks-empty-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: #73809a;
  background: #eef0f5;
  border-radius: 12px;
  font: 700 17px/1 "Manrope", sans-serif;
}

.my-tasks-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.my-tasks-empty > span:last-child {
  max-width: 390px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.5;
}

.workflow-dialog {
  width: min(840px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 40px));
}

.workflow-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.workflow-dialog[open].is-board-view {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.workflow-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.workflow-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-context > span:last-of-type {
  white-space: nowrap;
}

.workflow-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  background: #e8e7e2;
  border-radius: 8px;
}

.workflow-view-switch button {
  min-width: 54px;
  min-height: 28px;
  padding: 0 10px;
  color: #626b7e;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.workflow-view-switch button:hover {
  color: var(--ink);
}

.workflow-view-switch button.is-active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 1px 4px rgba(18, 28, 54, 0.12);
}

.workflow-filters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  padding: 14px 16px 10px;
}

.workflow-filter {
  min-width: 0;
  min-height: 54px;
  padding: 7px 8px;
  color: var(--ink-soft);
  text-align: left;
  background: #f4f3ef;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

.workflow-filter:hover {
  background: #eeece6;
}

.workflow-filter.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.workflow-filter strong,
.workflow-filter span {
  display: block;
}

.workflow-filter strong {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.workflow-filter span {
  margin-top: 3px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-summary {
  min-height: 22px;
  margin: 0;
  padding: 2px 18px 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.workflow-content {
  min-height: 0;
  overflow: hidden;
}

.workflow-overview[hidden],
.workflow-list[hidden],
.workflow-board[hidden],
.workflow-schedule[hidden],
.workflow-filters[hidden] {
  display: none;
}

.workflow-overview {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 14px;
}

.workflow-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.workflow-overview-metric {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 13px 14px;
  background: #f4f3ef;
  border: 1px solid #e6e4de;
  border-top: 3px solid var(--blue);
  border-radius: 11px;
}

.workflow-overview-metric:nth-child(2) {
  border-top-color: var(--gold);
}

.workflow-overview-metric:nth-child(3) {
  border-top-color: var(--green);
}

.workflow-overview-metric:nth-child(4) {
  border-top-color: var(--coral);
}

.workflow-overview-metric > span {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.workflow-overview-metric > strong {
  color: var(--navy);
  font: 700 22px/1.1 "Manrope", sans-serif;
}

.workflow-overview-metric > small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-overview-section {
  margin-top: 10px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #e3e3df;
  border-radius: 11px;
}

.workflow-overview-section-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.workflow-overview-section-heading > div {
  min-width: 0;
}

.workflow-overview-section-heading span,
.workflow-overview-section-heading h3 {
  display: block;
  margin: 0;
}

.workflow-overview-section-heading span {
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.workflow-overview-section-heading h3 {
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
}

.workflow-overview-section-heading > strong {
  min-width: 27px;
  margin-left: auto;
  padding: 5px 7px;
  color: #626b7e;
  text-align: center;
  background: #eeece7;
  border-radius: 99px;
  font-size: 8px;
}

.workflow-overview-distribution {
  height: 16px;
  display: flex;
  overflow: hidden;
  background: #ececeb;
  border-radius: 99px;
}

.workflow-overview-distribution-segment {
  min-width: 2px;
  height: 100%;
  background: var(--workflow-color);
}

.workflow-overview-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.workflow-overview-legend-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 8px;
}

.workflow-overview-legend-item i {
  width: 8px;
  height: 8px;
  background: var(--workflow-color);
  border-radius: 50%;
}

.workflow-overview-legend-item > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-overview-legend-item strong {
  color: var(--ink);
  font-size: 8px;
}

.workflow-overview-next-list {
  display: grid;
  gap: 3px;
}

.workflow-overview-next-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(155px, 1fr) minmax(120px, 0.72fr) 112px 58px 17px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  color: var(--ink);
  text-align: left;
  background: #f8f8f6;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
}

.workflow-overview-next-row:hover,
.workflow-overview-next-row:focus-visible {
  background: #eef0f6;
}

.workflow-overview-next-row.is-overdue {
  box-shadow: inset 3px 0 0 var(--coral);
}

.workflow-overview-next-copy,
.workflow-overview-next-copy strong,
.workflow-overview-next-copy span {
  min-width: 0;
}

.workflow-overview-next-copy strong,
.workflow-overview-next-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-overview-next-copy strong {
  font-size: 10px;
}

.workflow-overview-next-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 7px;
}

.workflow-overview-next-owner {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #515b6f;
  font-size: 8px;
}

.workflow-overview-next-owner > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-overview-next-state {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.workflow-overview-next-row > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #7e8593;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-overview-complete {
  min-height: 96px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: var(--ink-soft);
  text-align: center;
}

.workflow-overview-complete strong {
  color: var(--green);
  font-size: 11px;
}

.workflow-overview-complete span {
  margin-top: 4px;
  font-size: 8px;
}

.workflow-list {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0 10px 12px;
}

.workflow-board {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  overflow-y: auto;
  padding: 0 10px 12px;
}

.workflow-board-column {
  min-width: 0;
  padding: 8px;
  background: #f4f3ef;
  border: 1px solid #e6e4de;
  border-radius: 11px;
}

.workflow-board-column-header {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 3px 7px;
}

.workflow-board-column-header > span {
  width: 8px;
  height: 8px;
  background: var(--workflow-color);
  border-radius: 50%;
}

.workflow-board-column-header h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-board-column-header strong {
  min-width: 23px;
  padding: 4px 6px;
  color: var(--workflow-text);
  text-align: center;
  background: var(--workflow-bg);
  border-radius: 99px;
  font-size: 8px;
}

.workflow-board-column-list {
  display: grid;
  gap: 7px;
}

.workflow-board-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e1e2e6;
  border-top: 3px solid var(--workflow-color);
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(18, 28, 54, 0.05);
}

.workflow-board-card.is-overdue {
  border-left-color: var(--coral);
}

.workflow-board-card-top,
.workflow-board-meta {
  min-width: 0;
  display: flex;
  align-items: center;
}

.workflow-board-card-top {
  justify-content: space-between;
  gap: 7px;
}

.workflow-board-number {
  color: #6d7585;
  font: 700 8px/1 "Manrope", sans-serif;
}

.workflow-board-title {
  min-width: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.workflow-board-title:hover strong {
  color: var(--blue);
}

.workflow-board-title strong,
.workflow-board-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-board-title strong {
  font-size: 10px;
  line-height: 1.25;
}

.workflow-board-title span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 7px;
}

.workflow-board-meta {
  gap: 7px;
  color: #515b6f;
  font-size: 8px;
}

.workflow-board-meta > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-board-due {
  color: var(--ink-soft);
  font-size: 7px;
}

.workflow-board-due.is-overdue {
  color: #ad4938;
  font-weight: 700;
}

.workflow-board-status-control {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.workflow-board-status-control select {
  width: 100%;
  height: 31px;
  padding: 0 25px 0 8px;
  color: var(--ink);
  background: #f7f7f5;
  border: 1px solid #dcdde2;
  border-radius: 7px;
  font: 700 8px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.workflow-board-column-empty {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #8a909b;
  text-align: center;
  border: 1px dashed #d7d7d2;
  border-radius: 8px;
  font-size: 8px;
}

.workflow-schedule {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 14px;
}

.workflow-schedule-group {
  --schedule-color: #7b8391;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #eceae5;
}

.workflow-schedule-group:first-child {
  padding-top: 2px;
  border-top: 0;
}

.workflow-schedule-group.schedule-overdue { --schedule-color: var(--coral); }
.workflow-schedule-group.schedule-soon { --schedule-color: var(--gold); }
.workflow-schedule-group.schedule-later { --schedule-color: var(--blue); }
.workflow-schedule-group.schedule-completed { --schedule-color: var(--green); }

.workflow-schedule-group-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
  padding: 5px 0;
}

.workflow-schedule-group-heading > span {
  width: 9px;
  height: 9px;
  margin-top: 2px;
  background: var(--schedule-color);
  border-radius: 50%;
}

.workflow-schedule-group-heading h3,
.workflow-schedule-group-heading p {
  margin: 0;
}

.workflow-schedule-group-heading h3 {
  color: var(--ink);
  font-size: 9px;
}

.workflow-schedule-group-heading p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 7px;
  line-height: 1.35;
}

.workflow-schedule-group-heading > strong {
  min-width: 22px;
  padding: 4px 6px;
  color: #626b7e;
  text-align: center;
  background: #eeece7;
  border-radius: 99px;
  font-size: 7px;
}

.workflow-schedule-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workflow-schedule-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e1e2e6;
  border-left: 3px solid var(--workflow-color);
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(18, 28, 54, 0.05);
}

.workflow-schedule-card.is-overdue {
  border-left-color: var(--coral);
}

.workflow-schedule-card-top,
.workflow-schedule-meta {
  min-width: 0;
  display: flex;
  align-items: center;
}

.workflow-schedule-card-top {
  justify-content: space-between;
  gap: 7px;
}

.workflow-schedule-title {
  min-width: 0;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.workflow-schedule-title:hover strong {
  color: var(--blue);
}

.workflow-schedule-title strong,
.workflow-schedule-title span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-blocked-badge {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  color: #ad4938;
  background: var(--coral-soft);
  border: 1px solid #efc7bf;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.workflow-schedule-title strong {
  font-size: 10px;
}

.workflow-schedule-title span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 7px;
}

.workflow-schedule-meta {
  gap: 7px;
  color: #515b6f;
  font-size: 8px;
}

.workflow-schedule-meta > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-schedule-meta .workflow-priority {
  margin-left: auto;
}

.workflow-schedule-date {
  display: grid;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.workflow-schedule-date input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  color: var(--ink);
  background: #f7f7f5;
  border: 1px solid #dcdde2;
  border-radius: 7px;
  font: 700 8px/1 "Manrope", sans-serif;
  cursor: pointer;
}

.workflow-schedule-date-readonly {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.workflow-schedule-date-readonly.is-overdue {
  color: #ad4938;
}

.workflow-row {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 36px minmax(155px, 1fr) minmax(120px, 0.72fr) 116px 58px 17px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.workflow-row:hover,
.workflow-row:focus-visible {
  background: #f1f2f6;
}

.workflow-row.is-overdue {
  box-shadow: inset 3px 0 0 var(--coral);
}

.workflow-row-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #626b7e;
  background: #fff;
  border: 1px solid #dfe1e7;
  border-radius: 8px;
  font: 700 9px/1 "Manrope", sans-serif;
}

.workflow-row-copy,
.workflow-row-copy strong,
.workflow-row-copy span {
  min-width: 0;
}

.workflow-row-copy strong,
.workflow-row-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-row-copy strong {
  font-size: 11px;
}

.workflow-row-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.workflow-row-owner {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #515b6f;
  font-size: 8px;
}

.workflow-row-owner > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-owner-avatar {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 7px;
  font-weight: 700;
}

.workflow-row-state {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.workflow-status,
.workflow-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-status {
  color: var(--workflow-text);
  background: var(--workflow-bg);
}

.workflow-due {
  color: var(--ink-soft);
  font-size: 7px;
  white-space: nowrap;
}

.workflow-due.is-overdue {
  color: #ad4938;
  font-weight: 700;
}

.workflow-priority {
  color: #626b7e;
  background: #f0f1f3;
}

.workflow-priority.priority-high {
  color: #8b631f;
  background: #fff3d8;
}

.workflow-priority.priority-critical {
  color: #ad4938;
  background: var(--coral-soft);
}

.workflow-row > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #7e8593;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-empty {
  min-height: 230px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  color: var(--ink-soft);
  text-align: center;
}

.workflow-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.workflow-empty span {
  max-width: 380px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.45;
}

.files-dialog {
  width: min(880px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 40px));
}

.files-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.files-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.files-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-context span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.files-filters {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) minmax(125px, 0.65fr) minmax(150px, 0.9fr);
  gap: 8px;
  padding: 13px 16px 8px;
}

.files-filters label > span {
  display: block;
  margin: 0 0 4px 2px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.files-filters input,
.files-filters select {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5d7de;
  border-radius: 8px;
  font: 600 9px/1 "Inter", sans-serif;
}

.files-summary {
  min-height: 21px;
  margin: 0;
  padding: 1px 18px 7px;
  color: var(--ink-soft);
  font-size: 8px;
}

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

.files-upload-button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
}

.files-list {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding: 0 12px 14px;
}

.file-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e1e5;
  border-radius: 10px;
}

.file-card-main {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.file-card-main:hover,
.file-card-main:focus-visible {
  background: #f4f5f8;
}

.file-card-preview {
  width: 48px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef0f3;
  border-radius: 7px;
}

.file-card-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.file-card-preview .attachment-type {
  min-width: 31px;
  height: 28px;
  font-size: 7px;
}

.file-card-copy,
.file-card-copy strong,
.file-card-copy span {
  min-width: 0;
}

.file-card-copy strong,
.file-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-copy strong {
  font-size: 10px;
}

.file-card-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 7px;
}

.file-card-main > svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #7e8593;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-card-sheet {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #59647a;
  text-align: left;
  background: #f7f6f2;
  border: 0;
  border-top: 1px solid #ecebe7;
  cursor: pointer;
}

.file-card-actions {
  display: flex;
  align-items: stretch;
  background: #f7f6f2;
  border-top: 1px solid #ecebe7;
}

.file-card-actions .file-card-sheet {
  border-top: 0;
}

.file-card-delete {
  width: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  color: #a7463c;
  background: transparent;
  border: 0;
  border-left: 1px solid #ecebe7;
  cursor: pointer;
}

.file-card-delete:hover,
.file-card-delete:focus-visible {
  color: #fff;
  background: #b74f43;
}

.file-card-delete svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-card-sheet:hover,
.file-card-sheet:focus-visible {
  color: var(--blue);
  background: #eef1fb;
}

.file-card-sheet span {
  flex: 0 0 auto;
  font-size: 7px;
  font-weight: 700;
}

.file-card-sheet strong {
  min-width: 0;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.files-empty {
  min-height: 250px;
  display: grid;
  grid-column: 1 / -1;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.files-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.files-empty span {
  max-width: 380px;
  margin-top: 5px;
  font-size: 9px;
}

.attachment-assignment-dialog {
  width: min(640px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 40px));
}

.attachment-assignment-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.attachment-assignment-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.attachment-assignment-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-assignment-context > span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.attachment-assignment-context .secondary-button {
  min-height: 30px;
  margin-left: auto;
  padding: 0 11px;
}

.attachment-assignment-help {
  margin: 0;
  padding: 11px 18px 7px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.attachment-choice-list {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 12px 14px;
}

.attachment-choice {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e0e1e5;
  border-radius: 9px;
  cursor: pointer;
}

.attachment-choice + .attachment-choice {
  margin-top: 6px;
}

.attachment-choice:hover,
.attachment-choice:focus-within,
.attachment-choice.is-selected {
  background: #f2f5fd;
  border-color: #bbc7e8;
}

.attachment-choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue);
}

.attachment-choice-number {
  color: #65708a;
  font-size: 8px;
  font-weight: 800;
}

.attachment-choice-copy,
.attachment-choice-copy strong,
.attachment-choice-copy small {
  min-width: 0;
}

.attachment-choice-copy strong,
.attachment-choice-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-choice-copy strong {
  font-size: 10px;
}

.attachment-choice-copy small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.attachment-choice-file {
  grid-template-columns: minmax(0, 1fr) 34px;
  padding: 0;
  cursor: default;
}

.attachment-choice-file > label {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px 48px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  cursor: pointer;
}

.attachment-choice-open {
  align-self: stretch;
  color: #61708b;
  background: transparent;
  border: 0;
  border-left: 1px solid #e0e1e5;
  font-size: 22px;
  cursor: pointer;
}

.attachment-choice-open:hover,
.attachment-choice-open:focus-visible {
  color: var(--blue);
  background: #e9eefc;
}

.attachment-choice-empty {
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  color: var(--ink-soft);
  text-align: center;
}

.attachment-choice-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.attachment-choice-empty span {
  max-width: 360px;
  margin-top: 5px;
  font-size: 9px;
}

.attachment-assignment-actions {
  display: flex;
  justify-content: flex-end;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.file-preview-dialog {
  position: relative;
  width: min(1280px, calc(100vw - 28px));
  height: min(900px, calc(100vh - 28px));
  min-width: min(720px, calc(100vw - 28px));
  min-height: min(520px, calc(100vh - 28px));
  max-width: calc(100vw - 20px);
  max-height: calc(100vh - 20px);
  resize: none;
}

.file-preview-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.file-preview-header h2 {
  max-width: min(620px, calc(100vw - 130px));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-body {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 10px;
  background: #f2f2ef;
}

.file-preview-resize-grip {
  position: absolute;
  right: 4px;
  bottom: 4px;
  z-index: 4;
  width: 15px;
  height: 15px;
  padding: 0;
  cursor: nwse-resize;
  touch-action: none;
  opacity: 0.6;
  background: linear-gradient(135deg, transparent 0 45%, #7d8799 46% 51%, transparent 52% 62%, #7d8799 63% 68%, transparent 69% 79%, #7d8799 80% 85%, transparent 86%);
}

.file-preview-dialog.is-resizing,
.file-preview-dialog.is-resizing * {
  cursor: nwse-resize !important;
  user-select: none;
}

.file-preview-image {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(24, 33, 58, 0.12);
}

.file-preview-body > p {
  align-self: start;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.file-preview-frame {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
  border-radius: 8px;
}

.file-preview-generic {
  display: grid;
  justify-items: center;
  max-width: 360px;
  color: var(--ink-soft);
  text-align: center;
}

.file-preview-generic > span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  background: #fff;
  border-radius: 13px;
}

.file-preview-generic .attachment-type {
  min-width: 48px;
  height: 42px;
  font-size: 10px;
}

.file-preview-generic strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-generic small {
  margin-top: 5px;
  font-size: 8px;
}

.file-preview-generic p {
  margin: 12px 0 0;
  font-size: 9px;
  line-height: 1.45;
}

.file-preview-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
}

.file-preview-actions > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-actions .primary-button {
  flex: 0 0 auto;
  text-decoration: none;
}

.file-preview-action-buttons {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.activity-dialog {
  width: min(680px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 40px));
}

.activity-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.activity-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.activity-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-context span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.activity-filters {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 16px 8px;
}

.activity-filter {
  min-height: 30px;
  padding: 0 10px;
  color: var(--ink-soft);
  background: #f2f1ed;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.activity-filter:hover {
  color: var(--ink);
  background: #ebe9e3;
}

.activity-filter.is-active {
  color: #fff;
  background: var(--navy);
}

.activity-summary {
  min-height: 22px;
  margin: 0;
  padding: 1px 18px 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.activity-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 16px;
}

.activity-day {
  margin: 12px 8px 5px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.activity-entry {
  position: relative;
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
}

button.activity-entry {
  cursor: pointer;
}

button.activity-entry:hover,
button.activity-entry:focus-visible {
  background: #f1f2f6;
}

.activity-entry-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #59647a;
  background: #eef0f4;
  border-radius: 10px;
}

.activity-entry.category-comments .activity-entry-icon {
  color: #a84231;
  background: var(--coral-soft);
}

.activity-entry.category-team .activity-entry-icon {
  color: #23785b;
  background: #e4f4ed;
}

.activity-entry-icon svg,
.activity-entry-arrow {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.activity-entry-copy,
.activity-entry-copy > span {
  min-width: 0;
}

.activity-entry-copy > span {
  display: block;
}

.activity-entry-title {
  display: flex !important;
  align-items: center;
  gap: 7px;
}

.activity-entry-title strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-entry-detail {
  display: -webkit-box !important;
  overflow: hidden;
  margin-top: 4px;
  color: #515b6f;
  font-size: 9px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.activity-entry-meta {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
}

.activity-resolved {
  flex: 0 0 auto;
  padding: 3px 6px;
  color: #23785b;
  background: #e4f4ed;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
}

.activity-entry-arrow {
  color: #7e8593;
}

.activity-empty {
  min-height: 240px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.activity-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.activity-empty span {
  max-width: 370px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.45;
}

.notifications-dialog {
  width: min(700px, calc(100vw - 32px));
  height: min(720px, calc(100vh - 40px));
}

.notifications-dialog[open] {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.notifications-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.notifications-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-context span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.notifications-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px 8px;
}

.notifications-filters {
  display: flex;
  align-items: center;
  gap: 5px;
}

.notification-filter {
  min-height: 30px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: #f2f1ed;
  border: 1px solid transparent;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.notification-filter:hover {
  color: var(--ink);
  background: #ebe9e3;
}

.notification-filter.is-active {
  color: #fff;
  background: var(--navy);
}

.notifications-read-all {
  min-height: 30px;
  padding: 0 11px;
  font-size: 8px;
}

.notifications-summary {
  min-height: 22px;
  margin: 0;
  padding: 1px 18px 8px;
  color: var(--ink-soft);
  font-size: 9px;
}

.notifications-list {
  min-height: 0;
  overflow-y: auto;
  padding: 0 12px 16px;
}

.notification-entry {
  position: relative;
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 11px;
  font: inherit;
  cursor: pointer;
}

.notification-entry:hover,
.notification-entry:focus-visible {
  background: #f1f2f6;
}

.notification-entry.is-unread {
  background: #f5f7ff;
}

.notification-entry.is-unread:hover,
.notification-entry.is-unread:focus-visible {
  background: #edf1ff;
}

.notification-entry-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #485a92;
  background: #e8edff;
  border-radius: 11px;
}

.notification-entry.kind-overdue .notification-entry-icon {
  color: #a84231;
  background: var(--coral-soft);
}

.notification-entry.kind-comment .notification-entry-icon {
  color: #23785b;
  background: #e4f4ed;
}

.notification-entry-icon svg,
.notification-entry-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-entry-copy,
.notification-entry-copy > span {
  min-width: 0;
}

.notification-entry-copy > span {
  display: block;
}

.notification-entry-title {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-entry-message {
  display: -webkit-box !important;
  overflow: hidden;
  margin-top: 4px;
  color: #515b6f;
  font-size: 9px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.notification-entry-meta {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 8px;
}

.notification-unread-label {
  padding: 3px 7px;
  color: #3557b8;
  background: #e4eaff;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 800;
}

.notification-entry-arrow {
  color: #7e8593;
}

.notifications-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--ink-soft);
  text-align: center;
}

.notifications-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.notifications-empty span {
  max-width: 390px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.45;
}

.project-list {
  max-height: 336px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow-y: auto;
  padding: 10px 14px 14px;
}

.project-list-empty {
  margin: 0;
  padding: 18px 12px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 11px;
}

.project-dialog {
  width: min(760px, calc(100vw - 32px));
  overflow-y: auto;
}

.project-portfolio-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 2px;
}

.project-portfolio-summary > span {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 10px;
  color: var(--ink-soft);
  background: #f4f3ef;
  border-radius: 9px;
}

.project-portfolio-summary strong,
.project-portfolio-summary small {
  min-width: 0;
}

.project-portfolio-summary strong {
  color: var(--navy);
  font: 700 16px/1 "Manrope", sans-serif;
}

.project-portfolio-summary small {
  overflow: hidden;
  font-size: 8px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-portfolio-summary .has-overdue strong {
  color: #ad4938;
}

.project-transfer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}

.project-transfer-heading strong,
.project-transfer-heading span {
  display: block;
}

.project-transfer-heading strong {
  font-size: 11px;
}

.project-transfer-heading span,
.project-transfer-note {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.project-transfer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.project-import-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-transfer-note {
  margin-bottom: 0;
}

.project-transfer .form-message {
  min-height: 0;
  margin: 7px 0 0;
}

.project-list-button {
  min-width: 0;
  width: 100%;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: #f8f7f3;
  border: 1px solid #e3e2dd;
  border-top: 3px solid transparent;
  border-radius: 11px;
  cursor: pointer;
}

.project-list-button:hover {
  background: #f2f2ee;
  border-color: #d7d9e0;
}

.project-list-button.is-active {
  background: #fff;
  border-color: rgba(69, 104, 232, 0.55);
  border-top-color: var(--blue);
  box-shadow: 0 4px 14px rgba(24, 33, 58, 0.08);
}

.project-card-heading {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.project-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
}

.project-list-copy strong,
.project-list-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-list-copy strong {
  font-size: 11px;
}

.project-list-copy span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.project-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
}

.project-progress-copy strong {
  color: var(--navy);
  font-size: 10px;
}

.project-progress-track {
  height: 8px;
  display: block;
  overflow: hidden;
  margin-top: -5px;
  background: #e3e4e6;
  border-radius: 99px;
}

.project-progress-track i {
  height: 100%;
  display: block;
  background: var(--blue);
  border-radius: inherit;
}

.project-card-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.project-card-signals > span {
  min-width: 0;
  padding: 6px 7px;
  background: #fff;
  border: 1px solid #e6e5e0;
  border-radius: 7px;
}

.project-list-button.is-active .project-card-signals > span {
  background: #f8f8f6;
}

.project-card-signals strong,
.project-card-signals small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-signals strong {
  color: var(--navy);
  font-size: 10px;
}

.project-card-signals small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 7px;
}

.project-card-signals .has-overdue strong {
  color: #ad4938;
}

.project-rename,
.project-create {
  padding: 15px 22px 2px;
  border-top: 1px solid var(--line);
}

.project-create {
  padding-bottom: 19px;
}

.history-dialog {
  width: min(880px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 48px));
}

.history-dialog[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.history-context {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.history-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.history-context span:last-child {
  margin-left: auto;
  padding: 4px 7px;
  color: #315f50;
  background: #e8f3ee;
  border-radius: 99px;
  white-space: nowrap;
  font-weight: 600;
}

.history-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
}

.history-list {
  min-height: 0;
  overflow-y: auto;
  padding: 9px;
  background: #faf9f6;
  border-right: 1px solid var(--line);
}

.revision-list-button {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding: 10px 11px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}

.revision-list-button:hover,
.revision-list-button.is-active {
  background: var(--paper);
  border-color: #d9dce3;
  box-shadow: 0 2px 8px rgba(24, 33, 58, 0.06);
}

.revision-list-button + .revision-list-button {
  margin-top: 5px;
}

.revision-list-button strong,
.revision-list-button span {
  display: block;
}

.revision-list-button strong {
  font-size: 11px;
}

.revision-list-button > span:not(.revision-kind) {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 9px;
}

.revision-kind {
  align-self: start;
  padding: 3px 6px;
  color: #4c5670;
  background: #eceef3;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.revision-kind.is-current {
  color: #315f50;
  background: #e2f1ea;
}

.revision-kind.is-restored {
  color: #94542f;
  background: #f8e9dc;
}

.history-preview {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 22px;
}

.history-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  gap: 5px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 10px;
}

.history-empty strong {
  color: var(--ink);
  font-size: 13px;
}

.revision-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.revision-preview-header h3 {
  margin: 3px 0 4px;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
}

.revision-preview-header p,
.revision-preview-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.revision-preview-meta {
  flex: 0 0 auto;
  padding: 7px 9px;
  text-align: right;
  background: #f4f3ef;
  border-radius: 8px;
}

.revision-preview-tree {
  margin-top: 15px;
}

.revision-tree-label {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.revision-tree-node {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  margin-left: calc(var(--revision-depth, 0) * 18px);
  padding: 8px 9px;
  border-left: 1px solid #dfe2e8;
}

.revision-tree-node + .revision-tree-node {
  margin-top: 3px;
}

.revision-tree-accent {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  background: var(--revision-accent, var(--blue));
  border-radius: 99px;
}

.revision-tree-copy strong,
.revision-tree-copy span {
  display: block;
}

.revision-tree-copy strong {
  font-size: 10px;
}

.revision-tree-copy span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
}

.history-actions {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
}

.history-actions p {
  margin: 0 auto 0 0;
  color: var(--ink-soft);
  font-size: 9px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-form .text-input {
  margin-bottom: 0;
}

.project-role-badge {
  display: inline-block;
  margin-top: 0;
  padding: 2px 5px;
  color: #59647a;
  background: #eceef3;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
}

.share-dialog {
  width: min(620px, calc(100vw - 32px));
  overflow-y: auto;
}

.share-project-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 18px 2px;
  padding: 9px 11px;
  background: #f5f3ee;
  border: 1px solid #e8e5dc;
  border-radius: 9px;
}

.share-project-context span {
  color: var(--ink-soft);
  font-size: 9px;
}

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

.member-list {
  max-height: 255px;
  overflow-y: auto;
  padding: 8px 18px 12px;
}

.member-list-empty {
  margin: 0;
  padding: 20px 10px;
  color: var(--ink-soft);
  text-align: center;
  font-size: 10px;
}

.member-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 118px 30px;
  align-items: center;
  gap: 9px;
  padding: 9px 3px;
  border-bottom: 1px solid #ece9e1;
}

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

.member-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 700;
}

.member-copy {
  min-width: 0;
}

.member-copy strong,
.member-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-copy strong {
  font-size: 10px;
}

.member-copy span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.member-role-select {
  height: 31px;
  width: 100%;
  padding: 0 7px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7d9de;
  border-radius: 7px;
  font-size: 9px;
}

.member-remove {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #ad4939;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.member-remove:hover {
  background: var(--coral-soft);
}

.member-remove svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-readonly-note {
  margin: 0;
  padding: 14px 22px 18px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.45;
}

.member-create-form {
  padding: 15px 22px 18px;
  border-top: 1px solid var(--line);
}

.member-form-heading {
  margin-bottom: 12px;
}

.member-form-heading strong,
.member-form-heading span {
  display: block;
}

.member-form-heading strong {
  font-size: 11px;
}

.member-form-heading span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.member-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 10px;
}

.member-field-grid .select-input {
  margin-bottom: 12px;
}

.member-form-actions,
.password-actions {
  display: flex;
  justify-content: flex-end;
}

.password-dialog {
  width: min(450px, calc(100vw - 32px));
}

.admin-dialog {
  width: min(860px, calc(100vw - 28px));
  height: min(760px, calc(100vh - 32px));
  max-height: none;
  display: none;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.admin-dialog[open] {
  display: grid;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-stats > div {
  padding: 12px 18px;
  background: #f7f6f2;
}

.admin-stats strong,
.admin-stats span {
  display: block;
}

.admin-stats strong {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
}

.admin-stats span {
  margin-top: 1px;
  color: var(--ink-soft);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.55px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  padding: 7px 10px;
  background: #f2f1ed;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  min-height: 32px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 4px rgba(24, 33, 58, 0.1);
}

.admin-body {
  min-height: 0;
  overflow-y: auto;
}

.admin-panel {
  padding: 16px 18px 20px;
}

.admin-suite-app-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.75fr);
  gap: 18px;
  padding: 14px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border: 1px solid #e2e1dc;
  border-radius: 10px;
}

.admin-suite-app-intro strong,
.admin-suite-app-intro span {
  display: block;
}

.admin-suite-app-intro strong {
  color: var(--ink);
  font-size: 11px;
}

.admin-suite-app-intro span,
.admin-suite-app-intro p {
  margin: 3px 0 0;
  font-size: 9px;
  line-height: 1.5;
}

.admin-suite-app-list {
  border-top: 1px solid var(--line);
}

.admin-suite-app-row {
  display: grid;
  grid-template-columns: 24px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 4px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  cursor: grab;
  transition: opacity 120ms ease, background-color 120ms ease;
}

.admin-suite-app-row:active {
  cursor: grabbing;
}

.admin-suite-app-row.is-dragging {
  opacity: 0.42;
  background: #eef3ff;
}

.admin-suite-app-grip {
  color: #8892a6;
  font-size: 14px;
  letter-spacing: -3px;
}

.admin-suite-app-position {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 9px;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 800;
}

.admin-suite-app-copy strong,
.admin-suite-app-copy span {
  display: block;
}

.admin-suite-app-copy strong {
  font-size: 10px;
}

.admin-suite-app-copy span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.admin-suite-app-actions {
  display: flex;
  gap: 5px;
}

.admin-suite-app-actions .icon-button {
  width: 31px;
  height: 31px;
  font-size: 14px;
}

.admin-user-create {
  padding: 14px;
  background: #f7f6f2;
  border: 1px solid #e2e1dc;
  border-radius: 10px;
}

.admin-user-create-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.1fr auto;
  align-items: end;
  gap: 10px;
}

.admin-user-create-grid .text-input {
  margin-bottom: 0;
}

.admin-checkbox {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 5px;
  color: var(--ink-soft);
  font-size: 9px;
  white-space: nowrap;
}

.admin-checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
}

.admin-user-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-user-item {
  background: #fff;
  border: 1px solid #dedfe3;
  border-radius: 10px;
}

.admin-user-item[open] {
  border-color: #bfc5d1;
  box-shadow: 0 6px 18px rgba(24, 33, 58, 0.07);
}

.admin-user-summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}

.admin-user-summary::-webkit-details-marker {
  display: none;
}

.admin-user-summary-copy strong,
.admin-user-summary-copy span {
  display: block;
}

.admin-user-summary-copy strong {
  font-size: 10px;
}

.admin-user-summary-copy span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.admin-user-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.admin-badge {
  padding: 3px 6px;
  color: #59647a;
  background: #eceef3;
  border-radius: 99px;
  font-size: 7px;
  font-weight: 700;
}

.admin-badge.is-superadmin {
  color: #a84231;
  background: var(--coral-soft);
}

.admin-badge.is-inactive {
  color: #8c5960;
  background: #f5e8ea;
}

.admin-user-editor {
  padding: 12px 14px 14px;
  border-top: 1px solid #ece9e1;
}

.admin-user-editor-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr auto;
  align-items: end;
  gap: 9px;
}

.admin-user-editor-grid .text-input,
.admin-user-editor-grid .select-input {
  margin-bottom: 0;
}

.admin-user-meta {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 8px;
}

.admin-assignment-toolbar {
  display: grid;
  grid-template-columns: auto minmax(280px, 430px) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
  margin-bottom: 8px;
}

.admin-assignment-view-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: #ecebe7;
  border: 1px solid #deddd7;
  border-radius: 9px;
}

.admin-assignment-view-button {
  min-height: 32px;
  padding: 0 11px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.admin-assignment-view-button.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 33, 58, 0.12);
}

.admin-assignment-picker {
  width: 100%;
  max-width: 430px;
}

.admin-assignment-picker .select-input {
  margin-bottom: 0;
}

.admin-assignment-summary {
  min-height: 18px;
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.45;
}

.admin-assignment-list {
  border-top: 1px solid var(--line);
}

.admin-assignment-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #ece9e1;
}

.admin-assignment-row.is-inactive {
  opacity: 0.56;
}

.admin-project-avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #637fc0;
  border-radius: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 800;
}

.admin-assignment-copy strong,
.admin-assignment-copy span {
  display: block;
}

.admin-assignment-copy strong {
  font-size: 10px;
}

.admin-assignment-copy span {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 8px;
}

.admin-role-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.admin-role-row {
  display: grid;
  grid-template-columns: 140px 100px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.admin-role-row strong {
  font-size: 10px;
}

.admin-role-row span,
.admin-role-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.45;
}

.password-intro {
  margin: 0;
  padding: 15px 22px 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.password-intro.is-required {
  color: #9a4b3d;
}

.password-form {
  padding: 13px 22px 20px;
}

body.is-readonly .sheet-editor {
  display: none;
}

body.is-readonly .sheet {
  cursor: pointer;
}

.report-dialog {
  width: min(1180px, calc(100vw - 32px));
  height: min(790px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
}

.report-dialog[open] {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.report-dialog-header {
  align-items: center;
}

.report-header-actions,
.report-header-actions .primary-button {
  display: flex;
  align-items: center;
}

.report-header-actions {
  gap: 8px;
}

.report-header-actions .primary-button {
  gap: 7px;
}

.report-header-actions .primary-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  color: var(--ink-soft);
  background: #f7f6f2;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}

.report-context strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-context span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.report-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  background: #e7e8eb;
}

.report-selection {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  padding: 17px 13px 13px;
  background: #f8f7f3;
  border-right: 1px solid #d1d4dc;
}

.report-selection-heading,
.report-selection-actions,
.report-sheet-option {
  display: flex;
  align-items: center;
}

.report-selection-heading {
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 10px;
}

.report-selection-heading .field-label,
.report-selection-heading strong {
  display: block;
}

.report-selection-heading strong {
  margin-top: 2px;
  font-size: 12px;
}

.report-selection-heading > span {
  padding: 4px 7px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 99px;
  font-size: 8px;
  font-weight: 700;
}

.report-selection-help {
  margin: 0 4px 10px;
  color: #687184;
  font-size: 7.5px;
  line-height: 1.45;
}

.report-print-settings {
  display: grid;
  gap: 8px;
  margin: 0 2px 9px;
  padding: 10px;
  background: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
}

.report-print-settings > label > span:first-child {
  display: block;
  margin-bottom: 4px;
  color: #687184;
  font-size: 7px;
  font-weight: 700;
}

.report-print-settings select {
  width: 100%;
  height: 31px;
  padding: 0 8px;
  color: var(--ink);
  background: #f7f7f5;
  border: 1px solid #d5d7de;
  border-radius: 6px;
  font: 700 8px/1 "DM Sans", sans-serif;
}

.report-white-background {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.report-white-background input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

.report-white-background > span {
  min-width: 0;
}

.report-white-background strong,
.report-white-background small {
  display: block;
}

.report-white-background strong {
  font-size: 8px;
}

.report-white-background small {
  margin-top: 2px;
  color: #7a8190;
  font-size: 6.5px;
}

.report-selection-actions {
  gap: 4px;
  padding: 0 2px 8px;
}

.report-selection-actions button {
  flex: 1;
  height: 27px;
  color: #596276;
  background: #ecebe7;
  border: 0;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.report-selection-actions button:hover {
  color: var(--navy);
  background: #e2e5ec;
}

.report-sheet-selection {
  min-height: 0;
  overflow-y: auto;
  padding: 2px;
}

.report-sheet-option {
  position: relative;
  gap: 8px;
  min-height: 48px;
  margin-bottom: 4px;
  padding: 7px 8px;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.report-sheet-option:hover,
.report-sheet-option.is-selected {
  border-color: #cbd2e8;
}

.report-sheet-option.is-selected {
  background: #f2f5ff;
}

.report-sheet-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.report-sheet-option-number {
  color: #8a91a0;
  font: 700 8px/1 "Manrope", sans-serif;
}

.report-sheet-option > span:last-child {
  min-width: 0;
  flex: 1;
}

.report-sheet-option strong,
.report-sheet-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-sheet-option strong {
  font-size: 9px;
}

.report-sheet-option small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 7px;
}

.report-preview-wrap {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px;
}

.project-report {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 42px 46px 30px;
  color: #17213b;
  background: #fff;
  box-shadow: 0 8px 28px rgba(24, 33, 58, 0.12);
  font: 400 10px/1.5 "DM Sans", Arial, sans-serif;
}

.project-report.report-orientation-landscape {
  width: min(100%, 1080px);
}

.sheet-print-preview {
  width: min(100%, 820px);
  display: block;
  margin: 0 auto;
  color: var(--ink);
}

.sheet-faithful-document {
  display: grid;
  gap: 22px;
}

.print-faithful-page {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid #d9dce3;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(24, 33, 58, 0.1);
}

.print-faithful-stage {
  width: 630px;
  height: 446px;
  display: grid;
  place-items: center;
}

.print-faithful-sheet {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  cursor: default;
  zoom: 1.5;
}

.print-faithful-sheet .sheet-body {
  box-sizing: border-box;
}

.print-faithful-attachments .sheet-attachment,
.print-faithful-attachments .sheet-attachment-more {
  display: grid;
}

.print-faithful-caption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 0;
  color: #737b8c;
  font-size: 8px;
}

.print-faithful-caption strong {
  color: #35405a;
}

.report-cover {
  position: relative;
  padding: 4px 0 29px;
  border-bottom: 2px solid #192541;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 36px;
  font: 600 10px/1 "Manrope", sans-serif;
}

.report-brand > b {
  color: #ee745b;
}

.report-brand-mark {
  position: relative;
  width: 19px;
  height: 18px;
  margin-right: 3px;
}

.report-brand-mark i {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid #192541;
  border-radius: 2px;
}

.report-brand-mark i:nth-child(1) { left: 0; top: 0; }
.report-brand-mark i:nth-child(2) { right: 0; top: 4px; background: #ee745b; border-color: #ee745b; }
.report-brand-mark i:nth-child(3) { left: 3px; bottom: 0; width: 13px; height: 6px; background: #192541; }

.report-kicker,
.report-section-heading > span {
  color: #ee745b;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}

.report-cover h1 {
  max-width: 620px;
  margin: 5px 0 3px;
  font: 700 27px/1.12 "Manrope", sans-serif;
  letter-spacing: -0.8px;
}

.report-cover > p {
  margin: 0;
  color: #697184;
  font-size: 8px;
}

.report-kpis {
  display: grid;
  grid-template-columns: 1.35fr repeat(5, 1fr);
  gap: 7px;
  margin: 22px 0 28px;
}

.report-kpis > div {
  min-width: 0;
  min-height: 67px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px;
  background: #f3f3f1;
  border-radius: 7px;
}

.report-kpis > div > strong {
  font: 700 19px/1 "Manrope", sans-serif;
}

.report-kpis > div > span {
  margin-top: 5px;
  color: #687184;
  font-size: 7px;
  font-weight: 600;
}

.report-kpis > .is-alert { color: #b44332; background: #fff0eb; }
.report-kpis > .is-warning { color: #8b631f; background: #fff5df; }

.report-kpis .report-progress {
  position: relative;
  padding-left: 65px;
  background: #edf1ff;
}

.report-progress::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  width: 44px;
  height: 44px;
  background: conic-gradient(#4568e8 var(--report-progress), #d9dfef 0);
  border-radius: 50%;
}

.report-progress::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 17px;
  width: 30px;
  height: 30px;
  background: #edf1ff;
  border-radius: 50%;
}

.report-section-heading {
  position: relative;
  margin-bottom: 12px;
}

.report-section-heading h2 {
  margin: 2px 0 0;
  font: 700 15px/1.2 "Manrope", sans-serif;
  letter-spacing: -0.25px;
}

.report-section-heading > p {
  position: absolute;
  right: 0;
  bottom: 1px;
  margin: 0;
  color: #737b8c;
  font-size: 7px;
}

.report-status-section {
  padding-bottom: 25px;
}

.report-status-bar {
  height: 10px;
  display: flex;
  overflow: hidden;
  background: #e8e8e5;
  border-radius: 99px;
}

.report-status-bar > .status-planned { background: #aab0bc; }
.report-status-bar > .status-in_progress { background: #4568e8; }
.report-status-bar > .status-review { background: #c48b2f; }
.report-status-bar > .status-done { background: #2d9b75; }

.report-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 9px;
}

.report-status-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #626b7e;
  font-size: 7px;
}

.report-status-legend i,
.report-status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #aab0bc;
  border-radius: 50%;
}

.report-status-legend .status-in_progress i,
.report-status-dot.status-in_progress { background: #4568e8; }
.report-status-legend .status-review i,
.report-status-dot.status-review { background: #c48b2f; }
.report-status-legend .status-done i,
.report-status-dot.status-done { background: #2d9b75; }

.report-status-legend b {
  color: #17213b;
}

.report-management-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px 0 28px;
  border-top: 1px solid #d9dce3;
}

.report-management-grid > section {
  min-width: 0;
}

.report-deadline-row,
.report-responsibility-row {
  display: grid;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 7px 0;
  border-bottom: 1px solid #e3e4e8;
}

.report-deadline-row {
  grid-template-columns: 82px minmax(0, 1fr) 10px;
}

.report-deadline-row time > *,
.report-deadline-row > span > *,
.report-responsibility-row > span:nth-child(2) > * {
  display: block;
}

.report-deadline-row time strong,
.report-deadline-row > span > strong,
.report-responsibility-row strong {
  font-size: 8px;
}

.report-deadline-row small,
.report-responsibility-row small {
  margin-top: 2px;
  color: #777f8e;
  font-size: 6.5px;
}

.report-deadline-row.is-overdue time strong,
.report-deadline-row.is-overdue time small {
  color: #b44332;
}

.report-responsibility-row {
  grid-template-columns: 27px minmax(0, 1fr) 20px;
}

.report-person-avatar {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #697a9f;
  border-radius: 50%;
  font-size: 7px;
  font-weight: 700;
}

.report-responsibility-row > b {
  color: #4568e8;
  font: 700 12px/1 "Manrope", sans-serif;
  text-align: right;
}

.report-empty-copy,
.report-more-copy {
  margin: 8px 0;
  color: #737b8c;
  font-size: 8px;
}

.report-more-copy {
  font-style: italic;
}

.report-selected-content {
  padding-top: 24px;
  border-top: 2px solid #192541;
}

.report-sheet-page {
  display: contents;
}

.report-sheet-flow {
  display: contents;
}

.report-print-page-heading {
  display: none;
}

.report-sheet-section {
  margin-top: 17px;
  padding: 19px 20px;
  background: #faf9f6;
  border: 1px solid #e0e1e4;
  border-left: 4px solid #4568e8;
  border-radius: 6px;
  break-inside: avoid;
}

.report-white-sheet-background .report-sheet-section {
  background: #fff;
}

.report-sheet-section > header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.report-sheet-number {
  padding-top: 3px;
  color: #737b8c;
  font-size: 6.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.report-sheet-section h3 {
  margin: 0;
  font: 700 13px/1.2 "Manrope", sans-serif;
}

.report-sheet-section header p {
  margin: 2px 0 0;
  color: #687184;
  font-size: 7px;
}

.report-sheet-section .workflow-status {
  align-self: start;
  font-size: 6.5px;
}

.report-sheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin: 12px 0 15px 62px;
  padding: 9px 0;
  color: #515b6f;
  border-top: 1px solid #dedfe3;
  border-bottom: 1px solid #dedfe3;
  font-size: 7px;
}

.report-sheet-meta span {
  display: flex;
  gap: 4px;
}

.report-sheet-meta .is-alert {
  color: #b44332;
}

.report-sheet-content {
  margin-left: 62px;
}

.report-sheet-content.has-tabs {
  display: grid;
  gap: 12px;
}

.report-tab-page + .report-tab-page {
  padding-top: 12px;
  border-top: 1px dashed #d9dde6;
}

.report-tab-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  color: #24304b;
  font-size: 11px;
}

.report-tab-heading span {
  color: #64708a;
  font-size: 7px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .multisheet-editor-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .multisheet-editor-order {
    justify-content: flex-end;
  }

  .multisheet-transfer-actions .secondary-button {
    flex: 1 1 calc(50% - 4px);
  }
}

.report-sheet-content h4 {
  margin: 13px 0 4px;
  font: 700 10px/1.3 "Manrope", sans-serif;
}

.report-sheet-content > h4:first-child {
  margin-top: 0;
}

.report-sheet-content > p {
  margin: 4px 0 9px;
  color: #424c61;
  font-size: 8px;
  line-height: 1.55;
}

.report-note {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  padding: 9px 11px;
  color: #000;
  background: #fff5df;
  border-left: 3px solid #c48b2f;
  font-size: 7px;
}

.report-note strong {
  font-size: 5.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.report-inline-metric {
  display: inline-grid;
  min-width: 120px;
  margin: 5px 5px 5px 0;
  padding: 9px 11px;
  background: #edf1ff;
  border-radius: 5px;
}

.report-inline-metric strong {
  font: 700 15px/1 "Manrope", sans-serif;
}

.report-inline-metric span,
.report-inline-metric small {
  margin-top: 3px;
  color: #5d667a;
  font-size: 7px;
}

.report-table-wrap {
  max-width: 100%;
  margin: 9px 0;
  overflow-x: auto;
}

.report-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 7px;
}

.report-table-wrap th,
.report-table-wrap td {
  padding: 5px 6px;
  vertical-align: top;
  overflow-wrap: anywhere;
  white-space: normal;
  border: 1px solid #d9dce3;
  text-align: left;
}

.report-table-wrap th {
  color: #fff;
  background: #192541;
}

.report-table-wrap table.is-compact-rows {
  font-size: 6px;
  line-height: 1.08;
}

.report-table-wrap table.is-compact-rows th,
.report-table-wrap table.is-compact-rows td {
  padding: 1px 4px;
  vertical-align: middle;
}

.report-chart {
  margin: 10px 0;
}

.report-chart > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 8px;
}

.report-chart > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 7px;
  margin: 5px 0;
  font-size: 7px;
}

.report-chart i {
  height: 6px;
  overflow: hidden;
  background: #dfe3ed;
  border-radius: 99px;
}

.report-chart i b {
  height: 100%;
  display: block;
  background: #4568e8;
  border-radius: inherit;
}

.report-chart em {
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.report-timeline {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}

.report-timeline .custom-timeline-row {
  display: grid;
  grid-template-columns: repeat(var(--timeline-columns, 4), minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
}

.report-timeline .custom-timeline-row::before {
  top: 14px;
}

.report-timeline .custom-timeline-item {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-top: 16px;
  font-size: 7px;
}

.report-timeline .custom-timeline-item i {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  background: #2d9b75;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #2d9b75;
}

.report-timeline .custom-timeline-item span,
.report-timeline .custom-timeline-item strong {
  overflow-wrap: anywhere;
}

.report-diagram {
  margin: 10px 0;
  gap: 7px;
}

.report-diagram .diagram-flow-grid,
.report-diagram .diagram-group-items,
.report-diagram .diagram-network-spokes,
.report-diagram .diagram-groups {
  gap: 7px;
}

.report-diagram .diagram-card {
  padding: 8px 9px;
}

.report-diagram .diagram-card strong {
  font-size: 7.4px;
}

.report-diagram .diagram-card p {
  margin-top: 3px;
  font-size: 6.6px;
  line-height: 1.32;
}

.report-diagram .diagram-step {
  width: 14px;
  height: 14px;
  font-size: 6.2px;
}

.report-diagram .diagram-group-row {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 7px;
}

.report-diagram .diagram-group-label {
  padding: 7px 8px;
  font-size: 6.8px;
}

.report-image {
  margin: 11px 0;
}

.report-image img {
  max-width: 100%;
  max-height: 310px;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.report-image figcaption {
  margin-top: 4px;
  color: #6a7282;
  font-size: 7px;
}

.report-attachment-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 13px 0 0 62px;
  padding-top: 9px;
  border-top: 1px solid #dedfe3;
  font-size: 7px;
}

.report-attachment-list > strong {
  margin-right: 4px;
}

.report-attachment-list > span {
  padding: 3px 6px;
  color: #566075;
  background: #eef0f4;
  border-radius: 99px;
}

.report-document-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: #f4f6fb;
  border: 1px solid #dce2ef;
  border-radius: 9px;
}

.report-document-card > span {
  flex: 0 0 auto;
}

.report-document-card > div {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 3px;
}

.report-document-card strong,
.report-document-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-document-card small {
  color: var(--ink-soft);
  font-size: 8px;
}

.report-document-card a {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 8px;
  font-weight: 750;
  text-decoration: none;
}

.report-no-selection {
  display: grid;
  justify-items: center;
  padding: 38px 20px;
  color: #6d7585;
  background: #f5f4f1;
  border: 1px dashed #c9ccd4;
  border-radius: 6px;
  text-align: center;
}

.report-no-selection strong {
  color: #17213b;
}

.report-no-selection span {
  margin-top: 4px;
  font-size: 8px;
}

.report-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 10px;
  color: #7a8190;
  border-top: 1px solid #d9dce3;
  font-size: 6.5px;
}

.print-report {
  display: none;
}

body.is-printing-report {
  height: auto;
  overflow: auto;
  background: #dfe1e6;
}

body.is-printing-report > *:not(.print-report) {
  display: none !important;
}

body.is-printing-report > .print-report {
  display: block;
  min-height: 100vh;
  padding: 24px;
}

body.is-printing-faithful > .print-report {
  padding: 18px;
}

body.is-printing-faithful .print-report-toolbar {
  width: min(100%, 1080px);
}

.print-report-toolbar {
  width: min(100%, 820px);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 auto 10px;
}

.print-report-toolbar button {
  min-height: 36px;
  padding: 0 13px;
  color: #fff;
  background: #192541;
  border: 0;
  border-radius: 8px;
  font: 600 11px/1 "DM Sans", sans-serif;
  cursor: pointer;
}

.print-report-toolbar button:last-child {
  color: #17213b;
  background: #fff;
}

@media (max-width: 1120px) {
  .suite-global-navigation {
    position: static;
    margin-left: auto;
    transform: none;
  }

  .suite-home-account { display: none; }
  .suite-work-context { max-width: 180px; }

  .topbar {
    grid-template-columns: 240px 1fr auto;
  }

  .share-button,
  .presentation-button {
    width: 36px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .presentation-button span {
    display: none;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 210px 1fr auto;
  }

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

  .project-label,
  .save-status,
  .orientation-button span,
  .global-layout-button span {
    display: none;
  }

  .orientation-button,
  .global-layout-button {
    width: 32px;
    justify-content: center;
    padding: 0;
  }

  .minimap {
    display: none;
  }
}

@media (max-width: 720px) {
  .suite-global-header {
    min-height: 54px;
    flex-basis: 54px;
    gap: 8px;
    padding: 0 10px;
  }

  .suite-global-brand { gap: 7px; }
  .suite-global-brand > span { display: none; }
  .suite-global-brand .brand-mark { display: block; }
  .suite-global-navigation { min-width: 0; max-width: none; margin: 0; flex: 1; }
  .suite-home-nav-button { min-width: auto; padding-inline: 10px; }
  .suite-work-context { max-width: 150px; }
  .suite-application-name { display: none; }
  .suite-global-actions { flex: 0 0 auto; }

  body.is-mobile-action-open {
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 10px;
  }

  .brand {
    gap: 0;
  }

  .brand-mark,
  .brand-name {
    display: none;
  }

  .project-identity {
    display: none;
  }

  .mobile-project-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }

  .mobile-project-title {
    width: min(100%, 310px);
    min-width: 0;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 4px;
    padding: 4px 7px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
  }

  .mobile-project-title:hover {
    background: #f1f1ee;
  }

  .mobile-project-title span,
  .mobile-project-title strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-project-title span {
    color: var(--ink-soft);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
  }

  .mobile-project-title strong {
    font-family: "Manrope", sans-serif;
    font-size: 12px;
  }

  .mobile-project-title svg {
    width: 16px;
    height: 16px;
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-save-indicator {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: var(--green);
    border-radius: 50%;
  }

  .mobile-save-indicator.is-saving {
    background: var(--gold);
    animation: save-pulse 1s ease-in-out infinite;
  }

  .mobile-save-indicator.is-error,
  .mobile-save-indicator.is-offline {
    background: var(--coral);
  }

  .topbar-actions {
    gap: 5px;
  }

  #searchButton,
  #guideButton,
  #myTasksButton,
  #notificationsButton,
  #workflowButton,
  #dataSourcesButton,
  #reportButton,
  #filesButton,
  #activityButton,
  #historyButton,
  #commentsButton,
  #startPresentation,
  #shareButton {
    display: none;
  }

  .guide-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    max-height: none;
  }

  .guide-dialog-header {
    padding: 15px 16px 12px;
  }

  .guide-hero {
    margin: 10px 10px 8px;
    padding: 10px;
  }

  .guide-progress-ring {
    width: 48px;
    height: 48px;
  }

  .guide-hero .primary-button {
    padding-inline: 9px;
    font-size: 8px;
  }

  .guide-search-field {
    margin-right: 10px;
    margin-left: 10px;
  }

  .guide-search-summary {
    padding-right: 12px;
    padding-left: 12px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(110px, 34%) minmax(0, 1fr);
    margin: 0 10px 8px;
  }

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

  .guide-lesson-button {
    min-height: 47px;
  }

  .guide-lesson-detail {
    padding: 14px;
  }

  .guide-lesson-detail h3 {
    font-size: 16px;
  }

  .guide-footer {
    align-items: stretch;
    flex-direction: column;
    padding: 9px 10px 10px;
  }

  .guide-footer > div > button {
    flex: 1 1 0;
  }

  .guide-coachmark {
    right: 10px;
    bottom: 10px;
  }

  .topbar-actions > .mobile-more-button {
    display: inline-grid;
  }

  .topbar-actions > .mobile-more-button,
  .topbar-actions > .avatar {
    width: 38px;
    height: 38px;
  }

  .mobile-more-notification {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    background: var(--coral);
    border: 1.5px solid var(--paper);
    border-radius: 50%;
  }

  .mobile-more-notification[hidden],
  .mobile-action-badge[hidden] {
    display: none;
  }

  .mobile-action-backdrop:not([hidden]) {
    position: fixed;
    z-index: 75;
    inset: 0;
    display: block;
    background: rgba(18, 28, 54, 0.42);
    backdrop-filter: blur(2px);
  }

  .mobile-action-menu:not([hidden]) {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(82vh, 620px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 16px 14px calc(16px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -16px 45px rgba(18, 28, 54, 0.22);
  }

  .mobile-action-menu > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 13px;
  }

  .mobile-action-menu > header span {
    display: block;
    margin-bottom: 3px;
    color: var(--ink-soft);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  .mobile-action-menu h2 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
  }

  .mobile-action-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-y: auto;
  }

  .mobile-action-grid > button {
    position: relative;
    min-width: 0;
    min-height: 70px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 10px;
    color: var(--ink);
    text-align: left;
    background: #f7f6f2;
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
  }

  .mobile-action-grid > button:hover {
    background: #efeee9;
  }

  .mobile-action-grid > button:last-child {
    grid-column: 1 / -1;
  }

  .mobile-action-grid svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-action-grid strong,
  .mobile-action-grid small {
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-action-grid strong {
    font-size: 10px;
  }

  .mobile-action-grid small {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 8px;
  }

  .mobile-action-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    color: #fff;
    background: var(--coral);
    border-radius: 99px;
    font-size: 7px;
    font-style: normal;
    font-weight: 700;
  }

  .profile-menu {
    top: 49px;
    width: min(270px, calc(100vw - 16px));
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-canvas {
    position: absolute;
    inset: 0;
    opacity: 0.35;
  }

  .login-card {
    width: min(420px, calc(100% - 28px));
    padding: 28px 25px 30px;
  }

  .landing-footer {
    min-height: 58px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 16px;
  }

  .landing-footer nav,
  .legal-page-footer nav {
    gap: 14px;
  }

  .legal-header {
    min-height: 58px;
  }

  .legal-main {
    width: min(100% - 22px, 860px);
    padding: 38px 0 55px;
  }

  .legal-intro {
    padding-right: 4px;
    padding-left: 4px;
  }

  .legal-contact-card {
    grid-template-columns: 1fr;
  }

  .legal-contact-card > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .legal-page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .admin-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .history-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .workflow-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .my-tasks-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .files-dialog,
  .file-preview-dialog,
  .presentation-setup-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .presentation-setup-body {
    padding-right: 12px;
    padding-left: 12px;
  }

  .presentation-resume-card,
  .presentation-resume-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .presentation-scope-field {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .presentation-order-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .presentation-order-heading .secondary-button {
    align-self: flex-start;
  }

  .presentation-order-row {
    grid-template-columns: 25px 22px 24px minmax(0, 1fr) auto;
    gap: 4px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .presentation-order-actions button {
    width: 25px;
  }

  .presentation-setup-actions {
    padding-right: 12px;
    padding-left: 12px;
  }

  .file-preview-dialog {
    min-width: 0;
    min-height: 0;
    max-width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    resize: none;
  }

  .file-preview-resize-grip {
    display: none;
  }

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

  .activity-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .workflow-row {
    grid-template-columns: 36px minmax(130px, 1fr) minmax(108px, 0.72fr) 108px 55px 15px;
    gap: 8px;
  }

  .history-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(135px, 32%) minmax(0, 1fr);
  }

  .history-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-user-create-grid,
  .admin-user-editor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-user-editor-grid .primary-button {
    justify-self: end;
  }

  .mobile-only,
  .sidebar-close {
    display: inline-grid;
  }

  .workspace {
    display: block;
  }

  .sidebar {
    position: absolute;
    z-index: 40;
    left: 0;
    top: 66px;
    bottom: 0;
    width: min(290px, 86vw);
    box-shadow: 18px 0 40px rgba(24, 33, 58, 0.16);
    transform: translateX(-105%);
    transition: transform 240ms ease;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .canvas-area {
    height: 100%;
  }

  .canvas-toolbar {
    left: 12px;
    transform: none;
  }

  .connection-style-popover {
    right: auto;
    left: 0;
    width: min(270px, calc(100vw - 24px));
  }

  .edit-sheet-button,
  .auto-arrange-button,
  .global-layout-button {
    width: 32px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .sheet-editor,
  .comments-panel {
    top: 66px;
    right: 10px;
    bottom: 68px;
    width: min(366px, calc(100% - 20px));
  }

  .canvas-hint {
    display: none;
  }

  .bottom-controls {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .current-sheet {
    width: 135px;
  }

  .current-sheet span {
    display: none;
  }

  .current-sheet {
    grid-template-columns: 1fr;
  }

  .zoom-controls .fit-button,
  .zoom-controls .toolbar-separator {
    display: none;
  }

  .presentation-hud {
    left: 14px;
    right: 14px;
    top: 12px;
  }

  .presentation-shortcuts {
    display: none;
  }

  .presentation-identity strong {
    max-width: 190px;
    font-size: 13px;
  }

  .presentation-controls {
    bottom: 12px;
  }

  .presentation-current {
    width: 150px;
  }
}

@media (max-width: 820px) {
  body.is-presenting .canvas-viewport,
  body.is-presenting.is-presentation-navigator-hidden .canvas-viewport {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .presentation-topic-rail {
    top: 60px;
    right: 10px;
    left: 10px;
    height: 40px;
  }

  .presentation-topic-button {
    height: 31px;
    max-width: 190px;
    padding: 0 9px;
  }

  .presentation-navigator {
    top: 106px;
    right: auto;
    bottom: 72px;
    left: 10px;
    width: min(320px, calc(100% - 20px));
    background: rgba(14, 20, 34, 0.94);
    box-shadow: 0 28px 80px rgba(2, 6, 16, 0.54);
  }

  .presentation-navigator.is-combined {
    width: min(320px, calc(100% - 20px));
  }

  .presentation-navigator.is-map-horizontal .presentation-map.is-combined,
  .presentation-navigator.is-map-vertical .presentation-map.is-combined {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 1fr) minmax(310px, 1.2fr);
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding-right: 6px;
    padding-left: 6px;
  }

  .brand-mark {
    display: none;
  }

  .topbar-actions {
    gap: 2px;
  }

  .topbar-actions > .icon-button,
  .topbar-actions > .presentation-button,
  .topbar-actions > .share-button,
  .topbar-actions > .avatar {
    width: 31px;
    height: 32px;
  }

  .topbar-actions > .mobile-more-button,
  .topbar-actions > .avatar {
    width: 36px;
    height: 36px;
  }

  .presentation-identity strong {
    max-width: 145px;
  }

  .presentation-exit {
    width: 34px;
    padding: 0;
    font-size: 0;
  }

  .presentation-controls {
    width: calc(100% - 20px);
    max-width: none;
  }

  .presentation-current {
    width: min(116px, 30vw);
    padding: 0 7px;
  }

  .presentation-overview-button {
    width: 38px;
    padding: 0;
    font-size: 0;
  }

  .presentation-overview-button svg {
    flex: 0 0 auto;
  }

  .project-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .project-portfolio-summary {
    gap: 4px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .project-portfolio-summary > span {
    display: grid;
    gap: 3px;
    padding: 7px 6px;
  }

  .project-portfolio-summary strong {
    font-size: 14px;
  }

  .project-portfolio-summary small {
    font-size: 7px;
  }

  .project-list {
    max-height: 310px;
    grid-template-columns: 1fr;
    padding-right: 8px;
    padding-left: 8px;
  }

  .files-dialog .dialog-header,
  .file-preview-dialog .dialog-header,
  .attachment-assignment-dialog .dialog-header {
    padding: 15px 16px 12px;
  }

  .files-context {
    padding-right: 12px;
    padding-left: 12px;
  }

  .files-filters {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 8px 7px;
  }

  .files-filters label > span {
    display: none;
  }

  .files-filters input,
  .files-filters select {
    height: 34px;
  }

  .files-list {
    grid-template-columns: 1fr;
    padding-right: 7px;
    padding-left: 7px;
  }

  .files-header-actions {
    gap: 5px;
  }

  .files-upload-button {
    padding: 0 9px;
    font-size: 8px;
  }

  .attachment-assignment-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .attachment-assignment-context,
  .attachment-assignment-help {
    padding-right: 12px;
    padding-left: 12px;
  }

  .attachment-choice-list {
    padding-right: 7px;
    padding-left: 7px;
  }

  .file-preview-body {
    padding: 8px;
  }

  .file-preview-actions {
    padding-right: 10px;
    padding-left: 10px;
  }

  .file-preview-actions > span {
    display: none;
  }

  .file-preview-action-buttons {
    width: 100%;
  }

  .file-preview-action-buttons > * {
    flex: 1 1 0;
    text-align: center;
  }

  .brand-name {
    display: none;
  }

  .canvas-toolbar .toolbar-separator,
  .orientation-button,
  .global-layout-button,
  .canvas-toolbar .tool-button:first-child {
    display: none;
  }

  .zoom-controls > span:not(.toolbar-separator) {
    width: 37px;
  }

  .current-sheet {
    width: 118px;
  }

  .presentation-exit {
    width: 36px;
    padding: 0;
    font-size: 0;
  }

  .presentation-current {
    width: 112px;
    padding: 0 8px;
  }

  .presentation-overview-button {
    padding: 0 9px;
    font-size: 0;
  }

  .member-row {
    grid-template-columns: 32px minmax(0, 1fr) 105px;
  }

  .member-remove {
    grid-column: 3;
    justify-self: end;
    margin-top: -4px;
  }

  .member-field-grid {
    grid-template-columns: 1fr;
  }

  .project-transfer-actions > * {
    flex: 1 1 100px;
  }

  .search-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    max-height: none;
  }

  .search-dialog .dialog-header {
    padding: 15px 16px 12px;
  }

  .project-search-field {
    margin: 12px 12px 7px;
  }

  .project-search-field > kbd,
  .search-result-kicker {
    display: none;
  }

  .project-search-field {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .search-summary {
    padding-right: 13px;
    padding-left: 13px;
  }

  .search-result {
    grid-template-columns: 35px minmax(0, 1fr) 16px;
    gap: 9px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .search-help {
    justify-content: space-between;
    gap: 6px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .workflow-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    max-height: none;
  }

  .my-tasks-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    max-height: none;
  }

  .my-tasks-dialog .dialog-header {
    padding: 15px 16px 12px;
  }

  .my-tasks-context {
    padding-right: 13px;
    padding-left: 13px;
  }

  .my-tasks-context > span:first-child {
    display: none;
  }

  .my-tasks-context strong {
    flex: 1 1 auto;
  }

  .my-tasks-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 10px 8px 8px;
  }

  .my-tasks-metric {
    min-height: 65px;
    padding: 9px 10px;
  }

  .my-tasks-metric strong {
    font-size: 18px;
  }

  .my-tasks-filters {
    padding-right: 8px;
    padding-left: 8px;
  }

  .my-tasks-summary {
    padding-right: 11px;
    padding-left: 11px;
  }

  .my-tasks-list {
    padding-right: 6px;
    padding-left: 6px;
  }

  .my-task-group {
    padding: 9px 7px 8px;
  }

  .my-task-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 7px 9px;
    padding: 9px 7px;
  }

  .my-task-copy {
    grid-column: 2;
  }

  .my-task-row > .workflow-status {
    grid-column: 3;
    grid-row: 1;
  }

  .my-task-row > .workflow-priority {
    grid-column: 3;
    grid-row: 2;
  }

  .my-task-due {
    grid-column: 2;
    grid-row: 2;
  }

  .my-task-row > svg {
    display: none;
  }

  .activity-dialog,
  .notifications-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    max-height: none;
  }

  .activity-dialog .dialog-header,
  .notifications-dialog .dialog-header {
    padding: 15px 16px 12px;
  }

  .activity-context {
    padding-right: 13px;
    padding-left: 13px;
  }

  .activity-filters {
    gap: 3px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .activity-filter {
    flex: 1 1 auto;
    padding-right: 6px;
    padding-left: 6px;
  }

  .activity-summary {
    padding-right: 11px;
    padding-left: 11px;
  }

  .activity-list {
    padding-right: 6px;
    padding-left: 6px;
  }

  .activity-entry {
    grid-template-columns: 37px minmax(0, 1fr) 15px;
    gap: 8px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .notifications-context {
    padding-right: 13px;
    padding-left: 13px;
  }

  .notifications-toolbar {
    align-items: stretch;
    padding-right: 8px;
    padding-left: 8px;
  }

  .notifications-filters {
    flex: 1 1 auto;
  }

  .notification-filter {
    flex: 1 1 auto;
  }

  .notifications-summary {
    padding-right: 11px;
    padding-left: 11px;
  }

  .notifications-list {
    padding-right: 6px;
    padding-left: 6px;
  }

  .notification-entry {
    grid-template-columns: 39px minmax(0, 1fr) auto 15px;
    gap: 8px;
    padding-right: 7px;
    padding-left: 7px;
  }

  .workflow-dialog .dialog-header {
    padding: 15px 16px 12px;
  }

  .workflow-context {
    flex-wrap: wrap;
    padding-right: 13px;
    padding-left: 13px;
  }

  .workflow-context > strong {
    flex: 1 1 80px;
  }

  .workflow-context > span:last-of-type {
    margin-left: auto;
  }

  .workflow-view-switch {
    width: 100%;
    margin-left: 0;
  }

  .workflow-view-switch button {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 8px;
    padding-left: 8px;
  }

  .workflow-overview {
    padding-right: 6px;
    padding-left: 6px;
  }

  .workflow-overview-metrics {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .workflow-overview-metric {
    grid-template-columns: 82px 48px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding: 9px 10px;
  }

  .workflow-overview-metric > strong {
    font-size: 17px;
  }

  .workflow-overview-metric > small {
    text-align: right;
  }

  .workflow-overview-section {
    padding: 11px 9px;
  }

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

  .workflow-overview-next-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px 9px;
    padding: 8px 7px;
  }

  .workflow-overview-next-copy {
    grid-column: 2;
  }

  .workflow-overview-next-owner {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .workflow-overview-next-state {
    grid-column: 2 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .workflow-overview-next-row > .workflow-priority {
    grid-column: 3;
    grid-row: 1;
  }

  .workflow-overview-next-row > svg {
    display: none;
  }

  .workflow-filters {
    gap: 4px;
    padding: 10px 8px 8px;
  }

  .workflow-filter {
    min-height: 50px;
    padding: 6px 5px;
  }

  .workflow-filter strong {
    font-size: 14px;
  }

  .workflow-filter span {
    font-size: 7px;
  }

  .workflow-summary {
    padding-right: 11px;
    padding-left: 11px;
  }

  .workflow-list {
    padding-right: 6px;
    padding-left: 6px;
  }

  .workflow-board {
    grid-template-columns: 1fr;
    padding-right: 6px;
    padding-left: 6px;
  }

  .workflow-schedule {
    padding-right: 6px;
    padding-left: 6px;
  }

  .workflow-schedule-group {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .workflow-schedule-group-heading {
    padding-right: 4px;
    padding-left: 4px;
  }

  .workflow-schedule-grid {
    grid-template-columns: 1fr;
  }

  .workflow-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 7px 9px;
    padding: 9px 7px;
  }

  .workflow-row-copy {
    grid-column: 2;
  }

  .workflow-row-owner {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .workflow-row-state {
    grid-column: 2 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .workflow-priority {
    grid-column: 3;
    grid-row: 1;
  }

  .workflow-row > svg {
    display: none;
  }

  .workflow-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-dialog-header {
    padding: 15px 16px 12px;
  }

  .admin-stats > div {
    padding: 9px 10px;
  }

  .admin-tabs {
    overflow-x: auto;
  }

  .admin-suite-app-intro {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .admin-suite-app-row {
    grid-template-columns: 18px 30px minmax(0, 1fr);
  }

  .admin-suite-app-actions {
    grid-column: 2 / -1;
    justify-content: flex-end;
  }

  .admin-tab {
    flex: 0 0 auto;
    padding: 0 9px;
  }

  .admin-panel {
    padding: 12px 10px 16px;
  }

  .admin-user-create-grid,
  .admin-user-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-assignment-toolbar {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .admin-assignment-view-switch,
  .admin-assignment-picker {
    width: 100%;
    max-width: none;
  }

  .admin-assignment-view-button {
    flex: 1 1 0;
  }

  .admin-assignment-row {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .admin-assignment-row .member-role-select {
    grid-column: 1 / -1;
  }

  .admin-role-row {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
  }

  .admin-role-row p {
    grid-column: 1 / -1;
  }

  .history-context,
  .history-preview,
  .history-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .history-context span:first-child {
    display: none;
  }

  .revision-preview-header {
    display: block;
  }

  .revision-preview-meta {
    margin-top: 10px;
    text-align: left;
  }

  .history-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .history-actions .primary-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .report-dialog {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
    max-height: none;
  }

  .report-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .report-preview-wrap {
    padding: 12px;
  }

  .project-report {
    padding: 30px 28px 24px;
  }

  .report-kpis {
    grid-template-columns: repeat(3, 1fr);
  }

  .report-kpis .report-progress {
    padding-left: 65px;
  }
}

@media (max-width: 560px) {
  .report-dialog {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
  }

  .report-dialog-header {
    padding: 14px 13px 11px;
  }

  .report-header-actions {
    gap: 3px;
  }

  .report-header-actions .primary-button {
    width: 38px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }

  .report-header-actions .primary-button svg {
    flex: 0 0 auto;
    color: #fff;
  }

  .report-context {
    padding-right: 13px;
    padding-left: 13px;
  }

  .report-context > span:first-child {
    display: none;
  }

  .report-context strong {
    flex: 1;
  }

  .report-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(245px, 42vh) minmax(0, 1fr);
  }

  .report-selection {
    padding: 10px 9px 7px;
    border-right: 0;
    border-bottom: 1px solid #d1d4dc;
  }

  .report-selection-heading {
    padding-bottom: 6px;
  }

  .report-sheet-option {
    min-height: 42px;
    margin-bottom: 3px;
  }

  .report-preview-wrap {
    padding: 7px;
  }

  .project-report {
    padding: 24px 18px 20px;
  }

  .report-brand {
    margin-bottom: 24px;
  }

  .report-cover h1 {
    font-size: 22px;
  }

  .report-kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin: 17px 0 22px;
  }

  .report-management-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .report-sheet-section {
    padding: 15px 13px;
  }

  .report-sheet-section > header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .report-sheet-section .workflow-status {
    grid-column: 2;
  }

  .report-sheet-meta,
  .report-sheet-content,
  .report-attachment-list {
    margin-left: 0;
  }

  .report-footer {
    flex-direction: column;
    gap: 3px;
  }
}

@page {
  size: A4;
  margin: 12mm;
  background: #fff;
}

@media print {
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: auto;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  html {
    background: #fff !important;
  }

  body.is-printing-report {
    background: #fff !important;
  }

  body > *:not(.print-report) {
    display: none !important;
  }

  body > .print-report,
  body.is-printing-report > .print-report {
    min-height: 0;
    display: block !important;
    padding: 0;
  }

  .print-report-toolbar {
    display: none !important;
  }

  .print-report .project-report {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .report-cover,
  .report-kpis,
  .report-status-section,
  .report-management-grid {
    break-inside: avoid-page;
  }

  .report-selected-content {
    padding-top: 0;
    border-top: 0;
  }

  .report-selected-content > .report-section-heading {
    display: none;
  }

  .report-sheets-per-page-1 .report-sheet-page,
  .report-sheets-per-page-2 .report-sheet-page {
    display: grid;
    gap: 5mm;
    min-height: 272mm;
    background: #fff;
    break-before: page;
    break-inside: avoid-page;
  }

  .report-sheets-per-page-1 .report-sheet-page {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .report-print-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1px 12px;
    padding-bottom: 3mm;
    border-bottom: 1.5px solid #192541;
  }

  .report-print-page-heading > span {
    grid-column: 1 / -1;
    color: #ee745b;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.15px;
    text-transform: uppercase;
  }

  .report-print-page-heading > strong {
    font: 700 15px/1.2 "Manrope", sans-serif;
  }

  .report-print-page-heading > small {
    color: #737b8c;
    font-size: 7px;
    line-height: 1.35;
    text-align: right;
  }

  .report-sheet-page .report-sheet-section {
    min-height: 0;
    height: auto;
    margin-top: 0;
    break-inside: avoid-page;
  }

  .report-sheets-per-page-2 .report-sheet-page {
    gap: 4mm;
    grid-template-rows: auto repeat(2, minmax(0, 1fr));
  }

  .report-sheets-continuous .report-sheet-flow {
    display: block;
  }

  .report-sheets-continuous .report-sheet-section {
    min-height: 0;
    height: auto;
    margin-top: 5mm;
    break-inside: avoid-page;
  }

  .report-sheets-per-page-2 .report-sheet-section {
    padding: 14px 16px;
  }

  .report-sheets-per-page-2 .report-sheet-meta {
    gap: 5px 13px;
    margin-top: 9px;
    margin-bottom: 10px;
    padding: 7px 0;
  }

  .report-sheets-per-page-2 .report-sheet-content h4 {
    margin-top: 9px;
  }

  .report-sheets-per-page-2 .report-sheet-content > p {
    margin-bottom: 6px;
    line-height: 1.4;
  }

  .report-sheets-per-page-2 .report-note {
    margin: 6px 0;
    padding: 7px 9px;
  }

  .report-sheets-per-page-2 .report-inline-metric {
    margin-top: 3px;
    margin-bottom: 3px;
    padding: 7px 9px;
  }

  .report-sheets-per-page-2 .report-table-wrap,
  .report-sheets-per-page-2 .report-chart,
  .report-sheets-per-page-2 .report-timeline,
  .report-sheets-per-page-2 .report-diagram {
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .report-sheets-per-page-2 .report-table-wrap th,
  .report-sheets-per-page-2 .report-table-wrap td {
    padding: 4px 5px;
  }

  .report-sheets-per-page-2 .report-image img {
    max-height: 42mm;
  }

  .report-white-sheet-background .report-sheet-section {
    background: #fff !important;
  }

  .report-footer {
    display: none;
  }

  .report-image img {
    max-height: 70mm;
  }

  .report-table-wrap {
    overflow: visible;
  }

  .project-report.report-orientation-landscape .report-sheet-page {
    min-height: 185mm;
  }

  body.is-printing-faithful > .print-report {
    width: auto;
    padding: 0;
  }

  .print-report > .sheet-faithful-document {
    display: block;
  }

  .print-faithful-page {
    width: 285mm;
    height: 198mm;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    break-inside: avoid-page;
  }

  .print-faithful-page:last-child {
    break-after: auto;
  }

  .print-faithful-stage {
    width: 285mm;
    height: 198mm;
    display: grid;
    place-items: center;
  }

  .print-faithful-sheet {
    position: relative !important;
    inset: auto !important;
    margin: 0;
    zoom: 2.5;
    box-shadow: none;
  }

  .print-faithful-caption {
    display: none;
  }
}

/* Projektlebenszyklus, Vorlagen, Rollen und Live-Präsenz */
.realtime-presence {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding-left: 10px;
}

.realtime-presence[hidden] { display: none; }

.realtime-presence span,
.realtime-presence em {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: -7px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #dfe7ff;
  color: #26365f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.realtime-presence span:first-child { margin-left: 0; }
.realtime-presence em { background: #17233f; color: #fff; }

.project-archive-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 12px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.project-list-entry { display: grid; gap: 8px; }
.project-list-entry.is-archived { opacity: .78; }
.project-list-entry.is-archived .project-list-button { cursor: default; filter: saturate(.5); }

.project-archive-actions,
.template-card-actions,
.admin-role-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.project-lifecycle,
.template-library {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e5e9f2;
  border-radius: 15px;
  background: #f9fafc;
}

.project-lifecycle { align-items: center; justify-content: space-between; }
.project-lifecycle > div,
.template-card > div:first-child { display: grid; gap: 4px; }
.project-lifecycle span,
.template-card span { color: #667085; font-size: 12px; }
.template-library { flex-direction: column; }
.template-list { display: grid; gap: 8px; }

.template-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e4e8f1;
  border-radius: 12px;
  background: #fff;
}

.template-create {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px auto;
  gap: 9px;
}

.danger-text-button {
  border: 0;
  background: transparent;
  color: #b33a3a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.admin-role-create {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #e5e9f2;
  border-radius: 14px;
  background: #f9fafc;
}

.admin-role-create-grid,
.admin-role-fields {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 12px;
}

.role-permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.role-permission-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.admin-role-row.is-custom { display: grid; gap: 10px; }
.role-permission-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.role-permission-badges span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4058a7;
  font-size: 10px;
  font-weight: 750;
}

@media (max-width: 720px) {
  .realtime-presence { display: none; }
  .project-lifecycle,
  .template-card { align-items: stretch; flex-direction: column; }
  .project-archive-actions,
  .template-card-actions { justify-content: flex-start; }
  .template-create,
  .admin-role-create-grid,
  .admin-role-fields { grid-template-columns: 1fr; }
}

.field-help {
  margin: -7px 0 12px;
  color: #667085;
  font-size: 9px;
  line-height: 1.45;
}

.block-data-source {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 7px;
  margin: 7px 0;
}

.block-data-source label > span,
.block-compact-field > span {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 7px;
  font-weight: 700;
}

.block-data-source .secondary-button { height: 32px; padding: 0 9px; font-size: 8px; }
.block-source-summary { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; padding: 7px 9px; border-radius: 7px; background: #eef2ff; color: #4058a7; font-size: 8px; }
.block-source-summary span { color: #63719b; }
.block-compact-field { display: block; margin-top: 7px; }
.block-help.is-warning { color: #b54708; }
.custom-table-wrap { grid-column: 1 / -1; max-width: 100%; overflow: hidden; }

.table-dimension-editor {
  margin-top: 8px;
  padding: 0 9px 9px;
  background: #f7f8fb;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
}

.table-dimension-editor summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #3f4d6d;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.table-dimension-editor summary small {
  color: #7b8497;
  font-size: 7px;
  font-weight: 600;
}

.table-dimension-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 5px;
  color: #667085;
  font-size: 7px;
}

.table-dimension-heading strong {
  color: #34405a;
  font-size: 8px;
}

.table-dimension-heading button {
  min-height: 25px;
  padding: 0 8px;
  color: #4058a7;
  background: #edf1ff;
  border: 1px solid #d5defd;
  border-radius: 6px;
  font: 700 7px/1 "Manrope", sans-serif;
  cursor: pointer;
}

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

.table-dimension-grid.is-rows {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-dimension-grid label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 6px;
}

.table-dimension-grid label > span:first-child {
  overflow: hidden;
  color: #59647a;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-dimension-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  background: #fbfbf9;
  border: 1px solid #d9dbe1;
  border-radius: 5px;
}

.table-dimension-input input {
  min-width: 0;
  height: 26px;
  padding: 0 4px 0 6px;
  color: #18213a;
  background: transparent;
  border: 0;
  outline: 0;
  font: 700 8px/1 "Inter", sans-serif;
}

.table-dimension-input b {
  padding-right: 5px;
  color: #8991a1;
  font-size: 6px;
}

.table-dimension-editor > p {
  margin: 7px 0 0;
  color: #7a8395;
  font-size: 7px;
  line-height: 1.4;
}

@media (max-width: 620px) {
  .table-dimension-grid,
  .table-dimension-grid.is-rows { grid-template-columns: minmax(0, 1fr); }
}

.data-chart svg { display: block; width: 100%; height: 105px; overflow: visible; }
.data-chart svg polyline { fill: none; stroke: var(--sheet-accent, var(--blue)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.data-chart svg circle { fill: #fff; stroke: var(--sheet-accent, var(--blue)); stroke-width: 3; }
.data-chart svg text { fill: #667085; font-size: 8px; }
.data-chart .data-chart-axis { fill: none; stroke: #d9dde7; stroke-width: 1; }
.data-chart-round { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; }
.data-chart-pie { width: 100px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(19, 31, 58, .06); }
.chart-type-donut .data-chart-pie::before { content: ""; grid-area: 1 / 1; width: 58%; aspect-ratio: 1; border-radius: 50%; background: #fffdfa; }
.data-chart-pie strong { z-index: 1; grid-area: 1 / 1; color: #18213a; font-size: 11px; }
.data-chart-legend { display: grid; gap: 4px; min-width: 0; }
.data-chart-legend span { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 5px; overflow: hidden; color: #535e74; font-size: 7px; white-space: nowrap; }
.data-chart-legend span i { width: 7px; height: 7px; border-radius: 2px; }
.data-chart-legend span b { color: #18213a; }

.report-chart.data-chart { display: grid; gap: 8px; }
.report-chart.data-chart > .custom-block-label { color: #667085; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.report-chart.data-chart .custom-chart-row { grid-template-columns: 120px minmax(80px, 1fr) 52px; font-size: 10px; }
.report-chart.data-chart .custom-chart-row > strong { font-size: 10px; }
.report-chart.data-chart .data-chart-round { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; }
.report-chart.data-chart .data-chart-pie { width: 145px; }
.report-chart.data-chart .data-chart-legend { display: grid; gap: 7px; }
.report-chart.data-chart .data-chart-legend span { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 7px; font-size: 10px; }
.report-chart.data-chart svg { height: 145px; }

.data-sources-dialog { width: min(1180px, calc(100vw - 40px)); height: min(820px, calc(100vh - 40px)); padding: 0; overflow: hidden; }
.data-sources-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.data-sources-dialog-header { padding: 20px 22px 16px; }
.data-sources-header-actions { display: flex; align-items: center; gap: 8px; }
.data-sources-context { display: flex; align-items: center; gap: 9px; padding: 9px 22px; color: #667085; background: #f6f7fa; border-block: 1px solid #e5e9f2; font-size: 11px; }
.data-sources-context strong { color: #18213a; }
.data-sources-context span:last-child { margin-left: auto; }
.data-sources-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); min-height: 0; }
.data-source-sidebar { min-height: 0; padding: 18px 14px; overflow: auto; background: #f8f9fb; border-right: 1px solid #e4e8f1; }
.data-source-sidebar-heading { display: grid; gap: 3px; padding: 0 5px 14px; }
.data-source-sidebar-heading strong { font-size: 13px; }
.data-source-sidebar-heading span { color: #667085; font-size: 10px; }
.data-source-group { display: grid; gap: 6px; margin-bottom: 18px; }
.data-source-group > span { padding: 0 5px; color: #7b8498; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.data-source-card { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; width: 100%; padding: 11px; text-align: left; background: #fff; border: 1px solid #e2e6ee; border-radius: 11px; cursor: pointer; }
.data-source-card:hover { border-color: #bbc6e4; box-shadow: 0 4px 14px rgba(26, 41, 74, .07); }
.data-source-card.is-active { border-color: #6c83de; box-shadow: 0 0 0 2px rgba(69, 104, 232, .12); }
.data-source-card strong { align-self: center; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.data-source-card small { grid-column: 1 / -1; color: #667085; font-size: 9px; }
.data-source-kind { display: inline-flex; align-items: center; width: max-content; padding: 3px 6px; border-radius: 999px; color: #516078; background: #edf0f5; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.data-source-kind.is-system { color: #246c56; background: #e4f4ee; }
.data-source-kind.is-file { color: #4058a7; background: #e9edff; }
.data-source-kind.is-manual { color: #8b5a12; background: #fff1d9; }
.data-source-list-empty { padding: 13px; color: #7b8498; text-align: center; border: 1px dashed #d2d7e2; border-radius: 10px; font-size: 9px; }
.data-source-workspace { min-width: 0; min-height: 0; padding: 24px; overflow: auto; }
.data-source-welcome { display: grid; place-items: center; align-content: center; max-width: 540px; min-height: 100%; margin: auto; text-align: center; }
.data-source-welcome-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; color: #4568e8; background: #eef2ff; border-radius: 20px; font-size: 30px; }
.data-source-welcome h3 { margin: 0 0 8px; font-size: 21px; }
.data-source-welcome p { margin: 0; color: #667085; font-size: 12px; line-height: 1.6; }
.data-source-editor-heading,
.data-source-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.data-source-editor-heading > div,
.data-source-detail-heading > div:first-child { display: grid; gap: 5px; }
.data-source-editor-heading span { color: #667085; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.data-source-editor-heading h3,
.data-source-detail-heading h3 { margin: 0; font-size: 21px; }
.data-source-detail-heading p { margin: 0; color: #667085; font-size: 10px; }
.data-source-detail-actions { display: flex; gap: 8px; }
.data-source-name-field { display: grid; gap: 6px; margin-bottom: 18px; }
.data-source-name-field > span,
.file-data-form label > span { color: #475467; font-size: 10px; font-weight: 750; }
.data-grid-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.data-grid-toolbar > div:first-child { display: grid; gap: 2px; }
.data-grid-toolbar span { color: #667085; font-size: 9px; }
.data-grid-toolbar > div:last-child { display: flex; gap: 7px; }
.manual-data-grid,
.data-source-preview-table { max-width: 100%; overflow: auto; border: 1px solid #dfe4ed; border-radius: 11px; }
.manual-data-grid table,
.data-source-preview-table table { width: 100%; min-width: 580px; border-collapse: collapse; }
.manual-data-grid th,
.manual-data-grid td,
.data-source-preview-table th,
.data-source-preview-table td { min-width: 125px; padding: 0; text-align: left; border-right: 1px solid #e6e9ef; border-bottom: 1px solid #e6e9ef; }
.manual-data-grid th { position: relative; padding-right: 28px; background: #f2f4f8; }
.manual-data-grid input { width: 100%; height: 38px; padding: 0 10px; color: #18213a; background: transparent; border: 0; outline: 0; font: inherit; font-size: 10px; }
.manual-data-grid th input { font-weight: 800; }
.manual-data-grid input:focus { background: #eef2ff; box-shadow: inset 0 0 0 2px #6c83de; }
.manual-data-grid button { position: absolute; top: 8px; right: 6px; width: 22px; height: 22px; padding: 0; color: #9a4950; background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.manual-data-grid .manual-row-action { position: relative; min-width: 36px; width: 36px; background: #fafbfc; }
.manual-data-grid td.manual-row-action button { position: static; display: block; margin: auto; }
.data-source-preview-table th,
.data-source-preview-table td { min-width: 110px; padding: 9px 10px; font-size: 10px; }
.data-source-preview-table th { position: sticky; top: 0; color: #475467; background: #f2f4f8; font-weight: 800; }
.data-source-preview-table tr:nth-child(even) td { background: #fafbfc; }
.data-source-preview-note { margin: 8px 0 0; color: #667085; font-size: 9px; }
.data-source-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.data-source-editor-actions > span { color: #667085; font-size: 9px; }
.data-source-editor-actions > div { display: flex; gap: 8px; }
.file-data-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, .6fr) auto; align-items: end; gap: 10px; margin-bottom: 18px; }
.file-data-form label { display: grid; gap: 6px; }
.data-source-file-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 12px; background: #f5f7fc; border-radius: 10px; }
.data-source-file-summary > div { display: grid; gap: 3px; }
.data-source-file-summary small { color: #667085; font-size: 9px; }
.data-source-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.data-source-stats span { display: grid; place-items: center; gap: 2px; padding: 12px; color: #667085; background: #f5f7fa; border-radius: 10px; font-size: 9px; }
.data-source-stats strong { color: #18213a; font-size: 18px; }
.data-source-usage { margin: 0 0 14px; color: #667085; font-size: 10px; line-height: 1.5; }
.data-source-empty { display: grid; place-items: center; gap: 8px; padding: 38px; color: #667085; text-align: center; border: 1px dashed #ccd3e0; border-radius: 13px; font-size: 11px; }
.data-source-empty strong { color: #18213a; font-size: 14px; }

.support-session-banner {
  position: fixed;
  z-index: 3000;
  top: 0;
  right: 0;
  left: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 18px;
  color: #4e2a16;
  background: #fff0cf;
  border-bottom: 1px solid #e7b95f;
  box-shadow: 0 4px 14px rgba(87, 53, 18, 0.12);
}

.support-session-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #bd7126;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}

.support-session-banner > span:nth-child(2) { display: grid; gap: 1px; }
.support-session-banner strong { font-size: 10px; }
.support-session-banner small { font-size: 8px; }
.support-session-banner button {
  min-height: 27px;
  padding: 0 10px;
  color: #563116;
  background: #fffaf0;
  border: 1px solid #d69a4d;
  border-radius: 7px;
  font-size: 8px;
  font-weight: 750;
  cursor: pointer;
}

body.is-support-session .suite-home,
body.is-support-session .app-shell { padding-top: 0; }

.legacy-suite-header { display: none !important; }
jaybee-suite-header { position: relative; z-index: 31; flex: 0 0 auto; }

.suite-home {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #efeee9;
  background-image: radial-gradient(circle, rgba(83, 91, 109, 0.17) 1px, transparent 1.2px);
  background-size: 23px 23px;
}

.suite-home-header {
  position: relative;
  z-index: 2;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255, 254, 250, 0.95);
  border-bottom: 1px solid rgba(187, 193, 206, 0.65);
  backdrop-filter: blur(16px);
}

.suite-global-header {
  position: relative;
  z-index: 31;
  min-height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255, 254, 250, 0.97);
  border-bottom: 1px solid rgba(187, 193, 206, 0.65);
  backdrop-filter: blur(16px);
}
.suite-home-header { min-height: 66px; }
.suite-global-brand,
.suite-global-actions { display: flex; align-items: center; }
.suite-global-brand {
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  text-decoration: none;
}
.suite-global-brand strong { color: var(--coral); }
.suite-global-navigation {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: min(66vw, 940px);
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  background: #eeede8;
  border: 1px solid #d8d8d4;
  border-radius: 999px;
  transform: translateX(-50%);
}
.suite-global-navigation::-webkit-scrollbar { display: none; }
.suite-home-nav-button {
  min-width: 88px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 7px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: 750 9px/1 "Manrope", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.suite-home-nav-button:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.suite-home-nav-button.is-active {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 3px 9px rgba(24, 33, 58, .2);
}
.suite-work-contexts { display: contents; }
.suite-work-context {
  max-width: 230px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 7px 12px;
  color: #43506d;
  background: #fff;
  border: 1px solid #d6d9e1;
  border-radius: 999px;
  font: 750 9px/1 "Manrope", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.suite-work-context::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--blue);
  border-radius: 50%;
}
.suite-work-context[data-app-id="flowchart"]::before { background: var(--green); }
.suite-work-context span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.suite-work-context:hover { color: var(--navy); border-color: #9ba7c7; }
.suite-work-context.is-current { color: #fff; background: var(--navy); border-color: var(--navy); }
.suite-work-context.is-current::before { box-shadow: 0 0 0 2px rgba(255,255,255,.48); }
.suite-global-actions { gap: 9px; }
.suite-application-name {
  padding: 6px 9px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
}
.suite-home-account { color: var(--ink-soft); font-size: 9px; font-weight: 650; }
.suite-home-avatar {
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.suite-home-main {
  width: min(1040px, calc(100% - 48px));
  height: calc(100% - 46px);
  margin: 0 auto;
  padding: clamp(28px, 4vh, 46px) 0 70px;
  overflow-y: auto;
}

.suite-home-intro { max-width: 760px; }
.suite-home-intro h1 {
  margin: 6px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -1.6px;
}
.suite-home-intro p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.suite-documents { margin-top: 28px; }
.suite-document-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.suite-document-stat {
  position: relative;
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  padding: 13px 16px 13px 19px;
  background: rgba(255, 254, 250, .92);
  border: 1px solid #d9dbe1;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(24, 33, 58, .06);
}
.suite-document-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #586b9e; }
.suite-document-stat.is-canvas::before { background: var(--coral); }
.suite-document-stat.is-flowchart::before { background: #2f9f91; }
.suite-document-stat.is-inactive::before { background: #9da3af; }
.suite-document-stat strong { color: var(--navy); font: 800 22px/1 "Manrope", sans-serif; }
.suite-document-stat span { color: var(--ink-soft); font-size: 8px; font-weight: 700; }
.suite-document-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.suite-document-heading h2 { margin: 5px 0 12px; font: 800 19px/1.2 "Manrope", sans-serif; }
.suite-document-refresh {
  width: 34px;
  height: 34px;
  margin-bottom: 11px;
  color: #41506f;
  background: #fffefa;
  border: 1px solid #d5d8e0;
  border-radius: 9px;
  font-size: 17px;
  cursor: pointer;
}
.suite-document-refresh:hover { border-color: #8ea0d3; }
.suite-document-refresh.is-loading { animation: suite-document-spin .8s linear infinite; }
@keyframes suite-document-spin { to { transform: rotate(360deg); } }
.suite-document-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto 142px 155px;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.suite-document-search {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  background: #fffefa;
  border: 1px solid #d5d8e0;
  border-radius: 9px;
}
.suite-document-search span { color: #6d7790; font-size: 17px; transform: rotate(-12deg); }
.suite-document-search input { width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font: 650 9px/1.2 inherit; }
.suite-document-filter-group { display: flex; padding: 3px; background: #e7e7e4; border-radius: 9px; }
.suite-document-filter-group button {
  min-height: 32px;
  padding: 0 11px;
  color: #687187;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: 750 8px/1 inherit;
  cursor: pointer;
}
.suite-document-filter-group button.is-active { color: var(--navy); background: #fff; box-shadow: 0 2px 7px rgba(24,33,58,.12); }
.suite-document-favorites-filter {
  min-height: 38px;
  padding: 0 11px;
  color: #687187;
  background: #fffefa;
  border: 1px solid #d5d8e0;
  border-radius: 9px;
  font: 750 8px/1 inherit;
  cursor: pointer;
}
.suite-document-favorites-filter span { color: #c78a25; }
.suite-document-favorites-filter.is-active { color: #6b4a0f; background: #fff5d9; border-color: #d9b760; }
.suite-document-select select {
  width: 100%;
  min-height: 38px;
  padding: 0 28px 0 10px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #d5d8e0;
  border-radius: 9px;
  font: 700 8px/1 inherit;
}
.suite-document-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-bottom: 20px; }
.suite-document-card {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 254, 250, .96);
  border: 1px solid #d8dbe3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(24, 33, 58, .07);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.suite-document-card-main {
  width: 100%;
  min-height: 116px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.suite-document-card:hover { transform: translateY(-2px); border-color: #90a1d2; box-shadow: 0 13px 30px rgba(24,33,58,.12); }
.suite-document-card.is-inactive { opacity: .72; }
.suite-document-favorite {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 9px;
  width: 27px;
  height: 27px;
  color: #9ba1af;
  background: #fffefa;
  border: 1px solid #d8dbe3;
  border-radius: 50%;
  cursor: pointer;
}
.suite-document-favorite:hover { color: #bd8121; border-color: #d8b158; }
.suite-document-favorite.is-active { color: #fff; background: #c9912f; border-color: #c9912f; }
.suite-document-app-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--coral); border-radius: 11px; font: 850 11px/1 "Manrope", sans-serif; }
.suite-document-card.is-flowchart .suite-document-app-mark { background: #2f9f91; }
.suite-document-copy { min-width: 0; display: grid; gap: 5px; }
.suite-document-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #6c758a; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: .45px; }
.suite-document-kicker i { width: 3px; height: 3px; background: #9aa1b0; border-radius: 50%; }
.suite-document-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 12px/1.2 "Manrope", sans-serif; }
.suite-document-copy > small { min-height: 25px; overflow: hidden; color: var(--ink-soft); font-size: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suite-document-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; color: #71798b; font-size: 7px; }
.suite-document-status { padding: 3px 6px; color: #3855bd; background: #edf1ff; border-radius: 999px; font-weight: 800; }
.suite-document-card.is-flowchart .suite-document-status { color: #197666; background: #e4f5f1; }
.suite-document-open { align-self: center; color: #52638c; font-size: 18px; }
.suite-document-empty { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 5px; color: var(--ink-soft); background: rgba(255,254,250,.66); border: 1px dashed #c7cad2; border-radius: 12px; text-align: center; }
.suite-document-empty strong { color: var(--ink); font: 800 12px/1.2 "Manrope", sans-serif; }
.suite-document-empty span { font-size: 8px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.suite-apps { margin-top: clamp(36px, 6vh, 62px); }
.suite-apps-heading h2 { margin: 5px 0 16px; font-family: "Manrope", sans-serif; font-size: 19px; }
.suite-app-list { display: grid; gap: 16px; }
.suite-app-card {
  width: min(680px, 100%);
  min-height: 160px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.98);
  border: 1px solid rgba(187, 193, 206, 0.9);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(24, 33, 58, 0.13);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.suite-app-card:hover { transform: translateY(-3px); border-color: #96a5d6; box-shadow: 0 24px 58px rgba(24, 33, 58, 0.17); }
.suite-app-card.is-disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .52; transform: none; }
.suite-app-card.is-disabled:hover { border-color: var(--line); box-shadow: none; transform: none; }
.suite-app-mark { position: relative; width: 96px; height: 96px; display: block; }
.suite-app-mark i { position: absolute; width: 62px; height: 42px; background: #fff; border: 1px solid #c8cdd8; border-left: 4px solid var(--coral); border-radius: 5px; box-shadow: 0 7px 18px rgba(24, 33, 58, 0.12); }
.suite-app-mark i:nth-child(1) { top: 27px; left: 0; }
.suite-app-mark i:nth-child(2) { top: 5px; right: 0; border-left-color: var(--blue); }
.suite-app-mark i:nth-child(3) { right: 0; bottom: 4px; border-left-color: var(--green); }
.suite-app-copy { display: grid; gap: 7px; }
.suite-app-copy strong { font-family: "Manrope", sans-serif; font-size: 20px; }
.suite-app-copy small { max-width: 420px; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.suite-app-open { color: #3855bd; font-size: 9px; font-weight: 800; white-space: nowrap; }
.suite-app-open b { margin-left: 4px; font-size: 14px; }
.suite-flowx-mark { display: grid; place-items: center; }
.suite-flowx-mark svg { width: 92px; height: 92px; overflow: visible; }
.suite-flowx-mark path {
  fill: none;
  stroke: #79869f;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.suite-flowx-mark rect {
  fill: #fff;
  stroke: #2f9f91;
  stroke-width: 3;
  filter: drop-shadow(0 5px 7px rgba(24, 33, 58, 0.12));
}
.suite-flowx-mark rect:nth-of-type(2) { stroke: #4568e8; }
.suite-flowx-mark rect:nth-of-type(3) { stroke: #d08b36; }

.admin-stats { grid-template-columns: repeat(4, 1fr); }
.admin-organization-create,
.admin-organization-list { margin-bottom: 14px; }
.admin-organization-create {
  padding: 14px;
  background: #f7f6f2;
  border: 1px solid #e2e1dc;
  border-radius: 10px;
}
.admin-organization-create-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr 1fr;
  align-items: end;
  gap: 10px;
}
.admin-organization-create-grid .text-input { margin-bottom: 0; }
.admin-organization-list { display: grid; gap: 8px; }
.admin-organization-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) repeat(2, 80px);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dedfe3;
  border-radius: 10px;
}
.admin-organization-mark { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; background: #637fc0; border-radius: 9px; font-size: 9px; font-weight: 850; }
.admin-organization-copy { display: grid; gap: 2px; }
.admin-organization-copy strong { font-size: 10px; }
.admin-organization-copy span { color: var(--ink-soft); font-size: 8px; }
.admin-organization-metric { display: grid; gap: 1px; text-align: right; }
.admin-organization-metric strong { font-size: 13px; }
.admin-organization-metric span { color: var(--ink-soft); font-size: 7px; text-transform: uppercase; }
.admin-badge.is-organization-admin { color: #315ea8; background: #e9efff; }
.admin-badge.is-support { color: #91591c; background: #fff0cf; }
.admin-user-editor-grid { grid-template-columns: 1.25fr .75fr 1.05fr 1.1fr auto; }
.admin-user-support-action { justify-self: start; margin-top: 9px; }

.new-sheet-dialog { width: min(780px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 32px)); }
.new-sheet-context { margin: 0; padding: 13px 20px; color: var(--ink-soft); background: #f7f6f2; border-bottom: 1px solid var(--line); font-size: 9px; }
.new-sheet-context strong { color: var(--ink); }
.sheet-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; padding: 18px 20px 22px; }
.sheet-template-card {
  min-height: 158px;
  display: grid;
  grid-template-rows: 76px auto auto;
  align-content: start;
  gap: 6px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe2e9;
  border-radius: 11px;
  cursor: pointer;
}
.sheet-template-card:hover { border-color: #8397d5; box-shadow: 0 8px 22px rgba(24, 33, 58, 0.1); }
.sheet-template-card.is-featured { border-color: #adc0ef; background: #f8faff; }
.sheet-template-card strong { font-size: 10px; }
.sheet-template-card small { color: var(--ink-soft); font-size: 8px; line-height: 1.4; }
.sheet-template-preview { position: relative; display: block; overflow: hidden; background: #faf9f5; border: 1px solid #e2e3e7; border-radius: 7px; }
.sheet-template-preview i { position: absolute; display: block; background: #dfe5f1; border-radius: 3px; }
.preview-blank i { width: 60%; height: 5px; top: 19px; left: 12px; box-shadow: 0 13px 0 #eaebee, 0 26px 0 #eaebee; }
.preview-parent i:nth-child(1) { inset: 9px 9px auto; height: 9px; background: #637fc0; }
.preview-parent i:nth-child(2) { top: 29px; bottom: 10px; left: 9px; width: 34%; }
.preview-parent i:nth-child(3) { top: 29px; right: 9px; bottom: 10px; width: 50%; background: #edf0f5; }
.preview-cards i { top: 20px; bottom: 17px; width: calc((100% - 38px) / 3); background: #fff; border: 1px solid #cdd4e2; border-top: 4px solid var(--green); }
.preview-cards i:nth-child(1) { left: 9px; }.preview-cards i:nth-child(2) { left: calc(9px + (100% - 38px) / 3 + 10px); border-top-color: var(--coral); }.preview-cards i:nth-child(3) { right: 9px; border-top-color: var(--blue); }
.preview-text i:nth-child(1) { top: 13px; left: 10px; width: 54%; height: 7px; background: var(--navy); }
.preview-text i:nth-child(2) { top: 30px; right: 10px; left: 10px; height: 4px; box-shadow: 0 10px 0 #e4e6eb, 0 20px 0 #e4e6eb; }
.preview-text i:nth-child(3) { right: 10px; bottom: 8px; left: 10px; height: 9px; background: #fff0cf; border-left: 3px solid #c48b2f; }
.preview-table i { right: 9px; left: 9px; height: 8px; border-radius: 0; }.preview-table i:nth-child(1) { top: 12px; background: #637fc0; }.preview-table i:nth-child(2) { top: 23px; }.preview-table i:nth-child(3) { top: 34px; }.preview-table i:nth-child(4) { top: 45px; }
.preview-process::before { content: ""; position: absolute; top: 35px; right: 16px; left: 16px; height: 2px; background: #b8c1d4; }.preview-process i { top: 29px; width: 13px; height: 13px; border: 3px solid #2d9b75; border-radius: 50%; background: #fff; }.preview-process i:nth-child(1) { left: 12px; }.preview-process i:nth-child(2) { left: 37%; }.preview-process i:nth-child(3) { right: 37%; }.preview-process i:nth-child(4) { right: 12px; }
.preview-multisheet { display: flex; align-items: center; justify-content: center; gap: 8px; }.preview-multisheet i { position: static; width: 34px; height: 43px; display: grid; place-items: center; color: #fff; background: #2d9b75; font-size: 9px; font-style: normal; }.preview-multisheet i:nth-child(2) { background: #637fc0; }.preview-multisheet i:nth-child(3) { background: #c48b2f; }

@media (max-width: 820px) {
  .suite-home-header { padding: 0 16px; }
  .suite-home-navigation { position: static; margin-left: auto; transform: none; }
  .suite-home-account { display: none; }
  .suite-home-main { width: min(100% - 30px, 680px); }
  .suite-document-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .suite-document-toolbar { grid-template-columns: 1fr 1fr; }
  .suite-document-search { grid-column: 1 / -1; }
  .suite-document-list { grid-template-columns: 1fr; }
  .suite-app-card { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; }
  .suite-app-mark { width: 72px; height: 76px; transform: scale(.78); transform-origin: left center; }
  .suite-app-open { grid-column: 2; }
  .sheet-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-organization-create-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .suite-home-brand > span { display: none; }
  .suite-home-nav-button { min-width: auto; padding-inline: 11px; }
  .suite-home-actions .secondary-button { display: none; }
  .suite-home-intro h1 { font-size: 36px; }
  .suite-document-summary { grid-template-columns: 1fr 1fr; }
  .suite-document-toolbar { grid-template-columns: 1fr; }
  .suite-document-search { grid-column: auto; }
  .suite-document-filter-group { width: max-content; }
  .suite-app-card { grid-template-columns: 1fr; }
  .suite-app-mark { display: none; }
  .suite-app-open { grid-column: 1; }
  .sheet-template-grid { grid-template-columns: 1fr; }
  .admin-organization-create-grid { grid-template-columns: 1fr; }
  .admin-organization-row { grid-template-columns: 32px minmax(0, 1fr); }
  .admin-organization-metric { display: none; }
}

@media (max-width: 720px) {
  .data-sources-dialog { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; }
  .data-sources-dialog-header { align-items: flex-start; padding: 15px; }
  .data-sources-header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .data-sources-header-actions .secondary-button,
  .data-sources-header-actions .primary-button { padding-inline: 10px; font-size: 9px; }
  .data-sources-context { padding-inline: 15px; }
  .data-sources-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .data-source-sidebar { display: flex; gap: 8px; padding: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e4e8f1; }
  .data-source-sidebar-heading { display: none; }
  .data-source-group { display: flex; flex: 0 0 auto; margin: 0; }
  .data-source-group > span { display: none; }
  .data-source-card { width: 168px; flex: 0 0 168px; }
  .data-source-list-empty { width: 168px; }
  .data-source-workspace { padding: 16px; }
  .data-source-editor-heading,
  .data-source-detail-heading,
  .data-source-editor-actions { align-items: stretch; flex-direction: column; }
  .data-source-detail-actions,
  .data-source-editor-actions > div { flex-wrap: wrap; }
  .data-grid-toolbar { align-items: flex-start; flex-direction: column; }
  .file-data-form { grid-template-columns: 1fr; }
  .data-source-stats { grid-template-columns: repeat(3, 1fr); }
  .block-data-source { grid-template-columns: 1fr; }
  .data-chart-round,
  .report-chart.data-chart .data-chart-round { grid-template-columns: 95px minmax(0, 1fr); gap: 10px; }
  .report-chart.data-chart .data-chart-pie { width: 92px; }
}

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