:root {
  color-scheme: light;
  --bg: #ebf8ff;
  --bg-deep: #d8eefc;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --glass: rgba(181, 228, 248, 0.42);
  --glass-blue: rgba(79, 182, 232, 0.42);
  --glass-strong: rgba(146, 214, 241, 0.58);
  --text: #133149;
  --muted: #5f7d93;
  --border: rgba(79, 155, 191, 0.22);
  --border-strong: rgba(68, 146, 189, 0.34);
  --brand: #1a86c7;
  --brand-dark: #0b5f97;
  --accent: #7dd5f7;
  --accent-strong: #4fb6e8;
  --success: #1d7d74;
  --danger: #b0506c;
  --info: #1b76b4;
  --shadow: 0 22px 44px rgba(31, 102, 147, 0.16);
  --shadow-soft: 0 10px 24px rgba(46, 120, 166, 0.12);
  --radius: 26px;
  --radius-sm: 18px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101817;
  --bg-deep: #1b2427;
  --panel: rgba(22, 31, 34, 0.82);
  --panel-strong: rgba(28, 39, 43, 0.95);
  --glass: rgba(83, 163, 177, 0.18);
  --glass-blue: rgba(91, 189, 220, 0.26);
  --glass-strong: rgba(91, 189, 220, 0.32);
  --text: #e8f4f0;
  --muted: #a4bab7;
  --border: rgba(126, 202, 203, 0.22);
  --border-strong: rgba(128, 215, 211, 0.38);
  --brand: #5bbddc;
  --brand-dark: #9bdcf2;
  --accent: #71d7c7;
  --accent-strong: #4eb4d3;
  --success: #75d8b6;
  --danger: #ff9ab0;
  --info: #8ed4f4;
  --shadow: 0 24px 46px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 24px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 20rem),
    radial-gradient(circle at right 10%, rgba(125, 213, 247, 0.42), transparent 26rem),
    radial-gradient(circle at bottom left, rgba(79, 182, 232, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(113, 215, 199, 0.18), transparent 22rem),
    radial-gradient(circle at right 10%, rgba(241, 201, 107, 0.12), transparent 24rem),
    radial-gradient(circle at bottom left, rgba(91, 189, 220, 0.16), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

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

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

.portal-body {
  min-height: 100vh;
}

.portal-body-popup {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 16rem),
    radial-gradient(circle at right 8%, rgba(125, 213, 247, 0.28), transparent 24rem),
    linear-gradient(180deg, #eff9ff 0%, #e4f3fd 100%);
}

html[data-theme="dark"] .portal-body-popup {
  background:
    radial-gradient(circle at top left, rgba(113, 215, 199, 0.16), transparent 16rem),
    radial-gradient(circle at right 8%, rgba(241, 201, 107, 0.1), transparent 22rem),
    linear-gradient(180deg, #101817 0%, #1b2427 100%);
}

.popup-frame {
  min-height: 100vh;
  padding: 0.95rem;
}

.popup-content {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  gap: 0.95rem;
}

.portal-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.global-topbar,
.page-search-strip,
.panel-card,
.auth-card,
.sidebar {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.global-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
  padding: 1.15rem 1.5rem;
  background: rgba(241, 251, 255, 0.76);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(85, 157, 198, 0.08);
}

.global-topbar-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) auto minmax(14rem, 1fr);
  align-items: center;
  gap: 1rem;
}

.brand-link,
.auth-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand-logo {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  border-radius: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.gear-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(68, 146, 189, 0.22);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.96), rgba(125, 213, 247, 0.2) 55%, rgba(26, 134, 199, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(196, 236, 253, 0.84));
}

.gear-logo-svg {
  width: 100%;
  height: 100%;
}

.gear-logo [data-gear-spin] {
  will-change: transform;
}

.global-topbar .brand-logo {
  width: 3.6rem;
  height: 3.6rem;
}

.auth-brand .brand-logo {
  width: 4.8rem;
  height: 4.8rem;
}

.brand-eyebrow,
.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.brand-name,
.topbar-title,
.page-hero h2,
.auth-card h1 {
  margin: 0.15rem 0 0;
  font-family: "Georgia", "Times New Roman", serif;
}

.brand-name {
  font-size: 1.9rem;
  color: var(--brand-dark);
}

.menu-icon {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.top-menu,
.topbar-actions,
.record-stack,
.stack-form,
.side-nav,
.nav-group {
  display: grid;
  gap: 0.85rem;
}

.top-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem;
}

.topbar-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle,
.theme-toggle.TWERPControls {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(218, 243, 255, 0.78)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(92, 164, 204, 0.1);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(125, 213, 247, 0.32);
  outline-offset: 2px;
}

.theme-toggle-icon {
  position: relative;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 999px;
  transform: translateX(0.1rem) rotate(-18deg);
  box-shadow: inset -0.42rem -0.22rem 0 0 currentColor;
}

.theme-toggle[data-theme-current="dark"] .theme-toggle-icon {
  transform: none;
  background: #f1c96b;
  box-shadow: 0 0 0 0.24rem rgba(241, 201, 107, 0.18);
}

.theme-toggle[data-theme-current="dark"] .theme-toggle-icon::before,
.theme-toggle[data-theme-current="dark"] .theme-toggle-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 1.78rem;
  height: 0.12rem;
  border-radius: 999px;
  background: #f1c96b;
  transform: translate(-50%, -50%);
}

.theme-toggle[data-theme-current="dark"] .theme-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.auth-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 20;
}

.company-brand-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1.5rem 0.9rem;
  background: rgba(229, 247, 255, 0.62);
  border-bottom: 1px solid var(--border);
}

.company-brand-topbar {
  justify-self: center;
  min-width: 0;
}

.company-brand-lockup {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.company-brand-logo {
  max-width: min(18rem, 36vw);
  max-height: 4.6rem;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.8rem;
  border: 1px solid rgba(68, 146, 189, 0.22);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.3rem 0.45rem;
}

.company-brand-registration {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-search-strip {
  position: relative;
  z-index: 55;
  display: grid;
  grid-template-columns: auto minmax(12rem, 18rem) minmax(18rem, 1fr);
  gap: 0.9rem 1rem;
  align-items: start;
  overflow: visible;
  padding: 1.15rem 1.5rem;
  background: rgba(229, 247, 255, 0.74);
  border-bottom: 1px solid var(--border);
}

.page-search-heading {
  min-width: 0;
  align-self: center;
}

.page-search-heading .topbar-title {
  font-size: 1.85rem;
}

.search-query-builder {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.search-query-list {
  display: grid;
  gap: 0.55rem;
}

.search-query-row {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(12rem, 16rem) auto auto auto;
  gap: 0.55rem;
  align-items: center;
}

.search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.3rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(46, 146, 200, 0.4);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(196, 236, 253, 0.92)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 10px 22px rgba(84, 154, 195, 0.14);
}

.search-field::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid var(--brand-dark);
  border-radius: 999px;
  transform: translateY(-56%);
  opacity: 0.8;
  pointer-events: none;
}

.search-field::after {
  content: "";
  position: absolute;
  left: 1.9rem;
  top: calc(50% + 0.28rem);
  width: 0.52rem;
  height: 0.12rem;
  border-radius: 999px;
  background: var(--brand-dark);
  transform: rotate(44deg);
  opacity: 0.8;
  pointer-events: none;
}

.search-field .search-input {
  width: 100%;
  min-height: 3.22rem;
  padding: 0.72rem 0.95rem 0.72rem 2.65rem;
  border: 0;
  border-radius: 1.2rem;
  box-shadow: none;
  background: transparent;
  font-weight: 600;
}

.search-field .search-input:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.search-input-suggestions {
  position: absolute;
  z-index: 120;
  top: calc(100% + 0.35rem);
  left: 50%;
  right: auto;
  display: grid;
  width: min(32rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: 16rem;
  overflow: auto;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: rgba(248, 253, 255, 0.98);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.search-input-suggestions.is-hidden {
  display: none;
}

.search-input-suggestion-item {
  width: 100%;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.search-input-suggestion-item:hover,
.search-input-suggestion-item:focus-visible {
  background: rgba(125, 213, 247, 0.22);
  outline: none;
}

.search-date-range-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(10rem, 1fr));
  gap: 0.55rem;
  padding-left: 0.25rem;
}

.search-date-range-controls.is-hidden {
  display: none;
}

.search-date-range-field {
  margin: 0;
}

.search-field:focus-within {
  border-color: rgba(25, 134, 199, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 4px rgba(125, 213, 247, 0.2),
    0 12px 26px rgba(84, 154, 195, 0.2);
}

.search-filter-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.2rem;
}

.search-filter-field.is-hidden {
  display: none;
}

.search-invert-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3.2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.2);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  color: var(--muted);
}

