/* Shared marketing method walkthrough, documented in kitchensink. */
.vivet-method-demo{display:grid;grid-template-columns:0.85fr 1.4fr;gap:50px;align-items:center}
.vivet-method-demo .demo-controls{display:grid;gap:14px}
.vivet-method-demo .demo-controls .btn{display:flex;text-align:left;gap:18px;align-items:flex-start;padding:22px;background:transparent;border:1px solid transparent;box-shadow:none;color:#52636f;border-radius:5px;white-space:normal}
.vivet-method-demo .demo-controls .btn[aria-pressed="true"]{background:#fff;border-color:#cadde5;color:#1378a2;box-shadow:0 8px 22px #222f3e06}
.vivet-method-demo .demo-controls .btn>span:first-child{font-size:14px;padding-top:4px}
.vivet-method-demo .demo-controls strong{display:block;font-size:20px;font-weight:600}
.vivet-method-demo .demo-controls small{display:block;font-size:15px;font-weight:400;color:#64717b;margin-top:5px}
.vivet-method-demo .demo-surface{background:#fff;color:#222f3e;min-width:0;box-shadow:0 16px 40px #222f3e08}
.vivet-method-demo .panel-header{display:flex;justify-content:space-between;gap:10px;padding:18px 24px}
.vivet-method-demo .panel-header h3{font-size:16px;margin:0}
.vivet-method-demo .panel-header h3 i{color:inherit;margin-right:6px}
.vivet-method-demo .example-label{font-size:12px;color:#fff}
.vivet-method-demo .panel-body{padding:24px}
.vivet-method-demo .panel-body>p{font-size:16px;color:#64717b;min-height:48px;margin:0 0 22px}
.vivet-method-demo .demo-document{border:1px solid #e3e7ec;padding:28px;background:#fbfcfd;min-height:305px}
.vivet-method-demo .document-kicker{font-size:12px;color:#1378a2;font-weight:600;letter-spacing:1.5px}
.vivet-method-demo .demo-document h3{font-size:25px;line-height:1.2;font-weight:600;margin:17px 0}
.vivet-method-demo .demo-document ul{padding-left:20px;font-size:16px;color:#52636f;margin:0}
.vivet-method-demo .demo-document li{padding:5px 0}
.vivet-method-demo .document-footer{margin-top:23px;border-top:1px solid #e3e7ec;padding-top:16px;display:flex;align-items:center;gap:10px;font-size:13px;color:#64717b}
@media(max-width:760px){.vivet-method-demo{grid-template-columns:1fr;gap:24px}.vivet-method-demo .demo-controls{gap:6px}.vivet-method-demo .demo-controls .btn{padding:15px}.vivet-method-demo .demo-controls strong{font-size:18px}.vivet-method-demo .panel-body{padding:17px}.vivet-method-demo .demo-document{padding:20px;min-height:0}.vivet-method-demo .demo-document h3{font-size:23px}.vivet-method-demo .panel-header{padding:16px}.vivet-method-demo .panel-header h3{font-size:15px}}

/* Brand Vs cross the full hero, entering completely outside its left edge. */
.vivet-flight-banner{position:relative;isolation:isolate;overflow:hidden;background:#f5f7fa}
.vivet-flight-art{position:absolute;top:-6rem;left:0;width:100%;height:56rem;z-index:-1;pointer-events:none;container-type:inline-size}
.vivet-flight-base,.vivet-flight-v{position:absolute;left:0;display:block;height:auto;animation:vivet-brand-flight 120s linear infinite;user-select:none}
.vivet-flight-base{top:0;width:800px;opacity:.2;--flight-opacity:.2;animation-duration:140s;animation-delay:-55s;z-index:0}
.vivet-flight-v:nth-of-type(2){top:5%;width:150px;opacity:.05;animation-duration:120s;animation-delay:-30s;z-index:10}
.vivet-flight-v:nth-of-type(3){top:15%;width:180px;opacity:.06;animation-duration:100s;animation-delay:-50s;z-index:20}
.vivet-flight-v:nth-of-type(4){top:25%;width:100px;opacity:.04;animation-duration:80s;animation-delay:-10s;z-index:30}
.vivet-flight-v:nth-of-type(5){top:45%;width:450px;opacity:.07;animation-duration:40s;animation-delay:-20s;z-index:50}
.vivet-flight-v:nth-of-type(6){top:55%;width:160px;opacity:.05;animation-duration:120s;animation-delay:-25s;z-index:15}
.vivet-flight-v:nth-of-type(7){top:75%;width:210px;opacity:.05;animation-duration:80s;animation-delay:-15s;z-index:35}
.vivet-flight-v:nth-of-type(8){top:85%;width:230px;opacity:.09;animation-duration:60s;animation-delay:-45s;z-index:45}
.vivet-flight-v:nth-of-type(9){top:95%;width:300px;opacity:.07;animation-duration:40s;animation-delay:-5s;z-index:55}
.vivet-flight-content{position:relative;z-index:1}
@keyframes vivet-brand-flight{0%{transform:translateX(-100%);opacity:0}5%{opacity:var(--flight-opacity,.1)}95%{opacity:var(--flight-opacity,.1)}100%{transform:translateX(100cqw);opacity:0}}
@media(prefers-reduced-motion:reduce){.vivet-flight-base,.vivet-flight-v{animation:none!important}.vivet-flight-base{left:auto;right:0}}

:root {
  --theme-mode: dark;
  --vivet-navy: #2f363b;
  --vivet-navy-alt: #102a44;
  --vivet-bg: #f5f7f9;
  --vivet-panel: #ffffff;
  --vivet-border: #e3e7ec;
  --vivet-text: #1e2933;
  --accent: #24a7c6;
  --accent-dark: #1b8ca7;
  --accent-soft: #e6f6fa;
  --success: #26a269;
  --warning: #e0a106;
  --danger: #d64045;
  --info: #2f7cd1;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-xxl: 26px;
}

:root[data-theme="dark"] {
  --vivet-bg: #0b1116;
  --vivet-panel: #121a21;
  --vivet-border: #22303a;
  --vivet-text: #e6eef6;
  --accent: #2aa6c7;
  --accent-dark: #1b8ca7;
  --accent-soft: #0f2c36;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

/* Reset */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0 !important;
  font-family: "Source Sans Pro", "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.5;
  background: var(--vivet-bg);
  color: var(--vivet-text);
}

body {
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  position: relative;
  top: 0;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.6) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* Hover activation strip */
#base_leftHoverZone {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100vh));
  z-index: 300;
}

/* App grid */
.app {
  display: grid;
  grid-template-columns: auto 1fr auto;
  height: 100%;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.app.right-open {
  grid-template-columns: auto 1fr 1fr;
}

html[data-right-open="1"] .app {
  grid-template-columns: auto 1fr 1fr;
}

.app.no-right-pane {
  grid-template-columns: auto 1fr;
}

.app.no-right-pane.right-open {
  grid-template-columns: auto 1fr;
}

html[data-right-open="1"] .app.no-right-pane {
  grid-template-columns: auto 1fr;
}

.app.no-right-pane #base_rightSidebar {
  display: none;
}

.app.no-right-pane .toggle-right-pane {
  display: none;
}

.app.public-doc-page {
  grid-template-columns: 1fr;
}

.app.public-doc-page .sidebar.left,
.app.public-doc-page .left-hover,
.app.public-doc-page .left-backdrop,
.app.public-doc-page #base_leftHoverZone {
  display: none !important;
}

.app.public-doc-page .center {
  min-width: 0;
}

.app.public-doc-page .topbar .toggle {
  display: none;
}

.app.report-issue-page .topbar {
  display: none;
}

.app.report-issue-page #base_bugReportTrigger {
  display: none;
}

.public-doc-shell {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.public-doc-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.public-doc-meta {
  margin: 0 0 14px;
  color: #64748b;
  font-size: var(--text-sm);
}

.public-doc-section + .public-doc-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--vivet-border);
}

.public-doc-section h4 {
  margin: 0 0 8px;
  font-size: var(--text-lg);
}

.public-doc-section p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.public-doc-section ul {
  margin: 0;
  padding-left: 18px;
}

.public-doc-section li + li {
  margin-top: 4px;
}

.public-doc-callout {
  display: block;
  border: 1px solid var(--vivet-border);
  border-radius: 6px;
  background: #f8fbfe;
  padding: 10px 12px;
  margin: 0 0 10px;
}

html[data-theme="dark"] .public-doc-meta {
  color: #9db1c4;
}

html[data-theme="dark"] .public-doc-callout {
  background: #0f171d;
  border-color: #2b3b46;
}

.left-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 190;
  display: none;
}

.left-backdrop.open {
  display: block;
}

/* Sidebars */
.sidebar {
  overflow-y: auto;
}

/* LEFT PINNED */
.sidebar.left {
  width: 280px;
  min-width: 0;
  background: var(--vivet-navy);
  color: #ffffff;
  transition: none;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
}

.sidebar.left.collapsed {
  width: 0;
}

html[data-left-pinned="0"] .sidebar.left {
  width: 0;
}

.sidebar.left.hover-open {
  width: 280px;
}

html[data-left-pinned="0"] .sidebar.left.hover-open {
  width: 280px;
}

/* LEFT HOVER OVERLAY */
.left-hover {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: var(--vivet-navy);
  color: #ffffff;
  z-index: 250;
  box-shadow: 8px 0 24px rgba(0,0,0,0.35);
  display: none;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* RIGHT */
.sidebar.right {
  width: 100%;
  min-width: 0;
  background: #ffffff;
  color: var(--vivet-text);
  border-left: 1px solid var(--vivet-border);
}

#base_rightSidebar,
#base_rightSidebar .right-header,
#base_rightSidebar .context-body,
#base_rightSidebar .right-header *,
#base_rightSidebar .context-body * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.sidebar.right.collapsed {
  width: 0;
}

html[data-right-open="0"] .sidebar.right {
  width: 0;
}

/* Right header */
.right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--vivet-border);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 5;
}

.right-header h2 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
}

.right-header-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
}

.context-doc {
  padding: 16px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: var(--text-base);
  line-height: 1.5;
}

.doc-section {
  padding-left: 30px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #f3f4f6;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .profile-nav {
  background: rgba(18, 24, 36, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-tab {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #1f2d3a;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-tab i {
  width: 18px;
  text-align: center;
}

.profile-tab:hover,
.profile-tab.is-active {
  background: rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .profile-tab {
  color: rgba(248, 250, 252, 0.92);
}

html[data-theme="dark"] .profile-tab:hover,
html[data-theme="dark"] .profile-tab.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.profile-sections {
  min-width: 0;
}

.profile-section {
  display: none;
}

.profile-section.is-active {
  display: block;
}

.profile-section-title {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.settings-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-page .panel {
  max-width: 1100px;
}

.settings-page .panel.workspace-projects-panel {
  max-width: none;
  width: 100%;
}

.settings-page .panel.workspace-files-panel,
.settings-page .panel.workspace-settings-panel {
  max-width: none;
  width: 100%;
}

.workspace-file-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 6px;
}

.workspace-file-upload--composed {
  gap: 8px;
}

.workspace-file-input-hidden {
  display: none;
}

.workspace-file-upload-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.workspace-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workspace-file-meta {
  min-width: 0;
}

.workspace-file-meta strong {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-documents-list {
  max-height: none;
  overflow-y: visible;
}

.workspace-doc-item {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 36px;
}

.workspace-doc-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.workspace-doc-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-doc-project {
  display: inline-block;
  flex: 0 0 auto;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm);
  font-style: italic;
  color: #64748b;
  text-decoration: none;
}

.workspace-doc-project:hover {
  color: var(--accent);
  text-decoration: underline;
}

.workspace-doc-actions {
  gap: 3px;
}

.workspace-doc-scope {
  text-decoration: none;
}

a.workspace-doc-scope {
  cursor: pointer;
}

.workspace-files-count {
  color: #ffffff;
}

.access-share-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access-share-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.access-share-tabs {
  gap: 10px;
}

.access-share-tab-panels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-share-tab-panel {
  display: none;
}

.access-share-tab-panel.is-active {
  display: block;
}

.access-share-summary {
  margin-top: 4px;
}

.access-share-search-field {
  position: relative;
}

.access-share-search-results.select-menu {
  margin-top: 4px;
  padding: 4px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 120;
}

.access-share-search-results .select-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.access-share-search-results .select-option.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.access-share-search-add-icon {
  width: 12px;
  margin-top: 2px;
  color: var(--accent);
}

.access-share-search-option-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.access-share-search-option-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.access-share-search-option-email {
  font-size: var(--text-xs);
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.access-share-list {
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
}

.access-share-list.muted {
  padding: 10px;
}

.access-share-list.access-share-list--empty {
  padding: 10px;
}

.access-share-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--vivet-border);
}

.access-share-item:last-child {
  border-bottom: none;
}

.access-share-item-name {
  min-width: 0;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text);
}

.access-share-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.access-share-permission-toggle.doc-upload-document-scope {
  width: 88px;
  min-width: 88px;
}

.access-share-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: 14px;
  color: #000000;
  cursor: pointer;
}

.access-share-remove:hover,
.access-share-remove:focus {
  background: transparent;
  color: #000000;
  outline: none;
}

html[data-theme="dark"] .access-share-list {
  background: #121a21;
  border-color: #2b3b46;
}

html[data-theme="dark"] .access-share-item {
  border-bottom-color: #2b3b46;
}

html[data-theme="dark"] .access-share-search-option-email {
  color: #a8b7c4;
}

html[data-theme="dark"] .access-share-remove,
html[data-theme="dark"] .access-share-search-add-icon {
  color: #ffffff;
}

html[data-theme="dark"] .access-share-remove:hover,
html[data-theme="dark"] .access-share-remove:focus,
html[data-theme="dark"] .access-share-search-results .select-option:hover .access-share-search-add-icon {
  color: #ffffff;
}

.settings-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-title h2 {
  margin: 0;
  font-size: 1.4rem;
}

.settings-search {
  position: relative;
  width: min(320px, 100%);
}

.settings-search .input {
  width: 100%;
  padding-left: 34px;
}

.settings-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.settings-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

.settings-tab {
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-weight: 400;
  font-size: var(--text-base, 1rem);
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.settings-tab.is-active {
  color: #0f172a;
  border-bottom-color: var(--vaqua, #21abcf);
}

html[data-theme="dark"] .settings-tablist {
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .settings-tab {
  color: rgba(226, 232, 240, 0.7);
}

html[data-theme="dark"] .settings-tab.is-active {
  color: #ffffff;
}

/* Scrollable tabs (UI kit) */
.ui-tabs {
  width: 100%;
  --ui-tab-active: #00a8d8;
  --ui-tab-line: #0c3b4a;
  --ui-tab-text: #1f2937;
  --ui-tab-muted: #374151;
}

.ui-tabs--panel {
  margin: -16px;
  padding: 24px 28px 0;
}

.ui-tab-bar {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  border-bottom: 2px solid var(--ui-tab-line);
  padding-bottom: 0;
  overflow: visible;
}

html[data-theme="dark"] .ui-tab-bar {
  border-bottom-color: var(--ui-tab-line);
}

.ui-tab-arrow {
  border: 0;
  background: transparent;
  color: var(--ui-tab-line);
  font-size: 18px;
  cursor: pointer;
  padding: 6px 4px;
  visibility: hidden;
}

html[data-theme="dark"] .ui-tab-arrow {
  color: var(--ui-tab-line);
}

.ui-tab-arrow.is-visible {
  visibility: visible;
}

.ui-tab-scroll {
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}

.ui-tab-scroll::-webkit-scrollbar {
  display: none;
}

.ui-tab-list {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  list-style: none;
  user-select: none;
  cursor: grab;
  width: max-content;
}

.ui-tab-list.is-dragging {
  cursor: grabbing;
}

.ui-tab {
  border: 0;
  background: transparent;
  padding: 0 6px 8px;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--ui-tab-muted);
  line-height: 1.5;
  cursor: pointer;
  position: relative;
  display: inline-grid;
  align-items: end;
}

.ui-tab::before {
  content: attr(data-title);
  font-weight: 700;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.ui-tab.is-active {
  font-weight: 700;
  color: var(--ui-tab-text);
}

.ui-tab.is-active::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 0;
  height: 6px;
  background: var(--ui-tab-active);
  z-index: 2;
}

.ui-tab-panels {
  padding: 24px 6px 0;
  font-size: var(--text-lg);
  color: var(--ui-tab-text);
}

.ui-tab-panel {
  display: none;
}

.ui-tab-panel.is-active {
  display: block;
}

.settings-panels {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

html[data-theme="dark"] .settings-panels {
  background: transparent;
  border-color: transparent;
}

.settings-org-block {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.settings-org-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.settings-page .subscription-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-subscription-invoices {
  max-height: 420px;
  overflow: auto;
}

.mfa-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius-sm);
  background: var(--vivet-panel);
}

.mfa-qr img {
  display: block;
  width: 160px;
  height: 160px;
}

html[data-theme="dark"] .mfa-qr img {
  filter: invert(1) grayscale(1);
}

.mfa-code-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 16px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: var(--text-sm);
  color: var(--vivet-text);
}

.mfa-code-list li {
  padding: 6px 8px;
  border: 1px solid var(--vivet-border);
  border-radius: 6px;
  background: var(--vivet-panel);
}

@media (max-width: 900px) {
  .settings-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-file-upload-grid {
    grid-template-columns: 1fr;
  }
}

.profile-form .form-grid {
  grid-template-columns: 1fr;
}

.llm-form .form-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.doc-section h3 {
  margin: 0 0 8px -30px;
  font-size: var(--text-base);
  font-weight: 700;
  color: #1f2d3a;
}

.doc-section p {
  margin: 0 0 10px;
  color: #475569;
}

.doc-section ul,
.doc-section ol {
  margin-left: 0;
  padding-left: 22px;
}

.doc-subsection {
  margin: 10px 0 0;
  padding-left: 10px;
  border-left: 2px solid #e2e8f0;
}

.doc-subsection h4 {
  margin: 0 0 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: #1f2d3a;
}

.doc-subsubsection {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 2px solid #f1f5f9;
}

.doc-subsubsection h5 {
  margin: 0 0 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #1f2d3a;
}

.context-doc ul {
  margin: 0 0 10px 18px;
  padding: 0;
  list-style-position: outside;
  color: #475569;
}

.context-doc ol {
  margin: 0 0 10px 18px;
  padding: 0;
  list-style-position: outside;
}

.doc-table {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius-sm);
}

.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.doc-list li {
  padding: 12px;
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius-sm);
  background: var(--vivet-panel);
}

.doc-table th,
.doc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f4;
  text-align: left;
}

