/* sin scroll horizontal */
html,body{max-width:100%;overflow-x:hidden}
:root {
  color-scheme: dark;
  --bg-0: #020711;
  --bg-1: #06162f;
  --bg-2: #081c37;
  --panel: rgba(7, 25, 47, 0.76);
  --panel-strong: rgba(6, 22, 45, 0.94);
  --panel-soft: rgba(8, 28, 52, 0.5);
  --line: rgba(0, 204, 255, 0.2);
  --line-strong: rgba(0, 217, 255, 0.42);
  --text: #f2f7ff;
  --muted: #aeb8c8;
  --accent: #00d9ff;
  --accent-2: #098cff;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --violet: #8b6cff;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.35);
  --sidebar: 82px;
  --radius: 22px;
  --density: 1;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020711;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 75% 8%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 31%),
    radial-gradient(circle at 36% 52%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 38%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1) 58%, var(--bg-0));
  background-attachment: fixed;
}

.boot-screen {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.boot-screen p,
.boot-screen span {
  margin: 0;
  color: var(--muted);
}

.boot-screen p {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.boot-screen h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 44px 44px;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, white);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
}

.hidden,
[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.glass {
  background: linear-gradient(145deg, rgba(8, 32, 61, 0.8), rgba(2, 9, 22, 0.66));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.075), var(--shadow);
  backdrop-filter: blur(14px);
}

.glass-strong {
  background: linear-gradient(145deg, rgba(8, 37, 72, 0.96), rgba(2, 10, 24, 0.92));
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 26px 80px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(18px);
}

.btn,
.icon-btn,
.nav-btn,
.segment-btn,
.text-btn {
  border: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #13cfff, #087cff 62%, #0a4cd8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 145, 255, 0.3), 0 0 22px rgba(18, 217, 255, 0.2);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(0, 145, 255, 0.38), 0 0 28px rgba(18, 217, 255, 0.27);
}

.btn.soft {
  color: var(--accent);
  background: linear-gradient(135deg, rgba(0, 167, 255, 0.16), rgba(6, 18, 35, 0.7));
  border: 1px solid var(--line-strong);
}

.btn.ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.danger {
  color: #ffd8dc;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.36);
}

.btn.small {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 0.78rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--line-strong);
}

.icon-btn.danger:hover {
  color: #ff8793;
  border-color: rgba(239, 68, 68, 0.48);
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  --sidebar: 268px;
  min-height: 100vh;
  padding-left: var(--sidebar);
  transition: padding 180ms ease;
}

.app-shell.sidebar-open {
  --sidebar: 268px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  padding: 16px 12px;
  background: rgba(2, 7, 17, 0.9);
  border-right: 1px solid rgba(0, 217, 255, 0.14);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
  transition: width 180ms ease;
}

.sidebar-head {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.15);
}

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

.brand-copy {
  min-width: 158px;
}

.app-shell:not(.sidebar-open) .brand-copy,
.app-shell:not(.sidebar-open) .sidebar-toggle {
  opacity: 0;
  pointer-events: none;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.sidebar-toggle {
  margin-left: auto;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.nav-btn {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  color: #93a3b9;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
}

.nav-btn span {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 171, 255, 0.18), rgba(9, 60, 122, 0.08));
  border-color: rgba(0, 217, 255, 0.22);
}

.nav-btn.active .icon {
  color: var(--accent);
}

.sidebar-foot {
  margin-top: auto;
  transition: opacity 160ms ease;
}

.app-shell:not(.sidebar-open) .sidebar-foot {
  opacity: 0;
  pointer-events: none;
}

