/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/tokens.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/**
 * Workvyo design tokens — derived from official branding.
 * Magenta / blue / cyan accents come from the logo icon gradients.
 * Navy for typography on light surfaces. Avoid generic AI purple-on-white layouts.
 */
:root {
  --wv-font-sans: "Sora", "Segoe UI", sans-serif;
  --wv-font-display: "Manrope", "Sora", sans-serif;
  --wv-font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wv-navy-950: #06101f;
  --wv-navy-900: #0a1931;
  --wv-navy-800: #122847;
  --wv-navy-700: #1a3a63;

  --wv-magenta-500: #d846ef;
  --wv-magenta-600: #c026d3;
  --wv-blue-500: #3b82f6;
  --wv-cyan-400: #22d3ee;
  --wv-cyan-500: #06b6d4;

  --wv-bg: #f3f6fb;
  --wv-bg-elevated: #ffffff;
  --wv-bg-muted: #e8eef7;
  --wv-border: #d5deec;
  --wv-text: var(--wv-navy-900);
  --wv-text-muted: #5a6b85;
  --wv-text-inverse: #f8fbff;

  --wv-accent: var(--wv-cyan-500);
  --wv-accent-strong: var(--wv-blue-500);
  --wv-accent-hot: var(--wv-magenta-500);
  --wv-gradient-brand: linear-gradient(135deg, #d846ef 0%, #3b82f6 48%, #22d3ee 100%);
  --wv-gradient-surface: radial-gradient(1200px 600px at 10% -10%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(216, 70, 239, 0.12), transparent 50%),
    linear-gradient(180deg, #eef3fa 0%, #f7f9fc 45%, #eef2f8 100%);

  --wv-danger: #dc2626;
  --wv-success: #059669;
  --wv-warning: #d97706;

  /* Enterprise geometry: slight radius, never pill-like */
  --wv-radius-sm: 4px; /* badges / chips */
  --wv-radius-md: 5px; /* buttons / inputs / selects / menus */
  --wv-radius-lg: 6px; /* cards */
  --wv-radius-xl: 8px; /* modals / panels */
  --wv-shadow-sm: 0 1px 2px rgba(10, 25, 49, 0.06);
  --wv-shadow-md: 0 8px 24px rgba(10, 25, 49, 0.08);
  --wv-sidebar-width: 208px;
  --wv-header-height: 48px;
}

[data-theme="dark"] {
  --wv-bg: #070d18;
  --wv-bg-elevated: #0f1a2c;
  --wv-bg-muted: #152238;
  --wv-border: #243552;
  --wv-text: #eef4ff;
  --wv-text-muted: #9aa9c2;
  --wv-text-inverse: #06101f;
  --wv-gradient-surface: radial-gradient(1000px 500px at 0% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(800px 400px at 100% 0%, rgba(216, 70, 239, 0.14), transparent 45%),
    linear-gradient(180deg, #08111f 0%, #0a1424 100%);
  --wv-shadow-md: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--wv-font-sans);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--wv-text);
  background: var(--wv-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wv-error {
  color: var(--wv-danger);
  font-size: 13px;
}

.wv-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  position: relative;
  overflow: hidden;
  background: var(--wv-gradient-surface);
}

.wv-auth::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 55%;
  background: var(--wv-gradient-brand);
  opacity: 0.16;
  filter: blur(40px);
}

.wv-auth-panel {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-xl);
  padding: 28px 24px;
  box-shadow: var(--wv-shadow-md);
  position: relative;
}

.wv-auth-panel h1 {
  font-family: var(--wv-font-display);
  font-size: 1.35rem;
  margin: 16px 0 6px;
}

.wv-auth-panel p.lead {
  margin: 0 0 18px;
  color: var(--wv-text-muted);
  font-size: 0.92rem;
}

.wv-form {
  display: grid;
  gap: 12px;
}

.wv-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.23_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/app-ui.css ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Workvyo App UI — enterprise density design system */

:root {
  --wv-space-1: 4px;
  --wv-space-2: 8px;
  --wv-space-3: 12px;
  --wv-space-4: 16px;
  --wv-space-5: 20px;
  --wv-space-6: 24px;
  --wv-sidebar-width: 208px;
  --wv-header-height: 48px;
  --wv-row-h: 40px;
  --wv-font-size: 12.5px;
  --wv-font-size-sm: 11.5px;
  --wv-font-size-xs: 10.5px;
  --wv-title: 15px;
  --wv-title-sm: 13.5px;
  --wv-surface: var(--wv-bg-elevated);
  --wv-surface-2: #f7f9fc;
  --wv-surface-hover: #eef3f9;
  --wv-surface-active: #e5eef8;
  --wv-border-subtle: #e3eaf3;
  --wv-focus: rgba(6, 182, 212, 0.35);
}

[data-theme="dark"] {
  --wv-surface: var(--wv-bg-elevated);
  --wv-surface-2: #0c1626;
  --wv-surface-hover: #152238;
  --wv-surface-active: #1a2b44;
  --wv-border-subtle: #243552;
}

/* —— Shell —— */
.wv-shell {
  display: grid;
  grid-template-columns: var(--wv-sidebar-width) 1fr;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: var(--wv-bg);
}

.wv-sidebar {
  background: linear-gradient(180deg, #06101f 0%, #0a1628 100%);
  color: var(--wv-text-inverse);
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: auto;
}

.wv-sidebar-brand {
  padding: 4px 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 4px;
}

.wv-sidebar-brand .tag {
  margin-top: 6px;
  font-size: var(--wv-font-size-xs);
  color: rgba(238, 244, 255, 0.48);
  letter-spacing: 0.02em;
}

.wv-sidebar-locale {
  display: inline-flex;
  gap: 2px;
  margin-top: 8px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--wv-radius-md);
}

.wv-sidebar-locale button {
  border: 0;
  background: transparent;
  color: rgba(238, 244, 255, 0.55);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.wv-sidebar-locale button.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.wv-sidebar nav {
  display: grid;
  gap: 2px;
  flex: 1;
}

.wv-nav-section {
  margin: 12px 8px 4px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 244, 255, 0.38);
  font-weight: 600;
}

.wv-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: var(--wv-radius-md);
  color: rgba(238, 244, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}

.wv-nav-link .ico {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  opacity: 0.75;
  flex-shrink: 0;
}

.wv-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.wv-nav-link.active {
  background: linear-gradient(135deg, rgba(216, 70, 239, 0.22), rgba(6, 182, 212, 0.2));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.wv-nav-link.active .ico {
  opacity: 1;
}

.wv-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--wv-bg);
}