.doc-table th {
  background: #f6f8fb;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: var(--text-xs);
  color: #64748b;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.profile-summary .panel-body {
  gap: 16px;
}

.avatar-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #1f2d3a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-name {
  font-weight: 700;
  font-size: var(--text-base);
}

.avatar-meta {
  font-size: var(--text-sm);
  color: #64748b;
}

.inline-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.company-summary .panel-body {
  gap: 16px;
}

.logo-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #1f2d3a;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-name {
  font-weight: 700;
  font-size: var(--text-base);
}

.logo-meta {
  font-size: var(--text-sm);
  color: #64748b;
}

@media (max-width: 900px) {
  .company-grid {
    grid-template-columns: 1fr;
  }
}

.wall-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.method-card {
  border: 1px solid var(--vivet-border);
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.method-card--market {
  cursor: default;
}

.method-card--market .method-title,
.method-card--market .method-meta,
.method-card--market .method-tags {
  cursor: default;
}

.method-title {
  font-weight: 700;
  font-size: var(--text-base);
  color: #1f2d3a;
}

.method-meta {
  font-size: var(--text-sm);
  color: #64748b;
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.method-actions {
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.method-detail {
  margin: 0;
  color: #475569;
}

.method-detail-meta {
  font-size: var(--text-sm);
  color: #64748b;
}

.dashboard-updated {
  font-size: var(--text-xs);
  font-style: italic;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 18px;
}

@media (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.panel-link {
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.panel-link:hover {
  background: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .panel-link {
  color: #ffffff;
}

html[data-theme="dark"] main a {
  color: var(--vaqua, #21abcf);
}

.right-close {
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px;
  font-size: var(--text-lg);
  color: var(--vivet-text);
}

.right-close:hover {
  opacity: 0.75;
}

/* Centre */
.center {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

/* Top bar */
.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--vivet-panel);
  border-bottom: 1px solid var(--vivet-border);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.page-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 600;
}

.topbar-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-title-actions .btn {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

/* Toggles */
.toggle {
  border: none;
  background: none;
  padding: 5px 10px;
  cursor: pointer;
  font-size: var(--text-base);
  color: var(--vivet-navy);
}

/* Main */
main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  max-width: none;
  margin: 0;
  width: 100%;
}

/* Showcase */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.showcase-head h2 {
  margin: 4px 0 6px;
  font-size: var(--text-xl);
  font-weight: 700;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #6b7280;
}

.muted {
  color: #6b7280;
  margin: 0;
}

html[data-theme="dark"] .muted {
  color: #a8b7c4;
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--vivet-panel);
  border: 1px solid var(--vivet-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6b7280;
}

.stat-value {
  font-size: var(--text-xxl);
  font-weight: 700;
  margin: 8px 0 6px;
}

.stat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: var(--text-sm);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.panel {
  background: var(--vivet-panel);
  border: 1px solid var(--vivet-border);
  border-radius: 5px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] footer {
  background: var(--vivet-panel);
  border-color: var(--vivet-border);
}

html[data-theme="dark"] .page-title {
  color: var(--vivet-text);
}

html[data-theme="dark"] .toggle {
  color: #d5e2ed;
}

html[data-theme="dark"] .head-actions .btn-ghost i,
html[data-theme="dark"] .head-actions .btn-primary i {
  color: #e6eef6;
}

html[data-theme="dark"] .panel-header {
  background: #1a3340;
  border-bottom-color: #1a2a33;
  color: #e6eef6;
}

html[data-theme="dark"] .panel-note {
  color: #c7d6e1;
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .select-trigger,
html[data-theme="dark"] .date-input {
  background: #0f171d;
  border-color: #2b3b46;
  color: var(--vivet-text);
}

html[data-theme="dark"] .select-menu,
html[data-theme="dark"] .date-panel,
html[data-theme="dark"] .modal-card,
html[data-theme="dark"] .doc-table {
  background: #121a21;
  border-color: #2b3b46;
}

html[data-theme="dark"] .select-option {
  color: var(--vivet-text);
}

html[data-theme="dark"] .select-option:hover {
  background: #16222a;
}

html[data-theme="dark"] .table th {
  background: #131c23;
  border-bottom-color: #22303a;
  color: #c1d0dc;
}

html[data-theme="dark"] .table td {
  border-bottom-color: #1f2b34;
}

html[data-theme="dark"] .table tr:hover {
  background: #141e25;
}

html[data-theme="dark"] .tag,
html[data-theme="dark"] .badge-neutral {
  background: #17232c;
  color: #c7d6e1;
}

html[data-theme="dark"] .mini-card {
  background: #11181f;
  border-color: #24323c;
}

html[data-theme="dark"] .mini-card-title {
  color: #e6eef6;
}

html[data-theme="dark"] .mini-card-meta {
  color: #a8b7c4;
}

html[data-theme="dark"] .mini-card-cta {
  color: #7fd4ea;
}

html[data-theme="dark"] .stat-card {
  background: #121a21;
  border-color: #24323c;
}

html[data-theme="dark"] .stat-label,
html[data-theme="dark"] .stat-meta {
  color: #a8b7c4;
}

html[data-theme="dark"] .alert-info {
  background: #132232;
  color: #b5d2f5;
}

html[data-theme="dark"] .alert-warning {
  background: #2c2312;
  color: #f6d59a;
}

html[data-theme="dark"] .right-header {
  background: #121a21;
  color: var(--vivet-text);
}

html[data-theme="dark"] .sidebar.right {
  background: var(--vivet-panel);
  color: var(--vivet-text);
  border-left-color: var(--vivet-border);
}

html[data-theme="dark"] .context-doc {
  color: #d5e2ed;
}

html[data-theme="dark"] .context-doc p {
  color: #c1d0dc;
}

html[data-theme="dark"] .context-doc {
  color: #d5e2ed;
}

html[data-theme="dark"] .context-doc ul,
html[data-theme="dark"] .context-doc ol,
html[data-theme="dark"] .context-doc li {
  color: #e2e8f0;
}

html[data-theme="dark"] .doc-section h3,
html[data-theme="dark"] .doc-subsection h4,
html[data-theme="dark"] .doc-subsubsection h5 {
  color: #e2e8f0;
}

html[data-theme="dark"] .doc-subsection {
  border-left-color: #20303a;
}

html[data-theme="dark"] .doc-subsubsection {
  border-left-color: #1a2730;
}

html[data-theme="dark"] .toast {
  background: #121a21;
  border-color: #2b3b46;
}

html[data-theme="dark"] .toast-title {
  color: #e6eef6;
}

html[data-theme="dark"] .toast-body {
  color: #b6c5d2;
}

html[data-theme="dark"] .toast-close {
  color: #b6c5d2;
}

html[data-theme="dark"] .toast-close:hover {
  color: #e6eef6;
}

html[data-theme="dark"] .toast-progress {
  background: #0f171d;
}

html[data-theme="dark"] .doc-table th {
  background: #131c23;
  color: #c1d0dc;
}

html[data-theme="dark"] .doc-table td {
  border-bottom-color: #1f2b34;
}

html[data-theme="dark"] .btn-outline {
  background: #0f171d;
  border-color: #2b3b46;
  color: #d5e2ed;
}

html[data-theme="dark"] .btn-outline:hover {
  background: #17232c;
}

html[data-theme="dark"] .btn-ghost {
  background: #17232c;
  color: #d5e2ed;
}

html[data-theme="dark"] .btn-ghost:hover {
  background: #1f2c36;
}

html[data-theme="dark"] .btn-secondary {
  background: #1a232b;
  color: #e6eef6;
}

html[data-theme="dark"] .btn-secondary:hover {
  background: #212c36;
}

html[data-theme="dark"] .btn-danger {
  background: #1a232b;
  color: #e6eef6;
}

html[data-theme="dark"] .btn-danger:hover {
  background: #212c36;
}

html[data-theme="dark"] .input::placeholder,
html[data-theme="dark"] .textarea::placeholder {
  color: #8fa0b0;
}

html[data-theme="dark"] .nav-item {
  color: #c7d6e1;
}

html[data-theme="dark"] .nav-section {
  color: #a8b7c4;
}

html[data-theme="dark"] .field label,
html[data-theme="dark"] .toggle-row,
html[data-theme="dark"] .table-footer,
html[data-theme="dark"] .stat-label {
  color: #d3e0ea;
}

html[data-theme="dark"] .select-trigger i,
html[data-theme="dark"] .date-input i {
  color: #b6c5d2;
}

html[data-theme="dark"] .date-clear {
  color: #b6c5d2;
}

html[data-theme="dark"] .date-clear:hover {
  background: #17232c;
  color: #e0e9f2;
}

html[data-theme="dark"] .date-panel,
html[data-theme="dark"] .date-panel-title,
html[data-theme="dark"] .date-weekdays,
html[data-theme="dark"] .date-cell {
  color: #e0e9f2;
}

html[data-theme="dark"] .date-panel {
  background: #0f171d;
  border-color: #2b3b46;
}

html[data-theme="dark"] .date-cell {
  background: #0f171d;
}

html[data-theme="dark"] .date-cell.muted {
  color: #9fb1bf;
  background: #101820;
}

html[data-theme="dark"] .date-weekdays {
  color: #c1d0dc;
}

html[data-theme="dark"] .title-btn {
  background: #0f171d;
  color: #e0e9f2;
}

html[data-theme="dark"] .title-btn:hover {
  background: #17232c;
}

html[data-theme="dark"] .month-option,
html[data-theme="dark"] .year-option {
  background: #0f171d;
  border-color: #2b3b46;
  color: #e0e9f2;
}

html[data-theme="dark"] .month-picker,
html[data-theme="dark"] .year-picker {
  background: #10171d;
  border-color: #2b3b46;
}

html[data-theme="dark"] .picker-title {
  color: #c1d0dc;
}

html[data-theme="dark"] .month-option.is-selected,
html[data-theme="dark"] .year-option.is-selected {
  background: var(--accent);
  color: #0b141a;
}

html[data-theme="dark"] .table td {
  color: #d7e3ee;
}

html[data-theme="dark"] .icon-btn {
  background: #0f171d;
  border-color: #2b3b46;
  color: #cbd5e1;
}

html[data-theme="dark"] .pill {
  background: #0f171d;
  border-color: #2b3b46;
  color: #d7e3ee;
}

html[data-theme="dark"] .pill.active {
  background: #0f2c36;
  border-color: #2aa6c7;
  color: #7fd4ea;
}

html[data-theme="dark"] .framework-crumbs {
  color: #a8b7c4;
}

html[data-theme="dark"] .framework-crumbs .crumb-sep {
  color: #6b7785;
}

html[data-theme="dark"] .framework-list {
  border-color: #2b3b46;
}

html[data-theme="dark"] .framework-item {
  border-bottom-color: #2b3b46;
  color: #e6eef6;
}

html[data-theme="dark"] .framework-item:hover {
  background: #16222a;
  color: #ffffff;
}

html[data-theme="dark"] .framework-picker .hint {
  color: #b6c5d2;
}

html[data-theme="dark"] .check-box {
  background: #0f171d;
  border-color: #2b3b46;
}

html[data-theme="dark"] .check {
  color: #d3e0ea;
}

html[data-theme="dark"] .check input:checked + .check-box {
  background: #2aa6c7;
  border-color: #2aa6c7;
  box-shadow: 0 0 0 2px rgba(42, 166, 199, 0.2);
}

html[data-theme="dark"] .check-box::after {
  border-left-color: #0b141a;
  border-bottom-color: #0b141a;
}

html[data-theme="dark"] .switch {
  width: 44px;
  height: 24px;
}

html[data-theme="dark"] .slider {
  background: #1a2630;
  border: 1px solid #2b3b46;
}

html[data-theme="dark"] .slider:before {
  width: 18px;
  height: 18px;
  left: 3px;
  top: 2px;
  background: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .switch input:checked + .slider {
  background: #1a2630;
  border-color: #2b3b46;
}

html[data-theme="dark"] .switch input:checked + .slider:before {
  transform: translateX(16px);
  background: #3bb3c9;
}

html[data-theme="dark"] .toggle-row span {
  color: #d3e0ea;
}

html[data-theme="dark"] .badge-success {
  background: #0f2a1d;
  color: #7fe0b2;
}

html[data-theme="dark"] .badge-warning {
  background: #2c2312;
  color: #f6d59a;
}

html[data-theme="dark"] .badge-info {
  background: #10253a;
  color: #9dc7f3;
}

html[data-theme="dark"] .progress {
  background: #1a2630;
}

html[data-theme="dark"] .progress-bar {
  background: #39b1d2;
}

.panel--wide {
  grid-column: span 2;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--accent-dark);
  background: var(--accent);
  color: #ffffff;
  border-radius: 5px 5px 0 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.panel-header h3 {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1;
}

.panel-header h3 i {
  margin-right: 8px;
}

.panel-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-header-actions .btn-sm {
  height: 32px;
  display: inline-flex;
  align-items: center;
}

.panel-header-actions .btn-outline,
.panel-header-actions .btn-back-link {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

.panel-header-actions .btn-outline:hover,
.panel-header-actions .btn-outline:focus,
.panel-header-actions .btn-back-link:hover,
.panel-header-actions .btn-back-link:focus {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
}

.panel-note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.85);
  line-height: 1;
}

.panel-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: var(--text-base);
  position: relative;
  overflow: visible;
}

/* Tooltip */
.app-tooltip {
  position: fixed;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.96);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: var(--text-xs);
  line-height: 1.3;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
  max-width: min(240px, 70vw);
  text-align: center;
}

html[data-theme="dark"] .app-tooltip {
  background: rgba(120, 129, 140, 0.95);
  color: #ffffff;
}

.app-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}


.framework-crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: #64748b;
}

.framework-crumbs i {
  color: var(--accent);
}

.framework-crumbs .crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.framework-crumbs .crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.framework-crumbs .crumb:hover {
  color: var(--accent-dark);
}

.framework-crumbs .crumb-sep {
  color: #94a3b8;
}

.framework-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.framework-list {
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
}

.framework-item {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--vivet-border);
  color: var(--vivet-text);
}

.framework-item:last-child {
  border-bottom: none;
}

.framework-item:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.framework-item.is-selected {
  background: var(--accent);
  color: #ffffff;
}

.framework-item i {
  color: inherit;
  width: 18px;
  text-align: center;
}

.framework-picker .hint {
  font-size: var(--text-sm);
  color: #64748b;
}

.shape-context-menu,
.context-menu {
  position: fixed;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--vivet-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: none;
  z-index: 800;
}

.shape-context-menu.open,
.context-menu.open {
  display: grid;
  gap: 4px;
}

.shape-context-menu .select-option,
.context-menu .select-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-size: var(--text-base);
  color: var(--vivet-text);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.shape-context-menu .select-option i,
.context-menu .select-option i {
  width: 16px;
  text-align: center;
}

.shape-context-menu .select-option:hover,
.context-menu .select-option:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.shape-context-menu .select-option[disabled],
.context-menu .select-option[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

html[data-theme="dark"] .shape-context-menu,
html[data-theme="dark"] .context-menu {
  background: #121a21;
  border-color: #2b3b46;
}

html[data-theme="dark"] .shape-context-menu .select-option,
html[data-theme="dark"] .context-menu .select-option {
  color: #e6eef6;
}

html[data-theme="dark"] .shape-context-menu .select-option:hover,
html[data-theme="dark"] .context-menu .select-option:hover {
  background: #16222a;
  color: #ffffff;
}

.shape-context-menu .menu-divider,
.context-menu .menu-divider {
  height: 1px;
  background: var(--vivet-border);
  margin: 6px 8px;
}

.shape-context-menu .context-action-text,
.context-menu .context-action-text {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 0;
  text-align: left;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.split-action-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.split-action-menu__toggle {
  min-width: 44px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.split-action-menu--toggle-only .split-action-menu__toggle {
  min-width: 44px;
}

.split-action-menu__toggle-text {
  display: inline-block;
  line-height: 1;
  transform: translateY(-1px);
}

.split-action-menu__menu.context-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 160px;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  z-index: 10040;
}

.split-action-menu.is-open .split-action-menu__menu.context-menu {
  display: grid;
}

.project-write-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

.project-write-toggle {
  min-width: 30px;
  width: 30px;
  padding: 9px 8px;
  margin-left: 0;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-write-menu-wrap #sendPromptBtn {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.project-write-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #ffffff;
}

.project-write-menu.context-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 160px;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  z-index: 10040;
}

.project-export-menu.context-menu {
  min-width: 280px;
  width: max-content;
  max-width: min(460px, calc(100vw - 24px));
}

.project-write-menu-wrap.is-open .project-write-menu.context-menu {
  display: grid;
}

.project-ai-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.project-ai-toolbar__actions {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.project-ai-toolbar__verbosity {
  margin-left: auto;
  min-width: 150px;
}

.project-ai-toolbar__verbosity .select-trigger {
  min-width: 150px;
}

.project-write-menu.context-menu .select-option {
  padding: 6px 10px;
  border-radius: 4px;
  color: #1f2d3a;
}

.project-export-menu.context-menu .select-option {
  align-items: center;
}

.project-write-menu.context-menu .select-option i {
  width: 14px;
  font-size: 13px;
}

.project-export-menu.context-menu .context-action-text {
  display: block;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.project-export-submenu-wrap {
  position: relative;
}

.project-export-submenu-trigger {
  width: 100%;
}

.project-write-menu.context-menu .project-export-submenu-caret {
  margin-left: auto;
  width: auto;
  font-size: 11px;
  color: #64748b;
}

.project-export-submenu {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 170px;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
  display: none;
  z-index: 10050;
}

.project-export-submenu-wrap:hover .project-export-submenu,
.project-export-submenu-wrap:focus-within .project-export-submenu {
  display: grid;
}

.project-export-submenu-wrap.is-open-left .project-export-submenu {
  left: 0;
}

.project-export-submenu-wrap.is-open-left .project-export-submenu-caret {
  transform: rotate(180deg);
}

html[data-theme="dark"] .project-write-menu.context-menu .select-option {
  color: #e6eef6;
}

html[data-theme="dark"] .project-write-menu.context-menu .project-export-submenu-caret {
  color: #9fb1c7;
}

.settings-page .button-row {
  margin-top: 10px;
}

/*
  Vivet UI Component Library
  Components:
  - busy-action-button: Action button with an inline spinner and click lock while work is in progress.
  - split-action-menu: Primary action button paired with an overflow menu toggle.
*/
.btn {
  border: none;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.btn:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: 0.92;
}

.btn:disabled:hover {
  transform: none;
}

.btn i {
  font-size: var(--text-sm);
}

.busy-action-button {
  position: relative;
}

.busy-action-button__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.busy-action-button__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  flex: 0 0 14px;
  order: -1;
  align-items: center;
  justify-content: center;
}

.busy-action-button__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.busy-action-button.is-busy {
  pointer-events: none;
}

.busy-action-button.is-busy .busy-action-button__icon {
  display: none;
}

.busy-action-button.is-busy .busy-action-button__spinner {
  display: inline-block;
  animation: vivet-busy-action-spin 0.7s linear infinite;
}

@keyframes vivet-busy-action-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-sm {
  padding: 6px 12px;
  font-size: var(--text-sm);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1f2d3a;
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--vivet-border);
  color: #1f2d3a;
}

.chat-user-editor-actions .btn,
.consult-user-editor-actions .btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background: transparent;
}

.chat-user-editor-actions .btn:hover,
.chat-user-editor-actions .btn:focus-visible,
.consult-user-editor-actions .btn:hover,
.consult-user-editor-actions .btn:focus-visible {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: #f0f4f8;
  color: #1f2d3a;
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-warning {
  background: var(--warning);
  color: #1f2d3a;
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--vivet-border);
  background: #f9fafb;
  font-size: var(--text-base);
  color: var(--vivet-text);
}

.input:focus,
.textarea:focus,
.select-trigger:focus,
.date-input:focus {
  outline: 2px solid rgba(36, 167, 198, 0.35);
  outline-offset: 2px;
}

.textarea {
  resize: vertical;
  min-height: 90px;
}

/* Keep Summernote typography aligned with the site font stack. */
.note-editor,
.note-editor .note-toolbar,
.note-editor .note-btn,
.note-editor .dropdown-menu,
.note-editor .dropdown-menu *,
.note-editor .note-editable {
  font-family: inherit;
}

/* Match the old project Summernote look for the project editor. */
#card-body-content .note-editor.note-frame,
#card-body-content .note-editor.note-airframe {
  border: 1px solid #00000032;
}

#card-body-content .note-editor .note-toolbar {
  margin: 0;
  padding: 0 0 5px 5px;
  background: #8080801d;
}