.powered-by {
  display: grid;
  justify-items: end;
  text-align: right;
  gap: 8px;
  color: #8091a8;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.powered-head,
.ecosystem-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.powered-head img {
  width: auto;
  height: 27px;
  object-fit: contain;
}

.ecosystem-logos {
  max-width: 100%;
  flex-wrap: wrap;
}

.ecosystem-logos img {
  width: auto;
  max-width: 118px;
  height: 26px;
  object-fit: contain;
}

.powered-sidebar {
  min-width: 230px;
  padding: 12px 10px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.powered-view {
  width: fit-content;
  max-width: 100%;
  margin: 34px auto 0;
  padding: 10px 14px;
  background: rgba(2, 7, 17, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.powered-view .ecosystem-logos {
  justify-content: flex-end;
}

.powered-view {
  width: 351px;
  height: 76px;
}

.powered-view .powered-head {
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}

.assistant-launcher {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #0d2d63, #020711);
  border: 1px solid rgba(0, 217, 255, 0.46);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), 0 0 34px rgba(0, 217, 255, 0.2);
}

.assistant-launcher .assistant-media,
.assistant-launcher img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.assistant-launcher span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  background: #098cff;
  border-radius: 7px;
  font-size: 0.55rem;
  font-weight: 900;
}

.assistant-panel {
  position: fixed;
  right: 20px;
  bottom: 98px;
  z-index: 44;
  display: grid;
  width: min(390px, calc(100vw - 24px));
  max-height: min(650px, calc(100dvh - 126px));
  grid-template-rows: auto minmax(120px, 1fr) auto auto auto;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.assistant-panel > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  background: rgba(5, 18, 39, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.assistant-panel > header > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.assistant-panel header strong,
.assistant-panel header small {
  display: block;
}

.assistant-panel header small {
  margin-top: 2px;
  color: #8091a8;
  font-size: 0.62rem;
}

.assistant-media {
  border-radius: 50%;
  object-fit: contain;
  pointer-events: none;
}


.assistant-orb {
  animation: projectDashOrbFloat 5.5s ease-in-out infinite, projectDashOrbPulse 3.2s ease-in-out infinite;
  transform-origin: center center;
  filter: drop-shadow(0 0 14px rgba(115,164,255,.34)) drop-shadow(0 0 28px rgba(164,78,255,.18));
}

@keyframes projectDashOrbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

@keyframes projectDashOrbPulse {
  0%,100% { filter: drop-shadow(0 0 14px rgba(115,164,255,.34)) drop-shadow(0 0 28px rgba(164,78,255,.18)); }
  50% { filter: drop-shadow(0 0 20px rgba(115,164,255,.48)) drop-shadow(0 0 38px rgba(164,78,255,.24)); }
}
.assistant-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  background: #06162f;
  border-radius: 13px;
}

.assistant-avatar .assistant-media,
.assistant-avatar img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.assistant-log {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 15px;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  color: #dce8f6;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px 15px 15px 4px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-message.user {
  justify-self: end;
  color: #fff;
  background: rgba(9, 140, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.22);
  border-radius: 15px 15px 4px 15px;
}

.assistant-suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 13px 10px;
}

.assistant-suggestions button {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #9edfff;
  background: rgba(0, 143, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.16);
  border-radius: 99px;
  font-size: 0.65rem;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.assistant-form input {
  min-width: 0;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.assistant-form .btn {
  min-width: 44px;
  padding: 0;
}

.assistant-disclaimer {
  margin: 0;
  padding: 0 13px 11px;
  color: #65758b;
  font-size: 0.55rem;
  text-align: center;
}

.main {
  min-width: 0;
  padding: calc(22px * var(--density)) clamp(16px, 2.5vw, 38px) 48px;
}

.topbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

.topbar-copy strong,
.topbar-copy small {
  display: block;
}

.topbar-copy strong {
  overflow: hidden;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

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

.workspace-logo-top {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 11px;
  padding: 4px;
}

.profile-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-2), #18345d);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-weight: 900;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-menu {
  display: none;
}

.view-stack {
  display: grid;
  gap: calc(18px * var(--density));
  animation: view-in 180ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.view-head-copy {
  max-width: 48.75rem;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.view-head h1 {
  margin-bottom: 6px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

.view-head p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.view-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  color: #b9c7d9;
  background: rgba(0, 160, 255, 0.08);
  border: 1px solid rgba(0, 217, 255, 0.16);
  border-radius: 15px;
  font-size: 0.78rem;
  line-height: 1.5;
}

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

.stat-card {
  position: relative;
  display: flex;
  min-height: 122px;
  align-items: flex-start;
  gap: 14px;
  padding: calc(18px * var(--density));
  border-radius: var(--radius);
}

.metric-help {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  color: #6f8198;
  background: transparent;
  border: 0;
  border-radius: 9px;
}

.metric-help:hover {
  color: var(--accent);
  background: rgba(0, 217, 255, 0.08);
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: var(--accent);
  background: rgba(0, 217, 255, 0.1);
  border-radius: 14px;
}

.stat-icon.green { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.stat-icon.amber { color: var(--warning); background: rgba(245, 158, 11, 0.1); }
.stat-icon.violet { color: var(--violet); background: rgba(139, 108, 255, 0.1); }

.stat-card span,
.stat-card strong,
.stat-card small {
  display: block;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.stat-card strong {
  margin: 3px 0;
  font-size: 1.7rem;
}

.stat-card small {
  color: #718096;
  font-size: 0.69rem;
}

.dashboard-grid,
.settings-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: calc(20px * var(--density));
  border-radius: var(--radius);
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.panel-head h2,
.panel-head p {
  margin: 0;
}

.panel-head h2 {
  font-size: 1rem;
}

.panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  color: var(--accent);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 850;
}

.focus-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius);
}

.focus-card::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%);
}

.focus-card h2 {
  max-width: 650px;
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
}

.focus-card p {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.list,
.compact-list,
.goal-list {
  display: grid;
  gap: 10px;
}

.list-item,
.goal-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 16px;
}

.list-item:hover,
.goal-item:hover {
  border-color: rgba(0, 217, 255, 0.22);
}

.item-check {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: transparent;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  cursor: pointer;
}

.item-check.done {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
}

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

.item-copy strong,
.item-copy small {
  display: block;
}

.item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.item-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  color: #a8b6c8;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 820;
  white-space: nowrap;
}

.badge.critical { color: #ff9aa5; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.28); }
.badge.high { color: #ffd07a; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.27); }
.badge.success { color: #6ee7b7; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.28); }
.badge.info { color: #78e9ff; background: rgba(0, 217, 255, 0.1); border-color: rgba(0, 217, 255, 0.27); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
}

.toolbar .search {
  min-width: min(330px, 100%);
  flex: 1 1 240px;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(3, 13, 27, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 13px;
}

textarea {
  min-height: 104px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #617086;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
}

.segment-btn {
  display: grid;
  width: 38px;
  height: 34px;
  place-items: center;
  color: #7f8da1;
  background: transparent;
  border-radius: 10px;
}

.segment-btn.active {
  color: var(--accent);
  background: rgba(0, 217, 255, 0.11);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 242px;
  flex-direction: column;
  overflow: hidden;
  padding: 19px;
  border-radius: var(--radius);
}

.project-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--project-color, var(--accent));
}

.project-card-head,
.project-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-card h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.project-cover {
  width: 100%;
  height: 116px;
  margin-top: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
}

.project-cover + h3 {
  margin-top: 13px;
}

.attachment-count {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
  margin-left: 7px;
  color: #7f92aa !important;
  font-size: 0.64rem !important;
}

.project-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-card-foot {
  margin-top: auto;
  color: #76869b;
  font-size: 0.68rem;
}

.progress {
  height: 7px;
  overflow: hidden;
  margin: 13px 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.progress > span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--project-color, var(--accent)), var(--accent-2));
  border-radius: inherit;
}

.data-table-wrap {
  overflow: auto;
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 50rem;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  text-align: left;
}

.data-table th {
  color: #77869b;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  color: #cbd5e2;
  font-size: 0.76rem;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.kanban-column {
  min-height: 360px;
  padding: 13px;
  border-radius: 18px;
}

.kanban-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.kanban-cards {
  display: grid;
  gap: 9px;
}

.kanban-card {
  padding: 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  cursor: pointer;
}

.kanban-card:hover {
  border-color: var(--line-strong);
}

.kanban-card strong,
.kanban-card small {
  display: block;
}

.kanban-card strong {
  margin: 9px 0 5px;
  font-size: 0.8rem;
}

.kanban-card small {
  color: var(--muted);
  font-size: 0.65rem;
}

.calendar-shell {
  overflow: hidden;
  border-radius: var(--radius);
}

.calendar-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  color: #718096;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.63rem;
  font-weight: 850;
  text-align: center;
  text-transform: uppercase;
}

.calendar-head span {
  padding: 11px 4px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  position: relative;
  min-height: 122px;
  padding: 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.calendar-add {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  color: #6f8197;
  background: transparent;
  border: 0;
  border-radius: 8px;
  opacity: 0;
}

.calendar-day:hover .calendar-add,
.calendar-add:focus-visible {
  opacity: 1;
  color: var(--accent);
  background: rgba(0, 217, 255, 0.08);
}

.calendar-day.outside {
  opacity: 0.35;
}

.calendar-day.today {
  background: rgba(0, 217, 255, 0.055);
}

.calendar-day > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin-bottom: 7px;
  color: #8998ac;
  font-size: 0.69rem;
}

.calendar-day.today > span {
  color: #00111f;
  background: var(--accent);
  border-radius: 9px;
  font-weight: 900;
}

.calendar-event {
  display: block;
  overflow: hidden;
  margin: 4px 0;
  padding: 5px 6px;
  color: #dce8f5;
  background: rgba(0, 160, 255, 0.1);
  border-left: 2px solid var(--event-color, var(--accent));
  border-radius: 6px;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.goal-card {
  padding: 19px;
  border-radius: var(--radius);
}

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

.goal-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.goal-card p {
  color: var(--muted);
  font-size: 0.72rem;
}

.goal-value {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.goal-value strong {
  font-size: 1.5rem;
}

.goal-value small {
  color: var(--muted);
}

.bar-chart {
  display: flex;
  min-height: 220px;
  align-items: flex-end;
  gap: 10px;
  padding-top: 16px;
}

.bar-item {
  display: flex;
  min-width: 0;
  height: 190px;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  text-align: center;
}

.bar-item i {
  display: block;
  width: min(34px, 78%);
  height: var(--bar-height, 4%);
  min-height: 4px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 9px 9px 4px 4px;
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.16);
}

.bar-item span {
  overflow: hidden;
  color: #77869b;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advisor-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 26px;
}

.advisor-orb {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--accent);
  background: radial-gradient(circle at 35% 28%, #59efff, #0d76dc 45%, #06162f 74%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  box-shadow: 0 0 42px rgba(0, 217, 255, 0.26);
}

.advisor-hero h2 {
  margin-bottom: 7px;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.advisor-hero p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.advisor-card {
  padding: 18px;
  border-radius: var(--radius);
}

.advisor-card h3 {
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.advisor-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.settings-card {
  padding: 20px;
  border-radius: var(--radius);
}

.settings-card > header {
  margin-bottom: 17px;
}

.settings-card h2,
.settings-card p {
  margin-bottom: 0;
}

.identity-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.media-upload {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
}

.media-upload > div:last-child {
  min-width: 0;
}

.media-upload strong,
.media-upload small {
  display: block;
}

.media-upload small {
  margin: 3px 0 8px;
  color: var(--muted);
  font-size: 0.62rem;
}

.media-upload .btn {
  display: inline-flex;
  width: auto;
  margin-right: 8px;
}

.media-preview {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: var(--accent);
  background: rgba(0, 217, 255, 0.08);
  border-radius: 17px;
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview img {
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.setting-check {
  margin-top: 14px;
}

.setting-template {
  margin-top: 10px !important;
}

.settings-card h2 {
  font-size: 1rem;
}

.settings-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

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

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

.field > span {
  color: #91a0b4;
  font-size: 0.68rem;
  font-weight: 760;
}

.field.span-2 {
  grid-column: span 2;
}

.theme-picker,
.accent-picker,
.background-picker,
.export-grid {
  display: grid;
  gap: 9px;
}

.theme-picker {
  grid-template-columns: repeat(3, 1fr);
}

.theme-picker button,
.background-picker button,
.export-grid button {
  min-height: 52px;
  color: #9cabbf;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  cursor: pointer;
}

.theme-picker button.selected,
.background-picker button.selected {
  color: var(--accent);
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 217, 255, 0.1);
}

.accent-picker {
  grid-template-columns: repeat(7, 34px);
}

.accent-picker button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 11px;
  cursor: pointer;
}

.accent-picker button.selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.background-picker {
  grid-template-columns: repeat(2, 1fr);
}

.background-picker button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  text-align: left;
}

.background-picker i {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--swatch);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
}

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

.export-grid button {
  display: grid;
  min-height: 90px;
  place-items: center;
  gap: 6px;
  padding: 12px;
  font-size: 0.68rem;
  font-weight: 800;
}

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

.widget-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 13px;
}

.widget-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #aeb8c8;
  font-size: 0.75rem;
}