.search-invert-field input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

.search-filter-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(68, 146, 189, 0.2);
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  flex: 0 0 auto;
}

.search-filter-icon img {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.search-filter-select {
  width: 100%;
  min-height: 3.2rem;
  font-weight: 600;
}

.search-status {
  min-height: 1.25rem;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: left;
}

.search-query-extra {
  display: grid;
  gap: 0.55rem;
  padding: 0.2rem 0 0.1rem;
}

.search-row-button {
  width: 2.8rem;
  min-width: 2.8rem;
  min-height: 2.8rem;
  align-self: center;
}

.search-row-button img {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0 auto;
}

.search-row-button.is-hidden {
  display: none;
}

.password-requirements {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(68, 146, 189, 0.18);
  background: rgba(245, 252, 255, 0.82);
}

.password-strength-meter {
  width: 100%;
  height: 0.54rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 146, 189, 0.2);
  background: rgba(218, 240, 252, 0.86);
  overflow: hidden;
}

.password-strength-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 150ms ease, background-color 150ms ease;
  background: #8ea7b8;
}

.password-requirements[data-password-strength="weak"] .password-strength-fill {
  background: #c95c69;
}

.password-requirements[data-password-strength="medium"] .password-strength-fill {
  background: #d99f3f;
}

.password-requirements[data-password-strength="strong"] .password-strength-fill {
  background: #2f9c78;
}

.password-strength-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.password-rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.password-rule-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.password-rule-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.46rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(95, 125, 147, 0.42);
}

.password-rule-list li.is-met {
  color: #1c6f57;
}

.password-rule-list li.is-met::before {
  background: #1f8a67;
}

.password-space-warning {
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 600;
}

.app-shell {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  flex: 1;
}

.sidebar {
  height: fit-content;
  position: sticky;
  top: 8.8rem;
  z-index: 10;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 114, 181, 0.22), rgba(255, 255, 255, 0.54));
  box-shadow: var(--shadow-soft);
}