#card-body-content .note-editor .note-toolbar > .note-btn-group {
  margin-top: 5px;
  margin-left: 0;
  margin-right: 5px;
}

#card-body-content .note-btn-group .note-btn {
  border-color: #00000032;
  padding: 0.28rem 0.65rem;
  font-size: 13px;
}

#card-body-content .note-editor .note-editing-area {
  overflow: hidden;
}

#card-body-content .note-editor .note-editing-area .note-editable {
  padding: 10px;
  overflow: auto;
  word-wrap: break-word;
}

#card-body-content .note-editor .note-editing-area .note-editable[contenteditable="false"] {
  background-color: #8080801d;
}

#card-body-content .note-editor .note-statusbar {
  background-color: #8080801d;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  border-top: 1px solid #00000032;
}

#card-body-content .note-editor .note-statusbar .note-resizebar {
  padding-top: 1px;
  height: 9px;
  width: 100%;
  cursor: ns-resize;
}

#card-body-content .note-editor .note-statusbar .note-resizebar .note-icon-bar {
  width: 20px;
  margin: 1px auto;
  border-top: 1px solid #00000032;
}

/* Keep Summernote fullscreen opaque (no transparent editor chrome). */
.note-editor.fullscreen,
.note-editor.note-frame.fullscreen,
.note-editor.note-airframe.fullscreen,
.note-editor.vivet-force-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  z-index: 10060 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: var(--vivet-panel);
  border-color: var(--vivet-border);
}

.note-editor.fullscreen .note-toolbar,
.note-editor.fullscreen .note-statusbar,
.note-editor.vivet-force-fullscreen .note-toolbar,
.note-editor.vivet-force-fullscreen .note-statusbar {
  background: var(--vivet-panel);
  border-color: var(--vivet-border);
}

.note-editor.fullscreen .note-editing-area,
.note-editor.fullscreen .note-editing-area .note-editable,
.note-editor.vivet-force-fullscreen .note-editing-area,
.note-editor.vivet-force-fullscreen .note-editing-area .note-editable {
  background: var(--vivet-panel);
  color: var(--vivet-text);
}

.note-editor.fullscreen .note-editing-area,
.note-editor.vivet-force-fullscreen .note-editing-area {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}

.note-editor.fullscreen .note-editing-area .note-editable,
.note-editor.vivet-force-fullscreen .note-editing-area .note-editable {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

html[data-theme="dark"] .note-editor.note-frame.fullscreen,
html[data-theme="dark"] .note-editor.note-airframe.fullscreen,
html[data-theme="dark"] .note-editor.fullscreen,
html[data-theme="dark"] .note-editor.vivet-force-fullscreen {
  background: #121a21;
  border-color: #2b3b46;
}

html[data-theme="dark"] .note-editor.fullscreen .note-toolbar,
html[data-theme="dark"] .note-editor.fullscreen .note-statusbar,
html[data-theme="dark"] .note-editor.vivet-force-fullscreen .note-toolbar,
html[data-theme="dark"] .note-editor.vivet-force-fullscreen .note-statusbar {
  background: #15212b;
  border-color: #2b3b46;
}

html[data-theme="dark"] .note-editor.fullscreen .note-editing-area,
html[data-theme="dark"] .note-editor.fullscreen .note-editing-area .note-editable,
html[data-theme="dark"] .note-editor.vivet-force-fullscreen .note-editing-area,
html[data-theme="dark"] .note-editor.vivet-force-fullscreen .note-editing-area .note-editable {
  background: #0f171d;
  color: var(--vivet-text);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.field-inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.field.field-inline .field-label {
  margin: 0;
  white-space: nowrap;
}

.field.field-inline .select-field {
  min-width: 220px;
}

.field.field-inline .select-trigger {
  height: 40px;
  box-sizing: border-box;
  padding: 8px 16px;
}

.field label {
  font-size: var(--text-base);
  font-weight: 600;
  color: #374151;
}

@media (max-width: 720px) {
  .field.field-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .field.field-inline .select-field {
    min-width: 0;
    width: 100%;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  color: #374151;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1.2;
}

.check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.check-label {
  font-weight: 400;
}

.check input:checked + .check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.check input:checked + .check-box::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  margin-bottom: 1px;
}

.pill-group {
  display: flex;
  gap: 8px;
}

.pill {
  border: 1px solid var(--vivet-border);
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: var(--text-sm);
  cursor: pointer;
}

.pill.active {
  background: var(--accent-soft);
  border-color: #b5e3ed;
  color: var(--accent-dark);
  font-weight: 600;
}

.card-grid {
  display: grid;
  gap: 12px;
}

.mini-card {
  border-radius: 10px;
  border: 1px solid var(--vivet-border);
  padding: 14px;
  background: #ffffff;
  display: grid;
  gap: 8px;
}

.mini-card-title {
  font-weight: 700;
  font-size: var(--text-base);
}

.mini-card-meta {
  color: #6b7280;
  font-size: var(--text-sm);
}

.mini-card-cta {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
}

.range {
  width: 100%;
  accent-color: var(--accent);
}

.select-field {
  position: relative;
  width: 100%;
}

.select-trigger {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--vivet-border);
  background: #f9fafb;
  font-size: var(--text-base);
  color: var(--vivet-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.select-trigger i {
  font-size: var(--text-xs);
  color: #64748b;
}

.select-menu {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px;
  position: absolute;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--vivet-border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.select-field.open .select-menu {
  display: block;
}

.select-option {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--text-base);
  color: #1f2d3a;
}

.select-option:hover {
  background: #f3f6f9;
}

.select-option.is-selected {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.date-field {
  position: relative;
}

.date-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--vivet-border);
  background: #f9fafb;
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--vivet-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.date-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  text-align: left;
}

.date-placeholder {
  color: #a8b7c4;
}

.date-value:empty {
  display: none;
}

.date-value {
  font-weight: 400;
}

.date-input-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.date-clear {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7b8794;
}

.date-clear:hover {
  background: #e6edf3;
  color: #1f2d3a;
}

.date-clear:active {
  background: #d9e6ef;
}

.date-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--vivet-border);
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
  z-index: 20;
}

.date-field.open .date-panel {
  display: block;
}

.date-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.icon-btn {
  border: 1px solid var(--vivet-border);
  background: #f8fafc;
  color: #475569;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.date-panel-title {
  font-weight: 600;
  color: #1f2d3a;
}

.date-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: var(--text-xs);
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
  text-align: center;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.date-panel-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--vivet-border);
}

.date-cell {
  border: none;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 0;
  font-size: var(--text-sm);
  color: #1f2d3a;
  cursor: pointer;
}

.date-cell:hover {
  background: var(--accent-soft);
}

.date-cell.muted {
  color: #a8b7c4;
  background: #f2f4f7;
}

.date-cell.is-selected {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-base);
  color: #374151;
}

.settings-org-block .toggle-row {
  margin: 5px 0;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #cbd5f5;
  border-radius: 999px;
  transition: 0.2s ease;
}

.slider:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.2s ease;
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.doc-table {
  overflow-x: hidden;
}

.table th {
  text-align: left;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #5b6772;
  padding: 8px 10px;
  border-bottom: 2px solid #d6dde4;
  background: #f4f7fa;
  position: relative;
}

.table td {
  padding: 10px;
  border-bottom: 1px solid #eef1f4;
}

.table tr:hover {
  background: #f9fbfc;
}

.methods-table .table tr:hover {
  background: #d6e8f4;
}

html[data-theme="dark"] .methods-table .table tr:hover {
  background: #2a3c4a;
}

.table-zebra tbody tr:nth-child(even) {
  background: #f6f8fb;
}