.wv-header {
  height: var(--wv-header-height);
  min-height: var(--wv-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: var(--wv-bg-elevated);
  border-bottom: 1px solid var(--wv-border);
  z-index: 10;
}

.wv-header-title {
  font-family: var(--wv-font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.wv-header-sub {
  font-size: var(--wv-font-size-xs);
  color: var(--wv-text-muted);
  margin-top: 1px;
}

.wv-header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-md);
  background: var(--wv-surface-2);
  color: var(--wv-text-muted);
  font-size: 12.5px;
  cursor: pointer;
}

.wv-header-search kbd {
  margin-left: auto;
  font-family: var(--wv-font-mono);
  font-size: 10px;
  padding: 2px 5px;
  border: 1px solid var(--wv-border);
  border-radius: 3px;
  background: var(--wv-bg-elevated);
}

.wv-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wv-icon-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-md);
  background: var(--wv-bg-elevated);
  color: var(--wv-text);
  cursor: pointer;
  padding: 0;
}

.wv-icon-btn:hover {
  background: var(--wv-surface-hover);
}

.wv-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  flex-shrink: 0;
  user-select: none;
}

.wv-avatar.sm { width: 22px; height: 22px; font-size: 9px; }
.wv-avatar.md { width: 32px; height: 32px; font-size: 12px; }
.wv-avatar.lg { width: 40px; height: 40px; font-size: 14px; }

.wv-presence {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 2px var(--wv-bg-elevated);
  display: inline-block;
}
.wv-presence.ONLINE { background: #10b981; }
.wv-presence.AWAY { background: #f59e0b; }
.wv-presence.BUSY,
.wv-presence.DO_NOT_DISTURB { background: #ef4444; }

.wv-content {
  flex: 1;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* —— Workspace modules —— */
.wv-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--wv-bg);
}

.wv-workspace-padded {
  padding: 16px;
  overflow: auto;
}

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

.wv-page-head h1 {
  margin: 0;
  font-family: var(--wv-font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.wv-page-head p {
  margin: 4px 0 0;
  color: var(--wv-text-muted);
  font-size: 13px;
}

.wv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.wv-split {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--wv-border);
  background: var(--wv-bg);
}

.wv-panel {
  background: var(--wv-bg-elevated);
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-xl);
  box-shadow: var(--wv-shadow-sm);
}

.wv-pane {
  background: var(--wv-bg-elevated);
  border-right: 1px solid var(--wv-border);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wv-pane:last-child {
  border-right: 0;
}

.wv-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--wv-border);
  min-height: 48px;
}

.wv-pane-head h2,
.wv-pane-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.wv-pane-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.wv-pane-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--wv-border);
  background: var(--wv-surface-2);
}