.nav-group-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.side-nav .nav-link {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.side-nav .menu-icon {
  flex: 0 0 1.45rem;
}

.main-stage {
  min-width: 0;
}

.content-stage {
  display: grid;
  gap: 1.5rem;
}

.auth-background {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-shell {
  width: min(100%, 32rem);
  display: grid;
  gap: 1.25rem;
}

.auth-brand {
  justify-content: center;
}

.auth-card,
.panel-card {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 0.1rem 0 0.35rem;
}

.page-hero h2 {
  font-size: 2rem;
}

.lede,
.muted,
.inline-note,
.readonly-note {
  color: var(--muted);
}

.readonly-note {
  margin: 0.25rem 0 0;
}

.readonly-fieldset {
  border: 0;
  margin: 0;
  min-inline-size: 0;
  padding: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 30rem) minmax(0, 1fr);
  gap: 1.5rem;
}

.wide-panel {
  max-width: 72rem;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-heading h3 {
  margin: 0;
}

.pill,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.pill {
  background: rgba(79, 182, 232, 0.12);
  color: var(--muted);
}

.status-pill {
  min-width: 2.05rem;
  min-height: 2.05rem;
  padding: 0.22rem;
  border: 1px solid rgba(68, 146, 189, 0.16);
  background: rgba(255, 255, 255, 0.82);
}

.status-symbol {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.badge {
  background: rgba(26, 134, 199, 0.12);
  color: var(--info);
}

.badge-project {
  background: rgba(79, 182, 232, 0.18);
  color: var(--brand-dark);
}

.badge-client {
  background: rgba(29, 125, 116, 0.12);
  color: var(--success);
}

.record-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(68, 146, 189, 0.16);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(58, 132, 180, 0.08);
}

.record-card.is-active {
  border-color: rgba(26, 134, 199, 0.42);
  box-shadow: 0 16px 28px rgba(58, 132, 180, 0.14);
}

.record-card.is-overdue {
  border-color: rgba(209, 55, 81, 0.55);
  box-shadow: 0 14px 30px rgba(188, 38, 67, 0.16);
  background: linear-gradient(180deg, rgba(255, 245, 248, 0.96), rgba(255, 255, 255, 0.85));
}

.record-collapsible {
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.record-collapsible > summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.72rem 0.84rem;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(247, 253, 255, 0.9), rgba(232, 248, 255, 0.72));
}

.record-collapsible > summary::-webkit-details-marker {
  display: none;
}

.record-collapsible > summary::marker {
  content: "";
}

.record-collapsible-summary-main {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.record-collapsible-line {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-collapsible-line-primary {
  font-weight: 700;
  color: var(--brand-dark);
}

.record-collapsible-line-secondary {
  font-size: 0.86rem;
  color: var(--muted);
}

.compact-note-card[open] .record-collapsible-body .record-collapsible-line {
  white-space: pre-wrap;
  overflow: auto;
  max-height: min(42vh, 24rem);
  padding-right: 0.35rem;
}

.record-collapsible-summary-side {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.record-collapsible-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(68, 146, 189, 0.18);
  background: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.record-collapsible-icon::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--brand-dark);
  border-bottom: 2px solid var(--brand-dark);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.record-collapsible[open] > summary {
  border-bottom: 1px solid rgba(68, 146, 189, 0.18);
  background: linear-gradient(180deg, rgba(243, 251, 255, 0.94), rgba(224, 245, 255, 0.8));
}

.record-collapsible[open] .record-collapsible-icon::before {
  transform: rotate(225deg) translateY(-1px);
}

.record-collapsible-body {
  display: grid;
  gap: 0.74rem;
  padding: 0.8rem 0.84rem 0.84rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 0.9rem;
}

.app-addon-card {
  display: grid;
  gap: 0.65rem;
}

.app-addon-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.app-addon-header h4 {
  margin: 0;
  color: var(--brand-dark);
}

.app-addon-card p {
  margin: 0;
}

.app-addon-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.overdue-note {
  color: #b4233f;
  font-weight: 700;
}

.compact-priority-row {
  margin-top: 0.45rem;
  margin-bottom: 0.65rem;
}

.project-priority-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.vendor-link-form {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(68, 146, 189, 0.18);
  border-radius: 1rem;
  background: rgba(240, 250, 255, 0.76);
  margin-bottom: 0.85rem;
}

.vendor-link-form-title {
  font-weight: 700;
  color: var(--brand-dark);
}

.vendor-link-form-grid {
  display: grid;
  grid-template-columns: minmax(13rem, 1.45fr) minmax(10rem, 1fr) minmax(8rem, auto);
  gap: 0.7rem;
  align-items: end;
}

.vendor-link-action-field {
  min-width: 11rem;
}

.vendor-link-action {
  width: auto;
  min-width: 8rem;
}

.priority-arrow-button {
  width: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 146, 200, 0.32);
  background: linear-gradient(180deg, rgba(240, 251, 255, 0.98), rgba(195, 235, 251, 0.96));
  color: var(--brand-dark);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
  cursor: pointer;
}

.priority-arrow-button:hover:not(:disabled) {
  border-color: rgba(25, 134, 199, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(176, 226, 247, 0.98));
}

.priority-arrow-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.priority-arrow-button.compact {
  width: 1.65rem;
  min-width: 1.65rem;
  min-height: 1.65rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  background: rgba(111, 206, 248, 0.24);
  border-color: rgba(26, 134, 199, 0.38);
  color: #0f4f7c;
}

.record-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.assignment-block {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.assignment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.assignment-list.compact {
  margin-top: 0.35rem;
}

.assignment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(79, 182, 232, 0.12);
  border: 1px solid rgba(68, 146, 189, 0.18);
  color: var(--brand-dark);
  font-size: 0.84rem;
}

.project-quick-meta {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.35rem;
}

.project-editor-shell {
  margin-top: 0.7rem;
  border: 1px solid rgba(68, 146, 189, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.project-editor-shell > summary {
  list-style: none;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(68, 146, 189, 0.12);
  background: rgba(234, 248, 255, 0.66);
}

.project-editor-toggle {
  font-weight: 700;
  color: var(--brand-dark);
}

.project-editor-shell > summary::-webkit-details-marker {
  display: none;
}

.project-edit-form {
  padding: 0.75rem;
  gap: 0.75rem;
}

.compact-grid {
  gap: 0.65rem;
}

.compact-client-contacts-form {
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(68, 146, 189, 0.2);
  gap: 0.7rem;
}

.inline-editor,
.two-column-fields,
.three-column-fields,
.button-row,
.multimedia-row,
.placeholder-actions,
.worklog-toolbar {
  display: grid;
  gap: 0.9rem;
}

.inline-editor,
.compact-form,
.placeholder-actions {
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  align-items: end;
}

.two-column-fields,
.multimedia-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.button-row {
  grid-template-columns: repeat(auto-fit, minmax(12rem, max-content));
  justify-content: start;
}

.worklog-toolbar {
  margin-bottom: 1rem;
}

.worklog-filter-form,
.worklog-import-form {
  grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
  align-items: end;
}

.worklog-date-cell {
  display: inline-grid;
  gap: 0.35rem;
  justify-items: start;
  min-width: 4.4rem;
}

.worklog-public-holiday-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(125, 213, 247, 0.28);
  border: 1px solid rgba(68, 146, 189, 0.28);
}

.worklog-public-holiday-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.worklog-entry-cell {
  display: grid;
  gap: 0.45rem;
  max-width: 34rem;
  white-space: pre-wrap;
}

.worklog-entry-toggle,
.worklog-entry-toggle.ghost-button,
.worklog-entry-toggle.TWERPControls {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  width: 1.05rem;
  min-width: 1.05rem;
  max-width: 1.05rem;
  height: 1.05rem;
  min-height: 1.05rem;
  max-height: 1.05rem;
  padding: 0;
  border-radius: 0.3rem;
  font-size: 0.62rem;
  line-height: 1;
  white-space: nowrap;
}

.sales-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.sales-header-actions .primary-button,
.sales-header-actions .ghost-button {
  min-width: 10.5rem;
}

.sales-lines-editor {
  display: grid;
  gap: 0.75rem;
}

.sales-line-actions {
  margin-bottom: 0.15rem;
}

.sales-line-row {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(68, 146, 189, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.7);
}

.sales-line-main-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.9fr) minmax(12rem, 1.4fr) minmax(12rem, 1.4fr) minmax(10rem, 0.95fr) minmax(7rem, 0.7fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.duration-input-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.sales-line-details-field .text-area {
  min-height: 4.2rem;
}

.sales-line-remove {
  width: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  font-size: 1.4rem;
}

.searchable-select {
  display: grid;
  gap: 0.65rem;
}

.searchable-select-status {
  min-height: 1rem;
  font-size: 0.8rem;
  color: var(--danger);
}

.searchable-select-suggestions {
  position: relative;
  z-index: 50;
  display: grid;
  gap: 0.28rem;
  max-height: 12rem;
  overflow: auto;
  margin-top: 0.25rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(223, 245, 255, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 10px 24px rgba(66, 146, 188, 0.14);
}

.searchable-select-suggestions.is-hidden {
  display: none;
}

.searchable-select-suggestion-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.searchable-select-suggestion-item:hover,
.searchable-select-suggestion-item:focus-visible {
  border-color: rgba(46, 146, 200, 0.36);
  background: rgba(216, 240, 252, 0.86);
  transform: translateY(-1px);
}

.searchable-select-suggestion-item.is-selected {
  border-color: rgba(46, 146, 200, 0.42);
  background: rgba(171, 225, 248, 0.42);
}

.searchable-select-suggestion-empty {
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.field,
.checkbox-field {
  display: grid;
  gap: 0.45rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.popup-shortcut-button {
  min-height: 2.1rem;
  padding: 0.35rem 0.72rem;
  border-radius: 0.82rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.checkbox-field {
  align-items: center;
  grid-auto-flow: column;
  justify-content: start;
  align-self: end;
  padding-bottom: 0.6rem;
}

.text-input,
.text-area,
.nav-link,
.top-link,
.primary-button,
.ghost-button,
.link-button,
.nav-toggle,
.selection-item,
.table-link,
.search-input,
.TWERPControls {
  border: 1px solid var(--border);
  border-radius: 1.05rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(218, 243, 255, 0.78)),
    rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(92, 164, 204, 0.09);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.text-input,
.text-area {
  width: 100%;
  padding: 0.88rem 1rem;
  font: inherit;
  color: var(--text);
}

.text-area {
  min-height: 7rem;
  resize: vertical;
}

.text-area-lg {
  min-height: 13rem;
}

.searchable-multi {
  min-height: 10rem;
}

.nav-link,
.top-link,
.primary-button,
.ghost-button,
.link-button,
.nav-toggle,
.table-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.76rem 1rem;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

.nav-link:hover,
.top-link:hover,
.primary-button:hover,
.ghost-button:hover,
.link-button:hover,
.nav-toggle:hover,
.table-link:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.nav-link.is-active,
.top-link.is-active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(161, 229, 250, 0.86)),
    rgba(255, 255, 255, 0.85);
  border-color: rgba(46, 146, 200, 0.4);
  color: var(--brand-dark);
}

.primary-button {
  color: #ffffff;
  border-color: rgba(19, 104, 160, 0.3);
  background: linear-gradient(135deg, var(--accent-strong) 0%, var(--brand) 100%);
  box-shadow: 0 14px 28px rgba(44, 131, 188, 0.24);
}

.ghost-button,
.link-button,
.nav-toggle {
  border-color: rgba(79, 155, 191, 0.24);
}

.table-link {
  justify-content: start;
  min-height: auto;
  padding: 0.45rem 0.7rem;
}

.icon-field {
  justify-items: start;
  align-self: end;
  padding-bottom: 0.2rem;
}

.icon-button {
  width: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.text-input:focus,
.text-area:focus {
  outline: none;
  border-color: rgba(25, 134, 199, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 4px rgba(125, 213, 247, 0.24);
}

.full-width,
.grow {
  width: 100%;
}

.flash {
  border-radius: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-soft);
}

.flash-success {
  background: rgba(29, 125, 116, 0.1);
  border-color: rgba(29, 125, 116, 0.18);
  color: var(--success);
}

.flash-error,
.validation-summary,
.field-validation {
  color: var(--danger);
}

.flash-error {
  background: rgba(176, 80, 108, 0.08);
  border-color: rgba(176, 80, 108, 0.18);
}

.validation-summary {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(176, 80, 108, 0.22);
  background: rgba(176, 80, 108, 0.08);
}

.validation-summary.validation-summary-valid {
  display: none;
}

.validation-summary:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.field-validation {
  min-height: 1rem;
  font-size: 0.82rem;
}

.input-validation-error {
  border-color: rgba(176, 80, 108, 0.48) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 230, 236, 0.88)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 4px rgba(176, 80, 108, 0.14);
}

.field:has(.input-validation-error) > span:first-child {
  color: var(--danger);
}

.info-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  background: rgba(79, 182, 232, 0.12);
  color: var(--info);
}

.info-divider {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.35;
}

.user-chip {
  min-width: 11rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
}

.user-chip-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.selection-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
}

.selection-item.is-disabled {
  opacity: 0.55;
}

.permissions-table tr.is-disabled {
  opacity: 0.58;
}

.permission-description {
  display: block;
  margin-top: 0.2rem;
  max-width: 42rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.permission-tree {
  gap: 0.75rem;
}

.permission-tree-section.is-disabled {
  opacity: 0.62;
}

.permission-tree-section > summary {
  align-items: start;
}

.permission-tree-summary-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.permission-tree-summary-title {
  font-weight: 800;
  color: var(--brand-dark);
}

.permission-tree-summary-description {
  max-width: 62rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.38;
}

.permission-tree-body {
  gap: 0.9rem;
}

.permission-tree-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(68, 146, 189, 0.14);
  border-radius: 0.75rem;
  background: rgba(243, 250, 255, 0.78);
}

.permission-tree-row.is-disabled {
  opacity: 0.55;
}

.permission-tree-row > span:first-child {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.permission-tree-row-level-1 {
  background: rgba(237, 248, 254, 0.88);
}

.permission-tree-row-level-2 {
  background: rgba(250, 253, 255, 0.9);
}

.permission-tree-children {
  display: grid;
  gap: 0.85rem;
  margin-left: 1.25rem;
  padding-left: 1.35rem;
  border-left: 3px solid rgba(68, 146, 189, 0.24);
}

.permission-feature-list {
  display: grid;
  gap: 0.65rem;
  margin-left: 1.45rem;
  padding-left: 1.25rem;
  border-left: 2px dashed rgba(68, 146, 189, 0.2);
}

.switch-control {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.switch-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.switch-slider {
  position: relative;
  width: 2.7rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 146, 189, 0.22);
  background: rgba(206, 233, 247, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition: background 140ms ease, border-color 140ms ease;
}

.switch-slider::after {
  content: "";
  position: absolute;
  top: 0.14rem;
  left: 0.16rem;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 6px rgba(58, 132, 180, 0.2);
  transition: transform 140ms ease;
}

.switch-control input:checked + .switch-slider {
  background: linear-gradient(135deg, rgba(125, 213, 247, 0.92), rgba(26, 134, 199, 0.92));
  border-color: rgba(26, 134, 199, 0.44);
}

.switch-control input:checked + .switch-slider::after {
  transform: translateX(1.16rem);
}

.switch-control input:disabled + .switch-slider {
  opacity: 0.5;
}

.switch-slider.readonly {
  background: rgba(232, 236, 242, 0.9);
}

.switch-control input:checked + .switch-slider.readonly {
  background: linear-gradient(135deg, rgba(142, 164, 180, 0.94), rgba(95, 125, 147, 0.9));
  border-color: rgba(95, 125, 147, 0.5);
}

.section-divider {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.checkbox-group {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.checkbox-group legend {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.inline-creation-shell {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.8rem;
  display: grid;
  gap: 0.8rem;
  background: color-mix(in srgb, var(--glass-blue) 14%, #ffffff 86%);
}

.settings-accordion {
  display: grid;
  gap: 1rem;
}

.settings-collapsible {
  border: 1px solid rgba(68, 146, 189, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(58, 132, 180, 0.08);
  overflow: hidden;
}

.settings-collapsible + .settings-collapsible {
  margin-top: 0.15rem;
}

.settings-collapsible > summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  color: var(--brand-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(210, 238, 252, 0.78)),
    rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(68, 146, 189, 0.14);
}

.settings-collapsible > summary::-webkit-details-marker {
  display: none;
}

.settings-collapsible > summary::after {
  content: "▸";
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 140ms ease;
}

.settings-collapsible[open] > summary::after {
  transform: rotate(90deg);
}

.settings-collapsible > summary .muted {
  margin: 0;
  font-weight: 500;
  justify-self: start;
}

.settings-collapsible-body {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.1rem 1.1rem;
}

.settings-collapsible.nested {
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 6px 16px rgba(58, 132, 180, 0.07);
}

.settings-collapsible.nested > summary {
  font-size: 0.95rem;
  border-bottom-color: rgba(68, 146, 189, 0.12);
}

.company-logo-preview {
  display: grid;
  gap: 0.6rem;
  padding: 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.2);
  background: rgba(255, 255, 255, 0.75);
}

.company-logo-preview img {
  width: min(14rem, 100%);
  height: auto;
  border-radius: 0.7rem;
  border: 1px solid rgba(68, 146, 189, 0.22);
  background: #fff;
  padding: 0.35rem;
}

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

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

.portal-table th,
.portal-table td {
  padding: 0.92rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(68, 146, 189, 0.12);
  vertical-align: top;
}

.portal-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.communication-row {
  cursor: pointer;
}

.sales-document-row {
  cursor: pointer;
}

.sales-document-row.is-active td {
  background: rgba(113, 176, 210, 0.22);
}

.communication-inbound-pending {
  background: linear-gradient(180deg, rgba(196, 228, 246, 0.7), rgba(176, 214, 238, 0.48));
}

.communication-flow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.communication-flow-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.communication-detail-card {
  gap: 0.8rem;
}

.empty-state,
.empty-cell {
  padding: 1.5rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  padding: 0.75rem 0;
}

.planning-field.is-hidden,
.contact-date-field.is-hidden,
.project-option-hidden,
.is-search-hidden {
  display: none !important;
}

.is-page-hidden {
  display: none !important;
}

.pagination-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pagination-numbers .ghost-button {
  min-width: 2.35rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.pagination-numbers .ghost-button.is-active {
  border-color: rgba(26, 134, 199, 0.5);
  background: linear-gradient(180deg, rgba(209, 242, 255, 0.95), rgba(225, 248, 255, 0.9));
  color: #155379;
}

.pagination-strip .inline-note {
  margin-right: auto;
}

.nav-toggle {
  display: none;
}

.is-hidden {
  display: none !important;
}

.dashboard-layout,
.dashboard-allocation-stack,
.dashboard-allocation-columns,
.remote-office-tree,
.remote-office-tree-group,
.remote-office-main,
.remote-office-user-list,
.remote-office-channel-list,
.remote-office-member-list,
.remote-office-selection-list,
.remote-office-message-list,
.remote-office-audio-host {
  display: grid;
  gap: 1rem;
}

.dashboard-layout {
  grid-template-columns: 1fr;
  align-items: start;
}

.dashboard-allocation-columns {
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
  grid-column: 1 / -1;
  order: 1;
  min-width: 0;
}

.remote-office-panel {
  min-width: 0;
  grid-column: 1 / -1;
  order: 2;
}

.dashboard-allocation-column {
  min-width: 0;
  overflow: hidden;
}

.dashboard-allocation-column .record-stack {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.dashboard-allocation-column .record-card {
  flex: 0 0 min(42rem, 92%);
  width: min(42rem, 92%);
  min-width: 31rem;
  padding: 0.95rem;
  min-height: 0;
  box-sizing: border-box;
}

.dashboard-allocation-column .record-collapsible > summary {
  width: 100%;
  padding: 0.82rem 0.9rem;
  gap: 0.72rem;
  box-sizing: border-box;
}

.dashboard-allocation-column .record-collapsible-body {
  padding: 0.9rem;
  min-height: 0;
}

.dashboard-allocation-title {
  display: -webkit-box;
  white-space: normal;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.2;
}

.dashboard-allocation-subline {
  font-size: 0.86rem;
}

.dashboard-allocation-meta {
  font-size: 0.8rem;
  color: #2b648d;
}

.dashboard-allocation-alert {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.28;
  color: #9a2e63;
  white-space: normal;
}

.dashboard-allocation-column .inline-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.dashboard-allocation-column .ghost-button {
  min-width: 0;
}

.remote-office-toolbar {
  margin-bottom: 0.45rem;
}

.remote-office-inline-status {
  margin-bottom: 1rem;
}

.remote-office-time-analytics {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(68, 146, 189, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(58, 132, 180, 0.08);
}

.remote-office-time-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, max-content));
  gap: 0.85rem;
  align-items: end;
  margin-bottom: 0.95rem;
}

.remote-office-time-summary-list {
  display: grid;
  gap: 0.75rem;
}

.remote-office-time-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.remote-office-workspace {
  display: grid;
  grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.remote-office-tree-panel,
.remote-office-chat-card,
.remote-office-voice-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(68, 146, 189, 0.16);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(58, 132, 180, 0.08);
}

.remote-office-tree-panel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.remote-office-tree {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.remote-office-user-group {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.remote-office-user-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 0.25rem;
  display: grid;
  gap: 0.85rem;
}

.remote-office-role-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 0.25rem 0.35rem 0;
}

.remote-office-user-group-block {
  display: grid;
  gap: 0.5rem;
}

.remote-office-group-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.remote-office-channel-list,
.remote-office-member-list,
.remote-office-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.remote-office-channel-item,
.remote-office-user-row,
.remote-office-access-option,
.remote-office-channel-button {
  border-radius: 1rem;
}

.remote-office-channel-item {
  display: grid;
  gap: 0.45rem;
}

.remote-office-channel-row,
.remote-office-channel-main,
.remote-office-channel-actions {
  display: flex;
  align-items: center;
}

.remote-office-channel-row {
  gap: 0.55rem;
}

.remote-office-channel-main {
  gap: 0.75rem;
  min-width: 0;
}

.remote-office-channel-actions {
  gap: 0.45rem;
  flex: 0 0 auto;
}

.remote-office-channel-button,
.remote-office-user-row,
.remote-office-access-option {
  width: 100%;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(218, 243, 255, 0.8)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(92, 164, 204, 0.09);
}

.remote-office-channel-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.remote-office-channel-item.is-selected .remote-office-channel-button,
.remote-office-channel-item.is-connected .remote-office-channel-button {
  border-color: rgba(46, 146, 200, 0.4);
}

.remote-office-channel-item.is-selected .remote-office-channel-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(161, 229, 250, 0.86)),
    rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(125, 213, 247, 0.18);
}

.remote-office-channel-item.is-connected .remote-office-channel-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 247, 255, 0.84)),
    rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 2px rgba(125, 213, 247, 0.12);
}

.remote-office-channel-item.is-selected.is-connected .remote-office-channel-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(161, 229, 250, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(125, 213, 247, 0.2);
}

.remote-office-channel-item.is-connected .remote-office-channel-symbol {
  background: rgba(79, 182, 232, 0.24);
}

.remote-office-channel-label,
.remote-office-user-main {
  display: grid;
  gap: 0.18rem;
  text-align: left;
}

.remote-office-channel-label {
  min-width: 0;
}

.remote-office-channel-type,
.remote-office-user-meta,
.remote-office-message-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.remote-office-channel-duration {
  font-size: 0.76rem;
  color: var(--muted);
  opacity: 0.94;
}

.remote-office-channel-name {
  font-weight: 700;
}

.remote-office-channel-symbol,
.remote-office-inline-icon,
.remote-office-access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  background: rgba(125, 213, 247, 0.18);
  color: var(--brand-dark);
  flex: 0 0 auto;
}

.remote-office-channel-symbol svg,
.remote-office-inline-icon svg,
.remote-office-access-icon svg,
.remote-office-channel-action svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.remote-office-member-list {
  padding-left: 1rem;
}

.remote-office-member-chip,
.remote-office-user-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
}

.remote-office-user-row {
  justify-content: space-between;
}

.remote-office-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.remote-office-online-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(95, 125, 147, 0.28);
}

