﻿:root {
  --ink: #111b4f;
  --muted: #5f6698;
  --line: #e4e8f5;
  --soft: #f7f9fd;
  --panel: #ffffff;
  --core: #d3af37;
  --core-soft: #fbf5df;
  --ai: #37a9d3;
  --ai-soft: #e7f6fb;
  --blue: #375bd3;
  --blue-soft: #eaf4ff;
  --highlight: #363430;
  --highlight-soft: #faf5e6;
  --link-dark: #3f3f46;
  --calendar-event-bg: #f5f5f5;
  --calendar-hover: #8a8375;
  --quicklink-gold: #d3af37;
  --it-warning-muted: #55565a;
  --settings-gray-1: #55565a;
  --settings-gray-2: #64666d;
  --settings-gray-3: #73757d;
  --settings-gray-4: #82858d;
  --settings-gray-5: #6c6e75;
  --settings-gray-6: #8f929a;
  --stat-gold: #111b4f;
  --black: #111111;
  --purple: #d337a9;
  --purple-soft: #f1eaff;
  --green: #37d361;
  --green-soft: #e8f8f0;
  --orange: #d37b37;
  --orange-soft: #fff1e4;
  --yellow: #f3b61f;
  --yellow-soft: #fff7db;
  --red: #d35537;
  --red-soft: #ffecec;
  --shadow: 0 8px 24px rgba(17, 27, 79, 0.05);
  --font-title: "Arial MT Pro", Arial, "Helvetica Neue", sans-serif;
  --font-subhead: Raleway, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-body: "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif, sans-serif;
  font-family: var(--font-body);
}

