/* V2 visual layer only. Shared navigation, surfaces and responsive rhythm. */
.v2-kpi-grid.v2-kpi-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:root {
  --v2-rail: 236px;
  --v2-accent: #0878ff;
  --v2-accent-next: #35a8ff;
  --v2-tint: #edf5ff;
  --v2-surface-radius: 17px;
  --v2-surface-border: #dce8f8;
  --v2-surface-shadow: 0 5px 22px #134a9510;
  --v2-page-gutter: clamp(22px, 2.4vw, 38px);
}
body[data-v2-section="checklists"] { --v2-accent: #8034ed; --v2-accent-next: #b565f8; --v2-tint: #f4edff; }
body[data-v2-section="budget"] { --v2-accent: #009e65; --v2-accent-next: #27ca87; --v2-tint: #eafaf2; }
body[data-v2-section="photos"] { --v2-accent: #008fa6; --v2-accent-next: #0ccbd1; --v2-tint: #e8fbfc; }
body[data-v2-section="personnel"] { --v2-accent: #de7200; --v2-accent-next: #ffa928; --v2-tint: #fff5e9; }
body[data-v2-section="offers"] { --v2-accent: #e53763; --v2-accent-next: #ff756e; --v2-tint: #fff0f3; }
body[data-v2-section="presentations"] { --v2-accent: #4940dd; --v2-accent-next: #7c6bff; --v2-tint: #f0eeff; }
body[data-v2-section="notifications"] { --v2-accent: #ab6500; --v2-accent-next: #e99b00; --v2-tint: #fff8e8; }
body[data-v2-section="tasks"] { --v2-accent: #007bc4; --v2-accent-next: #05bbd3; --v2-tint: #e9faff; }
body[data-v2-section="ai"] { --v2-accent: #6537e8; --v2-accent-next: #2785ff; --v2-tint: #f0efff; }
body[data-v2-section="trash"] { --v2-accent: #456795; --v2-accent-next: #6483ac; --v2-tint: #eef3f9; }
body.v2-inner-page, body.v2-authenticated { background: #f3f8ff; }
.v2-dashboard { grid-template-columns: var(--v2-rail) minmax(0, 1fr); }
.v2-dashboard-content {
  gap: 20px; padding: 24px var(--v2-page-gutter) 36px;
  background: radial-gradient(ellipse at 85% 0, #e4edff 0, transparent 48%), #f3f8ff;
}
.v2-sidebar, body.v2-inner-page .v2-events-brand {
  background: radial-gradient(ellipse at 20% 85%, #104b965c, transparent 50%), linear-gradient(165deg, #041f47, #07316b 70%, #06274f);
  border-right: 1px solid #183e6e; box-shadow: 6px 0 24px #072f6a14;
  padding: 24px 16px 18px; gap: 0; overflow-y: auto; scrollbar-width: none;
}
.v2-sidebar::-webkit-scrollbar, body.v2-inner-page .v2-events-brand::-webkit-scrollbar { display: none; }
.v2-sidebar-brand { padding: 0 12px 25px; }
.v2-sidebar-brand strong, body.v2-inner-page .v2-events-brand > a:first-child {
  color: #fff; font-size: 30px; font-weight: 750; letter-spacing: -.045em; line-height: 1.2;
}
body.v2-inner-page .v2-events-brand > a:first-child { padding: 0 12px 25px; }
.v2-sidebar-brand span, body.v2-inner-page .v2-events-brand > a:first-child::after {
  font-size: 9px; font-weight: 500; letter-spacing: .17em; line-height: 1.5; color: #a4c9f7;
}
.v2-sidebar-nav, .v2-app-sidebar-nav { display: grid; gap: 4px; }
.v2-sidebar-nav a, .v2-app-sidebar-nav a {
  min-height: 43px; padding: 10px 12px; gap: 12px; border: 1px solid transparent;
  color: #e5efff; font-size: 13px; font-weight: 650; line-height: 1.35; border-radius: 11px;
  transition: background .18s, border-color .18s, color .18s;
}
.v2-sidebar-nav a:hover, .v2-app-sidebar-nav a:hover { background: #ffffff0e; border-color: #ffffff18; box-shadow: none; }
.v2-sidebar-nav a.is-active, .v2-app-sidebar-nav a.v2-nav-active {
  background: linear-gradient(105deg, #0665f5, #078cff); border-color: #66baff8c;
  box-shadow: 0 4px 18px #006aff30, inset 0 1px #ffffff25; color: #fff;
}
.v2-sidebar svg, .v2-events-brand svg { width: 20px; height: 20px; flex: 0 0 20px; }
/* Legacy brand badges must not style navigation labels. */
body.v2-inner-page .v2-events-brand :is(.v2-app-sidebar-nav, .v2-sidebar-ai) span {
  padding: 0; border: 0; border-radius: 0; background: transparent;
  color: inherit; font-size: inherit;
}
body.v2-inner-page .v2-events-brand .v2-sidebar-ai { color: #fff; font-size: 15px; }
.v2-sidebar-ai > span[aria-hidden="true"] { display: none; }
.v2-sidebar-ai {
  display: flex; align-items: center; gap: 12px; margin: 22px 0; padding: 14px 12px;
  border: 1px solid #8980ff; border-radius: 13px; color: #fff; text-decoration: none;
  background: radial-gradient(ellipse at 0 0, #008fff88, transparent 70%), linear-gradient(115deg, #143d9a, #6024ca);
  box-shadow: 0 4px 24px #5138eb35, inset 0 1px #ffffff30;
  transition: box-shadow .2s, transform .2s;
}
.v2-sidebar-ai > svg { width: 30px; height: 30px; flex-basis: 30px; color: #93e9ff; filter: drop-shadow(0 0 8px #67aeff); }
.v2-sidebar-ai > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.v2-sidebar-ai strong { font-size: 15px; }
.v2-sidebar-ai small { font-size: 11px; color: #d9e4ff; }
.v2-sidebar-ai:hover, .v2-sidebar-ai.is-active { transform: translateY(-1px); box-shadow: 0 6px 26px #7f4cff55; }
.v2-sidebar-secondary, .v2-app-sidebar-nav--secondary { margin: auto 0 0; padding-top: 15px; border-top: 1px solid #9dc5ff2e; }
.v2-sidebar-secondary a, .v2-app-sidebar-nav--secondary a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: #b9d2f4; font-size: 12px; }
.v2-sidebar-footer { display: none; }
.v2-dashboard-topbar { gap: 16px; flex-wrap: wrap; }
.v2-dashboard-topbar > div:first-child { flex: 1 1 160px; }
.v2-welcome-title { margin: 5px 0 0; font-size: 17px; line-height: 1.3; letter-spacing: -.025em; color: #183765; }
.v2-dashboard-topbar .v2-today-card { min-width: 235px; padding: 9px 12px; box-shadow: 0 3px 12px #244d8c06; }
.v2-profile { border-color: #d4e4fa; box-shadow: 0 3px 15px #234b8d08; }
.v2-profile-avatar { background: linear-gradient(135deg, #587aff, #6730ee); box-shadow: 0 4px 12px #5a54ec25; }
.v2-ai-banner {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 24px;
  min-height: 180px; padding: 28px 32px; border-radius: 19px; border: 1px solid #245bd036;
  color: #fff; background: radial-gradient(ellipse at 68% 95%, #077bffbf, transparent 42%), linear-gradient(115deg, #031f51 5%, #073d9c 55%, #7130ee 95%);
  box-shadow: 0 12px 28px #174f9f1c, inset 0 1px #a8dcff36;
}
.v2-ai-banner::before, .v2-ai-banner::after { content: ""; position: absolute; pointer-events: none; z-index: -1; border: 1px solid #92c9ff29; border-radius: 48%; transform: rotate(-25deg); }
.v2-ai-banner::before { width: 640px; height: 320px; right: -50px; bottom: -195px; background: linear-gradient(145deg, #21c8ff1c, #7936ff46); box-shadow: 0 -16px 0 #529cff0a, 0 -32px 0 #529cff08; }
.v2-ai-banner::after { width: 520px; height: 210px; right: -70px; top: -140px; background: #ffffff08; }
.v2-ai-banner-copy { position: relative; z-index: 2; flex: 1; }
.v2-ai-emblem { display: inline-flex; color: #70e3ff; margin-bottom: 10px; }
.v2-ai-emblem svg { width: 24px; height: 24px; }
.v2-ai-banner h2 { margin: 0; font-size: clamp(25px, 2.7vw, 37px); font-weight: 750; letter-spacing: .035em; line-height: 1.2; }
.v2-ai-banner p { margin: 10px 0 0; color: #dae8ff; font-size: 14px; }
.v2-ai-banner-button {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  padding: 14px 20px; border: 1px solid #ffffffa8; border-radius: 12px; background: #fff;
  color: #5430cd; font-size: 14px; font-weight: 750; text-decoration: none; box-shadow: 0 5px 22px #05193920;
}
.v2-ai-banner-button:hover { background: #eef3ff; }
.v2-ai-orbit { position: relative; width: 205px; height: 145px; flex: 0 0 205px; }
.v2-ai-orbit::before { content: ""; position: absolute; inset: 1px 10px; border: 1px solid #5ed8ff5c; border-radius: 50%; transform: rotate(-24deg); box-shadow: 0 0 35px #31a7ff33; }
.v2-ai-orbit-core { position: absolute; inset: 33px 60px; display: grid; place-items: center; border: 1px solid #bcf5ff; border-radius: 26px; background: linear-gradient(140deg, #a4f1ff, #167bec 45%, #713ce9); box-shadow: 0 0 30px #36b5ff88, inset 0 2px 10px #ffffff66; transform: rotate(-10deg); }
.v2-ai-orbit-core svg { width: 45px; height: 45px; color: #fff; }
.v2-ai-orbit-node { position: absolute; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #81dbff8f; border-radius: 12px; background: #387ce88c; box-shadow: inset 0 1px 8px #e6f6ff30, 0 5px 20px #08278b50; }
.v2-ai-orbit-node svg { width: 25px; height: 25px; }
.node-calendar { left: 0; top: 13px; transform: rotate(-12deg); color: #9fefff; }
.node-list { right: 12px; top: 0; transform: rotate(12deg); color: #cbd9ff; }
.node-chart { right: 0; bottom: 0; transform: rotate(9deg); color: #dcd5ff; }
.v2-kpi { min-width: 0; padding: 18px 16px; border-radius: 16px; border-color: #dae8fb; background: linear-gradient(135deg, #fff, #edf6ff); box-shadow: 0 5px 18px #174d9f07; }
.v2-kpi > span { width: 44px; height: 48px; background: #dcecff; color: #076bff; }
.v2-kpi svg { width: 26px; height: 26px; }
.v2-kpi div { min-width: 0; }
.v2-kpi strong { font-size: 25px; font-weight: 750; }
.v2-kpi small { white-space: normal; line-height: 1.4; }
.v2-kpi--upcoming { background: linear-gradient(135deg, #fff, #edfbf5); }
.v2-kpi--files { background: linear-gradient(135deg, #fff, #f4edff); }
.v2-kpi--personnel { background: linear-gradient(135deg, #fff, #fff4e8); }
.v2-kpi--expenses { background: linear-gradient(135deg, #fff, #fff0f4); }
.v2-dashboard-main { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; }
.v2-modules-section, .v2-side-panel { border-color: #dce8fa; box-shadow: var(--v2-surface-shadow); }
.v2-module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.v2-module-card { --tile-a: #006bff; --tile-b: #31aaff; min-height: 128px; padding: 18px 15px; gap: 11px; border-radius: 15px; background: linear-gradient(125deg, var(--tile-a), var(--tile-b)); box-shadow: inset 0 1px #ffffff2e; }
.v2-module-card::after { right: -35px; bottom: -68px; width: 170px; height: 120px; border-radius: 45%; transform: rotate(-30deg); background: #ffffff12; }
.v2-module-card::before { content: ""; position: absolute; width: 170px; height: 90px; right: -30px; bottom: -57px; border: 1px solid #ffffff18; border-radius: 50%; transform: rotate(-30deg); }
.v2-module-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #173f7c22, inset 0 1px #ffffff66; }
.v2-module-icon { width: 39px; height: 42px; border: 1px solid #ffffff14; background: #ffffff21; border-radius: 11px; }
.v2-module-icon svg { width: 24px; height: 24px; }
.v2-module-copy strong { font-size: 14px; font-weight: 750; line-height: 1.35; }
.v2-module-copy small { font-size: 11px; line-height: 1.55; color: #fff; }
.v2-module-card--checklists { --tile-a: #7927ed; --tile-b: #b35ef8; }
.v2-module-card--budget { --tile-a: #009c59; --tile-b: #2ed792; }
.v2-module-card--photos { --tile-a: #008f9e; --tile-b: #12ced1; }
.v2-module-card--personnel { --tile-a: #f17400; --tile-b: #ffb32c; }
.v2-module-card--offers { --tile-a: #f13255; --tile-b: #ff718a; }
.v2-module-card--presentations { --tile-a: #3433dc; --tile-b: #697dff; }
.v2-module-card--notifications { --tile-a: #ed9600; --tile-b: #ffc72b; }
.v2-module-card--tasks { --tile-a: #0076e9; --tile-b: #0ac6e2; }
.v2-side-heading { padding-bottom: 12px; border-bottom: 1px solid #e8effa; }
.v2-side-heading .v2-eyebrow { display: none; }
.v2-upcoming-date { background: linear-gradient(140deg, #e5f1ff, #f1f7ff); color: #006cff; }
.v2-upcoming-copy strong, .v2-dashboard-notification strong { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.v2-business-tabs { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 5px; padding: 5px; margin: 0 0 20px; border: 1px solid #edcfda; border-radius: 13px; background: #fff; box-shadow: 0 4px 16px #ec39640a; }
.v2-business-tabs[hidden] { display: none; }
.v2-business-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9px; color: #705264; font-size: 13px; font-weight: 700; text-decoration: none; }
.v2-business-tabs svg { width: 17px; height: 17px; }
.v2-business-tabs a[aria-current="page"] { background: linear-gradient(115deg, #e63864, #ff717c); color: #fff; box-shadow: 0 3px 10px #e6386422; }
body.v2-inner-page .v2-events-shell { padding-top: 30px; background: radial-gradient(ellipse at 95% 0, var(--v2-tint), transparent 55%); }
body.v2-inner-page .v2-events-panel { border-top: 3px solid var(--v2-accent); background: linear-gradient(165deg, #fff, #fff 65%, var(--v2-tint)); }
body.v2-inner-page .v2-events-page-head { padding-bottom: 20px; border-bottom: 1px solid #dce7f5; }
body.v2-inner-page .v2-events-eyebrow { color: var(--v2-accent); }
body.v2-inner-page .v2-events-page-head h1 { font-size: clamp(26px, 2.5vw, 34px); letter-spacing: -.035em; }
body.v2-inner-page .v2-events-subtitle { font-size: 13px; color: #607595; }
body.v2-inner-page .v2-primary-button, body.v2-inner-page .v2-ai-form button { background: linear-gradient(115deg, var(--v2-accent), var(--v2-accent-next)); box-shadow: 0 4px 14px #164a9820; }
body.v2-inner-page .v2-secondary-button { background: var(--v2-tint); color: var(--v2-accent); border-color: #d8e4f4; box-shadow: none; }
body.v2-inner-page :is(.v2-event-card, .v2-personnel-card, .v2-photo-category, .v2-event-checklist-card, .v2-task-group, .v2-business-file, .v2-mail-card, .v2-notification, .v2-budget-section) { background: linear-gradient(140deg, #fff 55%, var(--v2-tint)); border-color: #dce7f5; box-shadow: var(--v2-surface-shadow); }
body.v2-inner-page :is(.v2-personnel-card, .v2-photo-category, .v2-business-file, .v2-mail-card, .v2-task-group) { border-top: 2px solid var(--v2-accent); }
body.v2-inner-page .v2-events-empty { min-height: 130px; gap: 3px; padding: 22px; background: linear-gradient(135deg, #fff, var(--v2-tint)); border: 1px dashed #b9cde5; }
body.v2-inner-page .v2-events-empty::before { content: ""; width: 27px; height: 22px; margin-bottom: 6px; border: 2px solid var(--v2-accent); border-radius: 5px; background: linear-gradient(180deg, transparent 35%, var(--v2-tint) 35%); box-shadow: 4px -4px 0 var(--v2-tint); }
body.v2-inner-page .v2-events-empty h2 { font-size: 17px; }
body.v2-inner-page .v2-events-empty p { margin-top: 5px; font-size: 13px; }
body.v2-inner-page .v2-events-modal { border-top: 3px solid var(--v2-accent); box-shadow: 0 24px 80px #071c4b40; }
body.v2-inner-page .v2-ai-hero { background: radial-gradient(ellipse at 75% 100%, #076feb, transparent 60%), linear-gradient(110deg, #062352, #6530dc); }
body.v2-inner-page .v2-ai-hero .v2-events-eyebrow { color: #a6dcff; }
.v2-sidebar a:focus-visible, .v2-events-brand a:focus-visible, .v2-ai-banner-button:focus-visible, .v2-business-tabs a:focus-visible { outline: 3px solid #7cc8ff; outline-offset: 3px; }
@media (max-height: 800px) and (min-width: 761px) {
  .v2-sidebar, body.v2-inner-page .v2-events-brand { padding-top: 18px; }
  .v2-sidebar-nav a, .v2-app-sidebar-nav a { min-height: 38px; padding-block: 8px; }
  .v2-sidebar-ai { margin-block: 16px; padding-block: 11px; }
}
@media (max-width: 1200px) {
  .v2-dashboard-main { grid-template-columns: 1fr; }
  .v2-dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-ai-orbit { width: 165px; flex-basis: 165px; }
  .v2-ai-orbit-core { inset-inline: 45px; }
  .v2-dashboard-topbar .v2-today-card { min-width: 210px; }
}
@media (min-width: 761px) and (max-width: 1020px) {
  :root { --v2-rail: 210px; --v2-page-gutter: 22px; }
  .v2-ai-orbit { display: none; }
  .v2-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .v2-dashboard { grid-template-columns: minmax(0, 1fr); }
  .v2-sidebar, body.v2-inner-page .v2-events-brand { padding: 18px 14px 14px; overflow-y: visible; }
  .v2-sidebar-brand, body.v2-inner-page .v2-events-brand > a:first-child { padding: 0 8px 16px; }
  .v2-sidebar-brand strong, body.v2-inner-page .v2-events-brand > a:first-child { font-size: 26px; }
  .v2-sidebar-nav, .v2-app-sidebar-nav { display: flex; overflow-x: auto; gap: 5px; scrollbar-width: none; }
  .v2-sidebar-nav a, .v2-app-sidebar-nav a { padding: 9px 11px; min-height: 40px; flex: 0 0 auto; font-size: 12px; gap: 7px; }
  .v2-sidebar svg, .v2-events-brand svg { width: 18px; height: 18px; flex-basis: 18px; }
  .v2-sidebar-ai { width: fit-content; max-width: 100%; gap: 10px; margin: 12px 0 0; padding: 9px 12px; }
  .v2-sidebar-ai > svg { width: 23px; height: 23px; flex-basis: 23px; }
  .v2-sidebar-ai > span:nth-child(2) { display: flex; align-items: baseline; gap: 8px; }
  .v2-sidebar-ai strong { font-size: 13px; }
  .v2-sidebar-ai small { font-size: 10px; }
  .v2-sidebar-secondary, .v2-app-sidebar-nav--secondary { margin-top: 10px; padding-top: 8px; }
  .v2-dashboard-content { padding: 20px 14px 30px; gap: 16px; }
  body.v2-inner-page .v2-events-shell { padding-top: 17px; }
  .v2-dashboard-topbar { gap: 12px; }
  .v2-dashboard-topbar > div:first-child { flex: 1 1 125px; }
  .v2-dashboard-topbar .v2-today-card { order: 3; width: 100%; min-width: 0; padding: 9px 12px; }
  .v2-profile-copy { display: none; }
  .v2-welcome-title { font-size: 15px; }
  .v2-ai-banner { min-height: 0; padding: 24px; flex-wrap: wrap; gap: 22px; }
  .v2-ai-banner-copy { flex-basis: 100%; }
  .v2-ai-banner h2 { font-size: 27px; }
  .v2-ai-orbit { position: absolute; right: -20px; top: 15px; opacity: .25; transform: scale(.8); pointer-events: none; }
  .v2-ai-banner-button { padding: 11px 16px; font-size: 13px; }
  .v2-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-kpi--expenses { display: flex; }
  .v2-kpi { gap: 10px; padding: 14px 12px; }
  .v2-kpi > span { width: 35px; height: 40px; }
  .v2-kpi svg { width: 22px; height: 22px; }
  .v2-kpi strong { font-size: 22px; }
  .v2-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-module-card { grid-template-columns: 1fr; gap: 10px; min-height: 145px; padding: 16px; }
  .v2-module-icon { width: 33px; height: 34px; }
  .v2-module-icon svg { width: 21px; height: 21px; }
  .v2-modules-section { padding: 16px; }
  .v2-dashboard-side { grid-template-columns: 1fr; }
  .v2-business-tabs { gap: 3px; }
  .v2-business-tabs a { padding: 9px 12px; }
}
@media (max-width: 360px) { .v2-module-grid { grid-template-columns: 1fr; } .v2-module-card { grid-template-columns: auto minmax(0, 1fr); min-height: 112px; } }
@media (prefers-reduced-motion: reduce) { .v2-sidebar-ai, .v2-module-card, .v2-sidebar-nav a, .v2-app-sidebar-nav a { transition: none; transform: none; } }

.v2-module-card--games { --tile-a: #4d2fa3; --tile-b: #ff5fa2; }