.remote-office-online-dot.is-online {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(29, 125, 116, 0.12);
}

.remote-office-message-list {
  min-height: 18rem;
  max-height: 24rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.remote-office-message {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.14);
  background: rgba(255, 255, 255, 0.76);
}

.remote-office-message.is-own {
  border-color: rgba(26, 134, 199, 0.26);
  background: rgba(221, 245, 255, 0.82);
}

.remote-office-message-text {
  white-space: pre-wrap;
  line-height: 1.45;
}

.remote-office-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.voice-meter-shell {
  height: 0.9rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(233, 245, 252, 0.9);
}

.voice-meter-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--brand) 100%);
  transition: width 120ms linear;
}

.remote-office-call-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.remote-office-volume-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem;
  margin: 0.85rem 0;
}

.remote-office-volume-control {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.remote-office-volume-control input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.remote-office-video-host,
.remote-office-audio-host {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.remote-office-local-media,
.remote-office-audio-host {
  display: grid;
  gap: 0.75rem;
}

.remote-office-video-host {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.remote-office-local-media {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.remote-office-media-tile {
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  border: 1px solid rgba(68, 146, 189, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.76);
}

.remote-office-media-tile.is-local {
  border-style: dashed;
}

.remote-office-media-tile strong {
  font-size: 0.82rem;
  color: var(--muted);
}

.remote-office-media-tile video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: #0c1b20;
  object-fit: cover;
}

.remote-office-media-tile audio,
.remote-office-audio-host audio {
  width: 100%;
}

.remote-office-channel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(218, 243, 255, 0.8)),
    rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(92, 164, 204, 0.09);
  color: var(--brand-dark);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.remote-office-channel-action:hover,
.remote-office-mic-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.remote-office-channel-action-disconnect {
  color: var(--danger);
}

.remote-office-mic-toggle {
  gap: 0.55rem;
  min-height: 3rem;
}

.remote-office-mic-toggle.is-active {
  border-color: rgba(46, 146, 200, 0.4);
  color: var(--brand-dark);
}

.remote-office-context-menu {
  position: fixed;
  z-index: 80;
  min-width: 13rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(244, 252, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.remote-office-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(19, 49, 73, 0.18);
}

.remote-office-modal-card {
  width: min(100%, 34rem);
}

.remote-office-selection-list {
  max-height: 18rem;
  overflow: auto;
  display: grid;
  gap: 0.75rem;
}

.remote-office-access-option {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
}

.remote-office-access-option input {
  margin: 0;
}

.remote-office-access-search {
  min-height: 3rem;
}

.remote-office-empty {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
}

.remote-office-empty.compact {
  padding: 0.4rem 0;
}

.asset-card {
  display: grid;
  grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr);
  gap: 1rem;
}

.asset-record-card {
  padding: 0;
}

.asset-collapsible > summary {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.asset-summary-media {
  width: 4rem;
  height: 4rem;
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid rgba(68, 146, 189, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(214, 241, 253, 0.8));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  flex: 0 0 auto;
}

.asset-summary-image,
.asset-summary-placeholder {
  width: 100%;
  height: 100%;
}

.asset-summary-image {
  object-fit: cover;
}

.asset-summary-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.74rem;
}

.asset-media {
  align-self: start;
}

.asset-image,
.asset-image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.4rem;
  border: 1px solid rgba(68, 146, 189, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(205, 239, 252, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 22px rgba(58, 132, 180, 0.1);
}

.asset-image {
  object-fit: cover;
}

.asset-image-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.asset-content {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.asset-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.85rem 1rem;
}

.asset-meta-grid > div {
  display: grid;
  gap: 0.3rem;
}

.asset-notes {
  display: grid;
  gap: 0.35rem;
}

.asset-notes p {
  margin: 0;
  white-space: pre-wrap;
}

.asset-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.financial-report-card {
  display: grid;
  gap: 1rem;
}

.financial-chart-controls {
  min-width: 11rem;
}

.financial-chart-controls .field {
  min-width: 11rem;
}

.marketting-chart-panel {
  display: grid;
  gap: 0.85rem;
}

.marketting-pie-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.marketting-pie-shell {
  position: relative;
  width: min(100%, 14rem);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.marketting-pie-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--pie-background);
  border: 1px solid rgba(68, 146, 189, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 12px 24px rgba(66, 146, 188, 0.14);
}

.marketting-pie-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 56%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px solid rgba(68, 146, 189, 0.2);
  background: rgba(250, 254, 255, 0.96);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.12rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.marketting-pie-center strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.marketting-pie-center span {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.financial-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.financial-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 146, 189, 0.16);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  color: var(--muted);
}

.financial-legend-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--segment-color, var(--brand));
}