html[data-theme="dark"] .table-zebra tbody tr:nth-child(even) {
  background: #1f2933;
}

.table-row-link tbody tr {
  cursor: pointer;
}

.table-row-link tbody tr a {
  color: inherit;
  text-decoration: none;
}

.table.is-resizable {
  table-layout: fixed;
}

.table th a {
  color: inherit;
  text-decoration: none;
}

.table th a:hover {
  color: var(--accent);
}

.table-sort {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.table-sort:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  #methodsTable th:nth-child(3),
  #methodsTable td:nth-child(3) {
    display: none;
  }
}

.methods-table {
  font-size: var(--text-base);
}

.methods-table .table {
  font-size: inherit;
}

.methods-table .table th,
.methods-table .table td,
.methods-table .table-sort {
  font-size: inherit;
  text-transform: none;
  letter-spacing: normal;
}

.methods-table .table-actions .input {
  font-size: inherit;
  height: auto;
  min-height: 34px;
  padding-top: 8px;
  padding-bottom: 8px;
  line-height: 1.2;
}

.methods-table .methods-pin-col,
.methods-table .methods-pin-cell {
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  text-align: center;
  padding-left: 2px;
  padding-right: 2px;
}

.methods-table .methods-action-col,
.methods-table .methods-action-cell {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  text-align: center;
}

.methods-table .methods-action-cell .btn {
  width: 100%;
  justify-content: center;
}

.methods-table .methods-title-cell,
.methods-table .dashboard-mobile-card-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.methods-table .dashboard-mobile-card-title-row {
  display: flex;
}

.methods-table .methods-pin-toggle {
  border: none;
  background: transparent;
  color: #7f8b99;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.methods-table .methods-pin-toggle:hover {
  color: #5f6b79;
}

.methods-table .methods-pin-toggle.is-pinned {
  color: var(--accent);
}

.methods-table .methods-pin-toggle.is-pinned i {
  color: var(--accent);
}

.methods-table .methods-pin-toggle:focus-visible {
  outline: 2px solid rgba(42, 166, 199, 0.32);
  outline-offset: 2px;
  border-radius: 4px;
}

.methods-table .methods-pin-toggle i {
  font-size: 13px;
  transform: rotate(90deg) scale(1);
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.methods-table .methods-pin-toggle.is-pinned i {
  transform: rotate(0deg) scale(2);
}

.methods-table #methodsTable th,
.methods-table #methodsTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.methods-table #methodsTable th:nth-child(4),
.methods-table #methodsTable td:nth-child(4) {
  min-width: 170px;
}

.dashboard-mobile-card-actions {
  margin-top: 12px;
}

.col-resizer {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 18px;
  cursor: col-resize;
  background: transparent;
  z-index: 2;
}

.col-resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2px;
  width: 2px;
  background: #d6dde4;
  border-radius: 2px;
}

.is-col-resizing {
  cursor: col-resize;
  user-select: none;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.table-actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-create-label-phone {
  display: none;
}

.dashboard-list-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--dashboard-list-control-height);
  height: var(--dashboard-list-control-height);
  padding: 0 16px;
  white-space: nowrap;
}

.methods-table .table-actions-middle {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.methods-table .table-actions-middle .toggle-row {
  margin: 0;
  white-space: nowrap;
}

.methods-table .table-actions-right {
  margin-left: 0;
}

.search {
  position: relative;
}

.search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3ab;
  font-size: var(--text-xs);
}

.search .input {
  padding-left: 30px;
}

.table-actions .input {
  min-height: var(--dashboard-list-control-height, 28px);
  height: var(--dashboard-list-control-height, 28px);
  padding-top: 4px;
  padding-bottom: 4px;
  font-size: var(--text-sm);
  line-height: 16px;
  margin: 0;
}

.table-actions .btn-sm {
  padding: 5px 9px;
  font-size: var(--text-sm);
}

.dashboard-list-shell {
  --dashboard-list-control-height: 42px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-list-shell .table-actions .input {
  min-height: var(--dashboard-list-control-height);
  height: var(--dashboard-list-control-height);
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: var(--text-base);
  line-height: 1.5;
}

.dashboard-mobile-list {
  display: none;
}

.dashboard-mobile-card {
  cursor: pointer;
}

.dashboard-mobile-card:focus-visible {
  outline: 2px solid rgba(36, 167, 198, 0.35);
  outline-offset: 2px;
}

.dashboard-mobile-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-mobile-card-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 8px;
}

.dashboard-mobile-card-meta {
  display: grid;
  gap: 6px;
}

.dashboard-mobile-card-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #6b7280;
  font-size: var(--text-sm);
}

.dashboard-mobile-card-meta-label {
  flex: 0 0 auto;
  color: #475569;
  font-weight: 600;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: #475569;
}

.market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 4px 0;
}

.market-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.market-title i {
  font-size: 22px;
  color: var(--accent);
}

.market-title h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.market-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: #64748b;
}

.market-panel .panel-body {
  gap: 18px;
}

.market-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-field label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  font-weight: 600;
}

.search-field .search {
  width: 100%;
}

.market-table th,
.market-table td {
  font-size: var(--text-sm);
  vertical-align: middle;
  height: 40px;
}

.market-table th.sort-col {
  position: relative;
  padding-right: 28px;
}

.sort-arrows {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  gap: 0;
  font-size: 10px;
  color: #b0bac5;
}

.sort-arrows i:first-child {
  margin-bottom: 0;
}

.market-table tbody tr {
  height: 40px;
}

/* Split panels (detail + list) */
.split-panels {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: 100%;
  min-height: 0;
  background: transparent;
}

.split-panels--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-panels > .panel {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.panel-body.panel-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 980px) {
  .split-panels {
    grid-template-columns: 1fr;
    height: auto;
  }

  .split-panels > .panel {
    height: auto;
  }

  .panel-body.panel-scroll {
    overflow: visible;
  }
}

/* Sortable list */
.scroll-region {
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.sortable-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2px 2px 12px;
}

.sortable-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sortable-item.is-dragging {
  opacity: 0.7;
}

.sortable-step {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--vivet-border);
  background: #dde4ec;
  color: #1e2933;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  cursor: grab;
  user-select: none;
  font-size: var(--text-base);
  gap: 12px;
}

html[data-theme="dark"] .sortable-step {
  background: #2f3a45;
  color: #ffffff;
}

.sortable-step.is-dragging {
  cursor: grabbing;
}

.item-label {
  flex: 1;
}

.hover-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  max-width: 0;
  overflow: hidden;
  justify-content: flex-end;
}

.sortable-item:hover .hover-actions,
.sortable-item:focus-within .hover-actions {
  opacity: 1;
  pointer-events: auto;
  max-width: 64px;
}

.hover-action-btn {
  border: none;
  background: transparent;
  color: var(--vivet-text);
  padding: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hover-action-btn i {
  font-size: 14px;
}

.phase-divider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 12px;
  color: var(--vivet-text);
  font-weight: 600;
  cursor: grab;
}

.phase-divider.is-locked {
  cursor: default;
}

.phase-divider .line {
  flex: 1;
  height: 2px;
  background: var(--vivet-border);
  transition: margin-right 0.15s ease;
}

html[data-theme="dark"] .phase-divider .line {
  background: #ffffff;
}

.phase-divider.is-dragging {
  cursor: grabbing;
}

.phase-divider .hover-actions {
  justify-self: end;
}

.drop-line {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(42, 166, 199, 0.12);
}

.pin-cell {
  width: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.pin-cell .check {
  font-size: 0;
  height: 100%;
  line-height: 0;
  gap: 0;
  align-items: center;
  justify-content: center;
  display: flex;
}

.pin-cell .check-box {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

@media (max-width: 1100px) {
  .market-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .market-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .market-filters {
    grid-template-columns: 1fr;
  }
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: var(--text-sm);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge-success {
  background: #e6f6ef;
  color: #11784b;
}

.badge-warning {
  background: #fff3d6;
  color: #a06700;
}

.badge-info {
  background: #e4f0ff;
  color: #1e63b8;
}

.badge-neutral {
  background: #eef2f7;
  color: #4b5563;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: var(--text-base);
}

.alert-info {
  background: #eaf2ff;
  color: #1e63b8;
}

.alert-warning {
  background: #fff4dc;
  color: #8a5b00;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f5f8;
  color: #475569;
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Footer */
footer {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vivet-panel);
  border-top: 1px solid var(--vivet-border);
  font-size: var(--text-sm);
  color: #6b7280;
}

.footer--toggle {
  justify-content: space-between;
  padding: 0 16px;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-action,
.theme-toggle {
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.footer-action:hover,
.footer-action:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
  outline: none;
}

.footer-action[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.bug-report-page {
  display: grid;
  gap: 12px;
}

.bug-report-layout {
  display: grid;
  gap: 12px;
}

.bug-report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.bug-report-submit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.bug-report-meta-url {
  grid-column: 1 / -1;
}

.bug-report-capture-status.is-hidden {
  display: none;
}

.bug-report-preview-frame {
  min-height: 280px;
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius-lg);
  background: rgba(148, 163, 184, 0.08);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.bug-report-preview-frame.is-drop-active {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: inset 0 0 0 2px rgba(14, 165, 233, 0.18);
}

.bug-report-preview {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.bug-report-preview-empty {
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.bug-report-preview-empty strong {
  color: var(--vivet-text);
}

body.is-capturing-bug-report #base_appTooltip {
  visibility: hidden !important;
}

#base_bugReportTrigger[aria-busy="true"] {
  opacity: 1;
  cursor: wait;
}

#base_bugReportTrigger[aria-busy="true"] i {
  animation: fa-spin 1s linear infinite;
}

.theme-toggle i {
  font-size: 14px;
}

/* Sidebar lists */
.sidebar ul,
.left-hover ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  padding: 6px 0 10px;
}

.nav-main-list {
  flex: 0 0 auto;
}

.sidebar.left .nav-resource-scroll,
.left-hover .nav-resource-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 6px;
}

.nav-resource-list {
  padding-top: 0;
  padding-bottom: 0;
}

.nav-section {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #9aa3ab;
  padding: 14px 16px 6px;
  background: transparent;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px 9px 16px;
  margin: 3px 10px;
  font-size: var(--text-base);
  color: #d8dde1;
  cursor: pointer;
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.nav-item.nav-item-link {
  padding: 0;
}

.nav-item.nav-item-link > .nav-link {
  padding: 9px 12px 9px 16px;
}

.nav-item.nav-create {
  padding: 0;
}

.nav-item.nav-create > .nav-create-toggle {
  padding: 9px 12px 9px 16px;
  width: 100%;
}

.nav-user {
  position: relative;
  overflow: visible;
  padding: 0;
}

.nav-user-toggle {
  all: unset;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  padding: 9px 12px 9px 16px;
}

.nav-user.is-open {
  background: #3a4147;
  color: #ffffff;
  border-radius: 6px;
}

.nav-user-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: var(--vivet-panel);
  border: 1px solid var(--vivet-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: none;
  z-index: 600;
}

.nav-user-menu.context-menu {
  position: absolute;
  min-width: 0;
  width: 100%;
}

.nav-user.is-open .nav-user-menu {
  display: grid;
  gap: 4px;
}

.nav-user-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--vivet-text);
  text-decoration: none;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user-item-form {
  margin: 0;
}

button.nav-user-item {
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.nav-user-item--static {
  font-weight: 600;
  cursor: default;
}

.nav-user-item:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-user-item i {
  width: 16px;
  text-align: center;
  font-size: var(--text-base);
  color: inherit;
}

html:not([data-theme="dark"]) .nav-user-item i {
  color: #000000;
}

html[data-theme="dark"] .nav-user-item:hover {
  color: #ffffff;
}

html:not([data-theme="dark"]) .nav-user-item:hover {
  color: #000000;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: var(--text-base);
  color: #bfc6cc;
  flex: 0 0 18px;
}

.nav-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item:hover {
  background: #3a4147;
  color: #ffffff;
  border-radius: 6px;
}

.nav-item:hover i {
  color: #ffffff;
}

.nav-item.is-current {
  background: #3a4147;
  color: #ffffff;
  border-radius: 6px;
}

.nav-item.is-current i {
  color: #ffffff;
}

.nav-item:active {
  background: rgba(255,255,255,0.12);
}

.nav-divider {
  height: 1px;
  margin: 8px 16px 6px;
  background: rgba(216, 221, 225, 0.24);
}

.nav-item-folder {
  justify-content: space-between;
  gap: 10px;
}

.nav-folder-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-workspaces-toggle {
  all: unset;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.nav-workspaces-toggle:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.nav-workspaces-icon-open {
  display: none;
}

.nav-workspaces-toggle.is-open .nav-workspaces-icon-open {
  display: inline-block;
}

.nav-workspaces-toggle.is-open .nav-workspaces-icon-closed {
  display: none;
}

.nav-workspaces-container {
  margin: 0 10px 4px;
}

html[data-workspace-folder-open="1"] #base_workspaceContainer {
  display: block !important;
}

html[data-project-folder-open="1"] #base_projectContainer {
  display: block !important;
}

html[data-shared-project-folder-open="1"] #base_sharedProjectContainer {
  display: block !important;
}

html[data-workspace-folder-open="1"] [data-nav-folder-toggle="workspace"] .nav-workspaces-icon-open,
html[data-project-folder-open="1"] [data-nav-folder-toggle="project"] .nav-workspaces-icon-open,
html[data-shared-project-folder-open="1"] [data-nav-folder-toggle="shared-project"] .nav-workspaces-icon-open {
  display: inline-block;
}

html[data-workspace-folder-open="1"] [data-nav-folder-toggle="workspace"] .nav-workspaces-icon-closed,
html[data-project-folder-open="1"] [data-nav-folder-toggle="project"] .nav-workspaces-icon-closed,
html[data-shared-project-folder-open="1"] [data-nav-folder-toggle="shared-project"] .nav-workspaces-icon-closed {
  display: none;
}

.nav-workspaces-list {
  display: grid;
  gap: 2px;
}

.nav-workspaces-list .nav-item {
  margin: 0;
  padding: 0;
}

.nav-workspaces-list .nav-item.nav-item-link > .nav-link {
  padding: 8px 12px 8px 38px;
}

.nav-workspaces-list .nav-link i {
  width: 16px;
  text-align: center;
  font-size: 14px;
}

.nav-project-item .nav-shared-badge,
.nav-workspace-item .nav-shared-badge {
  margin-left: auto;
  font-size: 10px;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0.9;
  align-self: flex-start;
  transform: translateY(-2px);
  white-space: nowrap;
}

.nav-workspaces-empty {
  padding: 8px 12px 8px 38px;
  color: #b7c0c7;
  font-size: var(--text-sm);
}

.nav-folder-add {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #d8dde1;
  text-decoration: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
  border-radius: 4px;
}

.nav-folder-add:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav-create {
  position: relative;
  overflow: visible;
}

.nav-create-toggle {
  all: unset;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
}

.nav-create.is-open {
  background: #3a4147;
  color: #ffffff;
  border-radius: 6px;
}

.nav-create-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--vivet-panel);
  border: 1px solid var(--vivet-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: none;
  z-index: 600;
}

.nav-create-menu.context-menu {
  position: absolute;
  min-width: 0;
  width: 100%;
}

.nav-create.is-open .nav-create-menu {
  display: grid;
  gap: 4px;
}

.nav-create-item {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--vivet-text);
  text-decoration: none;
  font-size: var(--text-base);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-create-item:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-create-item i {
  width: 16px;
  text-align: center;
  font-size: var(--text-base);
  color: inherit;
}

html:not([data-theme="dark"]) .nav-create-item i {
  color: #000000;
}

html[data-theme="dark"] .nav-create-item:hover {
  color: #ffffff;
}