.widget-row input {
  width: 18px;
  min-height: auto;
  height: 18px;
}

.danger-zone {
  border-color: rgba(239, 68, 68, 0.24);
}

.empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 30px;
  color: #75849a;
  text-align: center;
}

.empty-state strong,
.empty-state small {
  display: block;
}

.empty-state strong {
  margin: 13px 0 5px;
  color: #b9c5d4;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 18px;
  background: rgba(0, 4, 12, 0.75);
  backdrop-filter: blur(10px);
}

.modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border-radius: 24px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.file-section {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.file-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.file-section-head small,
.attachment-empty {
  margin-top: 3px;
  font-size: 0.64rem;
}

.project-image-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.attachment-list {
  display: grid;
  gap: 7px;
}

.attachment-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.attachment-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent);
  background: rgba(0, 217, 255, 0.08);
  border-radius: 9px;
}

.attachment-name {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.attachment-name strong,
.attachment-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-name small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.6rem;
}

.danger-text {
  color: #ff8793;
}

.inline-danger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 11px 12px;
  color: #9aa9bc;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 14px;
  font-size: 0.68rem;
}

.help-modal {
  width: min(780px, 100%);
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.help-grid article {
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
}

.help-grid p,
.metric-definition p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.metric-definition {
  display: grid;
  gap: 7px;
}

.metric-definition span {
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.global-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 15px;
}

.search-results {
  display: grid;
  gap: 7px;
  max-height: 55vh;
  overflow-y: auto;
}

.search-results > button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 9px;
  padding: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 13px;
  text-align: left;
}