.financial-chart {
  display: grid;
  gap: 0.6rem;
}

.financial-chart-row {
  display: grid;
  grid-template-columns: minmax(11rem, 20rem) minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.financial-chart-label {
  font-weight: 600;
  min-width: 0;
}

.financial-chart-bar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 1.05rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(220, 240, 250, 0.86);
  border: 1px solid rgba(68, 146, 189, 0.12);
}

.financial-chart-segment {
  display: block;
  min-height: 1.05rem;
  background: var(--segment-color, var(--brand));
}

.financial-chart-segment.single {
  min-width: 0.55rem;
}

.financial-chart-total {
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}

.financial-total-row {
  background: rgba(125, 213, 247, 0.1);
}

.asset-inline-preview {
  max-width: 12rem;
}

.asset-inline-preview-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.2rem;
  border: 1px solid rgba(68, 146, 189, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 10px 22px rgba(58, 132, 180, 0.1);
}

.attachment-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(68, 146, 189, 0.18);
  background: rgba(79, 182, 232, 0.12);
  color: var(--brand-dark);
  font-size: 0.84rem;
}

.attachment-chip:hover {
  border-color: rgba(46, 146, 200, 0.34);
  background: rgba(79, 182, 232, 0.18);
}

.attachment-list {
  display: grid;
  gap: 0.5rem;
}