:root[data-theme="dark"] .app,
:root[data-theme="dark"] .main {
  background: linear-gradient(180deg, #0b1020 0, #0f172a 100%);
  color: var(--ink);
}

:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .firm-pill,
:root[data-theme="dark"] .user-dropdown,
:root[data-theme="dark"] .mobile-footer,
:root[data-theme="dark"] .modal-panel,
:root[data-theme="dark"] .chat-pop-panel,
:root[data-theme="dark"] .floating-timekeeper,
:root[data-theme="dark"] .gmail-inbox-panel,
:root[data-theme="dark"] .gmail-reading-pane,
:root[data-theme="dark"] .email-body-preview,
:root[data-theme="dark"] .doc-page,
:root[data-theme="dark"] .compact-doc-page,
:root[data-theme="dark"] .pleading-page,
:root[data-theme="dark"] .color-control,
:root[data-theme="dark"] .plugin-toggle-card,
:root[data-theme="dark"] .settings-link-card,
:root[data-theme="dark"] .ai-box,
:root[data-theme="dark"] .callout,
:root[data-theme="dark"] .donut:after {
  background: var(--panel);
  color: var(--ink);
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .message-bubble,
:root[data-theme="dark"] .email-card,
:root[data-theme="dark"] .email-ai-context,
:root[data-theme="dark"] .gmail-bulk-toolbar,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .folder-card,
:root[data-theme="dark"] .invoice-card,
:root[data-theme="dark"] .brand-preview,
:root[data-theme="dark"] .profile-card,
:root[data-theme="dark"] .timer-save-card {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .search input,
:root[data-theme="dark"] .role-switch select,
:root[data-theme="dark"] .btn,
:root[data-theme="dark"] .icon-button,
:root[data-theme="dark"] .tab,
:root[data-theme="dark"] .subnav-button {
  background: #0f172a;
  border-color: var(--line);
  color: var(--ink);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: #7f8bb8;
}

:root[data-theme="dark"] table,
:root[data-theme="dark"] th,
:root[data-theme="dark"] td {
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] th,
:root[data-theme="dark"] tr:hover,
:root[data-theme="dark"] .gmail-email-row:hover,
:root[data-theme="dark"] .nav-button:hover,
:root[data-theme="dark"] .nav-button.active,
:root[data-theme="dark"] .subnav-button.active,
:root[data-theme="dark"] .footer-button.active,
:root[data-theme="dark"] .user-menu:hover,
:root[data-theme="dark"] .user-menu:focus-within {
  background: #1c2744;
}

:root[data-theme="dark"] .muted,
:root[data-theme="dark"] small,
:root[data-theme="dark"] .page-subtitle,
:root[data-theme="dark"] .nav-button,
:root[data-theme="dark"] .subnav-button,
:root[data-theme="dark"] .footer-button {
  color: var(--muted);
}

:root[data-theme="dark"] .link,
:root[data-theme="dark"] a,
:root[data-theme="dark"] .nav-button.active,
:root[data-theme="dark"] .subnav-button.active,
:root[data-theme="dark"] .footer-button.active {
  color: var(--ink);
}

:root[data-theme="dark"] .brand-logo {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .tabler-icon:not(.stat-tabler-icon):not(.list-tabler-icon):not(.footer-tabler-icon):not(.chat-fab-icon) {
  filter: brightness(0) invert(1);
}

:root[data-theme="dark"] .btn.primary,
:root[data-theme="dark"] .btn.purple,
:root[data-theme="dark"] .btn.danger,
:root[data-theme="dark"] .chat-fab {
  color: #fff;
}

:root[data-theme="dark"] .modal-backdrop,
:root[data-theme="dark"] .drawer-backdrop {
  background: rgba(0, 0, 0, 0.56);
}

:root[data-theme="dark"] {
  --ink: #2b40af;
  --muted: #aab4d6;
  --line: #2b355d;
  --soft: #11182b;
  --panel: #151d33;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: var(--font-body);
  overflow-x: hidden;
}

:root[data-theme="dark"] body {
  background: #0b1020;
}

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

h1,
h2,
h3,
.brand,
.stat strong,
.big-number {
  font-family: var(--font-title);
  letter-spacing: 0;
}

.page-subtitle,
.muted,
.nav-button,
.subnav-button,
.badge,
.btn,
th,
label {
  font-family: var(--font-subhead);
}

button {
  cursor: pointer;
}

.plain-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

.color-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.color-control {
  display: grid;
  grid-template-columns: 36px 1fr 54px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.color-control small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.color-control input {
  width: 48px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.brand-color-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.email-body-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  line-height: 1.55;
}

.ai-email-panel .split-actions {
  margin-top: 12px;
}

.email-ai-context {
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--ink);
}

.email-ai-context small {
  color: var(--muted);
  line-height: 1.4;
}

.gmail-inbox-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.gmail-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.email-inbox-page {
  display: grid;
  gap: 20px;
}

.email-inbox-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 20px;
  align-items: start;
}

.email-inbox-topline > .panel {
  min-width: 0;
}

.time-tracking-launch-card {
  align-content: space-between;
  min-height: 100%;
}

.compact-head {
  align-items: center;
  margin-bottom: 6px;
}

.email-inbox-page > .panel {
  min-width: 0;
}

.email-inbox-page > .stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gmail-counts,
.gmail-pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.gmail-counts strong {
  color: var(--ink);
}

.gmail-pagination {
  margin-left: auto;
}

.bulk-destination-select,
.table-select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  padding: 0 8px;
}

.bulk-destination-select {
  min-width: 190px;
}

.bulk-destination-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.gmail-select-all,
.gmail-row-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gmail-select-all input,
.gmail-row-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.gmail-inbox-list {
  display: grid;
}

.gmail-inbox-workspace {
  display: grid;
}

.gmail-inbox-panel.split-view .gmail-inbox-workspace {
  grid-template-columns: minmax(360px, 42%) minmax(520px, 58%);
  min-height: 640px;
}

.gmail-inbox-panel.split-view .gmail-inbox-list {
  border-right: 1px solid var(--line);
  align-content: start;
}

.gmail-reading-pane {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  background: #fff;
  min-width: 0;
}

.gmail-reading-pane .email-body-preview {
  min-height: 170px;
}

.gmail-email-row {
  display: grid;
  grid-template-columns: 34px 30px minmax(300px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.gmail-email-row:last-child {
  border-bottom: 0;
}

.gmail-email-row:hover,
.gmail-email-row.selected,
.gmail-email-row.active {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.gmail-inbox-panel.split-view .gmail-email-row {
  grid-template-columns: 30px 24px minmax(0, 1fr);
  align-items: start;
}

.gmail-inbox-panel.split-view .gmail-email-main {
  grid-template-columns: 1fr;
  gap: 2px;
}

.gmail-inbox-panel.split-view .gmail-status,
.gmail-inbox-panel.split-view .gmail-folder,
.gmail-inbox-panel.split-view .gmail-row-actions {
  grid-column: 3;
}

.gmail-email-row.unread .gmail-sender,
.gmail-email-row.unread .gmail-subject {
  font-weight: 900;
}

.gmail-star {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #a7afc4;
  cursor: pointer;
  font-size: 18px;
}

.gmail-star:hover {
  color: var(--orange);
}

.gmail-email-main {
  display: grid;
  grid-template-columns: 150px minmax(150px, 220px) minmax(180px, 1fr) 150px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gmail-email-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gmail-preview,
.gmail-matter,
.gmail-folder {
  color: var(--muted);
  font-size: 12px;
}

.gmail-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px 1fr;
  grid-template-rows: 80px 1fr;
  transition: grid-template-columns 0.18s ease;
}

.app.nav-collapsed {
  grid-template-columns: 82px 1fr;
}

.topbar {
  grid-column: 1 / 3;
  grid-row: 1;
  grid-column: 1 / 3;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 240px;
}

.brand-logo {
  display: block;
  width: 238px;
  height: auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  min-height: 40px;
  width: 40px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

.theme-toggle.active {
  background: var(--ink);
  color: var(--panel);
}

.top-timer-button {
  min-height: 40px;
  width: 40px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
}

.top-timer-button.active {
  background: var(--ink);
  color: #fff;
}

.theme-toggle-icon {
  width: 18px;
  height: 18px;
}

.theme-toggle span,
.top-timer-button span {
  display: none;
}

.firm-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  white-space: nowrap;
}

.firm-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
}

.header-firm-logo {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: none;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  flex: 0 0 auto;
  cursor: pointer;
  padding: 0;
}

.mobile-firm-logo {
  display: none !important;
}

.header-firm-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.firm-pill-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.search {
  position: relative;
}

.search input {
  width: min(440px, 36vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px 12px 42px;
  color: var(--ink);
  outline: none;
  background: #fff;
}

.search:before {
  content: "âŒ•";
  position: absolute;
  left: 16px;
  top: 8px;
  color: var(--muted);
  font-size: 22px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu {
  position: relative;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
}

.user-menu:hover,
.user-menu:focus-within {
  border-color: var(--line);
  background: var(--soft);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 30;
  display: none;
  min-width: 170px;
  padding: 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 27, 79, 0.16);
}

.user-dropdown:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown,
.user-menu.open .user-dropdown {
  display: grid;
}

.user-dropdown button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 10px;
  font-weight: 750;
}

.user-dropdown button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

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

.avatar.small {
  width: 36px;
  height: 36px;
  font-size: 13px;
}

.avatar.large {
  width: 96px;
  height: 96px;
  font-size: 28px;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.user-cell small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.user small,
.page-subtitle,
.muted {
  color: var(--muted);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--soft);
}

.login-panel {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(17, 27, 79, 0.14);
  padding: 28px;
}

.login-logo {
  width: 190px;
  max-width: 100%;
  margin-bottom: 18px;
}

.login-panel h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.login-error {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--red);
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.password-field {
  position: relative;
  display: grid;
}

.password-field input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.password-toggle:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.sidebar {
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid var(--line);
  padding: 56px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(100vh - 80px);
  position: sticky;
  top: 80px;
  background: #fff;
  transition: padding 0.18s ease;
}

.nav-collapse-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
}

.nav-collapse-button .tabler-icon {
  width: 18px;
  height: 18px;
}

.app.nav-collapsed .sidebar {
  padding: 56px 12px 18px;
  align-items: center;
}

.app.nav-collapsed .nav-collapse-button {
  width: 34px;
  height: 34px;
  right: 24px;
  padding: 0;
}

.app.nav-collapsed .nav-collapse-button span,
.app.nav-collapsed .nav-label,
.app.nav-collapsed .nav-caret,
.app.nav-collapsed .subnav,
.app.nav-collapsed .role-switch {
  display: none;
}

.app.nav-collapsed .nav-group,
.app.nav-collapsed .nav-button {
  width: 48px;
}

.app.nav-collapsed .nav-button {
  justify-content: center;
  padding: 12px;
}

.drawer-backdrop,
.mobile-footer {
  display: none;
}

.nav-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: left;
  font-weight: 650;
  width: 100%;
}

.nav-button.active {
  background: var(--highlight-soft);
  color: var(--ink);
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 15px;
  line-height: 1;
}

.dashboard-icon {
  font-size: 18px;
  line-height: 1;
}

.dashboard-gauge-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 18px;
  transform: translateY(1px);
}

.dashboard-gauge-icon:before {
  content: "";
  position: absolute;
  left: 1px;
  top: 4px;
  width: 18px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  box-sizing: border-box;
}

.dashboard-gauge-icon:after {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.dashboard-gauge-icon span {
  position: absolute;
  left: 9px;
  top: 8px;
  width: 2px;
  height: 7px;
  background: currentColor;
  transform: rotate(42deg);
  transform-origin: bottom;
  border-radius: 999px;
}

.casecabinet-box-icon {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-top: 0;
  border-radius: 2px;
  transform: translateY(2px);
}

.casecabinet-box-icon:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 10px;
  height: 3px;
  border: 1.6px solid currentColor;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.casecabinet-box-icon:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 6px;
  height: 1.6px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

.casecabinet-box-icon span {
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 6px;
  height: 1.6px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

.nav-trash-icon {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  transform: translateY(2px);
}

.nav-trash-icon:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 11px;
  height: 1.4px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.nav-trash-icon:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 4px;
  height: 1.4px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.addon-nav-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.addon-nav-icon.phone {
  width: 16px;
  height: 16px;
  background: currentColor;
  transform: rotate(-8deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='-10 -10 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M32 4c9-4 22-3 29 6 5 7 11 31 10 39 0 7-4 12-11 15l-12 6c8 15 22 29 38 38l8-11c4-7 11-9 19-6 10 4 30 16 35 23 6 9 4 22-3 31-7 10-20 15-35 13-24-4-51-21-75-45C11 89-6 62-2 38 0 21 16 9 32 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='-10 -10 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M32 4c9-4 22-3 29 6 5 7 11 31 10 39 0 7-4 12-11 15l-12 6c8 15 22 29 38 38l8-11c4-7 11-9 19-6 10 4 30 16 35 23 6 9 4 22-3 31-7 10-20 15-35 13-24-4-51-21-75-45C11 89-6 62-2 38 0 21 16 9 32 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.addon-nav-icon.paintbrush:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 1px;
  width: 5px;
  height: 15px;
  background: currentColor;
  border-radius: 3px;
  transform: rotate(38deg);
}

.addon-nav-icon.paintbrush:after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 1px;
  width: 8px;
  height: 6px;
  border-radius: 2px 2px 7px 7px;
  background: currentColor;
  transform: rotate(38deg);
}

.addon-nav-icon.bullseye {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.addon-nav-icon.bullseye:before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.addon-nav-icon.bullseye:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.addon-nav-icon.bullhorn {
  width: 15px;
  height: 13px;
}

.addon-nav-icon.bullhorn:before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 9px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 32%, 100% 0, 100% 100%, 0 68%);
}

.addon-nav-icon.bullhorn:after {
  content: "";
  position: absolute;
  left: 1px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 3px 5px 0 -1.5px currentColor;
}

.addon-nav-icon.form {
  width: 17px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' fill-rule='evenodd' d='M4 0h56c2.2 0 4 1.8 4 4v50c0 2.2-1.8 4-4 4H4c-2.2 0-4-1.8-4-4V4c0-2.2 1.8-4 4-4Zm0 14v39c0 .6.4 1 1 1h54c.6 0 1-.4 1-1V14H4Zm38-5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM12 24c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm-7 15c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm26 6h12c2.2 0 4-1.8 4-4v-4c0-2.2-1.8-4-4-4H45c-2.2 0-4 1.8-4 4v4c0 2.2 1.8 4 4 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' fill-rule='evenodd' d='M4 0h56c2.2 0 4 1.8 4 4v50c0 2.2-1.8 4-4 4H4c-2.2 0-4-1.8-4-4V4c0-2.2 1.8-4 4-4Zm0 14v39c0 .6.4 1 1 1h54c.6 0 1-.4 1-1V14H4Zm38-5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM12 24c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm-7 15c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm26 6h12c2.2 0 4-1.8 4-4v-4c0-2.2-1.8-4-4-4H45c-2.2 0-4 1.8-4 4v4c0 2.2 1.8 4 4 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.document-page-icon {
  position: relative;
  display: inline-grid;
  gap: 2px;
  width: 14px;
  height: 17px;
  padding: 6px 3px 3px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.document-page-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.reports-graph-icon {
  display: inline-grid;
  grid-template-columns: repeat(3, 4px);
  gap: 2px;
  align-items: end;
  width: 18px;
  height: 16px;
  padding: 0 1px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.reports-graph-icon span {
  display: block;
  width: 4px;
  background: currentColor;
  border-radius: 2px 2px 0 0;
}

.reports-graph-icon span:nth-child(1) {
  height: 6px;
}

.reports-graph-icon span:nth-child(2) {
  height: 11px;
}

.reports-graph-icon span:nth-child(3) {
  height: 8px;
}


.nav-group {
  display: grid;
  gap: 2px;
}

.nav-caret {
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.nav-caret.open {
  transform: rotate(-135deg);
}

.subnav {
  display: grid;
  gap: 1px;
  margin: 0 0 4px 32px;
  padding: 3px 0 3px 12px;
  border-left: 1px solid var(--line);
}

.subnav-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
}

.subnav-button:hover,
.subnav-button.active {
  color: var(--muted);
  background: transparent;
}

.nav-spacer {
  flex: 1;
}

.role-switch {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.role-switch label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.role-switch select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
}

.main {
  grid-column: 2;
  grid-row: 2;
  padding: 28px 32px 40px;
  background: linear-gradient(180deg, #fff 0, #fff 70%, #fbfcff 100%);
  min-width: 0;
}

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

.page-head > .actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(100%, 760px);
  overflow: visible;
  padding-bottom: 0;
}

.page-head > .actions .btn,
.page-head > .actions select.btn {
  min-height: 36px;
  border-color: #dadce0;
  border-radius: 18px;
  padding: 7px 14px;
  background: #fff;
  color: #3c4043;
  font-family: "Open Sans", Arial, "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: none;
}

.page-head > .actions .btn:hover,
.page-head > .actions select.btn:hover {
  border-color: #c6cbd2;
  background: #f8fafd;
}

.page-head > .actions .btn.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.page-head > .actions .btn.primary:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.page-head > .actions .btn.purple {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.page-head > .actions .btn.danger {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

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

h1 {
  font-size: 30px;
  letter-spacing: 0;
  margin-bottom: 8px;
}

h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

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

.btn {
  min-height: 34px;
  border: 1px solid #dadce0;
  border-radius: 14px;
  background: #fff;
  padding: 6px 12px;
  color: #3c4043;
  font-family: "Open Sans", Arial, "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: none;
}

.btn:hover {
  border-color: #c6cbd2;
  background: #f8fafd;
}

.btn.primary {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.btn.purple {
  color: #fff;
  border-color: var(--purple);
  background: var(--purple);
}

.btn.ai-action-btn {
  color: #fff;
  border-color: var(--ai);
  background: var(--ai);
}

.btn.ai-action-btn:hover {
  border-color: var(--ai);
  background: var(--ai);
  filter: brightness(0.96);
}

.btn.danger {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.btn.small-btn {
  min-height: 30px;
  padding: 5px 10px;
  min-width: 0;
  text-align: center;
}

.btn.wide {
  width: 100%;
  margin-top: 14px;
}

.trash-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trash-action {
  min-height: 30px;
  border: 1px solid #dadce0;
  border-radius: 15px;
  padding: 5px 10px;
  background: #fff;
  color: #3c4043;
  font-family: "Open Sans", Arial, "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.trash-action:hover {
  background: #f8fafd;
  border-color: #c6cbd2;
}

.trash-action.shred {
  border-color: var(--red);
  color: var(--red);
  background: #fff;
}

.trash-action.shred:hover {
  background: var(--red-soft);
}

.split-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.linked-area-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
}

.linked-area-callout span {
  line-height: 1.45;
}

.inline-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
  font-weight: 750;
}

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

.settings-overview > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.settings-overview strong {
  font-size: 15px;
}

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

.settings-link-grid.single {
  grid-template-columns: 1fr;
}

.plugin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.plugin-toggle-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.plugin-toggle-card.disabled {
  opacity: 0.58;
}

.plugin-toggle-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #d7dbea;
  border-radius: 999px;
  transition: 0.2s ease;
}

.switch-toggle span:before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(17, 27, 79, 0.2);
  transition: 0.2s ease;
}

.switch-toggle input:checked + span {
  background: var(--highlight);
}

.switch-toggle input:checked + span:before {
  transform: translateX(20px);
}

.dashboard-hub-grid {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.dashboard-modules-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.settings-link-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.settings-link-card:hover {
  border-color: rgba(50, 100, 255, 0.35);
  box-shadow: 0 10px 24px rgba(17, 27, 79, 0.08);
}

.settings-link-card small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 3px;
}

.settings-link-card b {
  color: var(--blue);
  font-size: 12px;
}

.dashboard-area-card .btn {
  justify-self: end;
}

.clickable-panel {
  cursor: pointer;
}

.clickable-panel:hover {
  border-color: rgba(37, 99, 235, 0.28);
}

.dashboard-hub-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  color: #fff;
}

.dashboard-hub-icon.folder {
  width: 25px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 3px;
  margin-top: 4px;
}

.dashboard-hub-icon.folder:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  width: 11px;
  height: 7px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
}

.dashboard-hub-icon.search {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
  margin-top: -1px;
  color: #fff;
}

.dashboard-hub-icon.search:before {
  content: none;
}

.dashboard-hub-icon.search:after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.dashboard-hub-icon.cabinet {
  width: 20px;
  height: 19px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
  margin-top: 4px;
}

.dashboard-hub-icon.cabinet:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 18px;
  height: 4px;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
}

.dashboard-hub-icon.cabinet:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 12px;
  height: 2px;
  background: currentColor;
}

.dashboard-hub-icon.document {
  width: 18px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.dashboard-hub-icon.document:before,
.dashboard-hub-icon.document:after {
  content: "";
  position: absolute;
  left: 4px;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.dashboard-hub-icon.document:before {
  top: 7px;
}

.dashboard-hub-icon.document:after {
  top: 13px;
}

.dashboard-hub-icon.inbox,
.dashboard-hub-icon.envelope,
.dashboard-hub-icon.chat {
  width: 24px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
  margin-top: 2px;
}

.dashboard-hub-icon.inbox:before,
.dashboard-hub-icon.inbox:after,
.dashboard-hub-icon.envelope:before,
.dashboard-hub-icon.envelope:after {
  content: "";
  position: absolute;
  top: 4px;
  width: 13px;
  height: 2px;
  background: currentColor;
}

.dashboard-hub-icon.inbox:before,
.dashboard-hub-icon.envelope:before {
  left: 1px;
  transform: rotate(35deg);
}

.dashboard-hub-icon.inbox:after,
.dashboard-hub-icon.envelope:after {
  right: 1px;
  transform: rotate(-35deg);
}

.dashboard-hub-icon.chat:after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -6px;
  border-top: 6px solid currentColor;
  border-right: 7px solid transparent;
}

.dashboard-hub-icon.video {
  width: 23px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  margin-top: 4px;
}

.dashboard-hub-icon.video:after {
  content: "";
  position: absolute;
  right: -7px;
  top: 3px;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.dashboard-hub-icon.calendar {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.dashboard-hub-icon.calendar:before {
  content: "";
  position: absolute;
  left: -2px;
  top: 5px;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.dashboard-hub-icon.task:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: translate(-50%, -62%) rotate(40deg);
}

.dashboard-hub-icon.time {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.dashboard-hub-icon.time:before,
.dashboard-hub-icon.time:after {
  content: "";
  position: absolute;
  left: 11px;
  top: 5px;
  width: 2px;
  height: 8px;
  background: currentColor;
  transform-origin: bottom;
}

.dashboard-hub-icon.time:after {
  height: 6px;
  transform: rotate(55deg);
}

.dashboard-hub-icon.billing {
  display: grid;
  place-items: center;
}

.dashboard-hub-icon.billing:before {
  content: "$";
  position: static;
  color: currentColor;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.dashboard-hub-icon.contact {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 0;
}

.dashboard-hub-icon.contact:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translateX(-50%);
}

.dashboard-hub-icon.contact:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 12px 12px 0 0;
  transform: translateX(-50%);
}

.hr-users-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 20px;
}

.hr-users-icon span {
  position: absolute;
  display: block;
  border: 2px solid currentColor;
}

.hr-users-icon span:nth-child(1) {
  left: 7px;
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  z-index: 2;
}

.hr-users-icon span:nth-child(2) {
  left: 5px;
  bottom: 1px;
  width: 11px;
  height: 7px;
  border-radius: 9px 9px 0 0;
  background: transparent;
  z-index: 2;
}

.hr-users-icon span:nth-child(3) {
  left: 1px;
  bottom: 2px;
  width: 20px;
  height: 8px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 0;
  opacity: .8;
}

.call-meet-users-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 20px;
  color: currentColor;
}

.call-meet-users-icon span {
  position: absolute;
  display: block;
  border: 2px solid currentColor;
  background: transparent;
}

.call-meet-users-icon span:nth-child(1) {
  left: 7px;
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.call-meet-users-icon span:nth-child(2) {
  left: 4px;
  bottom: 1px;
  width: 14px;
  height: 8px;
  border-radius: 10px 10px 3px 3px;
}

.call-meet-users-icon span:nth-child(3) {
  left: 1px;
  top: 6px;
  width: 20px;
  height: 11px;
  border-radius: 12px 12px 4px 4px;
  border-top-color: transparent;
  opacity: .85;
}

.call-meet-handshake-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 18px;
  color: currentColor;
}

.call-meet-handshake-icon:before,
.call-meet-handshake-icon:after,
.call-meet-handshake-icon span:before,
.call-meet-handshake-icon span:after {
  content: "";
  position: absolute;
  display: block;
  border: 2px solid currentColor;
  background: transparent;
}

.call-meet-handshake-icon:before {
  left: 0;
  top: 4px;
  width: 8px;
  height: 7px;
  border-radius: 3px;
  transform: rotate(32deg);
}

.call-meet-handshake-icon:after {
  right: 0;
  top: 4px;
  width: 8px;
  height: 7px;
  border-radius: 3px;
  transform: rotate(-32deg);
}

.call-meet-handshake-icon span:before {
  left: 5px;
  top: 8px;
  width: 10px;
  height: 5px;
  border-radius: 6px;
  border-top: 0;
}

.call-meet-handshake-icon span:after {
  left: 4px;
  bottom: 1px;
  width: 12px;
  height: 4px;
  border-radius: 6px;
  border-top: 0;
}

.dashboard-hub-icon.ai:before,
.dashboard-hub-icon.ai:after {
  content: "";
  position: absolute;
  background: currentColor;
}

.dashboard-hub-icon.ai:before {
  left: 10px;
  top: 2px;
  width: 4px;
  height: 20px;
}

.dashboard-hub-icon.ai:after {
  left: 2px;
  top: 10px;
  width: 20px;
  height: 4px;
}

.dashboard-hub-icon.report {
  display: flex;
  align-items: end;
  gap: 3px;
}

.dashboard-hub-icon.report:before,
.dashboard-hub-icon.report:after,
.dashboard-hub-icon.report span {
  content: "";
  display: block;
  width: 5px;
  background: currentColor;
  border-radius: 2px 2px 0 0;
}

.dashboard-hub-icon.report:before {
  height: 10px;
}

.dashboard-hub-icon.report span {
  height: 18px;
}

.dashboard-hub-icon.report:after {
  height: 14px;
}

.dashboard-hub-icon.settings {
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M19.4 13.5c.1-.5.1-1 .1-1.5s0-1-.1-1.5l2.1-1.6-2-3.5-2.5 1a8.2 8.2 0 0 0-2.6-1.5L14 2h-4l-.4 2.9A8.2 8.2 0 0 0 7 6.4l-2.5-1-2 3.5 2.1 1.6c-.1.5-.1 1-.1 1.5s0 1 .1 1.5l-2.1 1.6 2 3.5 2.5-1a8.2 8.2 0 0 0 2.6 1.5L10 22h4l.4-2.9a8.2 8.2 0 0 0 2.6-1.5l2.5 1 2-3.5-2.1-1.6ZM12 15.6A3.6 3.6 0 1 1 12 8.4a3.6 3.6 0 0 1 0 7.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M19.4 13.5c.1-.5.1-1 .1-1.5s0-1-.1-1.5l2.1-1.6-2-3.5-2.5 1a8.2 8.2 0 0 0-2.6-1.5L14 2h-4l-.4 2.9A8.2 8.2 0 0 0 7 6.4l-2.5-1-2 3.5 2.1 1.6c-.1.5-.1 1-.1 1.5s0 1 .1 1.5l-2.1 1.6 2 3.5 2.5-1a8.2 8.2 0 0 0 2.6 1.5L10 22h4l.4-2.9a8.2 8.2 0 0 0 2.6-1.5l2.5 1 2-3.5-2.1-1.6ZM12 15.6A3.6 3.6 0 1 1 12 8.4a3.6 3.6 0 0 1 0 7.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dashboard-hub-icon.phone,
.dashboard-hub-icon.paintbrush,
.dashboard-hub-icon.form,
.dashboard-hub-icon.bullhorn {
  background: currentColor;
}

.dashboard-hub-icon.phone {
  width: 18px;
  height: 18px;
  transform: rotate(-8deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='-10 -10 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M32 4c9-4 22-3 29 6 5 7 11 31 10 39 0 7-4 12-11 15l-12 6c8 15 22 29 38 38l8-11c4-7 11-9 19-6 10 4 30 16 35 23 6 9 4 22-3 31-7 10-20 15-35 13-24-4-51-21-75-45C11 89-6 62-2 38 0 21 16 9 32 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='-10 -10 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M32 4c9-4 22-3 29 6 5 7 11 31 10 39 0 7-4 12-11 15l-12 6c8 15 22 29 38 38l8-11c4-7 11-9 19-6 10 4 30 16 35 23 6 9 4 22-3 31-7 10-20 15-35 13-24-4-51-21-75-45C11 89-6 62-2 38 0 21 16 9 32 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dashboard-hub-icon.paintbrush {
  width: 21px;
  height: 21px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M16.8 2 22 7.2 9.8 19.4c-1.4 1.4-3.3 2.1-5.3 2.1H2.5v-2c0-2 .8-3.9 2.1-5.3L16.8 2Zm-1.4 5.2L6.2 16.4c-.6.6-1 1.4-1.1 2.2.8-.1 1.6-.5 2.2-1.1l9.2-9.2-1.1-1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M16.8 2 22 7.2 9.8 19.4c-1.4 1.4-3.3 2.1-5.3 2.1H2.5v-2c0-2 .8-3.9 2.1-5.3L16.8 2Zm-1.4 5.2L6.2 16.4c-.6.6-1 1.4-1.1 2.2.8-.1 1.6-.5 2.2-1.1l9.2-9.2-1.1-1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dashboard-hub-icon.form {
  width: 20px;
  height: 19px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' fill-rule='evenodd' d='M4 0h56c2.2 0 4 1.8 4 4v50c0 2.2-1.8 4-4 4H4c-2.2 0-4-1.8-4-4V4c0-2.2 1.8-4 4-4Zm0 14v39c0 .6.4 1 1 1h54c.6 0 1-.4 1-1V14H4Zm38-5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM12 24c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm-7 15c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm26 6h12c2.2 0 4-1.8 4-4v-4c0-2.2-1.8-4-4-4H45c-2.2 0-4 1.8-4 4v4c0 2.2 1.8 4 4 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 64 58' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' fill-rule='evenodd' d='M4 0h56c2.2 0 4 1.8 4 4v50c0 2.2-1.8 4-4 4H4c-2.2 0-4-1.8-4-4V4c0-2.2 1.8-4 4-4Zm0 14v39c0 .6.4 1 1 1h54c.6 0 1-.4 1-1V14H4Zm38-5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm9 0a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM12 24c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm-7 15c0-2.2 1.8-4 4-4h35c2.2 0 4 1.8 4 4v8c0 2.2-1.8 4-4 4H16c-2.2 0-4-1.8-4-4v-8Zm7 4h29v-2H19v2Zm26 6h12c2.2 0 4-1.8 4-4v-4c0-2.2-1.8-4-4-4H45c-2.2 0-4 1.8-4 4v4c0 2.2 1.8 4 4 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dashboard-hub-icon.bullhorn {
  width: 18px;
  height: 15px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 6 22 1v16L8 12H3a3 3 0 0 1 0-6h5Zm-1 7 4 5H6l-3-5h4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M8 6 22 1v16L8 12H3a3 3 0 0 1 0-6h5Zm-1 7 4 5H6l-3-5h4Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dashboard-hub-icon.queue {
  width: 22px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 3px;
  margin-top: 3px;
}

.dashboard-hub-icon.queue:before,
.dashboard-hub-icon.queue:after {
  content: "";
  position: absolute;
  left: 4px;
  width: 12px;
  height: 2px;
  background: currentColor;
}

.dashboard-hub-icon.queue:before {
  top: 5px;
}

.dashboard-hub-icon.queue:after {
  top: 11px;
}

.dashboard-hub-icon.trash {
  width: 12px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  margin-top: 4px;
}

.dashboard-hub-icon.trash:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.dashboard-hub-icon.trash:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 6px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.dashboard-hub-icon.plus:before,
.dashboard-hub-icon.plus:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.dashboard-hub-icon.plus:after {
  transform: rotate(90deg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat,
.panel,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.focus-panel {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft), var(--shadow);
}

.stat {
  min-height: 126px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.stat-icon,
.list-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  flex: 0 0 auto;
  font-weight: 800;
}

.stats .stat-icon {
  background: var(--stat-gold) !important;
}

.stat-svg-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-user-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 26px;
}

.stat-user-icon:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
}

.stat-user-icon:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 20px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 14px 14px 0 0;
  transform: translateX(-50%);
}

.stat-litigation-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 24px;
}

.stat-litigation-icon:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 18px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow:
    -10px 5px 0 -0.25px #fff,
    10px 5px 0 -0.25px #fff,
    0 19px 0 3px #fff;
}

.stat-litigation-icon:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 25px;
  height: 13px;
  border-top: 2px solid #fff;
  background:
    linear-gradient(#fff, #fff) 3px 1px / 2px 8px no-repeat,
    linear-gradient(#fff, #fff) 20px 1px / 2px 8px no-repeat,
    linear-gradient(135deg, transparent 0 45%, #fff 45% 56%, transparent 56%) 0 8px / 10px 6px no-repeat,
    linear-gradient(225deg, transparent 0 45%, #fff 45% 56%, transparent 56%) 0 8px / 10px 6px no-repeat,
    linear-gradient(45deg, transparent 0 45%, #fff 45% 56%, transparent 56%) 16px 8px / 10px 6px no-repeat,
    linear-gradient(315deg, transparent 0 45%, #fff 45% 56%, transparent 56%) 16px 8px / 10px 6px no-repeat,
    linear-gradient(#fff, #fff) 1px 13px / 8px 2px no-repeat,
    linear-gradient(#fff, #fff) 17px 13px / 8px 2px no-repeat;
  transform: translateX(-50%);
}

.inbox-card-icon {
  position: relative;
  display: block;
  width: 23px;
  height: 18px;
  color: #fff;
}

.inbox-card-icon.envelope {
  border: 2px solid currentColor;
  border-radius: 3px;
}

.inbox-card-icon.envelope:before,
.inbox-card-icon.envelope:after {
  content: "";
  position: absolute;
  top: 4px;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.inbox-card-icon.envelope:before {
  left: 1px;
  transform: rotate(35deg);
}

.inbox-card-icon.envelope:after {
  right: 1px;
  transform: rotate(-35deg);
}

.inbox-card-icon.chat {
  width: 24px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.inbox-card-icon.chat:after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -6px;
  border-top: 6px solid currentColor;
  border-right: 7px solid transparent;
}

.inbox-card-icon.sent {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 24px solid currentColor;
  transform: rotate(-14deg);
}

.inbox-card-icon.sent:after {
  content: "";
  position: absolute;
  left: -22px;
  top: -1px;
  width: 14px;
  height: 2px;
  background: var(--green);
  transform: rotate(20deg);
}

.inbox-card-icon.archive {
  width: 24px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-width: 6px;
  border-radius: 2px;
}

.inbox-card-icon.archive:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 8px;
  height: 2px;
  background: currentColor;
}

.inbox-card-icon.trash {
  width: 18px;
  height: 20px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  margin-top: 4px;
}

.inbox-card-icon.trash:before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 24px;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.inbox-card-icon.trash:after {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.inbox-card-icon.plus:before,
.inbox-card-icon.plus:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 8px;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.inbox-card-icon.plus:after {
  transform: rotate(90deg);
}

.inbox-card-icon.video {
  width: 24px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.inbox-card-icon.video:before {
  content: "";
  position: absolute;
  right: -8px;
  top: 3px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.inbox-card-icon.laptop {
  width: 14px;
  height: 9px;
  border: 1.8px solid currentColor;
  border-radius: 3px 3px 2px 2px;
  margin-top: 0;
}

.inbox-card-icon.laptop:before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 19px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: currentColor;
  transform: translateX(-50%);
}

.inbox-card-icon.laptop:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 5px;
  height: 1px;
  border-radius: 2px;
  background: #fff;
  transform: translateX(-50%);
}

.nav-button .inbox-card-icon.laptop {
  color: #111;
}

.inbox-card-icon.phone {
  width: 23px;
  height: 23px;
  border: 4px solid currentColor;
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.inbox-card-icon.phone:before,
.inbox-card-icon.phone:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  background: currentColor;
  border-radius: 2px;
}

.inbox-card-icon.phone:before {
  left: -3px;
  top: 12px;
}

.inbox-card-icon.phone:after {
  right: 10px;
  top: -4px;
}

.inbox-card-icon.sms {
  width: 24px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.inbox-card-icon.sms:before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 5px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.inbox-card-icon.sms:after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: -5px;
  border-top: 6px solid currentColor;
  border-left: 6px solid transparent;
}

.meeting-embed {
  display: grid;
  gap: 14px;
}

.meeting-screen {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.meeting-screen p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  margin: 8px auto 0;
}

.stat strong {
  display: block;
  font-size: 24px;
  margin: 2px 0 8px;
}

.stat .muted {
  display: block;
  max-width: 150px;
  line-height: 1.25;
}

.link {
  color: var(--link-dark);
  font-family: "Open Sans", Arial, "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
}

a,
button.link,
.plain-link-button,
.case-link {
  color: var(--link-dark);
}

.link:hover,
a:hover,
button.link:hover,
.plain-link-button:hover,
.case-link:hover {
  color: #2f2f33;
}

.stat-link,
.panel-head .link {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  white-space: nowrap;
}

.link-arrow-icon {
  display: inline-grid;
  width: 13px;
  height: 13px;
  place-items: center;
}

.link-tabler-icon {
  width: 13px;
  height: 13px;
}

.case-link {
  cursor: pointer;
}

.case-link:hover {
  text-decoration: underline;
}

.row-actions {
  position: relative;
  display: inline-block;
}

.action-dots {
  width: 34px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  display: none;
  min-width: 176px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 27, 79, 0.16);
}

tbody tr:nth-last-child(-n + 3) .action-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.row-actions:hover .action-menu,
.row-actions:focus-within .action-menu {
  display: grid;
}

.action-menu button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 9px 10px;
  font-weight: 700;
}

.action-menu button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
}

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

.contacts-filter-assist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: stretch;
}

.contacts-filter-assist .filter-panel {
  margin: 0;
}

.contacts-ai-assist {
  display: grid;
  align-content: start;
}

.cases-filter-assist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.cases-filter-assist .filter-panel {
  margin: 0;
}

.cases-ai-assist {
  display: grid;
  align-content: start;
}

.cases-page-stack .table-card {
  width: 100%;
}

.grid.equal.cases-lower-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contacts-directory-panel .table-card {
  width: 100%;
}

.grid.equal.contacts-lower-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.panel {
  padding: 20px;
  min-width: 0;
}

.big-number {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  margin: 8px 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 360px;
  gap: 18px;
}

.case-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin: 10px 0 18px;
  overflow-x: auto;
}

.case-tabs.compact {
  gap: 16px;
  margin-top: 0;
}

.case-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 3px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.case-tab.active {
  color: var(--blue);
  border-color: var(--blue);
}

.folder-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.folder-tab-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 17px;
  color: currentColor;
  flex: 0 0 auto;
}

.tabler-icon {
  width: 1.15em;
  height: 1.15em;
  display: block;
  object-fit: contain;
  filter: brightness(0);
  pointer-events: none;
}

.nav-icon .tabler-icon {
  width: 19px;
  height: 19px;
}

.stat-tabler-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.list-tabler-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.casecabinet-folder-icon {
  background: #d3af37 !important;
}

.folder-tab .tabler-icon,
.case-tab .tabler-icon {
  width: 17px;
  height: 17px;
}

.meeting-room-icon {
  width: 42px;
  height: 42px;
  filter: brightness(0) invert(1);
}

.chat-fab-icon {
  width: 23px;
  height: 23px;
  filter: brightness(0) invert(1);
}

.tool-tabler-icon {
  width: 17px;
  height: 17px;
}

.folder-tab-icon.folder {
  width: 23px;
  height: 20px;
  background: currentColor;
  transform: translateY(1px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 21.5V3.5h8.2l3.1 4.3h10.7v4.2' fill='none' stroke='black' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M1.5 21.5 7 10.5h19.5L22.5 21.5H1.5Z' fill='none' stroke='black' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 21.5V3.5h8.2l3.1 4.3h10.7v4.2' fill='none' stroke='black' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M1.5 21.5 7 10.5h19.5L22.5 21.5H1.5Z' fill='none' stroke='black' stroke-width='2.6' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.folder-tab-icon.envelope {
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.folder-tab-icon.envelope:before,
.folder-tab-icon.envelope:after {
  content: "";
  position: absolute;
  top: 4px;
  width: 10px;
  height: 2px;
  background: currentColor;
}

.folder-tab-icon.envelope:before {
  left: 1px;
  transform: rotate(35deg);
}

.folder-tab-icon.envelope:after {
  right: 1px;
  transform: rotate(-35deg);
}

.folder-tab-icon.paperclip {
  width: 22px;
  height: 22px;
  background: currentColor;
  transform: rotate(-2deg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 10.9 12 20.3a6.2 6.2 0 0 1-8.8-8.8l9.7-9.7a4.2 4.2 0 0 1 5.9 5.9l-9.6 9.6a2.2 2.2 0 0 1-3.1-3.1l8.6-8.6' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.4 10.9 12 20.3a6.2 6.2 0 0 1-8.8-8.8l9.7-9.7a4.2 4.2 0 0 1 5.9 5.9l-9.6 9.6a2.2 2.2 0 0 1-3.1-3.1l8.6-8.6' fill='none' stroke='black' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.folder-tab-icon.evidence {
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 3c3.9 0 7 3.1 7 7'%3E%3C/path%3E%3Cpath d='M5 12v-2c0-3.9 3.1-7 7-7'%3E%3C/path%3E%3Cpath d='M12 7c1.7 0 3 1.3 3 3 0 5.4 1.7 8.2 4 10'%3E%3C/path%3E%3Cpath d='M9 10c0 4.7 1.2 8 3.6 11'%3E%3C/path%3E%3Cpath d='M6 15c.6 2.2 1.5 4 2.8 5.5'%3E%3C/path%3E%3Cpath d='M18 14c.5 1.9 1.3 3.6 2.5 5'%3E%3C/path%3E%3Cpath d='M12 11c.2 3.4 1.1 6.2 2.8 8.6'%3E%3C/path%3E%3Cpath d='M7.5 8.5c1.2-2.2 4.2-3.1 6.3-1.7'%3E%3C/path%3E%3Cpath d='M5.7 18.2c-1-1.5-1.7-3.2-1.7-5.2'%3E%3C/path%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 3c3.9 0 7 3.1 7 7'%3E%3C/path%3E%3Cpath d='M5 12v-2c0-3.9 3.1-7 7-7'%3E%3C/path%3E%3Cpath d='M12 7c1.7 0 3 1.3 3 3 0 5.4 1.7 8.2 4 10'%3E%3C/path%3E%3Cpath d='M9 10c0 4.7 1.2 8 3.6 11'%3E%3C/path%3E%3Cpath d='M6 15c.6 2.2 1.5 4 2.8 5.5'%3E%3C/path%3E%3Cpath d='M18 14c.5 1.9 1.3 3.6 2.5 5'%3E%3C/path%3E%3Cpath d='M12 11c.2 3.4 1.1 6.2 2.8 8.6'%3E%3C/path%3E%3Cpath d='M7.5 8.5c1.2-2.2 4.2-3.1 6.3-1.7'%3E%3C/path%3E%3Cpath d='M5.7 18.2c-1-1.5-1.7-3.2-1.7-5.2'%3E%3C/path%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.folder-tab-icon.search {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.folder-tab-icon.search:before {
  content: none;
}

.folder-tab-icon.search:after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.folder-tab-icon.chat {
  width: 21px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.folder-tab-icon.chat:before {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 7px;
  background: #fff;
}

.folder-tab-icon.chat:after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -4px;
  border-top: 6px solid currentColor;
  border-right: 6px solid transparent;
}

.folder-tab-icon.gavel {
  width: 22px;
  height: 20px;
}

.folder-tab-icon.gavel:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 13px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 3px;
  transform: rotate(-28deg);
}

.folder-tab-icon.gavel:after {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  box-shadow: 8px 9px 0 1px currentColor;
}

.folder-tab-icon.asclepius {
  width: 18px;
  height: 22px;
}

.folder-tab-icon.asclepius:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 1px;
  width: 2px;
  height: 20px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: -5px 20px 0 -1px currentColor, 5px 20px 0 -1px currentColor;
}

.folder-tab-icon.asclepius:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 14px;
  height: 15px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(42deg);
  box-shadow: -4px 5px 0 -2px currentColor;
}

.folder-tab-icon.handshake {
  width: 22px;
  height: 18px;
}

.folder-tab-icon.handshake:before,
.folder-tab-icon.handshake:after {
  content: "";
  position: absolute;
  top: 5px;
  width: 13px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.folder-tab-icon.handshake:before {
  left: 0;
  transform: rotate(28deg);
}

.folder-tab-icon.handshake:after {
  right: 0;
  transform: rotate(-28deg);
}

.folder-tab-icon.pencil:before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 5px;
  height: 17px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(42deg);
}

.folder-tab-icon.pencil:after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  border-top: 5px solid currentColor;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  transform: rotate(42deg);
}

.folder-tab-icon.sheets:before,
.folder-tab-icon.sheets:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: inherit;
}

.folder-tab-icon.sheets:before {
  left: 1px;
  top: 2px;
}

.folder-tab-icon.sheets:after {
  left: 5px;
  top: 0;
}

.progress-line.seven {
  grid-template-columns: repeat(7, 1fr);
}

.case-summary {
  display: grid;
  gap: 12px;
}

.case-summary p {
  margin: 0;
  line-height: 1.55;
}

.callout {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

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

.cabinet-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 8px;
  background: #fff;
}

.brand-preview {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.compact-brand-preview {
  grid-template-columns: 96px 1fr;
  margin-bottom: 16px;
}

.firm-logo-card {
  aspect-ratio: 1.25;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: Georgia, serif;
  letter-spacing: 0;
  padding: 20px;
  overflow: hidden;
}

.firm-logo-card span {
  font-size: 22px;
}

.firm-logo-card strong {
  text-transform: uppercase;
}

.firm-logo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.small-firm-logo-card {
  width: 96px;
  min-height: 76px;
  padding: 12px;
}

.swatches {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.swatches span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

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

.stack {
  display: grid;
  gap: 16px;
}

.table-card {
  overflow: visible;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.tab {
  border: 0;
  background: transparent;
  padding: 17px 0;
  color: var(--muted);
  font-weight: 750;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: var(--highlight);
  border-bottom-color: var(--highlight);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.green {
  background: var(--green-soft);
  color: var(--green);
}

.badge.orange {
  background: var(--orange-soft);
  color: #c75c00;
}

.badge.red {
  background: var(--red-soft);
  color: var(--red);
}

.badge.purple {
  background: var(--purple-soft);
  color: var(--purple);
}

.badge.neutral {
  background: #f1f1f3;
  color: #55565a;
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  margin: 34px 10px 28px;
  gap: 0;
}

.progress-line:before {
  content: "";
  position: absolute;
  top: 15px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: var(--line);
}

.stage {
  text-align: center;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: center;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.timeline-stage-button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid var(--line);
  background: #fff;
}

.stage.done .dot {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.timeline-check-icon {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.stage.active .dot {
  border-color: var(--purple);
  box-shadow: 0 0 0 5px var(--purple-soft);
}

.stage strong {
  color: var(--ink);
}

.mini-list {
  display: grid;
  gap: 14px;
}

.mini-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.mini-item strong,
.mini-item p {
  overflow-wrap: anywhere;
}

.mini-item .list-icon {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.mini-doc-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 21px;
  border: 2px solid #fff;
  border-radius: 2px;
}

.mini-doc-icon:before,
.mini-doc-icon:after {
  content: "";
  position: absolute;
  left: 4px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}

.mini-doc-icon:before {
  top: 7px;
  width: 8px;
}

.mini-doc-icon:after {
  top: 12px;
  width: 6px;
}

.mini-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.donut {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 42%, var(--green) 42% 68%, var(--orange) 68% 84%, var(--purple) 84% 100%);
  display: grid;
  place-items: center;
  margin: 8px auto;
}

.donut:after {
  content: attr(data-label);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-weight: 850;
}

.bars {
  display: grid;
  gap: 12px;
}

.bar {
  display: grid;
  grid-template-columns: 140px 1fr 64px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}

.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.bar.red-bar .bar-fill {
  background: var(--red);
}

.bar.orange-bar .bar-fill {
  background: var(--orange);
}

.bar.green-bar .bar-fill {
  background: var(--green);
}

.bar.blue-bar .bar-fill {
  background: var(--blue);
}

.case-mobile-cards {
  display: none;
}

.deadline-link-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 12px 0;
  text-align: left;
}

.deadline-link-row:last-child {
  border-bottom: 0;
}

.deadline-link-row span {
  color: var(--muted);
  font-size: 13px;
}

.ai-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbf8ff;
}

.dashboard-ai-clerks-panel .ai-box {
  background: #f2f2f5;
}

.dashboard-recent-list .list-icon {
  background: #c6c6cc !important;
}

.dashboard-upcoming-list .list-icon {
  background: var(--blue) !important;
}

.dashboard-task-list .list-icon,
.dashboard-ai-suggestions .mini-item:last-child .list-icon {
  background: var(--quicklink-gold) !important;
}

.dashboard-case-status {
  background: #e8e8eb !important;
  color: #7d7d82 !important;
}

.chat-layout {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.chat-window {
  display: grid;
  gap: 16px;
}

.message-stream {
  display: grid;
  gap: 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.message-bubble {
  max-width: 74%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.message-bubble.mine {
  justify-self: end;
  background: var(--blue-soft);
  border-color: #c9ddff;
}

.message-bubble p {
  margin: 6px 0;
  color: var(--ink);
}

.message-bubble span {
  color: var(--muted);
  font-size: 12px;
}

.chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.composer-meta,
.composer-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.composer-meta select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 40px;
  padding: 0 10px;
}

.email-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fbfcff;
}

.email-toolbar + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.email-toolbar select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.tool-btn.italic {
  font-style: italic;
}

.tool-btn.underline {
  text-decoration: underline;
}

.email-image-tool {
  display: inline-grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.email-image-tool input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.attach-btn {
  position: relative;
  overflow: hidden;
}

.attach-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chat-composer textarea {
  min-height: 48px;
  resize: vertical;
}

.chat-pop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.chat-pop-panel {
  width: min(380px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17, 27, 79, 0.18);
  padding: 16px;
}

.message-stream.compact {
  max-height: 230px;
  overflow: auto;
}

.chat-fab {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--quicklink-gold);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(211, 175, 55, 0.32);
}

.floating-timekeeper {
  position: fixed;
  right: 24px;
  top: 104px;
  bottom: auto;
  z-index: 60;
  width: min(324px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 27, 79, 0.18);
  overflow: hidden;
}

.floating-timekeeper.running {
  box-shadow: 0 18px 42px rgba(8, 120, 248, 0.22);
}

.floating-timer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ink);
  color: #fff;
  cursor: move;
  touch-action: none;
}

.floating-timer-head strong,
.floating-timer-head span {
  display: block;
}

.floating-timer-head span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.floating-timer-head .icon-button {
  color: #111;
  background: #fff;
  border-color: rgba(17, 27, 79, 0.22);
}

.floating-timer-clock {
  padding: 18px 14px 8px;
  font: 900 32px/1 var(--font-title);
  letter-spacing: 0;
  color: var(--ink);
}

.floating-timer-meta {
  display: grid;
  gap: 4px;
  padding: 0 14px 14px;
}

.floating-timer-meta span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.floating-timer-meta span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.floating-timer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(17, 27, 79, 0.32);
}

.modal-panel {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(17, 27, 79, 0.22);
  padding: 22px;
}

.document-writer-modal {
  width: min(1180px, calc(100vw - 28px));
}

.document-preview-modal {
  width: min(980px, calc(100vw - 28px));
}

.document-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.document-preview-page {
  min-height: 520px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(17, 27, 79, 0.08);
}

.document-preview-page h1 {
  margin: 18px 0 22px;
  font-size: 24px;
}

.document-preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-preview-actions {
  display: grid;
  gap: 10px;
}

.sheet-app {
  display: grid;
  gap: 0;
  background: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.sheet-headbar {
  margin-bottom: 0;
  border-bottom: 1px solid #dadce0;
}

.sheet-toolbar,
.sheet-formula-bar,
.sheet-filter-bar,
.sheet-statusbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #dadce0;
  border-radius: 0;
  background: #fff;
}

.sheet-toolbar select,
.sheet-formula-bar input,
.sheet-filter-bar input {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #fff;
  padding: 0 8px;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.sheet-toolbar select:hover,
.sheet-formula-bar input:hover,
.sheet-filter-bar input:hover,
.sheet-toolbar select:focus,
.sheet-formula-bar input:focus,
.sheet-filter-bar input:focus {
  border-color: var(--line);
  outline: none;
}

.sheet-formula-bar input,
.sheet-filter-bar input {
  flex: 1;
  min-width: 240px;
}

#sheet-active-cell {
  min-width: 54px;
  padding: 6px 8px;
  border-right: 1px solid #dadce0;
  border-radius: 0;
  background: #f8fafd;
  color: #3c4043;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.sheet-grid {
  --sheet-cols: 6;
  display: grid;
  gap: 0;
  max-width: 100%;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 12px;
  color: #202124;
}

.sheet-row {
  display: grid;
  grid-template-columns: 48px repeat(var(--sheet-cols), minmax(132px, 1fr));
  min-width: calc(48px + var(--sheet-cols) * 132px);
}

.sheet-row > div {
  min-height: 28px;
  padding: 5px 8px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  outline: none;
  font-size: 12px;
  line-height: 18px;
}

.sheet-row > div:last-child {
  border-right: 0;
}

.sheet-row:last-child > div {
  border-bottom: 0;
}

.sheet-head > div,
.sheet-row-head {
  background: #f8fafd;
  color: #5f6368;
  font-weight: 600;
}

.sheet-freeze-header .sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.sheet-corner,
.sheet-col-head {
  text-align: center;
  user-select: none;
}

.sheet-row-head {
  display: flex;
  justify-content: center;
  gap: 2px;
  align-items: center;
  text-align: center;
  cursor: grab;
  user-select: none;
}

.sheet-row-head:active {
  cursor: grabbing;
}

.sheet-drag-grip {
  width: 12px;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.sheet-row:hover .sheet-drag-grip {
  opacity: 0.55;
}

.sheet-move-icon {
  width: 12px;
  height: 12px;
}

.sheet-cell {
  background: #fff;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 400;
}

.sheet-cell:focus,
.sheet-cell.selected {
  box-shadow: inset 0 0 0 2px #1a73e8;
  background: #fff;
}

.sheet-bold {
  font-weight: 900;
}

.sheet-italic {
  font-style: italic;
}

.sheet-underline {
  text-decoration: underline;
}

.sheet-formula-cell {
  color: var(--green);
  font-weight: 900;
}

.sheet-statusbar {
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.sheet-statusbar span:first-child {
  color: var(--green);
  font-weight: 900;
}

.invoice-modal {
  width: min(920px, calc(100vw - 28px));
  max-height: min(86vh, 920px);
  overflow: auto;
}

.invoice-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.invoice-preview-head,
.invoice-total-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.invoice-preview-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.invoice-total-line {
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-weight: 900;
}

.invoice-bulk-panel {
  position: sticky;
  top: 92px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.modal-actions.inline-actions {
  margin-top: 14px;
}

.compact-doc-editor {
  margin-top: 16px;
}

.compact-doc-editor .doc-titlebar {
  grid-template-columns: minmax(240px, 1fr) minmax(280px, auto);
}

.compact-doc-page {
  width: 100%;
  min-height: 430px;
  padding: 42px;
  margin: 0;
  box-shadow: none;
}

.nested-panel {
  margin-top: 16px;
  background: var(--soft);
  box-shadow: none;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.contact-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.contact-suggestions button {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}

.contact-suggestions button:hover {
  border-color: var(--blue);
  background: #fff;
}

.contact-suggestions strong,
.contact-suggestions span {
  display: block;
}

.contact-suggestions span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.participant-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 38px;
  margin-top: 8px;
}

.participant-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 12px;
}

.participant-chip button {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  line-height: 1;
}

.ai-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.ai-input textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 88px;
  resize: vertical;
  padding: 14px;
  color: var(--ink);
}

.ai-input .btn {
  min-width: 76px;
  padding-left: 14px;
  padding-right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.doc-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f6fb;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.doc-titlebar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.doc-titlebar input,
.doc-titlebar select,
.doc-toolbar select,
.action-select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 0 10px;
}

.doc-titlebar input {
  font-size: 20px;
  font-weight: 800;
}

.doc-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.doc-toolbar.secondary {
  background: #fff;
  padding-top: 5px;
  padding-bottom: 5px;
}

.tool-btn {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.doc-toolbar .tool-btn:hover,
.sheet-toolbar .tool-btn:hover,
.doc-toolbar .tool-btn:focus-visible,
.sheet-toolbar .tool-btn:focus-visible {
  border-color: var(--line);
  background: var(--soft);
  outline: none;
}

.doc-toolbar .tool-btn:active,
.sheet-toolbar .tool-btn:active {
  background: var(--blue-soft);
  color: var(--blue);
}

.doc-toolbar select,
.sheet-toolbar select {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 0 24px 0 8px;
  font-size: 13px;
  font-weight: 650;
}

.doc-toolbar select:hover,
.sheet-toolbar select:hover,
.doc-toolbar select:focus,
.sheet-toolbar select:focus {
  border-color: var(--line);
  background: #fff;
  outline: none;
}

.toolbar-divider {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 3px;
}

.doc-toolbar.secondary .doc-tool-action {
  width: 30px;
  height: 30px;
}

.doc-toolbar .toolbar-text-button {
  min-height: 30px;
  padding: 0 9px;
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  gap: 6px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: none;
}

.doc-toolbar .toolbar-text-button:hover {
  border-color: var(--line);
  background: var(--soft);
}

.doc-toolbar.secondary .doc-word-count,
.doc-toolbar.secondary .badge {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
  border-radius: 999px;
}

.sheet-toolbar .tool-btn,
.sheet-toolbar .tool-btn .tool-tabler-icon,
.doc-toolbar .tool-btn .tool-tabler-icon {
  flex: 0 0 auto;
}

.doc-workspace {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 24px;
  padding: 24px;
}

.doc-outline {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  align-self: start;
}

.doc-outline-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  background: var(--blue-soft);
}

.doc-outline-panel.hidden {
  display: none;
}

.doc-outline-list {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.doc-outline-item {
  border: 0;
  border-radius: 6px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.doc-outline-item span {
  color: var(--blue);
  font-weight: 900;
}

.doc-outline-item.level-h2 { margin-left: 10px; }
.doc-outline-item.level-h3 { margin-left: 20px; }
.doc-outline-item.level-h4,
.doc-outline-item.level-h5,
.doc-outline-item.level-h6 { margin-left: 30px; }

.doc-word-count {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.doc-page {
  width: min(816px, 100%);
  min-height: 940px;
  margin: 0 auto;
  padding: 72px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(17, 27, 79, 0.12);
  line-height: 1.65;
  outline: none;
}

.doc-page h1 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 32px;
}

.doc-inserted-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.doc-inserted-table th,
.doc-inserted-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.doc-placeholder {
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
}

.doc-image-block {
  margin: 18px 0;
  text-align: center;
}

.doc-image-block img {
  max-width: 100%;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.doc-image-block figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  outline: none;
}

.doc-header-footer-group {
  border: 1px dashed var(--line);
  border-radius: 6px;
  margin: 0 0 18px;
  padding: 8px 10px;
  background: #fbfcff;
}

.doc-header-footer-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.doc-header,
.doc-footer {
  min-height: 28px;
  outline: none;
}

.doc-footer {
  text-align: center;
}

.doc-page.different-first-page {
  box-shadow: 0 12px 38px rgba(8, 120, 248, 0.16);
}

.doc-inserted-header,
.doc-inserted-footer,
.doc-field,
.doc-citation,
.doc-footnote,
.doc-signature-field {
  background: var(--blue-soft);
  border-radius: 4px;
  padding: 2px 5px;
}

.doc-signature-field {
  display: block;
  margin: 18px 0;
  padding: 10px 12px;
}

.doc-legal-outline {
  margin: 12px 0 12px 26px;
  padding-left: 22px;
  list-style-type: upper-roman;
}

.doc-legal-outline ol {
  margin: 8px 0 8px 28px;
  padding-left: 22px;
}

.doc-legal-outline ol {
  list-style-type: upper-alpha;
}

.doc-legal-outline ol ol {
  list-style-type: decimal;
}

.doc-legal-outline ol ol ol {
  list-style-type: lower-alpha;
}

.doc-legal-outline li {
  margin: 6px 0;
  padding-left: 4px;
}

.doc-table-of-contents {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: #fbfcff;
}

.doc-table-of-contents strong {
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.doc-table-of-contents ol {
  margin: 0;
  padding-left: 20px;
}

.doc-table-of-contents li {
  margin: 4px 0;
}

.doc-table-of-contents .toc-h2 { margin-left: 14px; }
.doc-table-of-contents .toc-h3,
.doc-table-of-contents .toc-h4,
.doc-table-of-contents .toc-h5,
.doc-table-of-contents .toc-h6 { margin-left: 28px; }

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(92px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.calendar-workspace {
  display: grid;
  gap: 20px;
}

.calendar-filter-assist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.calendar-filter-assist .filter-panel {
  margin-bottom: 0;
}

.calendar-ai-assist {
  display: grid;
  align-content: space-between;
}

.calendar-main-panel {
  width: 100%;
  overflow-x: auto;
}

.calendar-panel-head {
  align-items: center;
  gap: 16px;
}

.calendar-head-actions {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.calendar-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.calendar-nav-button {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.calendar-picker {
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: 400 12px/1 "Open Sans", Arial, sans-serif;
  padding: 0 26px 0 10px;
}

.calendar-picker.year {
  width: 82px;
}

.calendar-support-grid {
  align-items: stretch;
}

.calendar-workspace .link,
.calendar-main-panel .link {
  color: #212124;
}

.day {
  min-height: 116px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  font-size: 13px;
}

.day.selected-day {
  background: #f8f8f8;
  box-shadow: inset 0 0 0 2px var(--line);
}

.calendar-day-number {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 600 13px/1 "Open Sans", Arial, sans-serif;
  padding: 0;
}

.calendar-day-number:hover {
  color: var(--link-dark);
  text-decoration: underline;
}

.calendar-weekday {
  background: #fafafa;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 10px;
  text-align: center;
}

.calendar-empty-day {
  background: #fafafa;
}

.day:nth-child(7n) {
  border-right: 0;
}

.event {
  margin-top: 8px;
  border-radius: 6px;
  padding: 6px;
  background: var(--calendar-event-bg);
  color: var(--highlight);
  font-size: 12px;
}

.calendar-event {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--calendar-event-bg);
  color: #212124;
}

.calendar-event:hover,
.calendar-agenda-event:hover {
  box-shadow: 0 0 0 2px var(--calendar-hover);
  transform: translateY(-1px);
}

.week-view {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.week-day {
  min-height: 420px;
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.week-day:last-child {
  border-right: 0;
}

.week-day > strong,
.week-day > span {
  display: block;
}

.week-day > span {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 12px;
}

.day-view {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.day-view-head,
.agenda-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.calendar-agenda-event {
  width: 100%;
  border: 0;
  background: var(--calendar-event-bg);
  color: #212124;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.day-view-head {
  grid-template-columns: 1fr auto;
  align-items: center;
  background: #fbfcff;
}

.agenda-row:last-child {
  border-bottom: 0;
}

.agenda-row > span {
  color: var(--muted);
  font-weight: 800;
}

.agenda-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

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

.form-grid.single-column {
  grid-template-columns: 1fr;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.court-template-preview {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  min-height: 520px;
  padding: 18px 16px 18px 10px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17, 27, 79, 0.08);
  font-family: Georgia, "Times New Roman", serif;
  color: #101522;
}

.pleading-lines {
  display: grid;
  grid-template-rows: repeat(20, 1fr);
  border-right: 1px solid #cfd5e8;
  color: #7a829d;
  font: 11px/1.2 Arial, sans-serif;
  text-align: right;
  padding-right: 8px;
}

.pleading-lines span {
  min-height: 18px;
}

.pleading-body {
  font-size: 12px;
  line-height: 1.45;
}

.pleading-attorney {
  margin-bottom: 18px;
}

.pleading-caption {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  margin: 14px 0 18px;
}

.pleading-caption > div {
  padding: 12px;
}

.pleading-caption > div:first-child {
  border-right: 1px solid #111;
}

.pleading-body h3 {
  text-align: center;
  font-size: 14px;
  letter-spacing: 0;
  margin: 18px 0 12px;
}

.filter-panel {
  margin: 14px 0;
}

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

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.field.full {
  grid-column: 1 / -1;
}

.date-tbd {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.date-tbd label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  white-space: nowrap;
}

.profile-form-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 22px;
  align-items: start;
  margin-bottom: 18px;
}

.photo-upload {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.profile-photo-preview {
  overflow: hidden;
}

.profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hidden-file-input {
  display: none;
}

.field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  min-width: 0;
}

.empty {
  padding: 50px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 82px 1fr;
  }

  .nav-button span:last-child,
  .role-switch,
  .nav-spacer {
    display: none;
  }

  .sidebar {
    padding: 18px 12px;
  }

  .nav-button {
    justify-content: center;
  }

  .stats,
  .grid,
  .dashboard-grid,
  .grid.equal,
  .grid.equal.contacts-lower-grid,
  .grid.equal.cases-lower-grid,
  .grid.two,
  .settings-overview,
  .settings-link-grid,
  .contacts-filter-assist,
  .cases-filter-assist,
  .filter-grid,
  .doc-titlebar,
  .doc-workspace {
    grid-template-columns: 1fr;
  }

  .gmail-bulk-toolbar {
    flex-wrap: wrap;
  }

  .email-inbox-page > .stack {
    grid-template-columns: 1fr;
  }

  .email-inbox-topline {
    grid-template-columns: 1fr;
  }

  .gmail-pagination {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .gmail-email-row {
    grid-template-columns: 28px 28px minmax(0, 1fr);
  }

  .gmail-inbox-panel.split-view .gmail-inbox-workspace {
    grid-template-columns: 1fr;
  }

  .gmail-inbox-panel.split-view .gmail-inbox-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gmail-email-main {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gmail-status,
  .gmail-folder,
  .gmail-row-actions {
    grid-column: 3;
  }

  .doc-meta {
    justify-content: flex-start;
  }

  .doc-page {
    padding: 36px 24px;
    min-height: 720px;
  }
}

@media (max-width: 760px) {
  .app {
    display: block;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    padding: 10px 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 64px;
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 148px;
  }

  .top-actions {
    width: auto;
    min-width: 0;
    gap: 8px;
    margin-left: auto;
  }

  .theme-toggle,
  .top-timer-button {
    min-height: 38px;
    width: 38px;
    padding: 0;
    justify-content: center;
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
  }

  .theme-toggle span,
  .top-timer-button span {
    display: none;
  }

  .top-timer-button {
    border-color: #dadce0;
    color: var(--ink);
  }

  .search {
    width: 100%;
  }

  .search input {
    width: 100%;
  }

  .firm-pill,
  .user .user-label {
    display: none;
  }

  .user-menu {
    margin-left: 0;
    padding: 2px;
    border-radius: 50%;
    border-color: var(--line);
    background: #fff;
  }

  .user-menu .avatar {
    width: 38px;
    height: 38px;
  }

  .header-firm-logo {
    width: 36px;
    height: 36px;
  }

  .mobile-firm-logo {
    display: grid !important;
  }

  .user-dropdown {
    top: calc(100% + 8px);
    right: 0;
    min-width: 168px;
  }

  .user-menu.open .user-dropdown,
  .user-menu:focus-within .user-dropdown {
    display: grid;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(86vw, 330px);
    min-height: 100vh;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    display: flex;
    transform: translateX(-105%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow);
    padding: 22px 18px 96px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
  }

  .sidebar .nav-button,
  .sidebar .subnav-button,
  .sidebar .role-switch label {
    color: var(--muted);
  }

  .sidebar .nav-button.active,
  .sidebar .subnav-button.active {
    background: var(--highlight-soft);
    color: var(--ink);
  }

  .menu-open .sidebar {
    transform: translateX(0);
  }

  .drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(17, 27, 79, 0.28);
  }

  .menu-open .drawer-backdrop {
    display: block;
  }

  .nav-button {
    justify-content: flex-start;
  }

  .nav-button span:last-child {
    display: inline;
  }

  .subnav {
    margin-left: 34px;
  }

  .app.nav-collapsed .sidebar {
    width: 72px;
    padding: 56px 10px 96px;
    align-items: center;
    overflow-x: hidden;
  }

  .app.nav-collapsed .nav-collapse-button {
    right: 18px;
  }

  .app.nav-collapsed .nav-group,
  .app.nav-collapsed .nav-button {
    width: 48px;
  }

  .app.nav-collapsed .nav-button {
    justify-content: center;
    padding: 12px;
  }

  .app.nav-collapsed .nav-label,
  .app.nav-collapsed .nav-caret,
  .app.nav-collapsed .subnav,
  .app.nav-collapsed .role-switch,
  .app.nav-collapsed .nav-button span:last-child {
    display: none;
  }

  .main {
    padding: 20px 14px 96px;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .chat-pop {
    right: 14px;
    bottom: 82px;
  }

  .floating-timekeeper {
    right: 14px;
    top: 76px;
    bottom: auto;
  }

  .plugin-toggle-grid,
  .settings-link-grid,
  .settings-overview,
  .color-control-grid,
  .form-grid,
  .check-grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .settings-link-card,
  .plugin-toggle-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    width: 100%;
  }

  .chat-fab {
    width: 52px;
    height: 52px;
  }

  .mobile-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -8px 24px rgba(17, 27, 79, 0.08);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }

  .footer-button {
    border: 0;
    background: transparent;
    color: var(--ink);
    display: grid;
    justify-items: center;
    gap: 2px;
    padding: 6px 1px;
    border-radius: 8px;
    font-weight: 750;
  }

  .footer-button span {
    font-size: 20px;
    line-height: 1;
  }

  .footer-tabler-icon {
    width: 19px;
    height: 19px;
    filter: brightness(0);
  }

  .footer-profile-photo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--highlight-soft);
    color: var(--highlight);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
  }

  .footer-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .footer-button.active .footer-tabler-icon {
    filter: brightness(0);
  }

  .footer-button small {
    font-size: 10px;
  }

  .footer-button.active {
    color: var(--ink);
    background: var(--highlight-soft);
  }

  :root[data-theme="dark"] .topbar,
  :root[data-theme="dark"] .mobile-footer {
    background: #0f172a;
    border-color: #243154;
    color: #edf2ff;
  }

  :root[data-theme="dark"] .theme-toggle,
  :root[data-theme="dark"] .top-timer-button,
  :root[data-theme="dark"] .user-menu {
    background: #151d33;
    border-color: #2b355d;
    color: #edf2ff;
  }

  :root[data-theme="dark"] .mobile-footer {
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
  }

  :root[data-theme="dark"] .sidebar {
    background: #0f172a;
    color: #edf2ff;
    border-color: #243154;
  }

  :root[data-theme="dark"] .sidebar .nav-button,
  :root[data-theme="dark"] .sidebar .subnav-button,
  :root[data-theme="dark"] .sidebar .role-switch label {
    color: #aab4d6;
  }

  :root[data-theme="dark"] .sidebar .nav-button.active,
  :root[data-theme="dark"] .sidebar .subnav-button.active {
    background: #1c2744;
    color: #aab4d6;
  }

  :root[data-theme="dark"] .footer-button {
    color: #aab4d6;
  }

  :root[data-theme="dark"] .footer-tabler-icon {
    filter: brightness(0) invert(1) opacity(0.72);
  }

  .page-head {
    display: grid;
  }

  .page-head > .actions {
    max-width: 100%;
  }

  .actions {
    justify-content: start;
  }

  .profile-form-head,
  .split-actions {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .cabinet-grid,
  .brand-preview {
    grid-template-columns: 1fr;
  }

  .callout {
    display: grid;
  }

  .table-card {
    overflow-x: auto;
  }

  table {
    min-width: 720px;
  }

  .case-table-desktop {
    display: none;
  }

  .case-mobile-cards {
    display: grid;
    gap: 12px;
  }

  .case-mobile-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: 14px;
    display: grid;
    gap: 12px;
    cursor: pointer;
    box-shadow: var(--shadow);
  }

  .case-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .case-mobile-card-head div {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .case-mobile-card-head strong,
  .case-mobile-meta span {
    overflow-wrap: anywhere;
  }

  .case-mobile-card-head span {
    color: var(--muted);
    font-size: 12px;
  }

  .case-mobile-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
  }

  .case-mobile-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .cases-stage-panel .donut {
    width: 104px;
    height: 104px;
  }

  .cases-stage-panel .donut:after {
    width: 64px;
    height: 64px;
  }

  .cases-stage-panel .bar,
  .bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .progress-line {
    grid-template-columns: 1fr !important;
    gap: 10px;
    margin: 20px 0;
  }

  .progress-line:before {
    top: 18px;
    bottom: 18px;
    left: 16px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .progress-line .stage {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    justify-items: start;
    text-align: left;
    gap: 10px;
    align-items: center;
    width: 100%;
  }

  .progress-line .stage .dot {
    grid-row: 1 / span 2;
  }

  .progress-line .stage strong,
  .progress-line .stage span:last-child {
    grid-column: 2 / 4;
  }

  .calendar-filter-assist,
  .calendar-support-grid {
    grid-template-columns: 1fr;
  }

  .calendar-main-panel {
    overflow-x: hidden;
  }

  .week-view,
  .calendar {
    grid-template-columns: 1fr;
    border-radius: 8px;
  }

  .week-day,
  .day {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .week-day:last-child,
  .day:last-child {
    border-bottom: 0;
  }

  .day-view-head,
  .agenda-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-profile-grid {
    grid-template-columns: 1fr;
  }

  .contact-profile-grid .table-card {
    overflow: visible;
  }

  .contact-profile-grid table,
  .contact-profile-grid thead,
  .contact-profile-grid tbody,
  .contact-profile-grid tr,
  .contact-profile-grid th,
  .contact-profile-grid td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .contact-profile-grid thead {
    display: none;
  }

  .contact-profile-grid tr {
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
  }

  .contact-profile-grid td {
    border: 0;
    padding: 4px 0;
    overflow-wrap: anywhere;
  }

  .contact-profile-grid td:first-child {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .contact-profile-grid .form-grid {
    grid-template-columns: 1fr;
  }
}