/* —— Cards / surfaces —— */
.wv-card-free {
  background: var(--wv-bg-elevated);
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-lg);
  padding: 14px;
  box-shadow: none;
}

.wv-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* —— Lists / rows —— */
.wv-list {
  display: flex;
  flex-direction: column;
}

.wv-list-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--wv-border-subtle);
  background: transparent;
  color: var(--wv-text);
  cursor: pointer;
  font: inherit;
}

.wv-list-row:hover {
  background: var(--wv-surface-hover);
}

.wv-list-row.active {
  background: var(--wv-surface-active);
  box-shadow: inset 3px 0 0 var(--wv-accent);
}

.wv-list-row .meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.wv-list-row .title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.wv-list-row .preview {
  font-size: 12px;
  color: var(--wv-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.wv-list-row.unread .title {
  font-weight: 700;
}

.wv-section-label {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wv-text-muted);
}

/* —— Forms —— */
.wv-field,
.wv-content input,
.wv-content select,
.wv-content textarea,
.wv-pane input,
.wv-pane select,
.wv-pane textarea,
.wv-card-free input,
.wv-card-free select,
.wv-card-free textarea,
.wv-toolbar input,
.wv-toolbar select {
  border: 1px solid var(--wv-border);
  background: var(--wv-bg-elevated);
  color: var(--wv-text);
  border-radius: var(--wv-radius-md);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.wv-content input:focus,
.wv-content select:focus,
.wv-content textarea:focus,
.wv-pane input:focus,
.wv-pane select:focus,
.wv-pane textarea:focus {
  border-color: var(--wv-accent);
  box-shadow: 0 0 0 3px var(--wv-focus);
}

/* —— Buttons —— */
.wv-btn,
.wv-btn-ghost,
.wv-btn-subtle {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--wv-radius-md);
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 120ms ease, border-color 120ms ease;
}

.wv-btn {
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff;
}

.wv-btn:hover {
  filter: brightness(1.05);
}

.wv-btn-ghost {
  background: transparent;
  border-color: var(--wv-border);
  color: var(--wv-text);
}

.wv-btn-ghost:hover {
  background: var(--wv-surface-hover);
}

.wv-btn-subtle {
  background: var(--wv-surface-2);
  border-color: var(--wv-border);
  color: var(--wv-text);
}

.wv-btn-sm {
  padding: 5px 9px;
  font-size: 12px;
}

/* —— Badges —— */
.wv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--wv-radius-sm);
  font-size: 10px;
  font-weight: 700;
  background: var(--wv-bg-muted);
  color: var(--wv-text);
}

.wv-badge.hot {
  background: var(--wv-accent-hot);
  color: #fff;
}

.wv-badge.ok {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.wv-badge.warn {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.wv-badge.info {
  background: rgba(6, 182, 212, 0.14);
  color: #0e7490;
}

.wv-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--wv-radius-sm);
  background: var(--wv-bg-muted);
  font-size: 12px;
  color: var(--wv-text);
}

/* —— Tables —— */
.wv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wv-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wv-text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--wv-border);
  background: var(--wv-surface-2);
}

.wv-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--wv-border-subtle);
  vertical-align: middle;
}

.wv-table tr:hover td {
  background: var(--wv-surface-hover);
}

/* —— Empty / skeleton —— */
.wv-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 48px 24px;
  color: var(--wv-text-muted);
  gap: 8px;
}

.wv-empty strong {
  color: var(--wv-text);
  font-size: 14px;
}

.wv-empty p {
  margin: 0;
  font-size: 13px;
  max-width: 320px;
}

/* —— Chat specific —— */
.wv-chat {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  background: var(--wv-bg);
}

.wv-chat.no-rail {
  grid-template-columns: 280px 1fr;
}

.wv-chat-rail .wv-list-row .preview {
  max-width: 150px;
}

.wv-chat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--wv-bg-elevated);
}

.wv-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--wv-border);
  min-height: 56px;
}

.wv-chat-header .who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wv-chat-header h1 {
  margin: 0;
  font-size: 15px;
  font-family: var(--wv-font-display);
  font-weight: 700;
}

.wv-chat-header .sub {
  font-size: 12px;
  color: var(--wv-text-muted);
}

.wv-chat-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.wv-msg-stream {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background:
    linear-gradient(180deg, var(--wv-surface-2), var(--wv-bg-elevated) 48px);
}

.wv-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--wv-radius-lg);
}

.wv-msg:hover {
  background: rgba(10, 25, 49, 0.03);
}