.attachment-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.attachment-remove-button {
  min-height: 2.3rem;
  padding: 0.4rem 0.85rem;
}

.project-tree-search-extra-main {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(14rem, 1fr);
  align-items: end;
  gap: 0.7rem;
}

.project-tree-search-extra-form {
  display: grid;
  gap: 0.5rem;
}

.project-tree-date-filter-section {
  display: grid;
  gap: 0.5rem;
}

.project-tree-search-extra-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-tree-search-extra-controls {
  display: grid;
  grid-template-columns: minmax(9.2rem, 11rem) minmax(9.2rem, 11rem) auto;
  align-items: end;
  gap: 0.55rem;
}

.project-tree-date-show-all {
  min-height: 3.2rem;
}

.project-tree-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0.1rem 0.1rem;
  display: grid;
  gap: 1rem;
}

.project-tree-timeline::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 1.45rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(79, 182, 232, 0.4), rgba(11, 95, 151, 0.22));
}

.project-tree-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.project-tree-event-marker {
  position: relative;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(196, 236, 253, 0.84));
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  z-index: 1;
}

.project-tree-event-marker img {
  width: 1.45rem;
  height: 1.45rem;
}

.project-tree-event-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.78rem 0.95rem;
  border-radius: 1rem;
  border: 1px solid rgba(68, 146, 189, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.project-tree-event-card:hover .project-tree-event-body {
  border-color: rgba(26, 134, 199, 0.45);
  box-shadow: 0 10px 24px rgba(84, 154, 195, 0.14);
  transform: translateY(-1px);
}

.project-tree-event-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.project-tree-event-body h4 {
  margin: 0;
  font-size: 1.03rem;
  color: var(--brand-dark);
}

.project-tree-event-body p {
  margin: 0;
}

.project-tree-worklog-entry {
  border: 1px solid rgba(68, 146, 189, 0.18);
  border-radius: 0.45rem;
  background: rgba(243, 250, 255, 0.64);
  color: var(--text);
  font-size: 0.9rem;
}

.project-tree-worklog-entry summary {
  cursor: pointer;
  padding: 0.42rem 0.55rem;
  font-weight: 700;
}

.project-tree-worklog-entry div {
  padding: 0 0.55rem 0.55rem;
  white-space: pre-wrap;
}

.project-tree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.project-tree-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.18rem 0.45rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(68, 146, 189, 0.15);
  background: rgba(243, 250, 255, 0.88);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .global-topbar-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .company-brand-topbar {
    justify-items: start;
  }

  .company-brand-logo {
    max-width: min(18rem, 70vw);
  }

  .top-menu,
  .topbar-actions {
    justify-content: start;
  }

  .page-search-strip {
    grid-template-columns: auto 1fr;
  }

  .search-query-builder {
    grid-column: 1 / -1;
  }

  .search-query-row {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem) auto auto auto;
  }

  .search-filter-field {
    max-width: 18rem;
  }

  .project-tree-search-extra-main {
    grid-template-columns: minmax(12rem, 1fr) minmax(12rem, 1fr);
  }

  .project-tree-search-extra-controls {
    grid-template-columns: minmax(9rem, 1fr) minmax(9rem, 1fr) auto;
  }
}