html:not([data-theme="dark"]) .nav-create-item:hover {
  color: #000000;
}


/* Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 56px;
  height: 56px;
  min-height: 56px;
  padding: 0 16px;
  text-decoration: none;
  background: #2a3035;
  border-bottom: 1px solid #3b4248;
}

.brand-link:hover {
  background: #343b41;
}

.brand-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-text {
  font-size: var(--text-lg);
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
}

.nav-footer {
  margin-top: auto;
  padding-bottom: 8px;
}

/* Tablet and Phone shell */
@media (max-width: 1200px) {
  html:has(body > .app),
  body:has(> .app) {
    height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100dvh));
    min-height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100dvh));
    overflow: hidden;
    overscroll-behavior-y: none;
  }

  #base_leftHoverZone {
    display: none;
  }

  .app {
    height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100%));
    min-height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100vh));
    overscroll-behavior-y: none;
  }

  .app,
  .app.right-open,
  html[data-right-open="1"] .app,
  .app.no-right-pane,
  .app.no-right-pane.right-open,
  html[data-right-open="1"] .app.no-right-pane {
    grid-template-columns: minmax(0, 1fr);
  }

  .center {
    width: 100%;
    grid-column: 1 / -1;
  }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 200;
  }

  .sidebar.left { left: 0; }
  .sidebar.right { right: 0; }
}

/* Phone */
@media (max-width: 900px) {
  html:has(body > .app),
  body:has(> .app) {
    height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100dvh));
    min-height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100dvh));
    overscroll-behavior-y: none;
  }

  #base_leftHoverZone {
    display: none;
  }

  .app {
    grid-template-columns: 1fr;
    height: 100%;
    min-height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100dvh));
    overscroll-behavior-y: none;
  }

  .sidebar,
  .left-hover,
  .left-backdrop {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 200;
  }

  .center {
    min-height: 0;
    background: var(--vivet-bg);
    box-sizing: border-box;
    padding-top: var(--app-phone-viewport-top, 0px);
  }

  main,
  .sidebar,
  .left-hover,
  .modal {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar.left { left: 0; }
  .sidebar.right { right: 0; }

  .showcase-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .app.dashboard-list-page .center > main {
    padding: 10px;
  }

  .app.report-issue-page .center > main {
    padding: 3px;
  }

  .app.dashboard-list-page .doc-table {
    display: none;
  }

  .app.dashboard-list-page .dashboard-mobile-list {
    display: grid;
    gap: 10px;
  }

  .app.dashboard-list-page .table-actions {
    gap: 8px;
    align-items: center;
  }

  .app.dashboard-list-page .table-actions .search {
    flex: 0 0 auto;
    width: clamp(140px, 44vw, 180px);
  }

  .app.dashboard-list-page .table-actions .search .input {
    width: 100%;
  }

  .app.dashboard-list-page .table-actions-right {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .methods-table .table-actions-middle {
    justify-content: flex-end;
  }

  .dashboard-create-label-desktop {
    display: none;
  }

  .dashboard-create-label-phone {
    display: inline;
  }

  .panel--wide {
    grid-column: span 1;
  }

  .table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal.modal--phone-fullscreen {
    top: var(--app-phone-viewport-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--app-phone-viewport-height, 100dvh);
    max-height: var(--app-phone-viewport-height, 100dvh);
    padding: 0;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
  }

  .modal.modal--phone-fullscreen .modal-card {
    width: 100% !important;
    min-height: var(--consult-modal-height, var(--app-phone-viewport-height, 100vh)) !important;
    min-height: var(--consult-modal-height, var(--app-phone-viewport-height, 100dvh)) !important;
    height: var(--consult-modal-height, var(--app-phone-viewport-height, 100vh)) !important;
    height: var(--consult-modal-height, var(--app-phone-viewport-height, 100dvh)) !important;
    max-height: var(--consult-modal-height, var(--app-phone-viewport-height, 100vh)) !important;
    max-height: var(--consult-modal-height, var(--app-phone-viewport-height, 100dvh)) !important;
    border-radius: 0 !important;
    border: 0 !important;
    margin: 0;
  }

  .modal.modal--phone-fullscreen .modal-card.modal-card--scroll .modal-body {
    max-height: none !important;
  }

  .btn-label-phone-hide {
    display: none;
  }

  .phone-title-hide {
    display: none;
  }
}

html[data-center-size="lg"] .dashboard-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

html[data-center-size="md"] .dashboard-grid,
html[data-center-size="sm"] .dashboard-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

html[data-center-size="xs"] .dashboard-grid {
  grid-template-columns: 1fr;
}

html[data-center-size="sm"] .settings-header-row,
html[data-center-size="xs"] .settings-header-row {
  flex-direction: column;
  align-items: flex-start;
}

html[data-center-size="sm"] .profile-layout,
html[data-center-size="xs"] .profile-layout {
  grid-template-columns: 1fr;
}

html[data-center-size="sm"] .company-grid,
html[data-center-size="xs"] .company-grid,
html[data-center-size="sm"] .profile-grid,
html[data-center-size="xs"] .profile-grid {
  grid-template-columns: 1fr;
}

/* Radius normalization */
:root {
  --radius-sm: 5px;
}

.btn,
.input,
.textarea,
.select-trigger,
.date-input,
.panel,
.panel-header,
.stat-card,
.mini-card,
.badge,
.pill,
.tag,
.select-menu,
.select-option,
.date-panel,
.date-cell,
.icon-btn,
.progress,
.slider,
.check-box {
  border-radius: var(--radius-sm);
}

.panel-header {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.slider::before {
  border-radius: var(--radius-sm);
}

.btn-warning {
  color: #ffffff;
}

.table-actions .btn-outline {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.table-actions .btn-outline:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}


/* Interactive affordances */
button,
.btn,
.toggle,
.select-trigger,
.select-option,
.date-input,
.date-cell,
.icon-btn,
.pill,
.switch,
.range,
input[type="checkbox"] {
  cursor: pointer;
}

.btn,
.icon-btn,
.pill,
.select-trigger,
.date-input {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.icon-btn:hover,
.pill:hover,
.select-trigger:hover,
.date-input:hover {
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.btn:active,
.icon-btn:active,
.pill:active,
.select-trigger:active,
.date-input:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

.btn-outline:hover {
  background: #f1f5f9;
}

.is-hidden {
  display: none !important;
}

.btn-toggle.is-active {
  background: var(--accent);
  color: #ffffff;
}

.btn-toggle.is-active:hover {
  background: var(--accent-dark);
}

.btn-ghost:hover {
  background: #e6edf3;
}

.btn-secondary:hover {
  background: #172330;
}

.btn-success:hover {
  background: #1f8a58;
}

.btn-warning:hover {
  background: #c98905;
}

.save-required {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #a06700;
}

html[data-theme="dark"] .save-required {
  color: #f6d59a;
}

.btn-danger:hover {
  background: #bb2f34;
}

.date-cell:hover {
  background: var(--accent-soft);
}

.date-cell:active {
  background: var(--accent-dark);
  color: #ffffff;
}

.select-option:active {
  background: var(--accent-soft);
}


/* Datepicker month/year selectors */
.date-panel {
  position: relative;
}

.date-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.title-btn {
  border: none;
  background: #f1f5f9;
  color: #1f2d3a;
  padding: 4px 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
}

.title-btn:hover {
  background: #e6edf3;
}

.date-picker-popovers {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 52px;
  display: flex;
  gap: 10px;
  z-index: 30;
  pointer-events: none;
}

.month-picker,
.year-picker {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--vivet-border);
  box-shadow: var(--shadow);
  padding: 10px;
  display: none;
  pointer-events: auto;
}

.date-field.month-open .month-picker,
.date-field.year-open .year-picker {
  display: block;
}

.picker-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6b7280;
  margin-bottom: 8px;
}

.month-grid,
.year-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.month-option,
.year-option {
  border: 1px solid var(--vivet-border);
  background: #f8fafc;
  padding: 6px 4px;
  font-size: var(--text-sm);
  cursor: pointer;
}

.month-option.is-selected,
.year-option.is-selected {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}


/* Datepicker positioning fixes */
.date-panel {
  position: absolute;
}

.date-picker-popovers {
  top: 46px;
  left: 8px;
  right: 8px;
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.picker-nav {
  display: inline-flex;
  gap: 6px;
}

.icon-btn-sm {
  width: 24px;
  height: 24px;
  font-size: 12px;
}


/* Datepicker interaction fix */
.date-picker-popovers {
  pointer-events: none;
}

.date-field.month-open .date-picker-popovers,
.date-field.year-open .date-picker-popovers {
  pointer-events: auto;
}


/* Touch optimizations */
button,
.btn,
.select-trigger,
.select-option,
.date-input,
.date-cell,
.icon-btn,
.pill,
.month-option,
.year-option {
  touch-action: manipulation;
}

@media (pointer: coarse) {
  .btn {
    padding: 11px 18px;
  }

  .select-trigger,
  .date-input {
    padding: 12px 14px;
  }

  .date-cell {
    padding: 10px 0;
  }

  .select-option,
  .month-option,
  .year-option {
    padding: 10px 8px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .icon-btn-sm {
    width: 28px;
    height: 28px;
  }
}


/* CTA links */
.mini-card-cta {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mini-card-cta:hover {
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.mini-card-cta:active {
  transform: translateY(0);
}


/* Toasts */
.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 500;
}

.toast {
  background: #ffffff;
  border: 1px solid var(--vivet-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 14px 10px;
  min-width: 260px;
  max-width: 320px;
  display: grid;
  gap: 6px;
}

.toast--success {
  border-left-color: var(--success);
}

.toast--warning {
  border-left-color: var(--warning);
}

.toast--danger {
  border-left-color: var(--danger);
}

.toast--info {
  border-left-color: var(--info);
}

.toast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.toast-title {
  font-weight: 600;
  font-size: var(--text-base);
  color: #1f2d3a;
}

.toast-body {
  font-size: var(--text-sm);
  color: #5b6772;
}

.toast-close {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 2px;
}

.toast-close:hover {
  color: #1f2d3a;
}

.toast-progress {
  height: 4px;
  background: #edf1f5;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.toast-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  animation-name: toast-progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.toast--success .toast-progress span {
  background: var(--success);
}

.toast--warning .toast-progress span {
  background: var(--warning);
}

.toast--danger .toast-progress span {
  background: var(--danger);
}

.toast--info .toast-progress span {
  background: var(--info);
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}


/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 450;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

@supports (-webkit-touch-callout: none) {
  .modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
  }

  .modal-overlay.open {
    opacity: 0;
    pointer-events: none;
  }

  .modal.open {
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  z-index: 460;
  overflow-y: auto;
  isolation: isolate;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

#base_modalConfirm,
#modalConfirm {
  z-index: 470;
}


.modal-card {
  background: #ffffff;
  border: 1px solid var(--vivet-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  width: min(720px, 96vw);
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  z-index: 1;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.modal-card.modal-card--wide {
  width: min(920px, 96vw);
}

.modal-card.modal-card--scroll .modal-body {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

@media (max-height: 700px) {
  .modal-card.modal-card--scroll .modal-body {
    max-height: calc(100vh - 200px);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--vivet-border);
}

.modal-head h3 {
  margin: 0;
  font-size: var(--text-lg);
}

.modal-body {
  padding: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.modal-footer {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--vivet-border);
  position: relative;
  z-index: 0;
}

.modal-footer.modal-footer-split {
  justify-content: space-between;
  align-items: center;
}

.modal-footer-left,
.modal-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-footer-right {
  margin-left: auto;
}

/* Public contact component, documented in wireframes/kitchensink.html. */
body.public-contact-open { overflow: hidden; }
.public-contact-trigger.text-link { border: 0; padding: 0; background: transparent; font-family: inherit; cursor: pointer; }
.public-contact-modal { align-items: center; padding: 24px; }
.public-contact-modal .modal-card { width: min(640px, 96vw); max-height: calc(100dvh - 48px); color: #222f3e; --vivet-text: #222f3e; --vivet-border: #dce3e9; color-scheme: light; }
.public-contact-modal .modal-head { padding: 20px 24px; gap: 16px; }
.public-contact-modal .modal-head h3 { font-size: 23px; font-weight: 600; letter-spacing: -.3px; }
.public-contact-modal .modal-head h3 i { color: #1378a2; margin-right: 6px; }
.public-contact-modal .modal-body { padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.public-contact-modal .modal-footer { padding: 16px 24px 20px; flex: none; }
.public-contact-modal .form-grid { margin-top: 20px; gap: 18px; }
.public-contact-modal .field label { font-size: 15px; color: #222f3e; }
.public-contact-modal :is(.input, .textarea) { box-sizing: border-box; font-family: inherit; font-size: 16px; line-height: 1.4; background: #f9fafb; }
.public-contact-modal [aria-invalid="true"] { border-color: #b42318; }
.public-contact-modal .muted { color: #60717e; font-size: 15px; line-height: 1.5; }
.public-contact-modal .public-contact-optional { font-weight: 400; color: #60717e; }
.public-contact-modal .public-contact-error { display: block; color: #b42318; font-size: 13px; line-height: 1.4; }
.public-contact-modal .public-contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.public-contact-modal altcha-widget { display: block; margin-top: 20px; color-scheme: light; }
.public-contact-modal .public-contact-privacy { margin-top: 14px; font-size: 13px; }
.public-contact-modal .public-contact-status { padding: 14px 16px; border: 1px solid #f0c2bc; border-radius: 6px; background: #fff5f3; color: #a32b20; font-size: 16px; line-height: 1.5; }
.public-contact-modal .public-contact-status.is-success { border-color: #b8ded0; background: #effaf5; color: #236b50; }
.public-contact-modal [hidden] { display: none !important; }
@media (max-width: 700px) {
  .public-contact-modal { padding: 16px; }
  .public-contact-modal .modal-card { max-height: calc(100dvh - 32px); width: 100%; }
  .public-contact-modal :is(.modal-head, .modal-body, .modal-footer) { padding-left: 18px; padding-right: 18px; }
  .public-contact-modal .form-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
}

.use-project-modal-content.is-hidden,
.use-project-modal-footer.is-hidden {
  display: none !important;
}

.use-project-method-intro {
  margin: 0 0 6px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--vivet-text);
}

.use-project-method-name {
  font-weight: 700;
}

.use-project-method-description {
  margin: 0 0 12px;
  white-space: pre-wrap;
}

.use-project-modal-preparing {
  display: none;
  min-height: 260px;
  padding: 20px 16px 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.use-project-modal-preparing.is-active {
  display: flex;
}

.use-project-modal-preparing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
}

.use-project-modal-preparing-title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--vivet-text);
}

.use-project-modal-preparing-meta {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--vivet-text);
}

.use-project-modal-preparing-note {
  margin: 12px 0 0;
}

.use-project-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2px;
}

.use-project-loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  animation: use-project-loader-pulse 1.1s infinite ease-in-out;
}

.use-project-loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.use-project-loader span:nth-child(3) {
  animation-delay: 0.3s;
}

.use-project-progress {
  width: min(260px, 80vw);
  height: 8px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(36, 167, 198, 0.15);
  overflow: hidden;
  position: relative;
}

.use-project-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  border-radius: 999px;
  background: var(--accent);
  animation: use-project-progress-slide 1.2s infinite ease-in-out;
}

@keyframes use-project-loader-pulse {
  0%,
  80%,
  100% {
    transform: scale(0.68);
    opacity: 0.35;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes use-project-progress-slide {
  0% {
    left: -35%;
  }
  100% {
    left: 100%;
  }
}

.doc-upload-widget {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
}

.doc-upload-picker,
.doc-upload-input,
.doc-upload-submit {
  min-height: 40px;
}

.doc-upload-picker {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-right: 0;
  border-top-left-radius: var(--radius-sm);
  border-bottom-left-radius: var(--radius-sm);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.doc-upload-picker:hover {
  background: var(--accent-dark);
}

.doc-upload-picker.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.doc-upload-picker:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: -2px;
}

.doc-upload-input {
  border-radius: 0;
}

.doc-upload-input:focus {
  outline: none;
  outline-offset: 0;
}

.doc-upload-submit {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.doc-upload-status {
  display: none;
}

.doc-upload-documents {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--vivet-border);
}

.doc-upload-documents-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doc-upload-documents-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: #1f2d3a;
}

.doc-upload-documents-count {
  font-size: var(--text-sm);
}

.doc-upload-documents-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
}

.doc-upload-document-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--vivet-border) 72%, transparent);
}

.doc-upload-document-item:last-child {
  border-bottom: 0;
}

.doc-upload-document-name {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  color: var(--text);
  font-weight: 400;
}

.doc-upload-document-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.doc-upload-document-scope {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
  width: 74px;
  min-width: 74px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--vivet-border);
  background: #ffffff;
  color: #0f172a;
  font-size: var(--text-sm);
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
}

.doc-upload-document-scope:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.doc-upload-document-action.icon-btn,
.doc-upload-document-scope.icon-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  color: #64748b;
}

.doc-upload-document-action.icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.doc-upload-document-action.icon-btn:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  color: var(--accent);
}

.doc-upload-document-action.icon-btn:active {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.doc-upload-document-action.icon-btn:focus-visible,
.doc-upload-document-scope:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
  border-radius: 4px;
}

.doc-upload-documents-empty {
  margin: 8px 0 0;
}

.doc-upload-widget.is-busy {
  opacity: 0.78;
}

html[data-theme="dark"] .doc-upload-picker:hover {
  background: var(--accent-dark);
}

.modal .select-menu,
.modal .date-panel {
  z-index: 120;
  position: absolute;
}

.modal .date-field,
.modal .select-field {
  position: relative;
  z-index: 2;
}

.select-menu {
  max-height: calc(4 * 40px);
  overflow-y: auto;
  z-index: 200;
}

.select-field {
  z-index: 1;
}

.select-field.open {
  z-index: 210;
}

.select-field.open-up .select-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.connections-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.monitor-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
}

.monitor-log-content-panel {
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.monitor-log-content-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.monitor-view-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.monitor-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
}

.monitor-toolbar-label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
  font-weight: 600;
}

.monitor-log-select {
  min-width: 300px;
  max-width: 300px;
}

.monitor-log-select .select-trigger {
  width: 100%;
  min-height: 42px;
}

.monitor-log-table th:last-child,
.monitor-log-table td:last-child {
  width: 130px;
}

.monitor-log-table .monitor-delete-form {
  margin: 0;
}

.monitor-selected-delete-form {
  margin: 0;
}

.monitor-selected-actions {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  align-self: center;
}

.settings-page .monitor-selected-actions {
  margin-top: 0;
}

.monitor-toolbar .btn {
  min-height: 42px;
}

.monitor-delete-old-form {
  margin: 0;
}

.monitor-log-content {
  margin: 0;
  border: 1px solid var(--vivet-border);
  border-radius: 12px;
  background: #f6f8fb;
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre;
  overflow: auto;
  max-height: none;
  min-height: 0;
  flex: 1 1 auto;
}

.monitor-content-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.monitor-content-controls .search-wrapper {
  position: relative;
  max-width: 300px;
  margin: 0;
  padding: 0;
  flex: 1 1 210px;
}

.monitor-content-controls .search-icon {
  position: absolute;
  left: 15px;
  top: calc(50% + 2px);
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.monitor-content-controls .search-input {
  width: 100%;
  padding: 8px 40px 8px 40px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--vivet-text);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
}

.monitor-content-controls .clear-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  cursor: pointer;
  font-size: 18px;
  display: none;
  user-select: none;
}

html[data-theme="dark"] .monitor-content-controls .search-input {
  background: #0f171d;
  border-color: #2b3b46;
  color: #e6eef6;
}

html[data-theme="dark"] .monitor-content-controls .search-input::placeholder {
  color: #a8b7c4;
}

html[data-theme="dark"] .monitor-content-controls .search-icon,
html[data-theme="dark"] .monitor-content-controls .clear-icon {
  color: #a8b7c4;
}

.monitor-log-content-table td,
.monitor-log-content-table th {
  max-width: 420px;
  vertical-align: top;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.monitor-log-content-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e6ebf1;
}

.monitor-log-content-table {
  width: 100%;
  max-width: 100%;
  max-height: none;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: auto;
  margin-top: 0;
}

.monitor-log-content-table .table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.monitor-log-content-body .table-footer {
  flex-shrink: 0;
  margin-top: 10px;
}

.monitor-log-content-panel > .panel-header {
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
}

.monitor-selected-log-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: inherit;
}

html[data-theme="dark"] .monitor-log-content-table thead th {
  background: #1a2430;
}

@media (max-width: 900px) {
  .monitor-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .monitor-view-form {
    width: 100%;
  }

  .monitor-log-select {
    max-width: 100%;
    width: 100%;
  }

  .monitor-selected-actions {
    flex-wrap: wrap;
  }

  .monitor-content-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .monitor-content-controls .search-wrapper {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .monitor-content-controls .search-input {
    min-width: 0;
    width: 100%;
  }
}

.connections-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.connections-header h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.connections-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
}

.connections-inline-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: space-between;
}

.connections-actions .search-wrapper {
  position: relative;
}

.search-wrapper .clear-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  display: none;
  font-size: 1rem;
}

.connections-actions .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vivet-muted);
}