.wv-msg .head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.wv-msg .author {
  font-size: 13px;
  font-weight: 700;
}

.wv-msg .time {
  font-size: 11px;
  color: var(--wv-text-muted);
}

.wv-msg .body {
  margin-top: 2px;
  white-space: pre-wrap;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--wv-text);
}

.wv-msg-actions {
  display: none;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.wv-msg:hover .wv-msg-actions {
  display: flex;
}

.wv-msg-actions button {
  border: 1px solid var(--wv-border);
  background: var(--wv-bg-elevated);
  border-radius: var(--wv-radius-sm);
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
  color: var(--wv-text-muted);
}

.wv-msg-actions button:hover {
  color: var(--wv-text);
  background: var(--wv-surface-hover);
}

.wv-composer {
  border-top: 1px solid var(--wv-border);
  padding: 10px 14px 14px;
  background: var(--wv-bg-elevated);
}

.wv-composer-box {
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-lg);
  background: var(--wv-surface-2);
  padding: 8px 10px;
  display: grid;
  gap: 8px;
}

.wv-composer-box:focus-within {
  border-color: var(--wv-accent);
  box-shadow: 0 0 0 3px var(--wv-focus);
}

.wv-composer-box textarea,
.wv-composer-box input[type="text"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 2px !important;
  width: 100%;
  resize: none;
  min-height: 40px;
  font-size: 13.5px;
}

.wv-composer-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wv-composer-toolbar .spacer {
  flex: 1;
}

.wv-pin-bar {
  margin: 0 16px 8px;
  padding: 8px 10px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--wv-radius-lg);
  font-size: 12px;
}

.wv-side-info .block {
  padding: 12px;
  border-bottom: 1px solid var(--wv-border-subtle);
}

.wv-side-info h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wv-text-muted);
}

.wv-member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}

/* —— Mail —— */
.wv-mail {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 200px 320px 1fr;
}

.wv-mail-folders button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: var(--wv-radius-md);
  font: inherit;
  font-size: 13px;
  color: var(--wv-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.wv-mail-folders button:hover {
  background: var(--wv-surface-hover);
}

.wv-mail-folders button.active {
  background: var(--wv-surface-active);
  font-weight: 600;
}

.wv-mail-read {
  padding: 16px 20px;
  overflow: auto;
}

.wv-mail-read h1 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-family: var(--wv-font-display);
}

/* —— Kanban —— */
.wv-kanban {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: start;
}

.wv-kanban-col {
  background: var(--wv-surface-2);
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-lg);
  padding: 8px;
  min-height: 280px;
}

.wv-kanban-col > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wv-text-muted);
}

.wv-kanban-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-lg);
  padding: 10px;
  background: var(--wv-bg-elevated);
  cursor: pointer;
  margin-bottom: 8px;
  font: inherit;
  color: var(--wv-text);
}

.wv-kanban-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: var(--wv-shadow-sm);
}

.wv-kanban-card .title {
  font-weight: 600;
  font-size: 13px;
}

.wv-kanban-card .meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--wv-text-muted);
}

/* —— Calendar grid —— */
.wv-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.wv-cal-day {
  background: var(--wv-bg-elevated);
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-lg);
  padding: 8px;
  min-height: 110px;
}

.wv-cal-day .daynum {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

.wv-cal-event {
  background: rgba(6, 182, 212, 0.1);
  border-left: 3px solid var(--wv-accent);
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 11px;
  margin-bottom: 4px;
}

/* —— Docs —— */
.wv-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.wv-doc-item {
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-lg);
  padding: 12px;
  background: var(--wv-bg-elevated);
  cursor: pointer;
}

.wv-doc-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.wv-doc-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--wv-radius-md);
  background: var(--wv-surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  font-size: 16px;
}

/* —— Auth denser —— */
.wv-auth-panel {
  border-radius: var(--wv-radius-xl);
}