.search-results > button:hover {
  border-color: var(--line-strong);
}

.search-results strong,
.search-results small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.64rem;
}

.modal-head {
  margin-bottom: 20px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-actions {
  margin-top: 20px;
  justify-content: flex-end;
}

.form-error {
  margin: 11px 0 0;
  color: #ff9aa5;
  font-size: 0.75rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 13px 16px;
  color: #e6f7ff;
  background: rgba(4, 26, 48, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.onboarding {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: clamp(24px, 5vw, 84px);
  align-items: center;
  padding: clamp(24px, 5vw, 74px);
}

.onboarding-copy {
  max-width: 760px;
}

.onboarding-brand {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 38px;
}

.onboarding-brand img {
  display: block;
  width: clamp(168px, 20vw, 232px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 91, 214, 0.24);
}

.onboarding-powered {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.onboarding h1 {
  max-width: 53.75rem;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6vw, 6rem);
  line-height: 0.96;
  background: linear-gradient(90deg, #fff, #c8f8ff 36%, #39e6ff 66%, #8fa2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.onboarding-copy > p {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.value-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.value-card {
  min-height: 128px;
  padding: 15px;
  border-radius: 18px;
}

.value-card .icon {
  color: var(--accent);
}

.value-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 auto;
  object-fit: contain;
}

.value-card strong,
.value-card small {
  display: block;
}

.value-card strong {
  margin: 11px 0 5px;
  font-size: 0.78rem;
}

.value-card small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.lead-card {
  position: relative;
  width: min(510px, 100%);
  justify-self: end;
  padding: clamp(22px, 3.4vw, 38px);
  border-radius: 30px;
}

.lead-gift {
  position: absolute;
  top: -52px;
  left: -52px;
  width: 96px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.42));
}

@media (max-width: 1080px) {
  .lead-gift { top: -38px; left: 8px; width: 78px; }
  .lead-card { padding-top: 46px; }
}

.lead-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
}