.connections-actions .input {
  padding-left: 36px;
  min-width: 240px;
}

.invite-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite-inline .input {
  min-width: 280px;
  padding-left: 12px;
}

.connections-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.connection-card {
  border: 1px solid var(--vivet-border);
  border-radius: 12px;
  padding: 14px;
  background: var(--vivet-panel);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.invite-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.connection-card:hover .invite-actions {
  opacity: 1;
  pointer-events: auto;
}

.connections-hover-actions {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.connection-card:hover .connections-hover-actions,
.invite-response-row:hover .connections-hover-actions {
  opacity: 1;
  pointer-events: auto;
}

.invite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-response-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.invite-response-actions {
  margin-left: auto;
}

@media (max-width: 720px) {
  .invite-response-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .invite-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .invite-inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .invite-inline .input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .invite-inline .btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }
}

.connection-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.connection-card-header > div {
  min-width: 0;
}

.connection-card-header strong,
.connection-card-header .muted {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(48, 129, 172, 0.12);
  color: #3081ac;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.invite-card {
  background: rgba(48, 129, 172, 0.05);
}


@keyframes chat-ellipsis {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .connections-columns {
    grid-template-columns: 1fr;
  }
  .connections-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .connections-inline-form {
    flex-direction: column;
    align-items: stretch;
  }
  .invite-inline {
    width: 100%;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .invite-inline .input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  .invite-inline .btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }
  .connections-actions .search-wrapper .input {
    min-width: 100%;
  }
}

@media (max-width: 600px) {
  .invite-inline {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .invite-inline .input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .invite-inline .btn {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    padding: 9px 16px;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .modal {
    padding: 0;
  }

  .modal-card {
    width: 100%;
  }

  .modal-footer {
    flex-direction: row;
    justify-content: flex-end;
  }

  .modal-card.modal-card--wide {
    width: 100%;
  }

  .modal-card.modal-card--scroll {
    max-height: 100%;
    border-radius: 0;
  }

  .modal-card.modal-card--scroll .modal-body {
    max-height: none;
  }
}

@media (max-width: 900px) {
  html[data-ios-keyboard-open="1"] .modal.open {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100dvh));
    max-height: var(--app-phone-shell-height, var(--app-phone-viewport-height, 100dvh));
    padding: 0 0 0 0;
    padding-top: var(--app-phone-viewport-top, 0px);
    overflow: hidden;
    box-sizing: border-box;
  }

  html[data-ios-keyboard-open="1"] .modal.open .modal-card.modal-card--scroll {
    max-height: var(--app-phone-viewport-height, 100dvh);
  }

  html[data-ios-keyboard-open="1"] .modal.open .modal-card.modal-card--scroll .modal-body {
    max-height: none;
  }
}

/* Dark theme final pass */
html[data-theme="dark"] body {
  background: var(--vivet-bg);
  color: var(--vivet-text);
}

html[data-theme="dark"] .panel,
html[data-theme="dark"] .stat-card,
html[data-theme="dark"] .mini-card {
  background: var(--vivet-panel);
  border-color: var(--vivet-border);
}

html[data-theme="dark"] .input,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] .select-trigger,
html[data-theme="dark"] .date-input {
  background: #0f171d;
  border-color: #2b3b46;
  color: var(--vivet-text);
}

html[data-theme="dark"] .select-menu,
html[data-theme="dark"] .date-panel,
html[data-theme="dark"] .month-picker,
html[data-theme="dark"] .year-picker {
  background: #10171d;
  border-color: #2b3b46;
}

html[data-theme="dark"] .title-btn,
html[data-theme="dark"] .month-option,
html[data-theme="dark"] .year-option {
  background: #0f171d;
  border-color: #2b3b46;
  color: #e0e9f2;
}

html[data-theme="dark"] .date-cell {
  background: #0f171d;
  color: #e0e9f2;
}

html[data-theme="dark"] .monitor-log-content {
  background: #0d171f;
  border-color: #2b3b46;
  color: #d7e3ee;
}

html[data-theme="dark"] .date-cell.muted {
  background: #101820;
  color: #9fb1bf;
}

html[data-theme="dark"] .table th {
  background: #131c23;
  border-bottom-color: #22303a;
  color: #b7c6d3;
}

html[data-theme="dark"] .table td {
  border-bottom-color: #1f2b34;
  color: #d7e3ee;
}

/* Project step timeline */
.project-step-timeline-zone {
  position: fixed;
  z-index: 75;
  background: transparent;
}

.project-step-timeline-modal {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: min(360px, calc(100vw - 20px));
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.project-step-timeline-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-step-timeline-modal .panel {
  margin: 0;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.project-step-timeline-modal .panel-header h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-step-timeline-body {
  max-height: min(68vh, 640px);
  overflow-y: auto;
  padding: 6px;
}

.project-step-timeline-empty {
  padding: 10px;
}

.project-step-timeline-empty.is-hidden {
  display: none;
}

.project-step-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-step-timeline-item {
  margin: 0;
}

.project-step-timeline-action {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--vivet-text);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
}

.project-step-timeline-action:hover,
.project-step-timeline-action:focus {
  border-color: rgba(33, 171, 207, 0.4);
  background: rgba(33, 171, 207, 0.08);
  outline: none;
}

.project-step-timeline-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #0f172a;
  background: rgba(148, 163, 184, 0.28);
}

