/* ==========================================================================
   Bigroll Portal & Identity — v4.5.0 Lucian Tonal Minimalist Design System
   Warm Stone & Ivory Light Mode · Obsidian Dark Mode · Borderless Elevation
   ========================================================================== */

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --g-bg: #000000;
  --g-panel: #0F0F10;
  --g-card: rgba(255, 255, 255, 0.046);
  --g-line: rgba(255, 255, 255, 0.07);
  --g-pill: rgba(255, 255, 255, 0.055);
  --g-pill-h: rgba(255, 255, 255, 0.09);
  --g-btn: rgba(255, 255, 255, 0.04);
  --g-btn-h: rgba(255, 255, 255, 0.075);
  --g-search: rgba(30, 30, 34, 0.84);
  --g-search-line: rgba(255, 255, 255, 0.10);
  --g-shadow: rgba(0, 0, 0, 0.60);

  --bg-stage: #07080D;
  --bg-sidebar: #0F0F10;
  --bg-card: rgba(255, 255, 255, 0.046);
  --bg-elevated: #13141C;
  --bg-surface: #13141C;
  --bg-raised: #1A1B25;
  --bg-input: rgba(255, 255, 255, 0.038);
  --bg-subtle: rgba(255, 255, 255, 0.038);
  --hairline: rgba(255, 255, 255, 0.075);
  --hairline-strong: rgba(255, 255, 255, 0.15);
  --fg-primary: #F5F2EC;
  --fg-secondary: rgba(235, 235, 245, 0.62);
  --fg-muted: rgba(235, 235, 245, 0.40);
  --accent: #B7A4FF;
  --accent-text: #B7A4FF;
  --accent-soft: rgba(183, 164, 255, 0.15);
  --accent-border: rgba(183, 164, 255, 0.32);
  --btn-bg: #F5F2EC;
  --btn-fg: #16151B;
  --positive: #7EE8C0;
  --positive-bg: rgba(126, 232, 192, 0.13);
  --warning: #FFB26B;
  --warning-bg: rgba(255, 178, 107, 0.13);
  --danger: #FF7D8C;
  --danger-bg: rgba(255, 125, 140, 0.14);
  /* Subtle small species dots/pills only */
  --octopus-accent: #FB923C;
  --pelican-accent: #2DD4BF;
  --dolphin-accent: #22D3EE;
  --owl-accent: #818CF8;
  --convert-accent: #38BDF8;
  --bigroll-accent: #A1A1AA;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 0 0 1px rgba(255, 255, 255, 0.055);
  --shadow-float: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 32px 64px -28px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.36);
  --font-display: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Pretendard Variable', Pretendard, 'Inter', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 24px;

  --p2m-br-duration: 1350ms;
  --p2m-em-duration: 1250ms;
  --p2m-oc-duration: 1450ms;
  --p2m-pe-duration: 1450ms;
  --p2m-ow-duration: 1450ms;
  --p2m-do-duration: 1600ms;
}

html[data-theme="light"] {
  color-scheme: light;
  --g-bg: #E7E5E0;
  --g-panel: #F7F6F3;
  --g-card: rgba(22, 21, 27, 0.045);
  --g-line: rgba(22, 21, 27, 0.075);
  --g-pill: rgba(22, 21, 27, 0.055);
  --g-pill-h: rgba(22, 21, 27, 0.09);
  --g-btn: rgba(22, 21, 27, 0.045);
  --g-btn-h: rgba(22, 21, 27, 0.085);
  --g-search: rgba(255, 255, 255, 0.86);
  --g-search-line: rgba(22, 21, 27, 0.09);
  --g-shadow: rgba(40, 30, 60, 0.18);

  --bg-stage: #F4F2EE;
  --bg-sidebar: #F7F6F3;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-raised: #F5F3EF;
  --bg-input: #F5F3EF;
  --bg-subtle: rgba(22, 21, 27, 0.04);
  --hairline: rgba(22, 21, 27, 0.075);
  --hairline-strong: rgba(22, 21, 27, 0.15);
  --fg-primary: #16151B;
  --fg-secondary: rgba(22, 21, 27, 0.62);
  --fg-muted: rgba(22, 21, 27, 0.42);
  --accent: #6A57F2;
  --accent-text: #6A57F2;
  --accent-soft: rgba(106, 87, 242, 0.12);
  --accent-border: rgba(106, 87, 242, 0.28);
  --btn-bg: #16151B;
  --btn-fg: #F7F6F3;
  --positive: #119C72;
  --positive-bg: rgba(17, 156, 114, 0.10);
  --warning: #D6731E;
  --warning-bg: rgba(214, 115, 30, 0.10);
  --danger: #D93A55;
  --danger-bg: rgba(217, 58, 85, 0.10);
  --octopus-accent: #EA580C;
  --pelican-accent: #0D9488;
  --dolphin-accent: #0F7C80;
  --owl-accent: #4F46E5;
  --convert-accent: #0284C7;
  --bigroll-accent: #52525B;
  --shadow-card: 0 2px 10px -4px rgba(40, 30, 60, 0.06), 0 0 0 1px rgba(22, 21, 27, 0.055);
  --shadow-float: 0 0 0 1px rgba(22, 21, 27, 0.09), 0 30px 60px -30px rgba(40, 30, 80, 0.28);
  --shadow-sm: 0 1px 3px rgba(40, 30, 60, 0.06);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--g-bg);
  color: var(--fg-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button, a, label, select, input, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: block;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.display {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}

.min-w-0 { min-width: 0; }
.flex-1 { flex: 1; }
.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--fg-muted); }
.text-secondary { color: var(--fg-secondary); }
.text-mono-xs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
}
.text-right { text-align: right !important; }

.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }

.row-gap-xs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.row-gap-sm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-gap-md { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Pixel2Motion Monochrome Brand Marks & Keyframes
   ========================================================================== */

.logo-replay-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  border-radius: 6px;
}
.logo-replay-btn:focus-visible {
  outline: 1.5px solid var(--fg-primary);
  outline-offset: 4px;
}

.sidebar-brand-logo { height: 26px; width: auto; display: block; }
.mobile-brand-logo { height: 24px; width: auto; display: block; }
.gate-brand-logo { height: 28px; width: auto; display: block; }
.vault-brand-logo { height: 26px; width: auto; display: block; }

.species-lockup-svg {
  height: 36px;
  width: auto;
  max-width: 100%;
  display: block;
}

.gate-emblem-svg {
  width: 44px;
  height: 44px;
  display: block;
}

.habitat-mini-svg,
.app-badge-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.zoo-ink-fill {
  fill: #F5F2EC;
  transition: fill 160ms var(--ease);
}
.zoo-muted-fill {
  fill: rgba(235, 235, 245, 0.58);
  transition: fill 160ms var(--ease);
}
.p2m-br-portal-trace {
  stroke: rgba(235, 235, 245, 0.45);
}

html[data-theme="light"] .zoo-ink-fill {
  fill: #16151B;
}
html[data-theme="light"] .zoo-muted-fill {
  fill: #57535F;
}
html[data-theme="light"] .p2m-br-portal-trace {
  stroke: #8E8A97;
}

.p2m-keep-dark,
html[data-theme="dark"] .p2m-keep-dark,
html[data-theme="light"] .p2m-keep-dark {
  fill: #16151B !important;
}

/* --- 1. Bigroll Horizontal Lockup (.p2m-br-*, 1500ms) --- */
.p2m-br-portal-trace {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: p2m-bigroll-trace var(--p2m-br-duration) linear both;
}

.p2m-br-mark {
  transform-box: fill-box;
  transform-origin: 50% 86%;
  animation: p2m-bigroll-mark var(--p2m-br-duration) linear both;
}

.p2m-br-l-b1,
.p2m-br-l-istem,
.p2m-br-l-g,
.p2m-br-l-r,
.p2m-br-l-o,
.p2m-br-l-l1,
.p2m-br-l-l2 {
  transform-box: fill-box;
  transform-origin: 50% 90%;
}

.p2m-br-l-idot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-bigroll-idot var(--p2m-br-duration) linear both;
}

.p2m-br-l-b1    { animation: p2m-bigroll-b1 var(--p2m-br-duration) linear both; }
.p2m-br-l-istem { animation: p2m-bigroll-istem var(--p2m-br-duration) linear both; }
.p2m-br-l-g     { animation: p2m-bigroll-g var(--p2m-br-duration) linear both; }
.p2m-br-l-r     { animation: p2m-bigroll-r var(--p2m-br-duration) linear both; }
.p2m-br-l-o     { animation: p2m-bigroll-o var(--p2m-br-duration) linear both; }
.p2m-br-l-l1    { animation: p2m-bigroll-l1 var(--p2m-br-duration) linear both; }
.p2m-br-l-l2    { animation: p2m-bigroll-l2 var(--p2m-br-duration) linear both; }

/* --- 2. Bigroll Emblem (.p2m-em-*, 1400ms + gentle idle float) --- */
.p2m-em-rim-trace {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: p2m-emblem-trace var(--p2m-em-duration) linear both;
}