.lead-card > p {
  color: var(--muted);
  line-height: 1.55;
}

.form-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  min-height: auto;
  height: 18px;
  margin-top: 2px;
}

.preview-note {
  margin-top: 13px;
  color: #637288;
  font-size: 0.62rem;
  text-align: center;
}

body.theme-light {
  color-scheme: light;
  --bg-0: #edf4fb;
  --bg-1: #dce9f5;
  --bg-2: #f6f9fc;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --panel-soft: rgba(255, 255, 255, 0.58);
  --line: rgba(16, 95, 165, 0.14);
  --line-strong: rgba(0, 128, 210, 0.34);
  --text: #081526;
  --muted: #5e6d7f;
  --shadow: 0 22px 65px rgba(26, 61, 92, 0.14);
}

body.theme-light::before {
  opacity: 0.25;
}

body.density-compact {
  --density: 0.82;
}

body.bg-midnight { --bg-0: #020711; --bg-1: #06162f; --bg-2: #081c37; }
body.bg-ocean { --bg-0: #02101f; --bg-1: #062a4c; --bg-2: #063c63; }
body.bg-graphite { --bg-0: #080b11; --bg-1: #161b25; --bg-2: #202837; }
body.bg-indigo { --bg-0: #08081b; --bg-1: #17134b; --bg-2: #23206b; }
body.bg-forest { --bg-0: #02100f; --bg-1: #06372f; --bg-2: #075548; }
body.bg-wine { --bg-0: #12050b; --bg-1: #401125; --bg-2: #5a1833; }
body.bg-slate { --bg-0: #071018; --bg-1: #182a3a; --bg-2: #243d51; }

@media (max-width: 73.75rem) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advisor-results { grid-template-columns: 1fr; }
  .export-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onboarding { grid-template-columns: 1fr; }
  .lead-card { justify-self: stretch; width: 100%; }
}

@media (max-width: 56.25rem) {
  :root { --sidebar: 0px; }
  .app-shell,
  .app-shell.sidebar-open { padding-left: 0; }
  .sidebar {
    width: min(292px, calc(100vw - 42px));
    transform: translateX(-105%);
  }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .sidebar-toggle { display: none; }
  .dashboard-grid,
  .settings-grid,
  .insights-grid { grid-template-columns: 1fr; }
  .dashboard-grid > *,
  .settings-grid > *,
  .insights-grid > * { grid-column: 1 / -1; }
  .advisor-hero { grid-template-columns: auto 1fr; }
  .advisor-hero .btn { grid-column: 1 / -1; }
  .calendar-day { min-height: 100px; }
  .calendar-add { opacity: 1; }
}

@media (max-width: 680px) {
  .main { padding: 14px 12px 32px; }
  .topbar { margin-bottom: 16px; }
  .topbar-actions .btn { display: none; }
  .workspace-logo-top { width: 34px; height: 34px; }
  .profile-avatar { width: 38px; height: 38px; }
  .view-head { align-items: stretch; flex-direction: column; }
  .view-actions { justify-content: stretch; }
  .view-actions .btn { flex: 1 1 auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 106px; padding: 13px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-card strong { font-size: 1.35rem; }
  .project-grid,
  .goal-grid { grid-template-columns: 1fr; }
  .toolbar > select { flex: 1 1 130px; }
  .calendar-shell { overflow-x: auto; }
  .calendar-head,
  .calendar-grid { min-width: 760px; }
  .advisor-hero { grid-template-columns: 1fr; padding: 20px; }
  .advisor-orb { width: 66px; height: 66px; border-radius: 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: 1; }
  .identity-media,
  .help-grid { grid-template-columns: 1fr; }
  .inline-danger { align-items: stretch; flex-direction: column; }
  .export-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .background-picker { grid-template-columns: 1fr; }
  .accent-picker { grid-template-columns: repeat(7, 30px); }
  .accent-picker button { width: 30px; height: 30px; }
  .onboarding { padding: 22px 14px 40px; }
  .onboarding-copy,
  .lead-card { width: 100%; height: auto; min-width: 0; }
  .onboarding-brand { margin-bottom: 24px; }
  .value-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-card { padding: 21px 16px; border-radius: 24px; }
  .modal { padding: 18px 14px; }
  .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .item-meta .badge:not(:first-child) { display: none; }
  .toast { right: 16px; bottom: 16px; }
  .assistant-launcher { right: 12px; bottom: 12px; }
  .assistant-panel { right: 12px; bottom: 88px; }
  .powered-view { width: 100%; height: auto; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .value-row { grid-template-columns: 1fr; }
  .value-card { min-height: auto; }
  .export-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* etiquetas del menu al desplegar */
.app-shell.sidebar-open .nav-btn span,
.app-shell.sidebar-open .brand-copy,
.app-shell.sidebar-open .sidebar-foot{opacity:1;pointer-events:auto}
.app-shell.sidebar-open .nav-btn{justify-content:flex-start;gap:12px}
@media(max-width:900px){.sidebar .nav-btn span{opacity:1!important;pointer-events:auto!important}}
.onboarding-copy,.lead-card{max-width:100%}
.onboarding img,.lead-card img{max-width:100%}

/* etiquetas del menu siempre visibles */
.nav-btn span{opacity:1!important;pointer-events:auto!important;overflow:hidden;text-overflow:ellipsis}
.nav-btn{justify-content:flex-start;gap:12px}