@media (max-width: 1100px) {
  .wv-chat {
    grid-template-columns: 240px 1fr;
  }
  .wv-chat .wv-chat-info {
    display: none;
  }
  .wv-mail {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 900px) {
  .wv-shell {
    grid-template-columns: 1fr;
  }
  .wv-sidebar {
    display: none;
  }
  .wv-chat,
  .wv-mail {
    grid-template-columns: 1fr;
  }
}


/* —— Compact typography override (mockup density) —— */
body, .wv-shell, .wv-content, .wv-workspace {
  font-size: 12.5px !important;
  line-height: 1.4;
}

.wv-header-title,
.wv-page-head h1,
.wv-chat-header h1,
.wv-mail-read h1,
.wv-pane-head h2,
.wv-pane-head h3 {
  font-family: var(--wv-font-sans) !important;
  letter-spacing: -0.01em;
}

.wv-header-title { font-size: 13px !important; font-weight: 650; }
.wv-header-sub { font-size: 10.5px !important; }
.wv-page-head { margin-bottom: 10px !important; }
.wv-page-head h1 { font-size: 16px !important; font-weight: 700; }
.wv-page-head p { font-size: 12px !important; margin-top: 2px !important; }

.wv-nav-section { font-size: 9.5px !important; margin: 10px 8px 3px !important; }
.wv-nav-link { font-size: 12px !important; padding: 6px 8px !important; gap: 8px !important; position: relative; }
.wv-nav-link .ico { width: 16px; height: 16px; }
.wv-nav-link.active {
  background: linear-gradient(90deg, rgba(99,102,241,0.28), rgba(59,130,246,0.12)) !important;
  box-shadow: none !important;
}
.wv-nav-link.active::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: #6366f1;
}

.wv-list-row { padding: 7px 10px !important; }
.wv-list-row .title { font-size: 12.5px !important; font-weight: 600; }
.wv-list-row .preview { font-size: 11px !important; max-width: 160px; }
.wv-section-label { font-size: 9.5px !important; padding: 6px 10px 3px !important; }

.wv-chat { grid-template-columns: 260px 1fr 248px !important; }
.wv-chat.no-rail { grid-template-columns: 260px 1fr !important; }
.wv-chat-header { min-height: 48px !important; padding: 8px 14px !important; }
.wv-chat-header h1 { font-size: 14px !important; }
.wv-chat-header .sub { font-size: 11px !important; }
.wv-msg { grid-template-columns: 28px 1fr; gap: 8px; padding: 6px 8px; }
.wv-msg .author { font-size: 12.5px !important; }
.wv-msg .time { font-size: 10.5px !important; }
.wv-msg .body { font-size: 12.5px !important; line-height: 1.4 !important; }
.wv-composer-box textarea,
.wv-composer-box input[type="text"] { font-size: 12.5px !important; min-height: 34px !important; }
.wv-empty strong { font-size: 13px !important; }
.wv-empty p { font-size: 12px !important; }
.wv-mail-read h1 { font-size: 15px !important; }
.wv-kanban-card .title { font-size: 12.5px !important; }
.wv-kanban-card .meta { font-size: 11px !important; }
.wv-kanban-col > header { font-size: 10.5px !important; }
.wv-table { font-size: 12.5px !important; }
.wv-table th { font-size: 10px !important; padding: 6px 8px !important; }
.wv-table td { padding: 7px 8px !important; }
.wv-btn, .wv-btn-ghost, .wv-btn-subtle { font-size: 12px !important; padding: 6px 10px !important; }
.wv-btn-sm { font-size: 11px !important; padding: 4px 8px !important; }
.wv-badge { font-size: 9.5px !important; height: 16px; min-width: 16px; }
.wv-pane-head { min-height: 42px !important; padding: 8px 10px !important; }
.wv-pane-head h2, .wv-pane-head h3 { font-size: 12.5px !important; }
.wv-workspace-padded { padding: 12px 14px !important; }
.wv-card-free { padding: 12px !important; }
.wv-header-search { height: 32px !important; font-size: 12px !important; max-width: 380px; }
.wv-avatar.lg { width: 32px; height: 32px; font-size: 11px; }
.wv-avatar.md { width: 28px; height: 28px; font-size: 11px; }
.wv-side-info h4 { font-size: 10px !important; }
.wv-member-row { font-size: 12px !important; }
.wv-cal-day .daynum { font-size: 11px !important; }
.wv-cal-event { font-size: 10.5px !important; }
.wv-doc-item strong { font-size: 12px !important; }

/* Filter chips (chat) */
.wv-tabs {
  display: flex;
  gap: 4px;
  padding: 0 10px 8px;
}
.wv-tab {
  border: 1px solid var(--wv-border);
  background: var(--wv-bg-elevated);
  color: var(--wv-text-muted);
  border-radius: var(--wv-radius-md);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.wv-tab.active {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.35);
  color: #4338ca;
}
.wv-attach {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-radius-lg);
  background: var(--wv-surface-2);
  max-width: 320px;
}
.wv-attach .ext {
  width: 28px; height: 28px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800;
}
.wv-sidebar-user {
  margin-top: auto;
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.wv-sidebar-user .meta { min-width: 0; }
.wv-sidebar-user .name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-sidebar-user .org { font-size: 10.5px; color: rgba(238,244,255,0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