.project-step-timeline-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.project-step-timeline-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--vivet-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-step-timeline-phase {
  font-size: var(--text-xs);
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-step-timeline-current {
  font-size: var(--text-xs);
  font-weight: 700;
  color: #0b75ad;
}

.project-step-timeline-item.is-active .project-step-timeline-action {
  border-color: rgba(33, 171, 207, 0.55);
  background: rgba(33, 171, 207, 0.14);
}

.project-step-timeline-item.is-active .project-step-timeline-index {
  color: #ffffff;
  background: #21abcf;
}

.project-step-timeline-item.is-complete:not(.is-active) .project-step-timeline-index {
  color: #ffffff;
  background: var(--success);
}

html[data-theme="dark"] .project-step-timeline-modal .panel {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .project-step-timeline-modal .panel-header h3,
html[data-theme="dark"] .project-step-timeline-action,
html[data-theme="dark"] .project-step-timeline-name,
html[data-theme="dark"] .project-step-timeline-empty {
  color: #e2edf7;
}

html[data-theme="dark"] .project-step-timeline-phase {
  color: #a8b7c4;
}

html[data-theme="dark"] .project-step-timeline-action:hover,
html[data-theme="dark"] .project-step-timeline-action:focus {
  border-color: rgba(55, 191, 224, 0.45);
  background: rgba(55, 191, 224, 0.12);
}

html[data-theme="dark"] .project-step-timeline-index {
  color: #e2edf7;
  background: rgba(100, 116, 139, 0.42);
}

html[data-theme="dark"] .project-step-timeline-item.is-active .project-step-timeline-index {
  color: #0f172a;
  background: #56c4e3;
}

html[data-theme="dark"] .project-step-timeline-item.is-complete:not(.is-active) .project-step-timeline-index {
  color: #ffffff;
  background: var(--success);
}

html[data-theme="dark"] .project-step-timeline-current {
  color: #7ed9f2;
}

.step-edit-textarea {
  resize: vertical;
}

/* Method explorer: canonical desktop, tablet and phone carousel. */
.method-explorer{margin-top:34px;padding:25px 28px 22px;background:#fff;border:1px solid #e3e7ec;border-radius:7px;box-shadow:0 12px 34px #222f3e08}
.method-explorer .method-filters{display:flex;flex-wrap:wrap;gap:9px;padding-bottom:21px;border-bottom:1px solid #e3e7ec}
.method-explorer .method-filter{display:inline-flex;align-items:center;gap:8px;border:1px solid #d7e0e5;border-radius:4px;background:#fff;color:#52636f;padding:10px 13px;font:600 15px/1.2 'Source Sans Pro','Segoe UI',sans-serif;cursor:pointer;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.method-explorer .method-filter i{color:#748793;font-size:14px}
.method-explorer .method-filter:hover{border-color:var(--brand-indigo);color:var(--brand-indigo)}
.method-explorer .method-filter.is-active{background:#e9f7fa;border-color:#8ccfdd;color:#115c78}
.method-explorer .method-filter.is-active i{color:var(--brand-indigo)}
.method-explorer .carousel-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:23px 0 13px}
.method-explorer .carousel-kicker{font-size:12px;line-height:1.2;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#748793}
.method-explorer .carousel-heading h3{font-size:21px;line-height:1.25;font-weight:600;margin-top:5px}
.method-explorer .method-range{font-size:14px;color:#60717e;white-space:nowrap}
.method-explorer .method-range span{color:var(--brand-indigo);padding-left:5px}
.method-explorer .method-carousel{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:12px}
.method-explorer .carousel-arrow{width:42px;height:42px;border:1px solid #cad7de;border-radius:50%;background:#fff;color:#1378a2;cursor:pointer;transition:background-color .18s ease,color .18s ease,border-color .18s ease}
.method-explorer .carousel-arrow:hover:not(:disabled){background:#1378a2;border-color:#1378a2;color:#fff}
.method-explorer .carousel-arrow:disabled{opacity:.35;cursor:default}
.method-explorer .carousel-arrow:focus-visible,.method-explorer .method-filter:focus-visible{outline:3px solid #21abcf;outline-offset:3px}
.method-explorer .method-track{display:flex;gap:17px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain;padding:7px 2px 17px;scrollbar-width:none}
.method-explorer .method-track::-webkit-scrollbar{display:none}
.method-explorer .method-card{flex:0 0 calc((100% - 34px)/3);min-width:0;overflow:hidden;scroll-snap-align:start;background:#fff;border:1px solid #e1e7ea;border-radius:5px;box-shadow:0 8px 24px #222f3e0a;cursor:default}
.method-explorer .method-card-image{display:block;width:100%;height:142px;object-fit:cover}
.method-explorer .method-card-body{display:flex;flex-direction:column;min-height:230px;padding:18px 19px 15px}
.method-explorer .method-card-kicker{font-size:12px;line-height:1.3;font-weight:700;letter-spacing:.55px;color:var(--brand-indigo);text-transform:uppercase}
.method-explorer .method-card h4{font-size:20px;line-height:1.2;font-weight:600;margin:10px 0 9px}
.method-explorer .method-card-body>p:not(.method-card-kicker){font-size:15px;line-height:1.48;color:#60717e;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.method-explorer .method-card-foot{margin-top:auto;padding-top:17px;font-size:12px;color:#7b8b94}
.method-explorer .method-note{margin:6px 52px 0;font-size:14px;color:#74828b;line-height:1.45}
.method-explorer{color:#222f3e;font-family:'Source Sans Pro','Segoe UI',sans-serif;--brand-indigo:#1378a2}
.method-explorer :is(p,h3){margin:0}
.method-explorer .method-swipe-hint{display:none}
@media(max-width:1050px){.method-explorer .method-card{flex-basis:calc((100% - 17px)/2)}}
@media(max-width:700px){
  .method-explorer{margin-top:24px;padding:18px 16px}
  .method-explorer[data-method-full-bleed]{margin-left:-24px;margin-right:-24px;border-left:0;border-right:0;border-radius:0;box-shadow:none}
  .method-explorer .method-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:14px;scrollbar-width:none}
  .method-explorer .method-filters::-webkit-scrollbar{display:none}
  .method-explorer .method-filter{flex:none;font-size:14px;padding:10px 12px;min-height:44px}
  .method-explorer .carousel-heading{display:block;padding:19px 0 13px}
  .method-explorer .carousel-heading h3{font-size:22px;line-height:1.25;margin-top:6px}
  .method-explorer .method-range{font-size:14px;margin-top:7px}
  .method-explorer .method-carousel{grid-template-columns:minmax(0,1fr) 44px 44px;gap:12px}
  .method-explorer .method-track{grid-column:1/-1;grid-row:1;gap:12px;padding:7px 0 12px}
  .method-explorer [data-carousel-prev]{grid-column:2;grid-row:2}
  .method-explorer [data-carousel-next]{grid-column:3;grid-row:2}
  .method-explorer .carousel-arrow{width:44px;height:44px;font-size:16px}
  .method-explorer .method-swipe-hint{display:block;grid-column:1;grid-row:2;font-size:14px;color:#60717e;line-height:1.4}
  .method-explorer .method-card{flex-basis:calc(100% - 24px);display:flex;flex-direction:column;padding:0;gap:0}
  .method-explorer .method-card-image{height:auto;aspect-ratio:16/10}
  .method-explorer .method-card-body{min-height:0;flex:1;padding:16px}
  .method-explorer .method-card h4{font-size:22px;line-height:1.25}
  .method-explorer .method-card-body>p:not(.method-card-kicker){font-size:16px;line-height:1.5}
  .method-explorer .method-note{margin:13px 0 0;font-size:13px}
}
@media(prefers-reduced-motion:reduce){.method-explorer .method-filter,.method-explorer .carousel-arrow{transition:none}.method-explorer .method-track{scroll-behavior:auto}}

/* Public pages share link states; keyboard focus retains the common outline. */
.vivet-marketing a,.vivet-marketing a:is(:hover,:focus,:focus-visible,:active){text-decoration:none}

/* Public services: canonical overview, deployment options and detail sections. */
.services-page{--services-ink:#222f3e;--services-blue:#1378a2;--services-aqua:#79d6e9;font-family:'Source Sans Pro','Segoe UI',sans-serif;color:var(--services-ink);background:#fff;line-height:1.5}
.services-page *{box-sizing:border-box}
.services-page :is(h1,h2,h3,p){margin:0}
.services-page .services-wrap{width:100%;max-width:1280px;margin:0 auto;padding-left:44px;padding-right:44px}
.services-overview{padding-top:40px;padding-bottom:60px}
.services-page .services-overview h1{font-size:48px;line-height:1.1;font-weight:600;letter-spacing:-1.4px}
.services-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:36px}
.services-overview-item{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:0 32px}
.services-overview-item:first-child{padding-left:0}
.services-overview-item:last-child{padding-right:0}
.services-overview-item+.services-overview-item{border-left:1px solid #dce3e8}
.services-overview-icon{color:var(--services-blue);font-size:37px;line-height:1.2;margin-bottom:18px}
.services-page .services-overview-item h2{font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.4px}
.services-page .services-overview-item p{font-size:18px;line-height:1.5;color:#60717e;margin-top:12px;margin-bottom:12px;max-width:30ch}
.services-page a.services-detail-link{display:inline-flex;align-items:center;gap:14px;min-height:44px;margin-top:auto;color:var(--services-blue);font-size:17px;font-weight:600;text-decoration:none}
.services-detail-link i{font-size:13px}
.services-section{padding-top:64px;padding-bottom:64px;scroll-margin-top:24px}
.services-page .services-kicker{display:flex;align-items:center;gap:14px;color:var(--services-blue);font-size:30px;line-height:1.25;font-weight:600;letter-spacing:0;text-transform:none;margin-bottom:20px}
.services-kicker>span{flex-shrink:0;font-size:20px;line-height:1.3;padding-right:14px;border-right:1px solid currentColor}
.services-page .services-detail-heading{font-size:clamp(34px,3.7vw,46px);line-height:1.12;font-weight:600;letter-spacing:-1.1px}
.services-page .services-lead{font-size:20px;line-height:1.55;color:#60717e;margin-top:20px;max-width:70ch}
.services-platform,.services-consulting{color:#fff;background:var(--services-ink)}
.services-page :is(.services-platform,.services-consulting) .services-kicker{color:var(--services-aqua)}
.services-page .services-platform .services-lead{color:#fff}
.services-split.services-platform-intro{align-items:start;margin-top:24px}
.services-page .services-platform-intro .services-lead{margin-top:0;max-width:none}
.services-page .services-platform-details .services-deployment-option p{max-width:none}
.services-deployment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;margin-top:42px}
.services-deployment-option{display:flex;align-items:flex-start;gap:20px;color:#fff;min-width:0}
.services-deployment-option>i{flex-shrink:0;font-size:35px;line-height:1.2;width:44px;text-align:center;color:#fff}
.services-page .services-deployment-option h3{font-size:23px;line-height:1.2;font-weight:600;color:#fff}
.services-page .services-deployment-option p{font-size:18px;line-height:1.5;margin-top:10px;color:#fff;max-width:25ch}
.services-advisory{background:#f5f7fa}
.services-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px;align-items:center}
.services-detail-copy{min-width:0}
.services-photo{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:5px}
.services-scope{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px;list-style:none;padding:0;margin:30px 0 0}
.services-scope li{display:flex;align-items:flex-start;gap:12px;font-size:17px;font-weight:600;line-height:1.4}
.services-scope i{font-size:20px;line-height:1.2;width:24px;flex-shrink:0;color:var(--services-blue)}
.services-advisory-intro{margin-top:28px}
.services-page .services-advisory-intro .services-lead:first-child{margin-top:0}
.services-scope-details{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 36px;margin-top:40px}
.services-scope-details li{font-weight:400;gap:14px}
.services-scope-details li>div{min-width:0}
.services-scope-details i{font-size:22px;width:26px;margin-top:3px}
.services-page .services-scope-details h3{font-size:22px;line-height:1.25;font-weight:600}
.services-page .services-scope-details p{font-size:18px;line-height:1.55;color:#60717e;margin-top:12px}
.services-page .services-advisory-outcome{font-size:20px;line-height:1.55;color:var(--services-ink);margin-top:36px;padding-top:26px;border-top:1px solid #dce3e8}
.services-page .services-consulting .services-detail-heading span{color:var(--services-aqua)}
.services-consulting-intro{margin-top:28px}
.services-consulting-intro .services-photo{aspect-ratio:16/10}
.services-page .services-consulting .services-lead{color:#d2dfe7}
.services-page .services-consulting-intro .services-lead:first-child{margin-top:0}
.services-consulting-scope{grid-template-columns:repeat(2,minmax(0,1fr))}
.services-consulting-scope i{color:var(--services-aqua)}
.services-page .services-consulting-scope p{color:#d2dfe7}
.services-handover{margin-top:28px;padding-top:24px;border-top:1px solid #526574}
.services-page .services-handover h3{font-size:28px;line-height:1.2;font-weight:600;color:var(--services-aqua);letter-spacing:-.3px}
.services-page .services-handover p{font-size:18px;line-height:1.55;color:#d2dfe7;margin-top:14px}
.services-cta{text-align:center;padding-top:64px;padding-bottom:68px}
.services-page .services-cta .services-detail-heading{font-size:40px}
.services-page .services-cta p{font-size:22px;color:var(--services-blue);margin-top:16px}
.services-cta .btn{margin-top:24px}
.services-page .services-commercial-note{font-size:17px;line-height:1.5;color:#d2dfe7;margin-top:30px}
.services-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;margin-top:28px}
.services-page a.services-next-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:var(--services-aqua);font-size:17px;line-height:1.4;font-weight:600;text-decoration:none}
.services-page a.services-next-link:hover{color:#fff}
.services-page :is(.services-platform,.services-consulting) .services-actions .btn-secondary{background:#fff;color:var(--services-ink)}
.services-page :is(.services-platform,.services-consulting) .services-actions .btn-secondary:hover{background:var(--services-aqua);color:var(--services-ink)}
@media(max-width:1050px){
  .services-page .services-wrap{padding-left:30px;padding-right:30px}
  .services-overview-item{padding-left:24px;padding-right:24px}
  .services-page .services-overview-item h2{font-size:22px}
  .services-split{gap:36px}
  .services-deployment-grid{gap:28px}
  .services-deployment-option{display:block}
  .services-deployment-option>i{display:block;margin-bottom:16px;text-align:left}
  .services-scope{gap:18px 20px}
  .services-scope-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 32px}
}
@media(max-width:800px){
  .services-split{grid-template-columns:1fr;gap:32px}
  .services-platform-intro{gap:20px}
  .services-photo{max-height:460px;object-position:center}
  .services-consulting .services-detail-copy{grid-row:1}
  .services-consulting .services-photo{grid-row:2}
}
@media(max-width:700px){
  .services-page .services-wrap{padding-left:24px;padding-right:24px}
  .services-overview{padding-top:26px;padding-bottom:38px}
  .services-page .services-overview h1{font-size:38px;letter-spacing:-1px}
  .services-overview-grid{grid-template-columns:1fr;margin-top:28px;gap:24px}
  .services-overview-item{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:18px;padding:0}
  .services-overview-item+.services-overview-item{border-left:0;border-top:1px solid #dce3e8;padding-top:24px}
  .services-overview-icon{grid-column:1;grid-row:1/4;font-size:30px;margin:0}
  .services-page .services-overview-item h2{grid-column:2;font-size:23px}
  .services-page .services-overview-item p{grid-column:2;font-size:18px;margin:8px 0 4px;max-width:none}
  .services-page a.services-detail-link{grid-column:2;justify-self:start;font-size:17px}
  .services-section{padding-top:44px;padding-bottom:44px}
  .services-page .services-kicker{font-size:24px;gap:12px;margin-bottom:16px}
  .services-kicker>span{font-size:18px;padding-right:12px}
  .services-page .services-detail-heading{font-size:35px;letter-spacing:-.8px}
  .services-page .services-lead{font-size:19px;margin-top:16px}
  .services-deployment-grid{grid-template-columns:1fr;gap:28px;margin-top:30px}
  .services-deployment-option{display:flex;gap:18px}
  .services-deployment-option>i{margin:0;font-size:30px;width:38px}
  .services-page .services-deployment-option h3{font-size:23px}
  .services-page .services-deployment-option p{font-size:18px;max-width:none;margin-top:6px}
  .services-scope{gap:20px 18px;margin-top:26px}
  .services-scope li{font-size:16px;gap:10px}
  .services-scope i{font-size:18px;width:20px}
  .services-scope-details{grid-template-columns:1fr;gap:26px;margin-top:30px}
  .services-scope-details i{font-size:21px;width:24px}
  .services-page .services-advisory-outcome{font-size:19px;margin-top:30px;padding-top:22px}
  .services-page .services-handover h3{font-size:27px}
  .services-cta{padding-top:44px;padding-bottom:48px}
  .services-page .services-cta .services-detail-heading{font-size:34px}
  .services-page .services-cta p{font-size:21px}
}
@media(max-width:420px){.services-scope{grid-template-columns:1fr;gap:17px}.services-scope li{font-size:18px}}

/* Public audience cards, shared by the original concept and the canonical dark section. */
.scale-audiences{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;padding-bottom:86px}
.scale-story{min-width:0}
.story-photo{display:block;width:100%;height:auto;aspect-ratio:1.28;object-fit:cover;border-radius:5px}
.story-copy{padding:27px 2px 0}
.scale-audiences .story-copy h2{font-size:29px;letter-spacing:-.7px;line-height:1.2;font-weight:600;margin-top:15px;display:flex;align-items:center;gap:10px}
.story-copy h2 i{font-size:18px;color:#1378a2;flex-shrink:0}
.story-copy>p:not(.eyebrow){font-size:18px;line-height:1.55;color:#60717e;margin-top:17px}
.story-copy .text-link{color:#1378a2}
@media(max-width:1050px){.scale-audiences{gap:22px}.scale-audiences .story-copy h2{font-size:24px}.story-copy>p:not(.eyebrow){font-size:17px}}
@media(max-width:700px){.scale-audiences{grid-template-columns:1fr;gap:44px;padding-bottom:55px}.story-photo{aspect-ratio:1.5}.story-copy{padding-top:22px}.scale-audiences .story-copy h2{font-size:29px}.story-copy>p:not(.eyebrow){font-size:18px}.story-copy .text-link{margin-top:18px}}

/* Public audience section: full-width brand navy with accessible light text. */
.scale-audience-section{background:#222f3e;color:#fff;padding:64px 0 72px;font-family:'Source Sans Pro','Segoe UI',sans-serif}
.scale-audience-section,.scale-audience-section *{box-sizing:border-box}
.scale-audience-section .scale-audiences{max-width:1280px;margin:0 auto;padding:0 44px}
.scale-audience-section .story-copy .eyebrow{font-size:20px;line-height:1.3;font-weight:600;letter-spacing:0;text-transform:none;margin:0}
.scale-audience-section .story-copy h2{color:#fff;margin-bottom:0}
.scale-audience-section .story-copy>p:not(.eyebrow){color:#d2dfe7;margin-bottom:0}
.scale-audience-section .text-link{display:inline-flex;align-items:center;gap:17px;font-size:16px;line-height:1.4;font-weight:600;text-decoration:none;margin-top:24px}
.scale-audience-section .story-copy :is(.eyebrow,.text-link),.scale-audience-section .story-copy h2 i{color:#79d6e9}
.scale-audience-section .story-copy .text-link:hover{color:#fff}
.scale-audience-section .text-link:focus-visible{outline:3px solid #79d6e9;outline-offset:5px}
.vivet-marketing .scale-hero.vivet-flight-banner:has(+ .scale-audience-section){margin-bottom:0}
.scale-audience-section+.product-overview{border-top:0}
@media(max-width:1050px){.scale-audience-section .scale-audiences{padding-left:30px;padding-right:30px}}
@media(max-width:700px){.scale-audience-section{padding-top:44px;padding-bottom:48px}.scale-audience-section .scale-audiences{padding-left:24px;padding-right:24px}.scale-audience-section .story-copy .text-link{margin-top:18px}}

/* Public product overview: canonical copy and an illustrative project, never live controls. */
.product-overview{background:#fff;color:#222f3e;font-family:'Source Sans Pro','Segoe UI',sans-serif;padding:70px 0 76px;border-top:1px solid #e3e7ec;border-bottom:1px solid #e3e7ec}
.product-overview,.product-overview *{box-sizing:border-box}
.product-overview :is(h2,h3,p,ul,ol,figure){margin:0}
.product-overview-inner{max-width:1280px;margin:0 auto;padding:0 44px}
.product-overview .product-overview-eyebrow{font-size:20px;line-height:1.3;font-weight:600;color:#1378a2}
.product-overview h2{font-size:clamp(40px,3.9vw,56px);line-height:1.1;letter-spacing:-1.4px;font-weight:600;margin-top:18px}
.product-overview h2>span{display:block;color:#1378a2;margin-top:5px}
.product-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.32fr);grid-template-areas:'lead visual' 'benefits visual' 'link visual';gap:30px 48px;margin-top:38px;align-items:start}
.product-overview .product-overview-lead{grid-area:lead;font-size:20px;line-height:1.55;color:#60717e}
.product-overview .product-benefits{grid-area:benefits;display:grid;gap:25px;list-style:none;padding:0}
.product-benefits>li{display:flex;gap:18px;align-items:flex-start;min-width:0}
.product-benefits>li>i{flex-shrink:0;width:34px;font-size:30px;line-height:1.2;text-align:center;color:#1378a2;margin-top:3px}
.product-benefits>li>div{min-width:0}
.product-overview .product-benefits h3{font-size:23px;line-height:1.2;font-weight:600;letter-spacing:-.25px}
.product-overview .product-benefits p{font-size:18px;line-height:1.45;color:#60717e;margin-top:7px}
.product-benefits .product-benefit-divider{border-top:1px solid #dce3e8;padding-top:25px}
.product-overview a.product-overview-link{grid-area:link;display:inline-flex;align-items:center;justify-self:start;gap:14px;color:#1378a2;font-size:18px;font-weight:600;line-height:1.4;text-decoration:none;margin:0;min-height:44px}
.product-overview a.product-overview-link:hover{color:#222f3e}
.product-overview a.product-overview-link:focus-visible{outline:3px solid #21abcf;outline-offset:5px}
.product-overview .product-overview-visual{grid-area:visual;align-self:center;min-width:0;padding:26px 22px 20px;background:#f0f5f9;border-radius:6px}
.product-preview{display:flex;min-width:0;background:#fff;border:1px solid #d4dee6;border-radius:6px;box-shadow:0 12px 24px #222f3e14;overflow:hidden;color:#222f3e}
.product-preview-rail{display:flex;flex-direction:column;align-items:center;gap:25px;flex-shrink:0;width:40px;padding:15px 0;background:#222f3e;color:#fff;font-size:16px}
.product-preview-rail img{display:block;width:28px;height:28px;object-fit:contain}
.product-preview-main{min-width:0;flex:1}
.product-preview-topbar{display:flex;align-items:center;gap:17px;min-height:58px;padding:12px;border-bottom:1px solid #dce3e8;line-height:1.2}
.product-preview-brand{flex-shrink:0;font-size:21px;font-weight:700;padding-right:16px;border-right:1px solid #dce3e8}
.product-preview-topbar>strong{font-size:17px;font-weight:600}
.product-preview-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:4px;background:#1378a2;color:#fff;padding:8px 11px;font-size:13px;line-height:1.2;font-weight:600;white-space:nowrap}
.product-preview-view{margin-left:auto;font-size:11px;padding:8px}
.product-preview-body{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr);gap:10px;padding:12px;background:#f9fbfc;min-height:365px}
.product-overview .product-preview .panel{min-width:0;background:#fff;border:1px solid #dce3e8;border-radius:4px;box-shadow:none;overflow:hidden}
.product-overview .product-preview .panel-header{height:auto;min-height:44px;padding:12px 10px;gap:6px;background:#fff;color:#222f3e;border-bottom:1px solid #e3e7ec;border-radius:0}
.product-overview .product-preview .panel-header h3{font-size:16px;line-height:1.25;font-weight:600}
.product-overview .product-preview .panel-header h3 i{margin-right:3px;font-size:12px;color:#1378a2}
.product-overview .product-preview .panel-body{display:block;padding:12px 10px;font-size:13px;line-height:1.4}
.product-overview .product-preview .product-preview-phases{padding:8px 5px}
.product-preview-phase+.product-preview-phase{margin-top:17px}
.product-overview .product-preview-phase>p{padding:9px 7px;background:#f0f5f9;border-radius:3px;font-size:13px;line-height:1.3;font-weight:600}
.product-overview .product-preview-phase ul{list-style:none;padding:5px 0 0}
.product-preview-phase li{display:flex;align-items:flex-start;gap:7px;font-size:12px;line-height:1.4;color:#52636f;padding:8px 6px}
.product-preview-phase li i{flex-shrink:0;color:#1378a2;font-size:13px;margin-top:2px}
.product-preview-phase .product-preview-selected{background:#c5f1f8;border-radius:3px;font-weight:600;color:#222f3e}
.product-overview .product-preview-guidance{font-size:13px;line-height:1.4;color:#52636f}
.product-preview-toolbar{display:flex;align-items:center;gap:17px;padding:10px;margin-top:15px;border:1px solid #d4dee6;border-radius:3px;font-size:12px;color:#222f3e}
.product-preview-document{border:1px solid #d4dee6;border-radius:3px;padding:13px 12px;margin-top:12px;min-height:155px;font-size:13px;line-height:1.5}
.product-preview-document>strong{display:block;font-size:18px;font-weight:600;line-height:1.2}
.product-overview .product-preview-document ol{padding-left:18px;margin-top:12px}
.product-preview-document li+li{margin-top:7px}
.product-preview-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:14px}
.product-overview-visual figcaption{text-align:center;font-size:14px;line-height:1.4;color:#60717e;padding-top:18px}
@media(max-width:1100px){
  .product-overview-inner{padding-left:30px;padding-right:30px}
  .product-overview-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:'lead' 'visual' 'benefits' 'link';gap:30px}
  .product-overview .product-overview-lead{max-width:78ch}
  .product-overview .product-overview-visual{width:100%;max-width:860px;justify-self:center}
  .product-overview .product-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 34px}
  .product-benefits .product-benefit-divider{border-top:0;padding-top:0}
  .product-preview-body{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}
}
@media(max-width:700px){
  .product-overview{padding-top:46px;padding-bottom:48px}
  .product-overview-inner{padding-left:24px;padding-right:24px}
  .product-overview h2{font-size:clamp(34px,7.4vw,44px);letter-spacing:-.8px;margin-top:16px}
  .product-overview-grid{gap:28px;margin-top:25px}
  .product-overview .product-overview-lead{font-size:19px}
  .product-overview .product-benefits{grid-template-columns:minmax(0,1fr);gap:25px}
  .product-benefits>li{gap:16px}
  .product-benefits>li>i{width:30px;font-size:27px}
  .product-overview .product-benefits h3{font-size:23px}
  .product-benefits .product-benefit-divider{border-top:1px solid #dce3e8;padding-top:25px}
  .product-overview .product-overview-visual{padding:14px 12px}
  .product-preview-rail{display:none}
  .product-preview-topbar{min-height:48px;gap:13px;padding:12px}
  .product-preview-brand{font-size:20px;padding-right:12px}
  .product-preview-topbar>strong{font-size:15px}
  .product-preview-view{display:none}
  .product-preview-body{grid-template-columns:minmax(0,1fr);gap:12px;padding:10px;min-height:0}
  .product-overview .product-preview .product-preview-phases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .product-preview-phase+.product-preview-phase{margin-top:0}
  .product-overview .product-preview .panel-header{min-height:38px;padding:10px}
  .product-overview .product-preview .panel-header h3{font-size:16px}
  .product-preview-phase li{padding:7px 5px;gap:6px}
  .product-overview .product-preview-phase>p{font-size:12px;padding:8px 6px}
  .product-preview-document{min-height:0}
  .product-overview-visual figcaption{padding-top:13px;font-size:13px}
}
@media(max-width:380px){
  .product-overview .product-preview .product-preview-phases{grid-template-columns:minmax(0,1fr)}
  .product-preview-phase ul{display:flex;flex-wrap:wrap}
  .product-preview-phase li{flex:1 0 45%}
}

/* Public rollout: champion journey and responsive function schedule. */
.rollout-intro{padding-top:36px;padding-bottom:52px}
.services-page .rollout-eyebrow{font-size:20px;line-height:1.3;font-weight:600;color:var(--services-blue);margin-bottom:18px}
.services-page .rollout-intro h1{font-size:clamp(44px,5.2vw,66px);line-height:1.08;letter-spacing:-1.8px;font-weight:600}
.rollout-intro h1 span,.rollout-timing .services-detail-heading span{color:var(--services-blue)}
.services-page .rollout-intro .services-lead{font-size:22px;max-width:82ch;margin-top:25px}
.services-page .rollout-rhythm{font-size:20px;color:var(--services-blue);margin-top:24px}
.rollout-journey{padding-top:12px;padding-bottom:64px}
.rollout-stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;list-style:none;margin:38px 0 0;padding:0}
.rollout-stage{position:relative;min-width:0}
.rollout-stage::before{content:"";position:absolute;top:62px;left:44px;right:-28px;height:2px;background:#b2e1ec}
.rollout-stage:last-child::before{display:none}
.services-page .rollout-stage .rollout-stage-period{font-size:16px;line-height:20px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:var(--services-blue);margin:0 0 20px}
.rollout-stage-number{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--services-blue);color:#fff;font-size:19px;font-weight:600}
.services-page .rollout-stage h3{font-size:25px;line-height:1.2;letter-spacing:-.3px;font-weight:600;min-height:2.4em;margin-top:22px}
.services-page .rollout-stage>p:not(.rollout-stage-period){font-size:18px;line-height:1.55;color:#60717e;margin-top:18px}
.rollout-promise{padding:38px 0;background:var(--services-ink);color:#fff}
.services-page .rollout-promise p{font-size:32px;line-height:1.3;letter-spacing:-.5px;font-weight:600}
.rollout-promise span{color:var(--services-aqua)}
.rollout-timing{background:#f5f7fa}
.services-page .rollout-timing .services-lead{max-width:86ch}
.services-page .rollout-timeline-caption{font-size:17px;color:#60717e;margin-top:32px;margin-bottom:22px}
.rollout-week-head{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin-left:174px;text-align:center;font-size:14px;font-weight:600;color:#60717e;margin-bottom:16px}
.rollout-function{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:center;margin-top:18px}
.services-page .rollout-function-label h3{font-size:21px;line-height:1.2;font-weight:600}
.services-page .rollout-function-label p{font-size:14px;line-height:1.4;color:#60717e;margin-top:7px}
.rollout-lane{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;min-width:0}
.rollout-joint,.rollout-supervised{min-width:0;min-height:100px;padding:14px 7px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;border-radius:4px}
.rollout-joint{color:#fff;background:var(--services-blue)}
.rollout-supervised{color:var(--services-ink);background:var(--services-aqua)}
.rollout-joint>span,.rollout-supervised>span{font-size:13px;line-height:1.3}
.rollout-joint>strong,.rollout-supervised>strong{font-size:16px;line-height:1.25;font-weight:600;overflow-wrap:break-word}
.rollout-support{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;color:#60717e;text-align:center;padding:8px 5px 24px}
.rollout-support>strong{font-size:15px;line-height:1.3;font-weight:400}
.rollout-support>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.rollout-support::before{content:"";position:absolute;left:8px;right:9px;bottom:15px;height:2px;background:#a8bac5}
.rollout-support::after{content:"";position:absolute;right:0;bottom:10px;border-left:9px solid #a8bac5;border-top:6px solid transparent;border-bottom:6px solid transparent}
[data-rollout-start="1"] .rollout-joint{grid-column:1/span 2}
[data-rollout-start="1"] .rollout-supervised{grid-column:3}
[data-rollout-start="1"] .rollout-support{grid-column:4/-1}
[data-rollout-start="3"] .rollout-joint{grid-column:3/span 2}
[data-rollout-start="3"] .rollout-supervised{grid-column:5}
[data-rollout-start="3"] .rollout-support{grid-column:6/-1}
[data-rollout-start="5"] .rollout-joint{grid-column:5/span 2}
[data-rollout-start="5"] .rollout-supervised{grid-column:7}
[data-rollout-start="5"] .rollout-support{grid-column:8/-1}
[data-rollout-start="7"] .rollout-joint{grid-column:7/span 2}
[data-rollout-start="7"] .rollout-supervised{grid-column:9}
[data-rollout-start="7"] .rollout-support{grid-column:10/-1}
.rollout-legend{display:flex;flex-wrap:wrap;gap:14px 28px;list-style:none;padding:0;margin:28px 0 0}
.rollout-legend li{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.4}
.rollout-key{display:inline-block;flex-shrink:0;width:14px;height:14px;border-radius:2px}
.rollout-key-joint{background:var(--services-blue)}
.rollout-key-supervised{background:var(--services-aqua)}
.rollout-key-support{height:2px;width:24px;border-radius:0;background:#a8bac5}
.services-page .rollout-timing-note{font-size:17px;line-height:1.5;color:#60717e;margin-top:28px;padding-top:22px;border-top:1px solid #dce3e8}
.rollout-capability .rollout-eyebrow{color:var(--services-aqua)}
.rollout-rhythm-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 36px;list-style:none;padding:0;margin:32px 0 0}
.rollout-rhythm-list>li{display:flex;align-items:flex-start;gap:18px;min-width:0}
.rollout-rhythm-list>li>i{flex-shrink:0;width:32px;font-size:29px;line-height:1.2;text-align:center;color:var(--services-blue);margin-top:3px}
.rollout-rhythm-list>li>div{min-width:0}
.services-page .rollout-rhythm-list h3{font-size:23px;line-height:1.25;font-weight:600;letter-spacing:-.2px}
.services-page .rollout-rhythm-list p{font-size:18px;line-height:1.55;color:#60717e;margin-top:10px}
@media(max-width:1100px){
  .rollout-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 36px}
  .rollout-stage::before{right:-36px}
  .rollout-stage:nth-child(even)::before{display:none}
  .rollout-timing-desktop{display:none}
}
@media(max-width:700px){
  .rollout-intro{padding-top:26px;padding-bottom:38px}
  .services-page .rollout-eyebrow{font-size:19px;margin-bottom:16px}
  .services-page .rollout-intro h1{font-size:clamp(38px,8.5vw,52px);letter-spacing:-1.1px}
  .services-page .rollout-intro .services-lead{font-size:20px;margin-top:22px}
  .services-page .rollout-rhythm{font-size:19px;line-height:1.5;margin-top:22px}
  .rollout-rhythm strong{display:block}
  .rollout-journey{padding-top:6px;padding-bottom:44px}
  .rollout-stages{grid-template-columns:1fr;gap:32px;margin-top:30px}
  .rollout-stage{padding-left:64px}
  .rollout-stage-number{position:absolute;left:0;top:0}
  .rollout-stage:not(:last-child)::before{display:block;top:44px;left:21px;right:auto;bottom:-32px;width:2px;height:auto}
  .services-page .rollout-stage .rollout-stage-period{font-size:14px;line-height:1.4;margin:0}
  .services-page .rollout-stage h3{font-size:24px;min-height:0;margin-top:10px}
  .services-page .rollout-stage>p:not(.rollout-stage-period){margin-top:14px}
  .rollout-promise{padding:30px 0}
  .services-page .rollout-promise p{font-size:27px;letter-spacing:-.3px}
  .rollout-rhythm-list{grid-template-columns:minmax(0,1fr);gap:28px;margin-top:28px}
  .rollout-rhythm-list>li{gap:16px}
}