@media (max-width: 980px) {
  .app-shell,
  .split-layout,
  .dashboard-layout,
  .remote-office-workspace,
  .remote-office-composer {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
    position: static;
  }

  .portal-frame.nav-open .sidebar {
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .page-search-strip,
  .global-topbar,
  .app-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-stage,
  .panel-card,
  .auth-card,
  .sidebar {
    padding: 1.2rem;
  }

  .two-column-fields,
  .three-column-fields,
  .inline-editor,
  .compact-form,
  .placeholder-actions,
  .multimedia-row {
    grid-template-columns: 1fr;
  }

  .asset-card {
    grid-template-columns: 1fr;
  }

  .asset-collapsible > summary {
    grid-template-columns: 1fr;
  }

  .asset-summary-media {
    width: 3.2rem;
    height: 3.2rem;
  }

  .financial-chart-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .marketting-pie-layout {
    grid-template-columns: 1fr;
  }

  .financial-chart-controls {
    width: 100%;
  }

  .vendor-link-form-grid {
    grid-template-columns: 1fr;
  }

  .vendor-link-action-field {
    min-width: 0;
  }

  .vendor-link-action {
    width: 100%;
    min-width: 0;
  }

  .sales-line-main-row {
    grid-template-columns: 1fr;
  }

  .sales-header-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-layout,
  .dashboard-allocation-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-allocation-column .record-card {
    flex-basis: min(32rem, 96%);
    width: min(32rem, 96%);
    min-width: 18rem;
  }

  .remote-office-time-filter,
  .remote-office-time-summary-item {
    grid-template-columns: 1fr;
  }

  .page-search-heading .topbar-title,
  .page-hero h2 {
    font-size: 1.6rem;
  }

  .search-filter-field {
    max-width: none;
  }

  .search-query-row {
    grid-template-columns: 1fr;
  }

  .search-query-extra {
    padding-top: 0;
  }

  .project-tree-search-extra-controls {
    grid-template-columns: 1fr;
  }

  .search-row-button {
    justify-self: start;
  }

  .record-collapsible > summary {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .record-collapsible-summary-side {
    justify-content: flex-start;
  }

  .project-tree-search-extra-main {
    grid-template-columns: 1fr;
  }

  .project-tree-timeline::before {
    left: 1.2rem;
  }

  .project-tree-event-card {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  .project-tree-event-marker {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.8rem;
  }

  .project-tree-event-marker img {
    width: 1.18rem;
    height: 1.18rem;
  }

  .global-topbar .brand-logo,
  .auth-brand .brand-logo {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 2rem;
  }
}

[data-popup-open-url] {
  cursor: pointer;
}

[data-event-open-url] {
  cursor: pointer;
}

.rich-email-editor {
  border: 1px solid rgba(41, 92, 148, 0.2);
  border-radius: 14px;
  background: rgba(239, 248, 255, 0.72);
  overflow: hidden;
}

.rich-email-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.6rem;
  border-bottom: 1px solid rgba(41, 92, 148, 0.16);
  background: rgba(226, 241, 255, 0.75);
}

.rich-email-toolbar .ghost-button {
  padding: 0.32rem 0.62rem;
  min-height: 2rem;
}

.rich-email-surface {
  border: 0;
  margin: 0;
  border-radius: 0;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.92);
}

.rich-email-surface a,
.rich-email-readonly a {
  color: #1568ba;
  text-decoration: underline;
}

.rich-email-surface a:hover,
.rich-email-readonly a:hover {
  color: #0f4f8d;
}

.signature-editor .rich-email-surface {
  min-height: 160px;
}

.rich-email-surface:focus {
  outline: 2px solid rgba(66, 148, 227, 0.42);
  outline-offset: -2px;
}

.rich-email-readonly {
  white-space: normal;
  overflow: auto;
}

.approve-selected-button {
  display: inline-grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  min-width: 7.1rem;
  line-height: 1.08;
  gap: 0.15rem;
}

.approve-selected-arrow {
  font-size: 0.84rem;
  color: var(--muted);
}

.allocation-readonly-select {
  min-width: 12rem;
  max-width: 100%;
}

.employee-layout.list-only {
  display: block;
}

.employee-layout.list-only > .panel-card {
  width: 100%;
}

.employee-summary-line {
  font-size: 0.96rem;
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 1120px) {
  .three-column-grid {
    grid-template-columns: 1fr;
  }
}

.communication-project-broadcast {
  align-self: end;
}

.communication-schedule-panel {
  margin: 0.4rem 0 0.6rem;
}

.calendar-mode-grid {
  margin-bottom: 0.8rem;
}

.calendar-preview {
  border: 1px solid rgba(58, 119, 176, 0.25);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(228, 242, 255, 0.55);
}

.calendar-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

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

.calendar-preview-cell {
  border-radius: 8px;
  padding: 0.4rem 0.35rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(58, 119, 176, 0.18);
  text-align: center;
  font-size: 0.76rem;
  color: #1e4f78;
}

.communication-card .record-collapsible-summary-main {
  gap: 0.2rem;
}

.communication-tiles-block {
  margin-top: 0.45rem;
}

.communication-tiles-heading {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #24577f;
  margin-bottom: 0.25rem;
}

.communication-tiles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.communication-party-tile {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid rgba(58, 119, 176, 0.28);
  background: rgba(235, 245, 255, 0.88);
  color: #14486f;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.communication-party-tile.is-linkable {
  cursor: pointer;
  border-color: rgba(13, 104, 168, 0.45);
  box-shadow: 0 2px 4px rgba(13, 77, 121, 0.09);
}

.communication-party-tile.is-linkable:hover {
  background: rgba(212, 235, 252, 0.95);
}

html[data-theme="dark"] ::placeholder {
  color: rgba(164, 186, 183, 0.78);
}

html[data-theme="dark"] .global-topbar {
  background: rgba(18, 27, 29, 0.88);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .page-search-strip,
html[data-theme="dark"] .company-brand-strip {
  background: rgba(19, 30, 32, 0.78);
}

html[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, rgba(91, 189, 220, 0.17), rgba(22, 31, 34, 0.78));
}

html[data-theme="dark"] .gear-logo {
  border-color: rgba(126, 202, 203, 0.24);
  background:
    radial-gradient(circle at 30% 22%, rgba(241, 201, 107, 0.2), rgba(91, 189, 220, 0.18) 55%, rgba(18, 27, 29, 0.8) 100%),
    linear-gradient(180deg, rgba(33, 46, 48, 0.92), rgba(21, 31, 34, 0.96));
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .theme-toggle.TWERPControls {
  color: var(--accent);
  background:
    linear-gradient(180deg, rgba(39, 55, 58, 0.92), rgba(23, 35, 37, 0.88)),
    rgba(22, 31, 34, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .theme-toggle:focus-visible {
  outline-color: rgba(113, 215, 199, 0.36);
}

html[data-theme="dark"] .company-brand-logo,
html[data-theme="dark"] .company-logo-preview img {
  background: rgba(246, 250, 247, 0.96);
  border-color: rgba(126, 202, 203, 0.22);
}

html[data-theme="dark"] .panel-card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .record-card,
html[data-theme="dark"] .record-collapsible,
html[data-theme="dark"] .settings-collapsible,
html[data-theme="dark"] .company-logo-preview,
html[data-theme="dark"] .sales-line-row,
html[data-theme="dark"] .project-editor-shell,
html[data-theme="dark"] .vendor-link-form,
html[data-theme="dark"] .remote-office-message,
html[data-theme="dark"] .remote-office-context-menu,
html[data-theme="dark"] .remote-office-access-option,
html[data-theme="dark"] .asset-summary-media,
html[data-theme="dark"] .asset-image,
html[data-theme="dark"] .asset-image-placeholder,
html[data-theme="dark"] .financial-legend-item,
html[data-theme="dark"] .financial-chart-row,
html[data-theme="dark"] .project-tree-meta span,
html[data-theme="dark"] .calendar-preview,
html[data-theme="dark"] .calendar-preview-cell,
html[data-theme="dark"] .rich-email-editor {
  border-color: var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .record-card.is-overdue {
  border-color: rgba(255, 154, 176, 0.5);
  background: linear-gradient(180deg, rgba(75, 33, 43, 0.72), rgba(22, 31, 34, 0.84));
}

html[data-theme="dark"] .record-collapsible > summary,
html[data-theme="dark"] .record-collapsible[open] > summary,
html[data-theme="dark"] .settings-collapsible > summary,
html[data-theme="dark"] .project-editor-shell > summary,
html[data-theme="dark"] .rich-email-toolbar {
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(41, 58, 60, 0.9), rgba(25, 38, 40, 0.84)),
    var(--panel-strong);
}

html[data-theme="dark"] .password-requirements,
html[data-theme="dark"] .password-strength-meter,
html[data-theme="dark"] .search-invert-field,
html[data-theme="dark"] .search-filter-icon,
html[data-theme="dark"] .status-pill,
html[data-theme="dark"] .permission-tree-row,
html[data-theme="dark"] .inline-creation-shell,
html[data-theme="dark"] .searchable-select-suggestions,
html[data-theme="dark"] .search-input-suggestions,
html[data-theme="dark"] .remote-office-channel-button,
html[data-theme="dark"] .remote-office-user-row,
html[data-theme="dark"] .remote-office-channel-action,
html[data-theme="dark"] .voice-meter-shell,
html[data-theme="dark"] .remote-office-media-tile,
html[data-theme="dark"] .marketting-pie-center,
html[data-theme="dark"] .financial-chart-bar,
html[data-theme="dark"] .communication-party-tile {
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(39, 55, 58, 0.88), rgba(23, 35, 37, 0.84)),
    rgba(22, 31, 34, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] .text-input,
html[data-theme="dark"] .text-area,
html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .top-link,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .link-button,
html[data-theme="dark"] .nav-toggle,
html[data-theme="dark"] .selection-item,
html[data-theme="dark"] .table-link,
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .search-field,
html[data-theme="dark"] .searchable-select-suggestion-item,
html[data-theme="dark"] .TWERPControls {
  color: var(--text);
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(39, 55, 58, 0.9), rgba(23, 35, 37, 0.84)),
    rgba(22, 31, 34, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .project-tree-search-extra-title {
  color: #9bdcf2;
}

html[data-theme="dark"] .project-tree-timeline::before {
  background: linear-gradient(180deg, rgba(113, 215, 199, 0.42), rgba(91, 189, 220, 0.22));
}

html[data-theme="dark"] .project-tree-event-marker {
  border-color: rgba(126, 202, 203, 0.28);
  background:
    linear-gradient(180deg, rgba(39, 55, 58, 0.94), rgba(15, 27, 29, 0.94)),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 22px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .project-tree-event-body {
  color: var(--text);
  border-color: rgba(126, 202, 203, 0.18);
  background:
    linear-gradient(180deg, rgba(19, 31, 34, 0.96), rgba(10, 19, 21, 0.94)),
    rgba(12, 24, 26, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .project-tree-event-card:hover .project-tree-event-body {
  border-color: rgba(113, 215, 199, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .project-tree-event-body h4 {
  color: var(--brand-dark);
}

html[data-theme="dark"] .project-tree-event-body p,
html[data-theme="dark"] .project-tree-meta {
  color: var(--muted);
}

html[data-theme="dark"] .primary-button {
  color: #071413;
  border-color: rgba(113, 215, 199, 0.36);
  background: linear-gradient(135deg, var(--accent) 0%, var(--brand) 100%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .nav-link.is-active,
html[data-theme="dark"] .top-link.is-active,
html[data-theme="dark"] .remote-office-channel-item.is-selected .remote-office-channel-button,
html[data-theme="dark"] .remote-office-channel-item.is-selected.is-connected .remote-office-channel-button,
html[data-theme="dark"] .pagination-numbers .ghost-button.is-active,
html[data-theme="dark"] .searchable-select-suggestion-item.is-selected {
  color: var(--brand-dark);
  border-color: var(--border-strong);
  background:
    linear-gradient(180deg, rgba(55, 86, 86, 0.9), rgba(30, 57, 61, 0.88)),
    rgba(21, 48, 52, 0.9);
}

html[data-theme="dark"] .text-input:focus,
html[data-theme="dark"] .text-area:focus,
html[data-theme="dark"] .search-field:focus-within {
  border-color: rgba(113, 215, 199, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 4px rgba(113, 215, 199, 0.18);
}

html[data-theme="dark"] .input-validation-error {
  background:
    linear-gradient(180deg, rgba(74, 37, 47, 0.88), rgba(46, 28, 35, 0.84)),
    rgba(74, 37, 47, 0.86);
}

html[data-theme="dark"] .user-chip,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .assignment-chip,
html[data-theme="dark"] .attachment-chip,
html[data-theme="dark"] .info-band,
html[data-theme="dark"] .financial-total-row,
html[data-theme="dark"] .remote-office-channel-symbol,
html[data-theme="dark"] .remote-office-inline-icon,
html[data-theme="dark"] .remote-office-access-icon,
html[data-theme="dark"] .worklog-public-holiday-icon {
  border-color: var(--border);
  background: rgba(91, 189, 220, 0.14);
  color: var(--brand-dark);
}

html[data-theme="dark"] .flash-success {
  background: rgba(117, 216, 182, 0.12);
  border-color: rgba(117, 216, 182, 0.24);
}

html[data-theme="dark"] .flash-error,
html[data-theme="dark"] .validation-summary {
  background: rgba(255, 154, 176, 0.1);
  border-color: rgba(255, 154, 176, 0.24);
}

html[data-theme="dark"] .portal-table th,
html[data-theme="dark"] .portal-table td {
  border-bottom-color: rgba(126, 202, 203, 0.14);
}

html[data-theme="dark"] .portal-table tbody tr:hover td,
html[data-theme="dark"] .sales-document-row.is-active td,
html[data-theme="dark"] .communication-inbound-pending {
  background: rgba(91, 189, 220, 0.12);
}

html[data-theme="dark"] .remote-office-panel,
html[data-theme="dark"] .dashboard-allocation-column {
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(24, 39, 42, 0.96), rgba(14, 25, 27, 0.94)),
    var(--panel);
}

html[data-theme="dark"] .remote-office-tree-panel,
html[data-theme="dark"] .remote-office-chat-card,
html[data-theme="dark"] .remote-office-voice-card,
html[data-theme="dark"] .remote-office-time-analytics,
html[data-theme="dark"] .remote-office-time-summary-item,
html[data-theme="dark"] .dashboard-allocation-column .record-collapsible-body {
  color: var(--text);
  border-color: rgba(126, 202, 203, 0.18);
  background:
    linear-gradient(180deg, rgba(19, 31, 34, 0.96), rgba(10, 19, 21, 0.94)),
    rgba(12, 24, 26, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 24px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .dashboard-allocation-meta,
html[data-theme="dark"] .remote-office-user-meta,
html[data-theme="dark"] .remote-office-channel-type,
html[data-theme="dark"] .remote-office-message-meta {
  color: #9bdcf2;
}

html[data-theme="dark"] .dashboard-allocation-alert,
html[data-theme="dark"] .overdue-note {
  color: #ff9fba;
}

html[data-theme="dark"] .remote-office-message-list,
html[data-theme="dark"] .remote-office-video-host,
html[data-theme="dark"] .remote-office-audio-host {
  color: var(--text);
  background: rgba(8, 17, 19, 0.68);
}

html[data-theme="dark"] .rich-email-surface,
html[data-theme="dark"] .rich-email-readonly {
  color: var(--text);
  background: rgba(15, 23, 25, 0.92);
}

html[data-theme="dark"] .rich-email-surface a,
html[data-theme="dark"] .rich-email-readonly a {
  color: var(--brand-dark);
}

html[data-theme="dark"] .remote-office-modal {
  background: rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .bg-white {
  background-color: rgba(18, 27, 29, 0.88) !important;
}

html[data-theme="dark"] .text-dark {
  color: var(--text) !important;
}

html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom {
  border-color: var(--border) !important;
}