.p2m-em-outer,
.p2m-em-inner,
.p2m-em-b {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.p2m-em-outer { animation: p2m-emblem-outer var(--p2m-em-duration) linear both; }
.p2m-em-inner { animation: p2m-emblem-inner var(--p2m-em-duration) linear both; }
.p2m-em-b     { animation: p2m-emblem-b var(--p2m-em-duration) linear both; }
.p2m-idle-float { animation: p2m-ambient-float 3.8s ease-in-out 1.6s infinite; }

/* --- 3. Octopus Horizontal Mascot Lockup (.p2m-oc-*, 1600ms) --- */
.p2m-oc-ring-trace {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: p2m-octo-trace var(--p2m-oc-duration) linear both;
}

.p2m-oc-mark {
  transform-box: fill-box;
  transform-origin: 50% 80%;
  animation: p2m-octo-mark var(--p2m-oc-duration) linear both;
}

.p2m-oc-highlight { animation: p2m-octo-highlight var(--p2m-oc-duration) linear both; }
.p2m-oc-cheeks,
.p2m-oc-mouth {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.p2m-oc-cheeks { animation: p2m-octo-cheeks var(--p2m-oc-duration) linear both; }
.p2m-oc-mouth  { animation: p2m-octo-mouth var(--p2m-oc-duration) linear both; }

.p2m-oc-eyes {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-octo-eyes var(--p2m-oc-duration) linear both;
}
.p2m-oc-pupils {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-octo-pupils var(--p2m-oc-duration) linear both;
}

.p2m-oc-suckers-1 { animation: p2m-octo-sucker-inner var(--p2m-oc-duration) linear both; }
.p2m-oc-suckers-2 { animation: p2m-octo-sucker-mid var(--p2m-oc-duration) linear both; }
.p2m-oc-suckers-3 { animation: p2m-octo-sucker-outer var(--p2m-oc-duration) linear both; }

.p2m-oc-l-o1,
.p2m-oc-l-c,
.p2m-oc-l-t,
.p2m-oc-l-o2,
.p2m-oc-l-p,
.p2m-oc-l-u,
.p2m-oc-l-s {
  transform-box: fill-box;
  transform-origin: 50% 85%;
}

.p2m-oc-l-o1 { animation: p2m-octo-l1 var(--p2m-oc-duration) linear both; }
.p2m-oc-l-c  { animation: p2m-octo-l2 var(--p2m-oc-duration) linear both; }
.p2m-oc-l-t  { animation: p2m-octo-l3 var(--p2m-oc-duration) linear both; }
.p2m-oc-l-o2 { animation: p2m-octo-l4 var(--p2m-oc-duration) linear both; }
.p2m-oc-l-p  { animation: p2m-octo-l5 var(--p2m-oc-duration) linear both; }
.p2m-oc-l-u  { animation: p2m-octo-l6 var(--p2m-oc-duration) linear both; }
.p2m-oc-l-s  { animation: p2m-octo-l7 var(--p2m-oc-duration) linear both; }
.p2m-oc-endorse { animation: p2m-octo-endorse var(--p2m-oc-duration) linear both; }

.p2m-idle-blink-oc {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-periodic-blink 5.8s ease-in-out 2.2s infinite;
}

.tilt-card--octopus:hover .oc-pulse-1,
.svc-card--octopus:hover .oc-pulse-1,
.habitat-link--octopus:hover .oc-pulse-1,
.brand-hover--octopus:hover .oc-pulse-1 {
  animation: zoo-sync-pulse 1800ms cubic-bezier(0.4, 0, 0.2, 1) 0ms infinite;
}
.tilt-card--octopus:hover .oc-pulse-2,
.svc-card--octopus:hover .oc-pulse-2,
.habitat-link--octopus:hover .oc-pulse-2,
.brand-hover--octopus:hover .oc-pulse-2 {
  animation: zoo-sync-pulse 1800ms cubic-bezier(0.4, 0, 0.2, 1) 200ms infinite;
}
.tilt-card--octopus:hover .oc-pulse-3,
.svc-card--octopus:hover .oc-pulse-3,
.habitat-link--octopus:hover .oc-pulse-3,
.brand-hover--octopus:hover .oc-pulse-3 {
  animation: zoo-sync-pulse 1800ms cubic-bezier(0.4, 0, 0.2, 1) 400ms infinite;
}
.brand-hover--octopus .p2m-oc-mark,
.brand-hover--bigroll .p2m-em-b,
.brand-hover--bigroll .p2m-br-mark,
.brand-hover--convert svg {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-hover--octopus:hover .p2m-oc-mark { transform: translateY(-1.5px); }
.brand-hover--bigroll:hover .p2m-em-b,
.brand-hover--bigroll:hover .p2m-br-mark { transform: translateY(-1.5px) scale(1.04); }
.brand-hover--convert:hover svg { transform: rotate(22deg); }

/* --- 4. Pelican Horizontal Mascot Lockup (.p2m-pe-*, 1600ms) --- */
.p2m-pe-arc-trace {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: p2m-peli-trace var(--p2m-pe-duration) linear both;
}

.p2m-pe-mark {
  transform-box: fill-box;
  transform-origin: 45% 55%;
  animation: p2m-peli-mark var(--p2m-pe-duration) linear both;
}

.p2m-pe-wing {
  transform-box: fill-box;
  transform-origin: 20% 25%;
  animation: p2m-peli-wing var(--p2m-pe-duration) linear both;
}

.p2m-pe-pouch {
  transform-box: fill-box;
  transform-origin: 0% 0%;
  animation: p2m-peli-pouch var(--p2m-pe-duration) linear both;
}

.p2m-pe-cargo {
  transform-box: fill-box;
  transform-origin: 50% 60%;
  animation: p2m-peli-cargo var(--p2m-pe-duration) linear both;
}

.p2m-pe-gaze {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-peli-gaze var(--p2m-pe-duration) linear both;
}

.p2m-pe-l-p,
.p2m-pe-l-e,
.p2m-pe-l-l,
.p2m-pe-l-istem,
.p2m-pe-l-c,
.p2m-pe-l-a,
.p2m-pe-l-n {
  transform-box: fill-box;
  transform-origin: 50% 90%;
}

.p2m-pe-l-idot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-peli-idot var(--p2m-pe-duration) linear both;
}

.p2m-pe-l-p     { animation: p2m-peli-lp var(--p2m-pe-duration) linear both; }
.p2m-pe-l-e     { animation: p2m-peli-le var(--p2m-pe-duration) linear both; }
.p2m-pe-l-l     { animation: p2m-peli-ll var(--p2m-pe-duration) linear both; }
.p2m-pe-l-istem { animation: p2m-peli-listem var(--p2m-pe-duration) linear both; }
.p2m-pe-l-c     { animation: p2m-peli-lc var(--p2m-pe-duration) linear both; }
.p2m-pe-l-a     { animation: p2m-peli-la var(--p2m-pe-duration) linear both; }
.p2m-pe-l-n     { animation: p2m-peli-ln var(--p2m-pe-duration) linear both; }
.p2m-pe-endorse { animation: p2m-peli-endorse var(--p2m-pe-duration) linear both; }

.pe-hover-wing {
  transform-box: fill-box;
  transform-origin: 20% 25%;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.pe-hover-pouch {
  transform-box: fill-box;
  transform-origin: 0% 0%;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pe-hover-gaze {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 180ms cubic-bezier(0, 0, 0.2, 1);
}

.tilt-card--pelican:hover .pe-hover-wing,
.svc-card--pelican:hover .pe-hover-wing,
.habitat-link--pelican:hover .pe-hover-wing,
.brand-hover--pelican:hover .pe-hover-wing { transform: rotate(-10deg); }

.tilt-card--pelican:hover .pe-hover-pouch,
.svc-card--pelican:hover .pe-hover-pouch,
.habitat-link--pelican:hover .pe-hover-pouch,
.brand-hover--pelican:hover .pe-hover-pouch { transform: translateY(2px) scale(0.96, 1.09); }

.tilt-card--pelican:hover .pe-hover-gaze,
.svc-card--pelican:hover .pe-hover-gaze,
.habitat-link--pelican:hover .pe-hover-gaze,
.brand-hover--pelican:hover .pe-hover-gaze { transform: translateX(2.5px); }

/* --- 5. Owl Horizontal Mascot Lockup (.p2m-ow-*, 1600ms + cursor dot pulse) --- */
.p2m-ow-arc-trace {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: p2m-owl-trace var(--p2m-ow-duration) linear both;
}

.p2m-ow-mark {
  transform-box: fill-box;
  transform-origin: 50% 82%;
  animation: p2m-owl-mark var(--p2m-ow-duration) linear both;
}

.p2m-ow-wing-l {
  transform-box: fill-box;
  transform-origin: 85% 35%;
  animation: p2m-owl-wing-l var(--p2m-ow-duration) linear both;
}

.p2m-ow-wing-r {
  transform-box: fill-box;
  transform-origin: 15% 35%;
  animation: p2m-owl-wing-r var(--p2m-ow-duration) linear both;
}

.ow-hover-wing-l {
  transform-box: fill-box;
  transform-origin: 85% 35%;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.ow-hover-wing-r {
  transform-box: fill-box;
  transform-origin: 15% 35%;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tilt-card--owl:hover .ow-hover-wing-l,
.svc-card--owl:hover .ow-hover-wing-l,
.habitat-link--owl:hover .ow-hover-wing-l,
.brand-hover--owl:hover .ow-hover-wing-l { transform: rotate(-9deg); }

.tilt-card--owl:hover .ow-hover-wing-r,
.svc-card--owl:hover .ow-hover-wing-r,
.habitat-link--owl:hover .ow-hover-wing-r,
.brand-hover--owl:hover .ow-hover-wing-r { transform: rotate(9deg); }

.p2m-ow-eyes {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-owl-blink var(--p2m-ow-duration) linear both;
}

.p2m-idle-blink-ow {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-periodic-blink 6.5s ease-in-out 2.5s infinite;
}

.p2m-ow-pupils {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-owl-gaze var(--p2m-ow-duration) linear both;
}

.p2m-ow-beak {
  transform-box: fill-box;
  transform-origin: 50% 45%;
  animation: p2m-owl-beak var(--p2m-ow-duration) linear both;
}

.p2m-ow-belly {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-owl-belly var(--p2m-ow-duration) linear both;
}

.p2m-ow-bar1 { animation: p2m-owl-bar1 var(--p2m-ow-duration) linear both; }
.p2m-ow-bar2 { animation: p2m-owl-bar2 var(--p2m-ow-duration) linear both; }

.p2m-ow-dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-owl-dot var(--p2m-ow-duration) linear both;
}

.p2m-idle-pulse-dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-typing-dot 2s ease-in-out 1.8s infinite;
}

.p2m-ow-l-o,
.p2m-ow-l-w,
.p2m-ow-l-l {
  transform-box: fill-box;
  transform-origin: 50% 90%;
}
.p2m-ow-l-o { animation: p2m-owl-lo var(--p2m-ow-duration) linear both; }
.p2m-ow-l-w { animation: p2m-owl-lw var(--p2m-ow-duration) linear both; }
.p2m-ow-l-l { animation: p2m-owl-ll var(--p2m-ow-duration) linear both; }
.p2m-ow-endorse { animation: p2m-owl-endorse var(--p2m-ow-duration) linear both; }

/* Cursor tracking wrapper receives smooth GSAP transforms without fighting CSS animation */
.p2m-pupil-track {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* --- 6. Dolphin Horizontal Mascot Lockup (.p2m-do-*, 1600ms + sonar ping) --- */
.p2m-do-arc-trace {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: p2m-dolphin-trace var(--p2m-do-duration) linear both;
}
.p2m-do-mark {
  transform-box: fill-box;
  transform-origin: 42% 66%;
  animation: p2m-dolphin-mark var(--p2m-do-duration) linear both;
}
.p2m-do-fin {
  transform-box: fill-box;
  transform-origin: 70% 15%;
  animation: p2m-dolphin-fin var(--p2m-do-duration) linear both;
}
.do-hover-fin {
  transform-box: fill-box;
  transform-origin: 70% 15%;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.p2m-do-sonar1,
.p2m-do-sonar2,
.do-hover-sonar1,
.do-hover-sonar2 {
  transform-box: fill-box;
  transform-origin: 0% 100%;
}
.p2m-do-sonar1 { animation: p2m-dolphin-sonar1 var(--p2m-do-duration) linear both; }
.p2m-do-sonar2 { animation: p2m-dolphin-sonar2 var(--p2m-do-duration) linear both; }
.p2m-do-eye {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-dolphin-blink var(--p2m-do-duration) linear both;
}
.p2m-idle-blink-do {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-periodic-blink 6.2s ease-in-out 2.4s infinite;
}
.p2m-do-gaze {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-dolphin-gaze var(--p2m-do-duration) linear both;
}
.p2m-do-l-d,
.p2m-do-l-o,
.p2m-do-l-l,
.p2m-do-l-p,
.p2m-do-l-h,
.p2m-do-l-istem,
.p2m-do-l-n {
  transform-box: fill-box;
  transform-origin: 50% 90%;
}
.p2m-do-l-idot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: p2m-dolphin-idot var(--p2m-do-duration) linear both;
}
.p2m-do-l-d     { animation: p2m-dolphin-ld var(--p2m-do-duration) linear both; }
.p2m-do-l-o     { animation: p2m-dolphin-lo var(--p2m-do-duration) linear both; }
.p2m-do-l-l     { animation: p2m-dolphin-ll var(--p2m-do-duration) linear both; }
.p2m-do-l-p     { animation: p2m-dolphin-lp var(--p2m-do-duration) linear both; }
.p2m-do-l-h     { animation: p2m-dolphin-lh var(--p2m-do-duration) linear both; }
.p2m-do-l-istem { animation: p2m-dolphin-li var(--p2m-do-duration) linear both; }
.p2m-do-l-n     { animation: p2m-dolphin-ln var(--p2m-do-duration) linear both; }
.p2m-do-endorse { animation: p2m-dolphin-endorse var(--p2m-do-duration) linear both; }

.tilt-card--dolphin:hover .do-hover-fin,
.svc-card--dolphin:hover .do-hover-fin,
.habitat-link--dolphin:hover .do-hover-fin,
.brand-hover--dolphin:hover .do-hover-fin { transform: rotate(10deg); }

.tilt-card--dolphin:hover .do-hover-sonar1,
.svc-card--dolphin:hover .do-hover-sonar1,
.habitat-link--dolphin:hover .do-hover-sonar1,
.brand-hover--dolphin:hover .do-hover-sonar1 {
  animation: zoo-sync-pulse 1600ms cubic-bezier(0.4, 0, 0.2, 1) 0ms infinite;
}
.tilt-card--dolphin:hover .do-hover-sonar2,
.svc-card--dolphin:hover .do-hover-sonar2,
.habitat-link--dolphin:hover .do-hover-sonar2,
.brand-hover--dolphin:hover .do-hover-sonar2 {
  animation: zoo-sync-pulse 1600ms cubic-bezier(0.4, 0, 0.2, 1) 180ms infinite;
}

/* Skip repeating 1.6s fade-in entrance on re-renders once already settled (keeps idle & hover live) */
.p2m-settled .p2m-br-portal-trace,
.p2m-settled .p2m-em-rim-trace,
.p2m-settled .p2m-oc-ring-trace,
.p2m-settled .p2m-pe-arc-trace,
.p2m-settled .p2m-ow-arc-trace,
.p2m-settled .p2m-do-arc-trace {
  animation: none !important;
  opacity: 0 !important;
}

.p2m-settled .p2m-br-mark,
.p2m-settled .p2m-br-l-b1,
.p2m-settled .p2m-br-l-istem,
.p2m-settled .p2m-br-l-idot,
.p2m-settled .p2m-br-l-g,
.p2m-settled .p2m-br-l-r,
.p2m-settled .p2m-br-l-o,
.p2m-settled .p2m-br-l-l1,
.p2m-settled .p2m-br-l-l2,
.p2m-settled .p2m-em-outer,
.p2m-settled .p2m-em-inner,
.p2m-settled .p2m-em-b,
.p2m-settled .p2m-oc-mark,
.p2m-settled .p2m-oc-highlight,
.p2m-settled .p2m-oc-cheeks,
.p2m-settled .p2m-oc-mouth,
.p2m-settled .p2m-oc-eyes,
.p2m-settled .p2m-oc-pupils,
.p2m-settled .p2m-oc-suckers-1,
.p2m-settled .p2m-oc-suckers-2,
.p2m-settled .p2m-oc-suckers-3,
.p2m-settled .p2m-oc-l-o1,
.p2m-settled .p2m-oc-l-c,
.p2m-settled .p2m-oc-l-t,
.p2m-settled .p2m-oc-l-o2,
.p2m-settled .p2m-oc-l-p,
.p2m-settled .p2m-oc-l-u,
.p2m-settled .p2m-oc-l-s,
.p2m-settled .p2m-oc-endorse,
.p2m-settled .p2m-pe-mark,
.p2m-settled .p2m-pe-wing,
.p2m-settled .p2m-pe-pouch,
.p2m-settled .p2m-pe-cargo,
.p2m-settled .p2m-pe-gaze,
.p2m-settled .p2m-pe-l-p,
.p2m-settled .p2m-pe-l-e,
.p2m-settled .p2m-pe-l-l,
.p2m-settled .p2m-pe-l-istem,
.p2m-settled .p2m-pe-l-idot,
.p2m-settled .p2m-pe-l-c,
.p2m-settled .p2m-pe-l-a,
.p2m-settled .p2m-pe-l-n,
.p2m-settled .p2m-pe-endorse,
.p2m-settled .p2m-ow-mark,
.p2m-settled .p2m-ow-wing-l,
.p2m-settled .p2m-ow-wing-r,
.p2m-settled .p2m-ow-eyes,
.p2m-settled .p2m-ow-pupils,
.p2m-settled .p2m-ow-beak,
.p2m-settled .p2m-ow-belly,
.p2m-settled .p2m-ow-bar1,
.p2m-settled .p2m-ow-bar2,
.p2m-settled .p2m-ow-dot,
.p2m-settled .p2m-ow-l-o,
.p2m-settled .p2m-ow-l-w,
.p2m-settled .p2m-ow-l-l,
.p2m-settled .p2m-ow-endorse,
.p2m-settled .p2m-do-mark,
.p2m-settled .p2m-do-fin,
.p2m-settled .p2m-do-sonar1,
.p2m-settled .p2m-do-sonar2,
.p2m-settled .p2m-do-eye,
.p2m-settled .p2m-do-gaze,
.p2m-settled .p2m-do-l-d,
.p2m-settled .p2m-do-l-o,
.p2m-settled .p2m-do-l-l,
.p2m-settled .p2m-do-l-p,
.p2m-settled .p2m-do-l-h,
.p2m-settled .p2m-do-l-istem,
.p2m-settled .p2m-do-l-idot,
.p2m-settled .p2m-do-l-n,
.p2m-settled .p2m-do-endorse {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}

@keyframes zoo-sync-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes p2m-periodic-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
  98% { transform: scaleY(1.04); }
}

@keyframes p2m-typing-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.76); }
}

@keyframes p2m-ambient-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Bigroll Horizontal Keyframes */
@keyframes p2m-bigroll-trace {
  0% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  4% { opacity: 1; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  38% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  52%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes p2m-bigroll-mark {
  0% { opacity: 0; transform: translateY(10px) scale(0.86, 0.78); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  14% { opacity: 0; transform: translateY(10px) scale(0.86, 0.78); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  23% { opacity: 1; transform: translateY(6px) scale(1.06, 0.88); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  44% { opacity: 1; transform: translateY(-4px) scale(0.97, 1.04); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  62% { opacity: 1; transform: translateY(1px) scale(1.01, 0.99); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  76%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-b1 {
  0%, 18% { opacity: 0; transform: translateY(14px) scale(0.94, 0.90) rotate(-1.2deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  37% { opacity: 1; transform: translateY(-3px) scale(1.02, 1.03) rotate(0.4deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  56%, 98% { opacity: 1; transform: translateY(0) scale(1, 1) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-istem {
  0%, 23% { opacity: 0; transform: translateY(14px) scale(0.94, 0.88); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  42% { opacity: 1; transform: translateY(-3px) scale(0.98, 1.04); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  60%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-g {
  0%, 28% { opacity: 0; transform: translateY(15px) scale(0.94, 0.90) rotate(-1deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  47% { opacity: 1; transform: translateY(-3px) scale(1.02, 1.02) rotate(0.3deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  66%, 98% { opacity: 1; transform: translateY(0) scale(1, 1) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-r {
  0%, 33% { opacity: 0; transform: translateY(14px) scale(0.94, 0.90) rotate(-1deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  52% { opacity: 1; transform: translateY(-2.5px) scale(1.02, 1.02) rotate(0.2deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  71%, 98% { opacity: 1; transform: translateY(0) scale(1, 1) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-o {
  0%, 38% { opacity: 0; transform: translateY(14px) scale(0.92, 0.92); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  57% { opacity: 1; transform: translateY(-2.5px) scale(1.03, 1.01); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  76%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-l1 {
  0%, 43% { opacity: 0; transform: translateY(15px) scale(0.95, 0.88); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  62% { opacity: 1; transform: translateY(-3px) scale(0.98, 1.03); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  82%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-l2 {
  0%, 48% { opacity: 0; transform: translateY(15px) scale(0.95, 0.88); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  68% { opacity: 1; transform: translateY(-3px) scale(0.98, 1.03); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  88%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-bigroll-idot {
  0%, 46% { opacity: 0; transform: translate(-10px, -22px) scale(0.55); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  58% { opacity: 1; transform: translate(-3px, -11px) scale(0.96, 1.06); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  72% { opacity: 1; transform: translate(0, 2px) scale(1.16, 0.84); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  85% { opacity: 1; transform: translate(0, -2.5px) scale(0.96, 1.05); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  95%, 98% { opacity: 1; transform: translate(0, 0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}

/* Bigroll Emblem Keyframes */
@keyframes p2m-emblem-trace {
  0% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  4% { opacity: 1; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  44% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  58%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes p2m-emblem-outer {
  0% { opacity: 0; transform: scale(0.76); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  16% { opacity: 0.92; transform: scale(0.70); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  48% { opacity: 1; transform: scale(1.04); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  70% { opacity: 1; transform: scale(0.992); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  84%, 98% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-emblem-inner {
  0%, 16% { opacity: 0; transform: scale(0.65); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  54% { opacity: 1; transform: scale(1.03); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  74% { opacity: 1; transform: scale(0.992); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  89%, 98% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-emblem-b {
  0%, 24% { opacity: 0; transform: translateY(14px) scale(0.82); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  62% { opacity: 1; transform: translateY(-3px) scale(1.05); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  81% { opacity: 1; transform: translateY(1px) scale(0.99); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  95%, 98% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: none; }
}

/* Octopus Keyframes */
@keyframes p2m-octo-trace {
  0% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  4% { opacity: 1; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  34% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  48%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes p2m-octo-mark {
  0% { opacity: 0; transform: translateY(14px) scale(0.92, 0.82); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  17% { opacity: 1; transform: translateY(10px) scale(1.08, 0.90); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  40% { opacity: 1; transform: translateY(-7px) scale(0.95, 1.06); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  58% { opacity: 1; transform: translateY(2px) scale(1.02, 0.98); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  72%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-highlight {
  0%, 34% { opacity: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  52%, 100% { opacity: 1; }
}
@keyframes p2m-octo-cheeks {
  0%, 48% { opacity: 0; transform: scale(0.75); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  68% { opacity: 1; transform: scale(1.08); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  82%, 98% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-mouth {
  0%, 42% { opacity: 0; transform: scaleY(0.6); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  60%, 98% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-eyes {
  0%, 26% { opacity: 0; transform: translateX(0) scaleY(0.8); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  44% { opacity: 1; transform: translateX(2.5px) scaleY(1); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  70% { opacity: 1; transform: translateX(2.5px) scaleY(1); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  77% { opacity: 1; transform: translateX(1px) scaleY(0.14); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  85%, 98% { opacity: 1; transform: translateX(0) scaleY(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-pupils {
  0%, 28% { opacity: 0; transform: translateX(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  44% { opacity: 1; transform: translateX(3px); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  70% { opacity: 1; transform: translateX(3px); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  76%, 78% { opacity: 0; transform: translateX(1px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  85%, 98% { opacity: 1; transform: translateX(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-sucker-inner {
  0%, 34% { opacity: 0; transform: translateY(4px); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  48% { opacity: 1; transform: translateY(-2px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  60%, 98% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-sucker-mid {
  0%, 41% { opacity: 0; transform: translateY(4px); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  55% { opacity: 1; transform: translateY(-2px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  67%, 98% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-sucker-outer {
  0%, 48% { opacity: 0; transform: translateY(4px); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  62% { opacity: 1; transform: translateY(-2px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  74%, 98% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-octo-l1 { 0%, 19% { opacity: 0; transform: translateY(15px) scale(0.92); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 38% { opacity: 1; transform: translateY(-3px) scale(1.03); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 54%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-octo-l2 { 0%, 24% { opacity: 0; transform: translateY(15px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 43% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 59%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-octo-l3 { 0%, 29% { opacity: 0; transform: translateY(15px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 48% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 64%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-octo-l4 { 0%, 34% { opacity: 0; transform: translateY(15px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 53% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 69%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-octo-l5 { 0%, 39% { opacity: 0; transform: translateY(15px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 58% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 74%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-octo-l6 { 0%, 44% { opacity: 0; transform: translateY(15px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 63% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 79%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-octo-l7 { 0%, 49% { opacity: 0; transform: translateY(15px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 68% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 84%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-octo-endorse {
  0%, 70% { opacity: 0; clip-path: inset(-4px 105% -4px -4px); transform: translateX(-6px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  94%, 98% { opacity: 1; clip-path: inset(-4px -4px -4px -4px); transform: translateX(0); }
  100% { opacity: 1; clip-path: none; transform: none; }
}

/* Pelican Keyframes */
@keyframes p2m-peli-trace {
  0% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  4% { opacity: 1; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  34% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  46%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes p2m-peli-mark {
  0% { opacity: 0; transform: translate(-12px, -6px) rotate(-4deg); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  16% { opacity: 1; transform: translate(-14px, -7px) rotate(-5deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  44% { opacity: 1; transform: translate(2px, 1px) rotate(1deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  62%, 98% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-peli-wing {
  0%, 18% { transform: rotate(-10deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  38% { transform: rotate(9deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  56% { transform: rotate(-3deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  74%, 98% { transform: rotate(0deg); }
  100% { transform: none; }
}
@keyframes p2m-peli-pouch {
  0%, 18% { opacity: 1; transform: translateY(-2px) scale(0.95, 0.88); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  48% { opacity: 1; transform: translateY(3px) scale(0.95, 1.10); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  66% { opacity: 1; transform: translateY(-1px) scale(1.03, 0.96); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  84%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-peli-cargo {
  0%, 34% { opacity: 0; transform: translateY(-6px) scale(0.86); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  54% { opacity: 1; transform: translateY(2px) scale(1.05, 0.94); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  76%, 98% { opacity: 1; transform: translateY(0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-peli-gaze {
  0%, 62% { transform: translateX(0); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  74% { transform: translateX(2.2px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  92%, 98% { transform: translateX(0); }
  100% { transform: none; }
}
@keyframes p2m-peli-lp     { 0%, 20% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 40% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 58%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-peli-le     { 0%, 25% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 45% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 63%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-peli-ll     { 0%, 30% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 50% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 68%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-peli-listem { 0%, 35% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 55% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 73%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-peli-lc     { 0%, 40% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 60% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 78%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-peli-la     { 0%, 45% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 65% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 83%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-peli-ln     { 0%, 50% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 70% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 88%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-peli-idot {
  0%, 52% { opacity: 0; transform: translate(-6px, -10px) scale(0.6); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  64% { opacity: 1; transform: translate(-2px, -6px) scale(0.96, 1.05); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  76% { opacity: 1; transform: translate(0, 2px) scale(1.15, 0.85); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  88% { opacity: 1; transform: translate(0, -2px) scale(0.96, 1.04); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  96%, 98% { opacity: 1; transform: translate(0, 0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-peli-endorse {
  0%, 70% { opacity: 0; clip-path: inset(-4px 105% -4px -4px); transform: translateX(-6px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  94%, 98% { opacity: 1; clip-path: inset(-4px -4px -4px -4px); transform: translateX(0); }
  100% { opacity: 1; clip-path: none; transform: none; }
}

/* Owl Keyframes */
@keyframes p2m-owl-trace {
  0% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  5% { opacity: 1; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  32% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  44%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes p2m-owl-mark {
  0% { opacity: 0; transform: translateY(10px) scale(0.92, 0.88) rotate(-4deg); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  16% { opacity: 1; transform: translateY(6px) scale(0.96, 0.90) rotate(-3deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  40% { opacity: 1; transform: translateY(-4px) scale(0.97, 1.05) rotate(2deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  58%, 98% { opacity: 1; transform: translateY(0) scale(1, 1) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-owl-wing-l {
  0%, 18% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  36% { transform: rotate(-10deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  54% { transform: rotate(3deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  70%, 98% { transform: rotate(0deg); }
  100% { transform: none; }
}
@keyframes p2m-owl-wing-r {
  0%, 18% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  36% { transform: rotate(10deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  54% { transform: rotate(-3deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  70%, 98% { transform: rotate(0deg); }
  100% { transform: none; }
}
@keyframes p2m-owl-blink {
  0%, 64% { transform: scaleY(1); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  70% { transform: scaleY(0.08); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  78% { transform: scaleY(1.06); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  88%, 98% { transform: scaleY(1); }
  100% { transform: none; }
}
@keyframes p2m-owl-gaze {
  0%, 72% { transform: translateX(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  82% { transform: translateX(2.5px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  94%, 98% { transform: translateX(0); }
  100% { transform: none; }
}
@keyframes p2m-owl-beak {
  0%, 34% { transform: scale(1); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  46% { transform: scale(1.12, 0.86); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  58% { transform: scale(0.96, 1.06); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  70%, 98% { transform: scale(1); }
  100% { transform: none; }
}
@keyframes p2m-owl-belly {
  0%, 22% { opacity: 0; transform: scaleY(0.45); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  44% { opacity: 1; transform: scaleY(1.04); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  60%, 98% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-owl-bar1 {
  0%, 34% { opacity: 0; clip-path: inset(-4px 100% -4px -4px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  54%, 98% { opacity: 1; clip-path: inset(-4px -4px -4px -4px); }
  100% { opacity: 1; clip-path: none; }
}
@keyframes p2m-owl-bar2 {
  0%, 44% { opacity: 0; clip-path: inset(-4px 100% -4px -4px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  64%, 98% { opacity: 1; clip-path: inset(-4px -4px -4px -4px); }
  100% { opacity: 1; clip-path: none; }
}
@keyframes p2m-owl-dot {
  0%, 56% { opacity: 0; transform: scale(0.1); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  70% { opacity: 1; transform: scale(1.34); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  82%, 98% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-owl-lo { 0%, 24% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 46% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 64%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-owl-lw { 0%, 34% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 56% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 74%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-owl-ll { 0%, 44% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 66% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 84%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-owl-endorse {
  0%, 70% { opacity: 0; clip-path: inset(-4px 105% -4px -4px); transform: translateX(-6px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  94%, 98% { opacity: 1; clip-path: inset(-4px -4px -4px -4px); transform: translateX(0); }
  100% { opacity: 1; clip-path: none; transform: none; }
}

/* Dolphin Keyframes */
@keyframes p2m-dolphin-trace {
  0% { opacity: 0; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  4% { opacity: 1; stroke-dashoffset: 1; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  34% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  46%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes p2m-dolphin-mark {
  0% { opacity: 0; transform: translate(-10px, 14px) scale(0.92, 0.88) rotate(-8deg); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  16% { opacity: 1; transform: translate(-6px, 10px) scale(0.95, 0.90) rotate(-7deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  42% { opacity: 1; transform: translate(2px, -6px) scale(1.03, 0.98) rotate(3deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  60%, 98% { opacity: 1; transform: translate(0, 0) scale(1, 1) rotate(0deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-dolphin-fin {
  0%, 18% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  38% { transform: rotate(12deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  56% { transform: rotate(-4deg); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  72%, 98% { transform: rotate(0deg); }
  100% { transform: none; }
}
@keyframes p2m-dolphin-sonar1 {
  0%, 34% { opacity: 0; transform: translate(-4px, 4px) scale(0.45); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  50% { opacity: 1; transform: translate(1px, -1px) scale(1.16); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  62%, 98% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-dolphin-sonar2 {
  0%, 44% { opacity: 0; transform: translate(-6px, 6px) scale(0.45); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  60% { opacity: 1; transform: translate(1.5px, -1.5px) scale(1.14); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  72%, 98% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-dolphin-blink {
  0%, 64% { transform: scaleY(1); animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
  70% { transform: scaleY(0.08); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  78% { transform: scaleY(1.06); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  88%, 98% { transform: scaleY(1); }
  100% { transform: none; }
}
@keyframes p2m-dolphin-gaze {
  0%, 72% { transform: translateX(0); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  82% { transform: translateX(2.5px); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  94%, 98% { transform: translateX(0); }
  100% { transform: none; }
}
@keyframes p2m-dolphin-ld { 0%, 22% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 42% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 58%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-dolphin-lo { 0%, 27% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 47% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 63%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-dolphin-ll { 0%, 32% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 52% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 68%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-dolphin-lp { 0%, 37% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 57% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 73%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-dolphin-lh { 0%, 42% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 62% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 78%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-dolphin-li { 0%, 47% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 67% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 83%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-dolphin-ln { 0%, 52% { opacity: 0; transform: translateY(14px) scale(0.94); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); } 72% { opacity: 1; transform: translateY(-3px) scale(1.02); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); } 88%, 98% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 1; transform: none; } }
@keyframes p2m-dolphin-idot {
  0%, 50% { opacity: 0; transform: translate(-8px, -18px) scale(0.45); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  68% { opacity: 1; transform: translate(0, 2px) scale(1.18, 0.84); animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
  80% { opacity: 1; transform: translate(0, -2.5px) scale(0.96, 1.05); animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
  90%, 98% { opacity: 1; transform: translate(0, 0) scale(1, 1); }
  100% { opacity: 1; transform: none; }
}
@keyframes p2m-dolphin-endorse {
  0%, 70% { opacity: 0; clip-path: inset(-4px 105% -4px -4px); transform: translateX(-6px); animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
  94%, 98% { opacity: 1; clip-path: inset(-4px -4px -4px -4px); transform: translateX(0); }
  100% { opacity: 1; clip-path: none; transform: none; }
}

/* ==========================================================================
   Lucian Floating Dual-Panel Shell (Warm Stone / Obsidian Outer + Panel Islands)
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  padding: 12px;
  background: var(--g-bg);
}

.sidebar {
  position: fixed;
  top: 12px;
  left: 12px;
  bottom: 12px;
  width: 228px;
  padding: 18px 14px;
  background: var(--g-panel);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px var(--g-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 40;
  transition: transform 220ms var(--ease);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 6px;
  min-height: 36px;
}

.sidebar-search-btn {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  color: var(--fg-muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}
.sidebar-search-btn:hover {
  border-color: var(--hairline-strong);
  color: var(--fg-primary);
}

.nav-section-label {
  padding: 10px 8px 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.nav-item:hover {
  background: var(--bg-subtle);
  color: var(--fg-primary);
}
.nav-item.is-active {
  background: var(--bg-raised);
  color: var(--fg-primary);
  font-weight: 600;
}
.nav-item.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.nav-item-left span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.habitat-link {
  width: 100%;
  min-height: 33px;
  padding: 0 10px;
  border-radius: var(--r-md);
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.habitat-link:hover {
  background: var(--bg-subtle);
  color: var(--fg-primary);
}
.habitat-link-inner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--g-line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-chip {
  width: 100%;
  padding: 7px 8px;
  border-radius: var(--r-md);
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-primary);
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms var(--ease);
}
.user-chip:hover {
  background: var(--bg-subtle);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  z-index: 35;
}
.sidebar-overlay.is-open {
  display: block;
}

.main-wrap {
  flex: 1;
  margin-left: 238px;
  min-width: 0;
  min-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  background: var(--g-panel);
  border-radius: var(--r-xl);
  box-shadow: 0 0 0 1px var(--g-line);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  height: 54px;
  padding: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-bottom: 1px solid var(--g-line);
  background: color-mix(in srgb, var(--g-panel) 84%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.topbar-inner {
  width: 100%;
  max-width: 1600px;
  height: 100%;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu-btn,
.mobile-brand-wrap {
  display: none !important;
}

.stage-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 36px 80px;
}

.stage-view {
  animation: viewFadeIn 180ms var(--ease);
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.page-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-secondary);
}

.split-2 > *,
.bento-grid > *,
.svc-grid > *,
.mcp-docs-grid > *,
.row-between > * {
  min-width: 0;
}

.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   Surfaces, Minimalist Overview App Cards & Flat Hero
   ========================================================================== */

.card,
.surface-card,
.bento-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}

.card-pad,
.bento-card {
  padding: 20px;
}

.bento-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bento-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.bento-card-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--fg-muted);
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}
.bento-span-12 { grid-column: span 12; }
.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 12px;
}
.section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: -0.01em;
}
.section-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

/* Overview Services Grid — Crisp Flat Hairline Cards */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.svc-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 158px;
  transition: background-color 160ms var(--ease), box-shadow 180ms var(--ease);
}
.svc-card:hover {
  background: var(--bg-raised);
  box-shadow: 0 8px 24px -12px var(--g-shadow), 0 0 0 1px var(--hairline-strong);
}

.svc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.svc-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.svc-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-card-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.svc-card-foot {
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.species-host-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fg-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Owl In-Development blurred presentation */
.species-indev-blur {
  filter: blur(1.15px);
  opacity: 0.72;
  user-select: none;
  pointer-events: none;
}
.svc-card--indev {
  cursor: default;
}
.svc-card--indev:hover {
  background: var(--bg-card);
  border-color: var(--hairline);
}
.habitat-link.is-blurred {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 1;
}
.habitat-link.is-blurred .habitat-link-inner {
  filter: blur(0.7px);
  opacity: 0.70;
}
.pill--owl-indev {
  border-color: var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-muted);
}

/* Subtle small species dots & accents */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--fg-muted);
  flex-shrink: 0;
}
.status-dot--canopy,
.status-dot--ok { background: var(--positive); }
.status-dot--octopus { background: var(--octopus-accent); }
.status-dot--pelican { background: var(--pelican-accent); }
.status-dot--owl { background: var(--owl-accent); }
.status-dot--dolphin { background: var(--dolphin-accent); }
.status-dot--convert { background: var(--convert-accent); }
.status-dot--bigroll { background: var(--bigroll-accent); }

/* ==========================================================================
   Buttons, Pills, Badges & Segmented Controls
   ========================================================================== */

.btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: var(--g-btn);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--fg-primary);
  font-size: 13px;
  font-weight: 560;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), box-shadow 140ms var(--ease), opacity 140ms var(--ease);
}
.btn:hover:not(:disabled) {
  background: var(--g-btn-h);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 8px 20px -10px var(--g-shadow);
  font-weight: 620;
}
.btn-primary:hover:not(:disabled) {
  background: var(--btn-bg);
  box-shadow: 0 10px 24px -10px var(--g-shadow);
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  box-shadow: none;
  color: var(--fg-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--g-pill);
  box-shadow: none;
  color: var(--fg-primary);
}

.btn-danger {
  background: var(--danger-bg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 30%, transparent);
  color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 48%, transparent);
}

.btn-sm {
  height: 31px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: var(--r-sm);
}

.btn-lg {
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--r-md);
}

.inline-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--fg-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: color 120ms var(--ease);
}
.inline-link-btn:hover {
  color: var(--fg-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kbd {
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 23px;
  padding: 0 9px;
  border-radius: 999px;
  border: none;
  background: var(--g-pill);
  box-shadow: inset 0 0 0 1px var(--g-line);
  color: var(--fg-secondary);
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}

.pill-canopy,
.tag-ok {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--positive) 28%, transparent);
  background: var(--positive-bg);
  color: var(--positive);
}

.pill-warning,
.tag-warn {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 28%, transparent);
  background: var(--warning-bg);
  color: var(--warning);
}

.pill-danger,
.tag-danger {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 30%, transparent);
  background: var(--danger-bg);
  color: var(--danger);
}

.tag-accent {
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
  background: var(--bg-raised);
  color: var(--fg-primary);
}

.pill-octopus {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--octopus-accent) 30%, transparent);
  background: color-mix(in srgb, var(--octopus-accent) 10%, transparent);
  color: var(--octopus-accent);
}
.pill-pelican {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pelican-accent) 30%, transparent);
  background: color-mix(in srgb, var(--pelican-accent) 10%, transparent);
  color: var(--pelican-accent);
}
.pill-owl {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--owl-accent) 30%, transparent);
  background: color-mix(in srgb, var(--owl-accent) 10%, transparent);
  color: var(--owl-accent);
}
.pill-dolphin {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--dolphin-accent) 30%, transparent);
  background: color-mix(in srgb, var(--dolphin-accent) 10%, transparent);
  color: var(--dolphin-accent);
}
.pill-convert {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--convert-accent) 30%, transparent);
  background: color-mix(in srgb, var(--convert-accent) 10%, transparent);
  color: var(--convert-accent);
}

.seg-group {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-md);
  border: none;
  background: var(--g-pill);
  gap: 2px;
}
.seg-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 8.5px;
  border: none;
  background: transparent;
  color: var(--fg-secondary);
  font-size: 12.5px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.seg-btn:hover { color: var(--fg-primary); }
.seg-btn.is-active {
  background: var(--bg-raised);
  color: var(--fg-primary);
  font-weight: 600;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  height: 31px;
  padding: 0 13px;
  border-radius: 999px;
  border: none;
  background: var(--g-pill);
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 130ms var(--ease), background-color 130ms var(--ease);
}
.filter-pill:hover {
  background: var(--g-pill-h);
  color: var(--fg-primary);
}
.filter-pill.is-active {
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-chip {
  height: 28px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.project-chip.is-active {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: transparent;
}

.alert {
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.alert-info {
  border-color: var(--hairline-strong);
  background: var(--bg-raised);
  color: var(--fg-secondary);
}
.alert-success {
  border-color: rgba(34, 197, 94, 0.30);
  background: var(--positive-bg);
  color: var(--positive);
}
.alert-danger {
  border-color: rgba(239, 68, 68, 0.32);
  background: var(--danger-bg);
  color: var(--danger);
}

/* ==========================================================================
   Inputs, Selects, Avatars & Toolbars
   ========================================================================== */

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.input,
.select,
.clean-select,
.textarea {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--g-line);
  background: var(--bg-input);
  color: var(--fg-primary);
  font-size: 13.5px;
  outline: none;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.input,
.select,
.clean-select {
  height: 38px;
  padding: 0 12px;
}

.select,
.clean-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

html[data-theme="light"] .select,
html[data-theme="light"] .clean-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525B' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.select {
  padding: 0 36px 0 12px;
  background-position: right 12px center;
  background-size: 15px 15px;
}

.clean-select {
  height: 32px;
  padding: 0 32px 0 10px;
  background-position: right 10px center;
  background-size: 14px 14px;
  font-size: 12.5px;
  min-width: 136px;
}

.clean-select.off {
  color: var(--fg-muted);
}

.clean-select:disabled {
  opacity: 0.68;
  cursor: default;
}

.textarea {
  padding: 10px 12px;
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}

.input:focus,
.select:focus,
.clean-select:focus,
.textarea:focus {
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--fg-muted);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap .input {
  padding-right: 38px;
}
.input-clear-btn,
.pw-eye-btn {
  position: absolute;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.input-clear-btn:hover,
.pw-eye-btn:hover {
  color: var(--fg-primary);
  background: var(--bg-subtle);
}

.search-box {
  position: relative;
  min-width: 268px;
}
.search-box-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  pointer-events: none;
}
.search-box .input {
  padding-left: 34px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: var(--g-search);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 0 0 1px var(--g-search-line), 0 10px 24px -14px var(--g-shadow);
  font-size: 13px;
}
.search-box .input:focus {
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 12px 26px -14px var(--g-shadow);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.avatar-32,
.avatar-56 {
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  color: var(--fg-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-32 { width: 32px; height: 32px; font-size: 12px; }
.avatar-56 { width: 56px; height: 56px; font-size: 18px; }
.avatar-img { object-fit: cover; display: block; border-radius: 999px; border: 1px solid var(--hairline); flex-shrink: 0; }

.avatar-uploader {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-drop-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-md);
  border: 1px dashed var(--hairline-strong);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font-size: 12.5px;
  cursor: pointer;
}
.file-drop-label:hover {
  border-color: var(--fg-primary);
  color: var(--fg-primary);
}

/* ==========================================================================
   Tables, IAM Row Menu, Tickets, Secrets, Identity & MCP Hub
   ========================================================================== */

.table-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  overflow: visible;
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.clean-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
.clean-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
}
.td-nowrap {
  white-space: nowrap;
}
.clean-table tbody tr:last-child td {
  border-bottom: none;
}
.clean-table tbody tr.is-clickable {
  cursor: pointer;
  transition: background-color 120ms var(--ease);
}
.clean-table tbody tr.is-clickable:hover {
  background: var(--bg-subtle);
}

/* IAM Stats & Row ⋯ Action Popover */
.iam-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.iam-stat-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
}
.stat-value {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.row-menu-wrap {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}
.row-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 196px;
  padding: 6px;
  border-radius: var(--r-lg);
  border: none;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-float);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.row-menu-item {
  width: 100%;
  padding: 7px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-primary);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.row-menu-item:hover {
  background: var(--bg-raised);
}
.row-menu-item--danger {
  color: var(--danger);
}
.row-menu-divider {
  height: 1px;
  margin: 3px 4px;
  background: var(--hairline);
}

/* Tickets & Quick Ticket Items */
.quick-ticket-item {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 120ms var(--ease), background-color 120ms var(--ease);
}
.quick-ticket-item:hover {
  border-color: var(--hairline-strong);
  background: var(--bg-subtle);
}

.ticket-subject-cell { min-width: 300px; max-width: none; }
.ticket-desc-clamp {
  font-size: 12px;
  color: var(--fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
}
.th-species { width: 120px; }

.thread-entry {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
}
.thread-entry--resolved {
  border-color: rgba(34, 197, 94, 0.25);
  background: var(--positive-bg);
}
.thread-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.thread-thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--hairline);
}

.form-grid-ticket {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.divider-top {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.empty-state {
  padding: 36px 20px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
}

/* Identity & Security (Passkeys, 2FA, Sessions) */
.hw-key-list,
.session-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hw-key-card,
.session-row {
  padding: 11px 13px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hw-key-left,
.session-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.hw-key-chip,
.session-ico {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  color: var(--fg-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.totp-qr-panel {
  padding: 14px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qr-frame {
  width: 148px;
  height: 148px;
  padding: 8px;
  border-radius: var(--r-md);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-frame svg, .qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.otp-grid {
  display: flex;
  justify-content: center;
  gap: 7px;
}
.otp-cell {
  width: 40px;
  height: 46px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-stage);
  color: var(--fg-primary);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  outline: none;
}
.otp-cell:focus {
  border-color: var(--fg-primary);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.otp-cell--sm {
  width: 34px;
  height: 40px;
  font-size: 16px;
}

/* Secret Vault & /s/<token> */
.secrets-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
}
.secret-textarea {
  min-height: 112px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.secret-ready-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-raised);
}
.secret-ready-title {
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.secret-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.secret-code-text {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: var(--bg-stage);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.secret-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.secret-audit-item {
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
}
.secret-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}
.secret-audit-meta {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--fg-muted);
}

.vault-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-stage);
}
.vault-topbar {
  height: 52px;
  padding: 0 24px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vault-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.secret-share-card {
  width: 100%;
  max-width: 640px;
  padding: 28px;
  border-radius: var(--r-2xl);
  border: none;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-float);
}
.secret-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.secret-meta-cell {
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
}
.secret-meta-label { font-size: 11px; color: var(--fg-muted); }
.secret-meta-val { margin-top: 2px; font-size: 13px; font-weight: 600; }
.secret-vault-pre {
  margin: 0;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline);
  background: var(--bg-stage);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.secret-vault-pre.is-masked {
  color: var(--fg-muted);
  letter-spacing: 0.16em;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   Centralized Multi-App MCP Hub (#mcp)
   ========================================================================== */

.mcp-app-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.mcp-app-tab {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: none;
  background: var(--g-pill);
  color: var(--fg-secondary);
  font-size: 13px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: background-color 130ms var(--ease), color 130ms var(--ease);
}
.mcp-app-tab:hover {
  color: var(--fg-primary);
  background: var(--g-pill-h);
}
.mcp-app-tab.is-active {
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
}

.mcp-code-wrap {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  background: var(--bg-stage);
  overflow: hidden;
}
.mcp-code-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-secondary);
}
.mcp-code-pre {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg-primary);
  overflow-x: auto;
  white-space: pre;
}

.mcp-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.mcp-doc-card {
  padding: 16px 18px;
  border-radius: var(--r-xl);
  border: none;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   Centered Minimalist Sign-In Gate / Forgot / Reset Password
   ========================================================================== */

.gate-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-stage);
  padding: 18px 24px 24px;
}

.gate-topbar {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gate-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}

.gate-card {
  width: 100%;
  max-width: 400px;
  padding: 32px 28px;
  border-radius: var(--r-2xl);
  border: none;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gate-card-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.gate-emblem-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: none;
  background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gate-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.gate-sub {
  margin: 0;
  font-size: 13px;
  color: var(--fg-secondary);
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.gate-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--fg-muted);
}
.gate-divider::before,
.gate-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.gate-footer {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--fg-muted);
}

/* ==========================================================================
   Modals, Command Palette & Toasts
   ========================================================================== */

.dialog-backdrop,
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cmdk-backdrop {
  align-items: flex-start;
  padding-top: min(14vh, 110px);
}

.dialog-card {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: var(--r-2xl);
  border: none;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-float);
}
.dialog-card--wide {
  max-width: 840px;
}

.dialog-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.dialog-body {
  padding: 18px 22px;
}

.dialog-foot {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cmdk-dialog {
  width: 100%;
  max-width: 640px;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-card);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.cmdk-input-row {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmdk-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--fg-primary);
  font-size: 14px;
  outline: none;
}
.cmdk-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
}
.cmdk-group-label {
  padding: 6px 10px 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-muted);
}
.cmdk-item {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--fg-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}
.cmdk-item:hover,
.cmdk-item.is-selected {
  background: var(--bg-raised);
}
.cmdk-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cmdk-item-sub {
  font-size: 11.5px;
  color: var(--fg-muted);
}
.cmdk-foot {
  padding: 8px 12px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--fg-muted);
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}
.toast-item {
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-card);
  color: var(--fg-primary);
  font-size: 13px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 9px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mcp-docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bento-span-7,
  .bento-span-5 {
    grid-column: span 12;
  }
  .secrets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .topbar-inner {
    padding: 0 32px;
  }
  .stage-container {
    padding: 24px 32px 64px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 0;
    background: var(--g-panel);
  }
  .sidebar {
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 0 22px 22px 0;
    background: var(--bg-elevated);
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: width .6s cubic-bezier(.3, 1.3, .45, 1), transform 240ms var(--ease), visibility 0s 240ms !important;
    width: min(296px, 84vw);
    padding: calc(14px + env(safe-area-inset-top)) 14px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: width .6s cubic-bezier(.3, 1.3, .45, 1), transform 240ms var(--ease), visibility 0s !important;
    box-shadow: var(--shadow-float);
  }
  body.is-drawer-open {
    overflow: hidden;
  }
  .sidebar .nav-item,
  .sidebar .habitat-link {
    min-height: 44px;
    font-size: 14px;
  }
  .main-wrap {
    margin-left: 0;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
  }
  .mobile-brand-wrap {
    display: inline-flex !important;
    align-items: center;
  }
  .mobile-brand-logo {
    height: 22px;
  }
  .desktop-only-kbd,
  .topbar-tab-title {
    display: none !important;
  }
  .topbar {
    border-radius: 0;
    height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 0 0;
  }
  .topbar-inner {
    padding: 0 14px;
    gap: 8px;
  }
  .topbar-left-group,
  .topbar-right-group {
    flex-wrap: nowrap;
    min-width: 0;
  }
  .stage-container {
    padding: 14px 14px calc(94px + env(safe-area-inset-bottom));
  }
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 34;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--hairline);
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .mob-tab-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 46px;
    padding: 3px 2px;
    border: none;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--fg-muted);
    font-size: 10.5px;
    font-weight: 500;
    cursor: pointer;
    transition: color 120ms var(--ease), background-color 120ms var(--ease);
  }
  .mob-tab-btn.is-active {
    color: var(--fg-primary);
    font-weight: 600;
  }
  .mob-tab-btn.is-locked {
    opacity: 0.4;
  }
  .mob-tab-ico {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mob-tab-ico .ico {
    width: 19px;
    height: 19px;
  }
  .mob-tab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mob-tab-badge {
    position: absolute;
    top: -5px;
    right: -11px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--fg-primary);
    color: var(--bg-stage);
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    max-width: none;
  }
  .iam-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .iam-stat-card {
    padding: 11px 10px;
  }
  .iam-stat-card .stat-label {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .iam-stat-card .stat-value {
    font-size: 17px;
  }
}

@media (max-width: 760px) {
  .table-card:has(.clean-table--tickets),
  .table-card:has(.clean-table--mcp),
  .table-card:has(.clean-table--iam) {
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .clean-table--tickets thead,
  .clean-table--mcp thead,
  .clean-table--iam thead {
    display: none;
  }
  .clean-table--tickets tbody,
  .clean-table--mcp tbody,
  .clean-table--iam tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .clean-table--tickets tbody tr,
  .clean-table--mcp tbody tr,
  .clean-table--iam tbody tr {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-xl);
  }
  .clean-table--tickets tbody td,
  .clean-table--mcp tbody td,
  .clean-table--iam tbody td {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: none;
    text-align: left !important;
    white-space: normal;
  }
  .ticket-subject-cell {
    min-width: 0;
  }
  .clean-table--tickets td[colspan] {
    grid-column: 1 / -1;
  }
  .clean-table--tickets tbody tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "id app status"
      "subj subj subj"
      "author sev updated"
      "action action action";
    gap: 8px;
    align-items: center;
  }
  .clean-table--tickets .td-tk-id { grid-area: id; }
  .clean-table--tickets .td-tk-app { grid-area: app; }
  .clean-table--tickets .td-tk-status { grid-area: status; justify-self: end; width: auto; }
  .clean-table--tickets .td-tk-subj { grid-area: subj; }
  .clean-table--tickets .td-tk-author { grid-area: author; }
  .clean-table--tickets .td-tk-sev { grid-area: sev; }
  .clean-table--tickets .td-tk-updated { grid-area: updated; justify-self: end; width: auto; }
  .clean-table--tickets .td-tk-action { grid-area: action; padding-top: 8px; border-top: 1px solid var(--hairline); }
  .clean-table--tickets .td-tk-action .btn { width: 100%; height: 36px; }

  .clean-table--mcp .td-mcp-client {
    font-size: 14.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--hairline);
  }
  .clean-table--mcp .td-mcp-field,
  .clean-table--iam .td-iam-role {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .clean-table--mcp .td-mcp-field::before,
  .clean-table--iam .td-iam-role::before {
    content: attr(data-label);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--fg-secondary);
    flex-shrink: 0;
  }
  .clean-table--mcp .td-mcp-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
  }
  .clean-table--iam .td-iam-member {
    padding-right: 40px;
  }
  .clean-table--iam .td-iam-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto;
    padding: 0;
  }
  .clean-table--iam tbody tr .td-iam-role:nth-last-child(2) {
    border-bottom: none;
    padding-bottom: 0;
  }
  .clean-table--iam .td-iam-sec {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hairline);
  }
  .clean-table--iam .clean-select {
    width: auto;
    min-width: 156px;
    max-width: 60%;
    height: 38px;
  }
  .row-menu-popover {
    right: 0;
    left: auto;
    max-width: calc(100vw - 56px);
  }
}

@media (max-width: 600px) {
  .svc-grid,
  .mcp-docs-grid,
  .split-2,
  .form-grid-ticket,
  .secret-meta-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    gap: 10px;
    margin-bottom: 14px;
  }
  .page-title {
    font-size: 21px;
  }
  .page-sub {
    margin-top: 4px;
    font-size: 13px;
  }
  .gate-shell {
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
  }
  .gate-card {
    padding: 24px 18px;
  }
  .svc-card {
    min-height: 0;
    padding: 16px;
  }
  .toolbar-controls {
    width: 100%;
    gap: 8px;
  }
  .seg-group {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .seg-group::-webkit-scrollbar {
    display: none;
  }
  .seg-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 10px;
    font-size: 12px;
  }
  .search-box {
    min-width: 0;
    flex: 1 1 100%;
    width: 100%;
  }
  .filter-pills,
  .mcp-app-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-pills::-webkit-scrollbar,
  .mcp-app-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-pill,
  .mcp-app-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .hw-key-card > button,
  .session-row > button {
    flex-shrink: 0;
  }
  .secret-copy-row {
    flex-wrap: wrap;
  }
  .secret-copy-row .secret-code-text {
    min-width: 160px;
  }
  .mcp-code-head {
    flex-wrap: wrap;
    gap: 8px;
  }
  .dialog-backdrop,
  .live-drop-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .cmdk-backdrop {
    padding: calc(12px + env(safe-area-inset-top)) 10px 10px;
  }
  .dialog-card,
  .dialog-card--wide,
  .live-drop-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    max-height: 90dvh;
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .dialog-card > form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .live-drop-card {
    display: block;
    overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  }
  .dialog-head {
    flex-shrink: 0;
    padding: 16px 16px 12px;
  }
  .dialog-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 16px;
  }
  .dialog-foot {
    flex-shrink: 0;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .totp-qr-panel .row-gap-md {
    flex-direction: column;
    align-items: stretch;
  }
  .vault-topbar {
    height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
  }
  .vault-topbar .pill {
    display: none;
  }
  .vault-center {
    padding: 16px 12px calc(24px + env(safe-area-inset-bottom));
  }
  .secret-share-card {
    padding: 20px 16px;
  }
}

/* ==========================================================================
   Bigroll Drop Studio & Peer Radar (v3.6.0 — Restrained Spatial Craft)
   ========================================================================== */

.radar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: none;
  background: var(--g-pill);
  box-shadow: inset 0 0 0 1px var(--g-line);
  color: var(--fg-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 140ms var(--ease), background-color 140ms var(--ease);
}
.radar-pill:hover {
  background: var(--g-pill-h);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.radar-pill.is-idle {
  color: var(--fg-secondary);
}

.drop-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  flex-shrink: 0;
}
.radar-pill.is-idle .drop-live-dot {
  background: var(--fg-muted);
}

@media (max-width: 720px) {
  .topbar-sso-pill {
    display: none;
  }
  #br-online-pill-slot:has(.radar-pill.is-idle) {
    display: none;
  }
  #br-online-pill-slot {
    min-width: 0;
    flex: 0 1 auto;
    max-width: 148px;
  }
  .radar-pill {
    max-width: 100%;
    padding: 0 10px;
    font-size: 11px;
    overflow: hidden;
  }
  .radar-pill span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
}

/* Segmented Mode / TTL Controls */

.drop-seg-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
}
.drop-seg-btn {
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--fg-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.drop-seg-btn:hover {
  color: var(--fg-primary);
}
.drop-seg-btn.is-active {
  background: var(--bg-card);
  color: var(--fg-primary);
  border-color: var(--hairline-strong);
  font-weight: 600;
}

.drop-ttl-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
}
.drop-ttl-btn {
  height: 26px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.drop-ttl-btn:hover {
  color: var(--fg-primary);
}
.drop-ttl-btn.is-active {
  background: var(--bg-card);
  color: var(--fg-primary);
  border-color: var(--hairline-strong);
}

/* Centered 3-Part Drop Card (v3.7.0 — Pure AirDrop Simplicity) */

.drop-simple-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drop-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.drop-people-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.drop-people-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--fg-secondary);
}

.drop-people-strip {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
  scrollbar-width: thin;
}
.drop-people-strip--compact {
  gap: 6px;
}

.drop-person-tile {
  flex: 0 0 auto;
  min-width: 96px;
  max-width: none;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease);
}
.drop-person-tile:hover {
  background: var(--bg-raised);
  border-color: var(--hairline-strong);
}
.drop-person-tile.is-selected {
  background: var(--bg-raised);
  border-color: var(--fg-primary);
}
.drop-person-tile.is-drag-target {
  background: var(--bg-raised);
  border-color: var(--positive);
  transform: translateY(-2px);
}
.drop-person-tile--compact {
  flex-direction: row;
  min-width: 0;
  max-width: none;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  gap: 7px;
  text-align: left;
}
.drop-person-tile--compact .drop-person-name {
  max-width: none;
}
.drop-person-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-primary);
  max-width: 156px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-person-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-muted);
  line-height: 1;
  white-space: nowrap;
}
.drop-person-sub.is-lan {
  color: var(--positive);
  font-weight: 500;
}
.drop-person-sub.is-online {
  color: var(--convert-accent);
}
.drop-person-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  margin-left: 3px;
}
.drop-person-tag.is-lan {
  color: var(--positive);
}
.drop-person-tag.is-online {
  color: var(--convert-accent);
}

/* Avatars */

.drop-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--hairline-strong);
  color: var(--fg-primary);
  font-size: 12.5px;
  font-weight: 600;
}
.drop-avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 14px;
}
.drop-avatar--sm {
  width: 24px;
  height: 24px;
  font-size: 10.5px;
}
.drop-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.drop-person-tile.is-selected .drop-avatar {
  border-color: var(--fg-primary);
}
.drop-avatar-status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--positive);
  border: 2px solid var(--bg-card);
}
.drop-avatar-status.is-online-wan {
  background: var(--convert-accent);
}
.drop-live-dot.is-online-wan {
  background: var(--convert-accent);
  box-shadow: none;
}

.drop-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.drop-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.drop-options-pill {
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--fg-secondary);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.drop-options-pill:hover,
.drop-options-pill.is-open {
  background: var(--bg-subtle);
  border-color: var(--hairline-strong);
  color: var(--fg-primary);
}

.drop-options-drawer {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Unified Dropzone + Text Canvas */

.drop-canvas {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--hairline-strong);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  min-height: 224px;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}
.drop-canvas:focus-within {
  border-color: var(--fg-secondary);
}
.drop-canvas.is-dragover {
  border-color: var(--fg-primary);
  border-style: dashed;
  background: var(--bg-raised);
}
.drop-canvas--compact {
  min-height: 132px;
}

.drop-drag-overlay {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: rgba(9, 9, 11, 0.84);
  color: #FAFAFA;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
  z-index: 4;
}
html[data-theme="light"] .drop-drag-overlay {
  background: rgba(237, 241, 238, 0.88);
  color: var(--fg-primary);
}
.drop-canvas.is-dragover .drop-drag-overlay {
  display: flex;
}

.drop-textarea {
  width: 100%;
  flex: 1;
  min-height: 132px;
  padding: 14px 16px 8px;
  border: none;
  background: transparent;
  color: var(--fg-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}
.drop-canvas--compact .drop-textarea {
  min-height: 82px;
  padding: 12px 14px 6px;
}
.drop-textarea::placeholder {
  color: var(--fg-muted);
  font-family: var(--font-sans);
}

.drop-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
}
.drop-file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  min-width: 0;
}
.drop-file-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-secondary);
}
.drop-file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.drop-file-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drop-file-remove {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.drop-file-remove:hover {
  background: var(--bg-raised);
  color: var(--fg-primary);
}

.drop-canvas-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-top: 1px solid var(--hairline);
}

.drop-file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Composer Footer & High-Contrast Solid CTA */

.drop-composer-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.drop-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.drop-meta-toggle {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--fg-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.drop-meta-toggle:hover,
.drop-meta-toggle.is-active {
  background: var(--bg-raised);
  border-color: var(--hairline-strong);
  color: var(--fg-primary);
}

.drop-cta-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 8px 20px -10px var(--g-shadow);
  font-size: 13px;
  font-weight: 620;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 140ms var(--ease), transform 120ms var(--ease), box-shadow 140ms var(--ease);
}
.drop-cta-btn:hover:not(:disabled) {
  opacity: 0.9;
}
.drop-cta-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.drop-cta-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
}
.drop-cta-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.drop-upload-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--bg-raised);
  overflow: hidden;
}
.drop-upload-bar-fill {
  height: 100%;
  background: var(--fg-primary);
  transition: width 120ms var(--ease);
}

.drop-transport-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), opacity 140ms var(--ease);
}
.drop-transport-pill:hover {
  opacity: 0.88;
}
.drop-transport-pill .ico {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.drop-transport-pill.is-lan {
  border-color: rgba(34, 197, 94, 0.30);
  background: var(--positive-bg);
  color: var(--positive);
}
.drop-transport-pill.is-online {
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.10);
  color: var(--convert-accent);
}
html[data-theme="light"] .drop-transport-pill.is-online {
  border-color: rgba(2, 132, 199, 0.28);
  background: rgba(2, 132, 199, 0.08);
}
.drop-transport-pill.is-probing {
  color: var(--fg-muted);
}

.drop-route-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.drop-route-badge .ico {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.drop-route-badge.is-lan {
  border-color: rgba(34, 197, 94, 0.30);
  background: var(--positive-bg);
  color: var(--positive);
}
.drop-route-badge.is-online {
  border-color: rgba(56, 189, 248, 0.30);
  background: rgba(56, 189, 248, 0.10);
  color: var(--convert-accent);
}
html[data-theme="light"] .drop-route-badge.is-online {
  border-color: rgba(2, 132, 199, 0.28);
  background: rgba(2, 132, 199, 0.08);
}

.drop-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tracker, Incoming Drops & History Table */

.drop-tracker-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-raised);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.drop-tracker-banner.is-opened {
  border-color: var(--positive);
}

.drop-link-strip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
}

.incoming-inbox-panel {
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline-strong);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.incoming-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.drop-history-card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 20px;
}
.drop-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.drop-history-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.drop-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--hairline);
}
.drop-history-row:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}

/* Quick Launchpad Peer Strip */

.drop-quick-peers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.drop-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 10px 0 4px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.drop-quick-chip:hover {
  color: var(--fg-primary);
  border-color: var(--hairline-strong);
}
.drop-quick-chip.is-selected {
  background: var(--bg-raised);
  border-color: var(--fg-secondary);
  color: var(--fg-primary);
  font-weight: 600;
}

/* Modal & Decrypted Transfer Viewer (Copy + Download + Inline Image) */

.live-drop-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 72;
}
.dialog-backdrop[data-backdrop="confirm"] {
  z-index: 76;
}
.live-drop-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: var(--r-2xl);
  background: var(--bg-elevated);
  border: none;
  box-shadow: var(--shadow-float);
  animation: dialogEnter 200ms var(--ease) both;
}

.drop-preview-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.drop-preview-card {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  overflow: hidden;
}
.drop-preview-stage {
  background: rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  max-height: 280px;
}
html[data-theme="light"] .drop-preview-stage {
  background: rgba(23, 35, 31, 0.05);
}
.drop-preview-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.drop-preview-foot {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
}

.drop-unlocked-files {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drop-unlocked-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.drop-ext-badge {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--fg-secondary);
  flex-shrink: 0;
}

.drop-decoded-box {
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  overflow: hidden;
}
.drop-decoded-box .secret-vault-pre {
  border: 0;
  border-radius: 0;
}
.drop-decoded-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 960px) {
  .drop-history-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .drop-simple-shell {
    gap: 14px;
  }
  .drop-card {
    padding: 14px;
    gap: 12px;
  }
  .drop-people-strip {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
    padding: 2px 2px 4px;
  }
  .drop-people-strip::-webkit-scrollbar {
    display: none;
  }
  .drop-person-tile {
    min-width: 84px;
    padding: 9px 10px;
  }
  .drop-canvas {
    min-height: 152px;
  }
  .drop-textarea {
    min-height: 96px;
    padding: 12px 14px 6px;
  }
  .drop-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .drop-action-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }
  .drop-action-buttons > * {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
  .drop-action-buttons .btn,
  .drop-action-buttons .drop-cta-btn {
    height: 42px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 13px;
  }
  .drop-cta-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cx-dropzone.is-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
  }
  .cx-result-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* ==========================================================================
   ConvertX Native Converter Studio (v3.9.0)
   ========================================================================== */

.cx-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cx-dropzone {
  position: relative;
  border: 1.5px dashed var(--hairline-strong);
  border-radius: 14px;
  background: var(--bg-subtle);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease);
}
.cx-dropzone:hover,
.cx-dropzone.is-dragover {
  border-color: var(--positive);
  background: var(--bg-raised);
}
.cx-dropzone.is-compact {
  padding: 16px 18px;
  flex-direction: row;
  justify-content: space-between;
  text-align: left;
}
.cx-dropzone-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--bg-card);
  border: 1px solid var(--hairline-strong);
  color: var(--positive);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cx-dropzone-icon .ico {
  width: 19px;
  height: 19px;
}

.cx-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cx-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
}
.cx-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-raised);
  overflow: hidden;
  margin-top: 5px;
}
.cx-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--positive);
  transition: width 160ms var(--ease);
}

.cx-target-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.cx-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cx-fmt-pill {
  height: 31px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease);
}
.cx-fmt-pill:hover {
  border-color: var(--hairline-strong);
  color: var(--fg-primary);
  background: var(--bg-raised);
}
.cx-fmt-pill.is-active {
  border-color: var(--fg-primary);
  background: var(--accent-soft);
  color: var(--fg-primary);
  font-weight: 600;
}
.cx-fmt-eng {
  font-size: 10px;
  color: var(--fg-muted);
  font-weight: 400;
}
.cx-fmt-pill.is-active .cx-fmt-eng {
  color: var(--fg-secondary);
}

.cx-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cx-search-ico {
  position: absolute;
  left: 11px;
  color: var(--fg-muted);
  pointer-events: none;
  display: inline-flex;
}
.cx-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}
.cx-search-input:focus {
  border-color: var(--hairline-strong);
  background: var(--bg-card);
}

.cx-engine-browser {
  max-height: 260px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cx-engine-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.cx-result-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cx-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
}
.cx-result-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .input,
  .select,
  .clean-select,
  .textarea,
  .drop-textarea,
  .cx-search-input,
  .cmdk-input,
  .search-box .input {
    font-size: 16px;
  }
}

/* ==========================================================================
   Accessibility: Reduced Motion Mandate
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .live-drop-card,
  .p2m-br-portal-trace,
  .p2m-br-mark,
  .p2m-br-l-b1,
  .p2m-br-l-istem,
  .p2m-br-l-idot,
  .p2m-br-l-g,
  .p2m-br-l-r,
  .p2m-br-l-o,
  .p2m-br-l-l1,
  .p2m-br-l-l2,
  .p2m-em-rim-trace,
  .p2m-em-outer,
  .p2m-em-inner,
  .p2m-em-b,
  .p2m-idle-float,
  .p2m-oc-ring-trace,
  .p2m-oc-mark,
  .p2m-oc-highlight,
  .p2m-oc-cheeks,
  .p2m-oc-mouth,
  .p2m-oc-eyes,
  .p2m-oc-pupils,
  .p2m-oc-suckers-1,
  .p2m-oc-suckers-2,
  .p2m-oc-suckers-3,
  .p2m-oc-l-o1,
  .p2m-oc-l-c,
  .p2m-oc-l-t,
  .p2m-oc-l-o2,
  .p2m-oc-l-p,
  .p2m-oc-l-u,
  .p2m-oc-l-s,
  .p2m-oc-endorse,
  .p2m-idle-blink-oc,
  .oc-pulse-1,
  .oc-pulse-2,
  .oc-pulse-3,
  .p2m-pe-arc-trace,
  .p2m-pe-mark,
  .p2m-pe-wing,
  .p2m-pe-pouch,
  .p2m-pe-cargo,
  .p2m-pe-gaze,
  .p2m-pe-l-p,
  .p2m-pe-l-e,
  .p2m-pe-l-l,
  .p2m-pe-l-istem,
  .p2m-pe-l-idot,
  .p2m-pe-l-c,
  .p2m-pe-l-a,
  .p2m-pe-l-n,
  .p2m-pe-endorse,
  .p2m-ow-arc-trace,
  .p2m-ow-mark,
  .p2m-ow-wing-l,
  .p2m-ow-wing-r,
  .p2m-ow-eyes,
  .p2m-idle-blink-ow,
  .p2m-ow-pupils,
  .p2m-ow-beak,
  .p2m-ow-belly,
  .p2m-ow-bar1,
  .p2m-ow-bar2,
  .p2m-ow-dot,
  .p2m-idle-pulse-dot,
  .p2m-ow-l-o,
  .p2m-ow-l-w,
  .p2m-ow-l-l,
  .p2m-ow-endorse,
  .sonar-ring,
  .stage-view,
  .dialog-card,
  .cmdk-dialog,
  .toast-item {
    animation: none !important;
  }

  .tilt-card,
  .species-indev-blur,
  .pe-hover-wing,
  .pe-hover-pouch,
  .pe-hover-gaze,
  .ow-hover-wing-l,
  .ow-hover-wing-r,
  .gate-expand,
  .sidebar,
  .btn {
    transition: none !important;
  }
}

.mcp-proj-note {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-secondary);
}

.mcp-proj-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.mcp-proj-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.mcp-proj-item:hover {
  border-color: var(--hairline-strong);
}

.mcp-proj-item.is-selected {
  border-color: var(--fg-primary);
  background: var(--bg-card);
}

.mcp-proj-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--fg-primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Bigroll Observatory (/ops) & Overview Health Pulse Card
   ========================================================================== */

.ops-pulse-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ops-pulse-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ops-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 13px;
  border-radius: 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
}
.ops-score-badge.is-ok .ops-score-num { color: var(--positive); }
.ops-score-badge.is-warning .ops-score-num { color: var(--warning); }
.ops-score-badge.is-danger .ops-score-num { color: var(--danger); }
.ops-score-num { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ops-score-den { font-size: 12px; color: var(--fg-muted); }

.ops-status-pill.is-ok { color: var(--positive); background: var(--positive-bg); border-color: transparent; }
.ops-status-pill.is-warning { color: var(--warning); background: var(--warning-bg); border-color: transparent; }
.ops-status-pill.is-danger { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.ops-status-pill .status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.ops-pulse-fleet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-fleet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease);
}
.ops-fleet-chip:hover {
  border-color: var(--hairline-strong);
  color: var(--fg-primary);
}
.ops-fleet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--positive);
  flex-shrink: 0;
}
.is-warning .ops-fleet-dot, .ops-fleet-chip.is-warning .ops-fleet-dot { background: var(--warning); }
.is-danger .ops-fleet-dot, .ops-fleet-chip.is-danger .ops-fleet-dot { background: var(--danger); }

.ops-pulse-deductions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.ops-pulse-ded-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 140ms var(--ease);
}
.ops-pulse-ded-row:hover { border-color: var(--hairline-strong); }
.ops-ded-pts {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--danger);
  background: var(--danger-bg);
}
.ops-ded-app {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  color: var(--fg-secondary);
  white-space: nowrap;
}
.ops-ded-title { font-weight: 500; white-space: nowrap; }
.ops-ded-hint { color: var(--fg-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.ops-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ops-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.ops-hero-score-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ops-hero-score {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--positive);
}
.ops-hero.is-warning .ops-hero-score { color: var(--warning); }
.ops-hero.is-danger .ops-hero-score { color: var(--danger); }
.ops-hero-den { font-size: 16px; font-weight: 500; color: var(--fg-muted); margin-left: 2px; }

.ops-metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  flex: 1 1 460px;
  min-width: 0;
}

.ops-metric-box {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ops-metric-label { font-size: 11.5px; color: var(--fg-muted); }
.ops-metric-val { font-size: 15px; font-weight: 600; color: var(--fg-primary); }
.ops-metric-val.is-danger { color: var(--danger); }

.ops-deductions-box {
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ops-deductions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ops-deductions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ops-deduction-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: border-color 140ms var(--ease);
}
.ops-deduction-row:hover { border-color: var(--hairline-strong); }

.ops-fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ops-fleet-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms var(--ease), transform 140ms var(--ease);
}
.ops-fleet-card:hover { border-color: var(--hairline-strong); }
.ops-fleet-card.is-selected {
  border-color: var(--fg-primary);
  box-shadow: 0 0 0 1px var(--fg-primary);
}

.ops-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.ops-store-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ops-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ops-seg-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ops-toolbar-right { flex-wrap: wrap; }
.ops-proj-select { width: auto; min-width: 140px; height: 34px; font-size: 12.5px; }
.ops-search-input { width: 240px; height: 34px; font-size: 13px; }

.ops-feed {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.ops-event-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-card);
}
.ops-event-row:last-child { border-bottom: none; }
.ops-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--positive);
  flex-shrink: 0;
}
.ops-event-dot.is-warning { background: var(--warning); }
.ops-event-dot.is-danger { background: var(--danger); }

.ops-event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.ops-event-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ops-app-tag,
.ops-proj-tag,
.ops-actor-tag,
.ops-count-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
}
.ops-count-tag { color: var(--warning); background: var(--warning-bg); border-color: transparent; }
.ops-sev-pill { font-size: 11px; padding: 1px 7px; }
.ops-sev-pill.is-ok { color: var(--positive); background: var(--positive-bg); border-color: transparent; }
.ops-sev-pill.is-warning { color: var(--warning); background: var(--warning-bg); border-color: transparent; }
.ops-sev-pill.is-danger { color: var(--danger); background: var(--danger-bg); border-color: transparent; }

.ops-event-title {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg-primary);
  word-break: break-word;
}
.ops-event-msg {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--fg-secondary);
  word-break: break-word;
}
.ops-event-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ops-pre {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  font-size: 12px;
  line-height: 1.5;
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.ops-corr-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ops-corr-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
}

@media (max-width: 1080px) {
  .ops-metrics-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-fleet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .ops-hero-main { flex-direction: column; align-items: stretch; gap: 14px; }
  .ops-hero-score-wrap { flex-wrap: wrap; justify-content: space-between; width: 100%; }
  .ops-metrics-strip { flex: none; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ops-metric-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ops-fleet-grid { grid-template-columns: 1fr; }
  .ops-toolbar-right { width: 100%; }
  .ops-proj-pills { width: 100%; }
  .ops-proj-select { flex: 1; min-width: 0; }
  .ops-search-input { width: 100%; }
  .ops-event-row { flex-direction: column; gap: 8px; }
  .ops-event-avatar { width: 30px; height: 30px; border-radius: 8px; }
  .ops-event-logo { width: 20px; height: 20px; }
  .ops-event-actions { width: 100%; flex-wrap: wrap; }
  .ops-pulse-ded-row { flex-wrap: wrap; }
  .ops-ded-hint { width: 100%; white-space: normal; }
  .tk-app-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================================
   Observatory & Ecosystem Brand Logos / Motion Enhancements
   ========================================================================= */

.pill-app-logo,
.pill-proj-logo,
.tag-proj-logo,
.ops-chip-logo {
  display: block;
  flex-shrink: 0;
}
.pill-app-logo { width: 15px; height: 15px; }
.pill-proj-logo { width: 15px; height: 15px; }
.tag-proj-logo { width: 13px; height: 13px; }
.ops-chip-logo { width: 17px; height: 17px; }

.ops-app-tag,
.ops-proj-tag,
.ops-ded-app,
.project-chip,
.filter-pill {
  gap: 5px;
}

.ops-fleet-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.ops-fleet-lockup {
  height: 30px;
  width: auto;
  max-width: 155px;
  display: block;
  flex-shrink: 0;
}
.ops-infra-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ops-fleet-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.ops-fleet-proj-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
}

.ops-store-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ops-store-emblem {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ops-store-svg {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.ops-store-proj {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

@keyframes opsLiveHalo {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.36); }
  55% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}
.ops-fleet-dot.is-live-pulse {
  animation: opsLiveHalo 2.6s ease-out infinite;
}

.ops-proj-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-event-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ops-event-logo {
  width: 23px;
  height: 23px;
  display: block;
}
.ops-avatar-status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--positive);
  border: 2px solid var(--bg-card);
}
.ops-avatar-status.is-warning { background: var(--warning); }
.ops-avatar-status.is-danger { background: var(--danger); }

.ops-modal-emblem {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ops-modal-logo {
  width: 21px;
  height: 21px;
  display: block;
}

.mcp-hero-lockup {
  height: 34px;
  width: auto;
  max-width: 190px;
  display: block;
}

.tk-app-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.tk-app-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), color 140ms var(--ease);
}
.tk-app-choice:hover {
  border-color: var(--hairline-strong);
  color: var(--fg-primary);
}
.tk-app-choice.is-active {
  border-color: var(--fg-primary);
  background: var(--bg-card);
  color: var(--fg-primary);
  box-shadow: 0 0 0 1px var(--fg-primary);
}

@media (prefers-reduced-motion: reduce) {
  .ops-fleet-dot.is-live-pulse { animation: none; }
}

