:root {
  --navy: #0b1930;
  --navy2: #122542;
  --ink: #111b2e;
  --muted: #687386;
  --line: #e6e9ee;
  --bg: #f6f7f9;
  --white: #fff;
  --gold: #d4a85d;
  --green: #3db67b;
  --blue: #567ff0;
  --purple: #8b72e8;
  --red: #ef6d6d;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(22, 34, 56, .09)
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: #fbfaf7
}

h1,
h2,
h3,
h4,
.brand {
  font-family: 'Manrope', sans-serif
}

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

button,
input,
select {
  font: inherit
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(230, 233, 238, .7)
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 30px
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 800
}

.brand img {
  width: 158px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px
}

.brand>span {
  display: none
}

.top-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  color: #4f596a;
  font-weight: 600
}

.top-nav a:hover {
  color: var(--ink)
}

.header-actions {
  display: flex;
  gap: 10px
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s
}

.btn:hover {
  transform: translateY(-1px)
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11, 25, 48, .18)
}

.modal-close.danger {
  color: var(--red);
  border-color: rgba(239, 109, 109, .35);
  background: rgba(239, 109, 109, .1);
}

.btn-secondary {
  background: #f1f3f6;
  color: var(--ink)
}

.btn-ghost {
  background: transparent
}

.btn-light {
  background: #fff;
  color: var(--navy)
}

.btn-lg {
  padding: 15px 23px;
  border-radius: 14px
}

.btn-block {
  width: 100%
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 22px
}

.hero {
  padding: 80px 0 90px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 20%, #eef1ff 0, transparent 34%), linear-gradient(180deg, #fff 0, #fafbfc 100%)
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 70px
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 800;
  color: #ad7e2f
}

.eyebrow.light {
  color: #e6bd75
}

.hero h1 {
  font-size: 66px;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 17px 0 24px
}

.hero h1 em {
  font-style: normal;
  color: #66728a
}

.hero-copy>p {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 610px
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 30px 0 22px
}

.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #697386;
  font-size: 13px
}

.hero-visual {
  position: relative;
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: center
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dce3ff, #f5e4ca);
  filter: blur(15px);
  opacity: .72
}

.phone-shell {
  position: relative;
  width: 300px;
  height: 590px;
  padding: 15px;
  border-radius: 42px;
  background: #0a1425;
  box-shadow: 0 35px 80px rgba(12, 27, 53, .28);
  transform: rotate(2deg);
  z-index: 2
}

.phone-status {
  height: 35px;
  color: #fff;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  padding: 3px 8px
}

.phone-content {
  height: calc(100% - 35px);
  background: #f8f9fb;
  border-radius: 29px;
  padding: 24px 17px
}

.phone-content>small {
  color: #7a8494
}

.phone-content h3 {
  margin: 4px 0 18px;
  font-size: 22px
}

.mini-focus,
.mini-row {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(25, 38, 58, .05)
}

.mini-focus span,
.mini-row>span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff3df
}

.mini-focus div,
.mini-row div {
  display: flex;
  flex-direction: column;
  flex: 1
}

.mini-focus small,
.mini-row small {
  color: #808999
}

.mini-focus i {
  font-style: normal
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0
}

.mini-grid div {
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 13px;
  padding: 13px;
  display: flex;
  flex-direction: column
}

.mini-grid span {
  color: #7b8492;
  font-size: 11px
}

.mini-grid b {
  font-size: 22px
}

.phone-content h4 {
  margin: 18px 0 9px
}

.mini-row {
  margin-bottom: 8px
}

.mini-row em {
  font-size: 10px;
  font-style: normal;
  color: #a1681d;
  background: #fff0d5;
  padding: 5px 7px;
  border-radius: 9px
}

.float-card {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid rgba(229, 232, 238, .9);
  border-radius: 16px;
  padding: 14px 17px;
  display: flex;
  gap: 11px;
  align-items: center;
  box-shadow: var(--shadow);
  min-width: 260px
}

.float-card>span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f2ecff;
  display: grid;
  place-items: center
}

.float-card div {
  display: flex;
  flex-direction: column
}

.float-card small {
  color: var(--muted)
}

.fc-one {
  right: -10px;
  top: 105px
}

.fc-two {
  left: -25px;
  bottom: 95px
}

.logo-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 21px 0
}

.logo-strip .container {
  display: flex;
  justify-content: space-between;
  color: #778193;
  font-weight: 700
}

.section {
  padding: 100px 0
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 45px
}

.section-heading h2 {
  font-size: 44px;
  letter-spacing: -.035em;
  margin: 12px 0
}

.section-heading p {
  font-size: 18px;
  color: var(--muted)
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.feature-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  min-height: 250px
}

.feature-card.featured {
  grid-row: span 2;
  background: var(--navy);
  color: #fff
}

.feature-card h3 {
  font-size: 21px
}

.feature-card p {
  color: #707b8d;
  line-height: 1.65
}

.feature-card.featured p {
  color: #b8c1cf
}

.feature-icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: #f3f5f8;
  display: grid;
  place-items: center;
  font-size: 20px
}

.featured .feature-icon {
  background: #263957
}

.meta-demo {
  background: #fff;
  color: var(--ink);
  padding: 17px;
  border-radius: 16px;
  margin-top: 22px
}

.meta-demo>b {
  display: block;
  margin-bottom: 12px
}

.meta-demo div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px
}

.meta-demo span {
  color: var(--muted)
}

.section-dark {
  background: var(--navy);
  color: #fff
}

.security-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  align-items: center
}

.security-grid h2 {
  font-size: 48px;
  margin: 12px 0
}

.security-grid p {
  color: #b5bfce;
  line-height: 1.7;
  font-size: 17px
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 25px 0
}

.check-list li {
  padding: 10px 0
}

.check-list li:before {
  content: '✓';
  color: #70d5a5;
  margin-right: 11px
}

.security-card {
  background: #152a49;
  border: 1px solid #29405f;
  border-radius: 24px;
  padding: 35px
}

.shield {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #203958;
  display: grid;
  place-items: center;
  font-size: 30px
}

.security-meter {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #2a4160;
  margin-top: 25px;
  padding-top: 20px
}

.security-meter strong {
  color: #74d7aa
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
  background: #fff
}

.price-card h3 {
  font-size: 42px;
  margin: 13px 0
}

.price-card h3 small {
  font-size: 15px;
  color: var(--muted)
}

.price-card p,
.price-card li {
  color: var(--muted)
}

.price-card ul {
  padding-left: 20px;
  min-height: 125px
}

.price-card .btn {
  width: 100%
}

.price-featured {
  background: var(--navy);
  color: #fff;
  transform: scale(1.04);
  position: relative
}

.price-featured p,
.price-featured li,
.price-featured h3 small {
  color: #bcc5d2
}

.popular {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--gold);
  color: #2f210a;
  border-radius: 12px;
  padding: 7px 11px;
  font-size: 11px
}

.final-cta {
  background: linear-gradient(135deg, #0c1b34, #162d4f);
  color: #fff;
  padding: 68px 0
}

.final-cta .container {
  display: flex;
  justify-content: space-between;
  align-items: center
}

.final-cta h2 {
  font-size: 40px;
  margin: 8px 0
}

.site-footer {
  padding: 60px 0 20px;
  border-top: 1px solid var(--line)
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px
}

.footer-grid>div {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.footer-grid p,
.footer-grid a {
  color: var(--muted)
}

.footer-brand {
  margin-bottom: 5px
}

.footer-brand img {
  filter: brightness(0) invert(1)
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 20px;
  color: #8a92a0;
  font-size: 13px
}

/* Auth */
.auth-page .site-footer {
  display: none
}

.auth-wrap {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  background: #fbfaf7;
  padding: 40px
}

.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 38px;
  box-shadow: var(--shadow)
}

.auth-brand {
  justify-content: center;
  margin-bottom: 25px
}

.auth-card h1 {
  text-align: center;
  margin-bottom: 8px
}

.auth-card>p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px
}

.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 700;
  margin-bottom: 16px
}

.auth-card input,
.form-grid input,
.form-grid select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: #fff
}

.auth-card .auth-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45
}

.auth-card .auth-checkbox input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  padding: 0;
  flex: 0 0 auto
}

.auth-divider {
  text-align: center;
  color: #949ba7;
  margin: 18px 0;
  position: relative
}

.auth-card>small {
  display: block;
  text-align: center;
  color: #929aa7;
  margin-top: 22px
}

/* App */
.app-body {
  background: var(--bg);
  overflow: hidden
}

.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: 100vh
}

.sidebar {
  background: #0b1830;
  color: #fff;
  padding: 22px 15px;
  display: flex;
  flex-direction: column
}

.sidebar-brand {
  padding: 0 11px 23px
}

.sidebar-brand img {
  width: 190px;
  height: 76px;
  filter: brightness(0) invert(1)
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.side-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 11px;
  color: #aeb9c9;
  font-weight: 600
}

.side-link:hover,
.side-link.active {
  background: #182b49;
  color: #fff
}

.side-link>span:first-child {
  width: 23px;
  text-align: center
}

.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #66758b;
  padding: 22px 13px 7px
}

.sidebar-foot {
  margin-top: auto
}

.profile-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  background: #132744;
  border-radius: 14px
}

.profile-chip span:nth-child(2) {
  display: flex;
  flex-direction: column
}

.profile-chip small {
  color: #8593a7
}

.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e1b66d;
  color: #1c2330;
  font-weight: 800
}

.avatar.large {
  width: 68px;
  height: 68px;
  font-size: 20px
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column
}

.app-topbar {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  gap: 20px
}

.global-search {
  width: min(560px, 55vw);
  background: #f3f5f7;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px
}

.global-search input {
  border: 0;
  background: transparent;
  outline: 0;
  padding: 11px;
  width: 100%
}

.global-search kbd {
  font-size: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 6px;
  border-radius: 6px
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer
}

.mobile-only {
  display: none
}

.app-content {
  padding: 30px 34px 60px;
  overflow: auto;
  height: calc(100vh - 72px)
}

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

.page-head h1 {
  font-size: 34px;
  letter-spacing: -.025em;
  margin: 5px 0
}

.page-head p {
  margin: 0;
  color: var(--muted)
}

.page-actions {
  display: flex;
  gap: 10px
}

.focus-card {
  background: linear-gradient(135deg, #0d1d38, #1b3559);
  color: #fff;
  border-radius: 20px;
  padding: 23px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px
}

.focus-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #274465;
  display: grid;
  place-items: center;
  font-size: 20px
}

.focus-card span {
  color: #d8b879;
  font-size: 12px;
  font-weight: 700
}

.focus-card h3 {
  margin: 4px 0
}

.focus-card p {
  color: #bac4d2;
  margin: 0
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 18px
}

.stat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: .2s
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 13%, white);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 20px
}

.stat-card>div:nth-child(2) {
  display: flex;
  flex-direction: column
}

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

.stat-card strong {
  font-size: 25px
}

.stat-card small {
  color: var(--muted)
}

.card-arrow {
  margin-left: auto;
  color: #98a0ad
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px
}

.panel.span-2 {
  grid-column: auto
}

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

.panel-head h2 {
  font-size: 18px;
  margin: 0 0 3px
}

.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0
}

.panel-head>a {
  font-size: 12px;
  color: #536fae;
  font-weight: 700
}

.timeline-list {
  display: flex;
  flex-direction: column
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line)
}

.timeline-item:first-child {
  border-top: 0
}

.timeline-dot {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center
}

.timeline-dot.blue {
  background: #edf2ff;
  color: #547deb
}

.timeline-dot.green {
  background: #eaf8f0;
  color: #37a96e
}

.timeline-dot.gold {
  background: #fff5e2;
  color: #bc812d
}

.timeline-dot.purple {
  background: #f2edff;
  color: #866ee3
}

.timeline-item div {
  display: flex;
  flex-direction: column
}

.timeline-item small {
  color: var(--muted)
}

.timeline-item em {
  font-size: 11px;
  font-style: normal;
  background: #fff2dd;
  color: #a36d21;
  border-radius: 9px;
  padding: 5px 8px
}

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

.cost-total strong {
  font-size: 30px
}

.positive {
  font-size: 11px;
  color: #278c5b;
  background: #e9f8f0;
  padding: 5px 7px;
  border-radius: 8px
}

.bar-chart {
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 18px;
  border-bottom: 1px solid var(--line)
}

.bar-chart i {
  display: block;
  background: #dfe4ed;
  flex: 1;
  border-radius: 6px 6px 0 0
}

.bar-chart i.current {
  background: var(--navy)
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #939aa6;
  font-size: 10px;
  margin-top: 7px
}

.document-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--line)
}

.doc-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800
}

.doc-icon.red {
  background: #fff0f0;
  color: #d94f4f
}

.doc-icon.green {
  background: #eaf8f0;
  color: #289566
}

.doc-icon.blue {
  background: #edf2ff;
  color: #4c73d6
}

.doc-icon.gold {
  background: #fff4e0;
  color: #b67925
}

.doc-icon.purple {
  background: #f2edff;
  color: #735bd0
}

.doc-copy {
  display: flex;
  flex-direction: column
}

.doc-copy span,
.document-row time {
  color: var(--muted);
  font-size: 12px
}

.row-menu {
  border: 0;
  background: transparent;
  font-size: 18px
}

.beta {
  font-size: 10px;
  font-weight: 800;
  background: #eae4ff;
  color: #6f58ce;
  padding: 5px 7px;
  border-radius: 7px
}

.suggestion-chips {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.suggestion-chips button {
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  border-radius: 12px;
  padding: 11px;
  cursor: pointer
}

.ai-input {
  margin-top: 14px;
  background: #f2f4f7;
  border-radius: 12px;
  padding: 11px 13px;
  color: #858e9c;
  display: flex;
  justify-content: space-between
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px
}

.search-field {
  min-width: 310px;
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px
}

.search-field input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px;
  width: 100%
}

.filter-pill,
.tabs button,
.compare-tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 10px 13px;
  cursor: pointer
}

.filter-pill.active,
.tabs button.active,
.compare-tabs button.active {
  background: var(--navy);
  color: #fff
}

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

.entity-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  transition: .2s
}

.entity-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px)
}

.entity-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #f0f3f7;
  display: grid;
  place-items: center;
  font-size: 22px
}

.entity-copy {
  display: flex;
  flex-direction: column
}

.entity-copy strong {
  font-size: 16px
}

.entity-copy span,
.entity-copy small {
  color: var(--muted)
}

.soft-badge {
  font-size: 11px;
  background: #f1f3f6;
  border-radius: 9px;
  padding: 6px 8px
}

.doc-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px
}

.filter-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  align-self: start
}

.filter-panel h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #989faa;
  margin: 15px 8px 7px
}

.filter-panel a {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 9px;
  color: #667082
}

.filter-panel a.active {
  background: #edf1f7;
  color: var(--ink);
  font-weight: 700
}

.filter-bar.compact {
  margin-bottom: 5px
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 25, .55);
  z-index: 100;
  place-items: center
}

.modal-backdrop.open {
  display: grid
}

.upload-modal {
  width: min(510px, calc(100% - 30px));
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  position: relative
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 0;
  background: transparent;
  font-size: 25px
}

.drop-zone {
  border: 1.5px dashed #c9ced8;
  border-radius: 15px;
  padding: 45px;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #6d7787;
  margin: 20px 0
}

.drop-zone b {
  color: var(--ink)
}

.ai-processing {
  background: #f2f0ff;
  border-radius: 14px;
  padding: 15px;
  display: flex;
  gap: 12px;
  margin-bottom: 17px
}

.ai-processing div {
  display: flex;
  flex-direction: column
}

.ai-processing small {
  color: #6f7484
}

.tabs,
.compare-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px
}

.reminder-group h3 {
  font-size: 14px;
  color: #727c8d
}

.reminder-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 15px 0
}

.reminder-card div {
  display: flex;
  flex-direction: column
}

.reminder-card small {
  color: var(--muted)
}

.reminder-card em {
  font-style: normal;
  font-size: 11px;
  background: #fff0d6;
  color: #9d681e;
  padding: 6px 8px;
  border-radius: 9px
}

.reminder-card button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px
}

.compare-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px
}

.current-contract {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f4f6f9;
  border-radius: 15px;
  margin-bottom: 24px
}

.current-contract>span {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 11px
}

.company-logo {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: #eaf0ff;
  color: #345eb7;
  display: grid;
  place-items: center;
  font-weight: 800
}

.offer-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 17px;
  margin-top: 12px
}

.offer-card.best {
  border-color: #9ecdb8;
  background: #fbfffd
}

.offer-label {
  position: absolute;
  top: -10px;
  right: 15px;
  background: #3dae74;
  color: #fff;
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 7px
}

.offer-card h3,
.offer-card p {
  margin: 0
}

.offer-card p {
  color: var(--muted)
}

.offer-card span {
  font-size: 12px;
  color: #a66b18
}

.offer-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px
}

.offer-price em {
  font-size: 11px;
  color: #268d5c;
  font-style: normal
}

.compare-summary {
  text-align: center
}

.score-ring {
  width: 135px;
  height: 135px;
  border-radius: 50%;
  margin: 20px auto;
  background: conic-gradient(#3eaf76 0 92%, #e8ebef 92%);
  display: grid;
  place-items: center;
  position: relative;
  font-size: 32px;
  font-weight: 800
}

.score-ring:before {
  content: '';
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 50%
}

.score-ring>*,
.score-ring {
  z-index: 0
}

.score-ring small {
  display: block;
  font-size: 10px
}

.check-list.dark {
  text-align: left
}

.check-list.dark li:before {
  color: #39a975
}

.ai-page {
  max-width: 850px;
  margin: 15px auto
}

.ai-hero {
  text-align: center
}

.ai-orb {
  width: 65px;
  height: 65px;
  border-radius: 20px;
  background: linear-gradient(145deg, #162c50, #7364d9);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-size: 26px
}

.ai-hero h1 {
  font-size: 40px;
  margin: 10px
}

.ai-hero p {
  color: var(--muted)
}

.ai-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 30px 0
}

.ai-suggestions button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  text-align: left
}

.chat-demo {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.chat-user {
  align-self: flex-end;
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  border-radius: 16px 16px 4px 16px
}

.chat-ai {
  align-self: flex-start;
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 16px 16px 16px 4px;
  max-width: 720px
}

.chat-ai>span {
  color: #725fd0
}

.chat-ai p {
  margin-top: 0
}

.chat-ai a {
  color: #4c6fbd;
  font-weight: 700
}

.chat-input {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  display: flex
}

.chat-input input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 10px
}

.chat-input button {
  border: 0;
  background: var(--navy);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px
}

.ai-disclaimer {
  display: block;
  text-align: center;
  color: #969eaa;
  margin-top: 11px
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.settings-nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px;
  border-radius: 10px
}

.settings-nav button.active {
  background: #fff;
  font-weight: 700
}

.settings-panel {
  padding: 26px
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0 25px
}

.profile-header div {
  flex: 1
}

.profile-header h3,
.profile-header p {
  margin: 0
}

.profile-header p {
  color: var(--muted)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 700
}

.settings-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line)
}

.setting-row div {
  display: flex;
  flex-direction: column
}

.setting-row small {
  color: var(--muted)
}

.switch input {
  display: none
}

.switch span {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 20px;
  background: #d8dce3;
  position: relative
}

.switch span:before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: .2s
}

.switch input:checked+span {
  background: #3eaf75
}

.switch input:checked+span:before {
  left: 23px
}

.form-actions {
  text-align: right;
  margin-top: 20px
}

.detail-hero {
  border-radius: 22px;
  padding: 35px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 16px
}

.property-hero {
  background: linear-gradient(90deg, rgba(7, 17, 32, .92), rgba(7, 17, 32, .4)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80') center/cover
}

.detail-hero h1 {
  font-size: 38px;
  margin: 5px 0
}

.detail-hero p {
  color: #d3dae5
}

.back-link {
  display: block;
  color: #6f7c90;
  margin-bottom: 12px
}

.detail-hero .back-link {
  color: #fff
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px
}

.detail-stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 17px;
  display: flex;
  flex-direction: column
}

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

.detail-stats strong {
  font-size: 19px
}

.property-timeline>div {
  display: grid;
  grid-template-columns: 60px 15px 1fr;
  gap: 10px;
  min-height: 85px
}

.property-timeline time {
  color: var(--muted)
}

.property-timeline span {
  width: 10px;
  height: 10px;
  background: #4dad7b;
  border-radius: 50%;
  position: relative
}

.property-timeline span:after {
  content: '';
  position: absolute;
  width: 1px;
  background: #dbe0e7;
  top: 10px;
  bottom: -75px;
  left: 4px
}

.property-timeline>div:last-child span:after {
  display: none
}

.property-timeline article b {
  display: block
}

.property-timeline article p {
  color: var(--muted);
  margin-top: 5px
}

.metadata-list div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  padding: 13px 0
}

.metadata-list dt {
  color: var(--muted)
}

.metadata-list dd {
  font-weight: 700
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #10213c;
  color: #fff;
  border-radius: 13px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  z-index: 200;
  animation: slideIn .2s ease
}

@keyframes slideIn {
  from {
    transform: translateY(15px);
    opacity: 0
  }
}

@media(max-width:1000px) {
  .hero-grid {
    grid-template-columns: 1fr
  }

  .hero-copy {
    text-align: center
  }

  .hero-copy>p {
    margin: auto
  }

  .hero-actions,
  .trust-row {
    justify-content: center
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr
  }

  .feature-card.featured {
    grid-row: auto;
    grid-column: span 2
  }

  .security-grid {
    grid-template-columns: 1fr
  }

  .pricing-grid {
    grid-template-columns: 1fr
  }

  .price-featured {
    transform: none
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    width: 250px;
    z-index: 100;
    transition: .2s
  }

  .sidebar.open {
    left: 0
  }

  .app-shell {
    grid-template-columns: 1fr
  }

  .mobile-only {
    display: block
  }

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

  .compare-layout {
    grid-template-columns: 1fr
  }

  .app-topbar {
    justify-content: flex-start
  }

  .global-search {
    width: auto;
    flex: 1
  }
}

@media(max-width:720px) {
  .header-actions {
    display: none
  }

  .nav-toggle {
    display: block;
    margin-left: auto
  }

  .top-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
    flex-direction: column
  }

  .top-nav.open {
    display: flex
  }

  .hero {
    padding-top: 55px
  }

  .hero h1 {
    font-size: 45px
  }

  .hero-visual {
    transform: scale(.85);
    margin: -30px 0
  }

  .logo-strip .container {
    overflow: auto;
    gap: 30px;
    justify-content: flex-start
  }

  .feature-grid {
    grid-template-columns: 1fr
  }

  .feature-card.featured {
    grid-column: auto
  }

  .section {
    padding: 70px 0
  }

  .section-heading h2,
  .security-grid h2 {
    font-size: 34px
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }

  .final-cta .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px
  }

  .app-content {
    padding: 22px 16px 50px
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column
  }

  .page-actions {
    width: 100%;
    overflow: auto
  }

  .focus-card {
    grid-template-columns: auto 1fr
  }

  .focus-card .btn {
    grid-column: 1/-1
  }

  .stats-grid,
  .dashboard-grid,
  .entity-grid,
  .detail-stats {
    grid-template-columns: 1fr
  }

  .doc-layout,
  .settings-layout {
    grid-template-columns: 1fr
  }

  .filter-panel {
    display: none
  }

  .filter-bar {
    overflow: auto
  }

  .search-field {
    min-width: 250px
  }

  .offer-card {
    grid-template-columns: auto 1fr
  }

  .offer-price {
    grid-column: 1/-1;
    align-items: flex-start
  }

  .ai-suggestions,
  .form-grid {
    grid-template-columns: 1fr
  }

  .footer-grid {
    grid-template-columns: 1fr
  }

  .detail-hero {
    min-height: 300px;
    align-items: flex-start;
    flex-direction: column
  }

  .app-topbar {
    padding: 0 14px
  }

  .global-search kbd {
    display: none
  }
}

/* Samvium demo expansion */
.sidebar {
  overflow: hidden
}

.side-nav {
  overflow-y: auto;
  min-height: 0;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: #314665 transparent
}

.side-nav::-webkit-scrollbar {
  width: 6px
}

.side-nav::-webkit-scrollbar-thumb {
  background: #314665;
  border-radius: 10px
}

.nav-label.first {
  padding-top: 5px
}

.sidebar-foot {
  padding-top: 10px;
  background: #0b1830
}

.global-search {
  cursor: pointer;
  color: #8a93a1
}

.global-search-placeholder {
  flex: 1
}

.icon-link {
  display: grid;
  place-items: center
}

.demo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: #fff8e9;
  border: 1px solid #f2d9a8;
  border-radius: 16px;
  padding: 15px 18px;
  margin-bottom: 20px
}

.demo-banner b {
  display: block
}

.demo-banner span {
  color: #896630;
  font-size: 12px
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px
}

.quick-action {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  min-height: 98px
}

.quick-action:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px)
}

.quick-action strong {
  font-size: 13px
}

.quick-action span {
  color: var(--muted);
  font-size: 11px
}

.section-tabs {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 0 0 18px
}

.section-tabs a,
.section-tabs button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer
}

.section-tabs .active {
  background: var(--navy);
  color: #fff
}

.split-grid {
  display: grid;
  grid-template-columns: 1.45fr .75fr;
  gap: 18px
}

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

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

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 16px
}

.mini-card h3 {
  margin: 0 0 5px;
  font-size: 15px
}

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

.mini-card .metric {
  font-size: 25px;
  font-weight: 800;
  margin: 10px 0 3px
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 700;
  background: #eef1f5
}

.status.good {
  background: #e9f8f0;
  color: #278c5b
}

.status.warn {
  background: #fff2dd;
  color: #a36d21
}

.status.bad {
  background: #fff0f0;
  color: #c24b4b
}

.detail-shell {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px
}

.detail-list {
  display: flex;
  flex-direction: column
}

.detail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 13px 0;
  border-top: 1px solid var(--line)
}

.detail-row:first-child {
  border-top: 0
}

.detail-row small {
  color: var(--muted);
  display: block
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.empty-state {
  text-align: center;
  padding: 45px 20px;
  border: 1px dashed #cbd1da;
  border-radius: 16px;
  background: #fbfcfd
}

.empty-state h3 {
  margin-bottom: 5px
}

.empty-state p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 18px
}

.demo-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  outline: none
}

.demo-form textarea {
  min-height: 90px;
  resize: vertical
}

.demo-form .full {
  grid-column: 1/-1
}

.generic-modal {
  max-height: 90vh;
  overflow: auto
}

.wizard-steps {
  display: flex;
  gap: 8px;
  margin: 15px 0 22px
}

.wizard-step {
  flex: 1;
  height: 5px;
  background: #e8ebef;
  border-radius: 5px
}

.wizard-step.active {
  background: var(--navy)
}

.ai-result {
  border: 1px solid #dcd7f7;
  background: #f7f5ff;
  border-radius: 15px;
  padding: 16px;
  margin: 15px 0
}

.ai-result dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0
}

.ai-result dt {
  color: var(--muted);
  font-size: 11px
}

.ai-result dd {
  margin: 2px 0 0;
  font-weight: 700
}

.vault-hero {
  background: linear-gradient(135deg, #0d1d38, #1d3150);
  color: #fff;
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center
}

.vault-hero p {
  color: #bdc7d4;
  max-width: 650px
}

.security-score {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 9px solid #4fc48a;
  font-size: 24px;
  font-weight: 800
}

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

.cal-head {
  background: #f4f6f8;
  font-weight: 700;
  font-size: 11px;
  padding: 10px;
  text-align: center
}

.cal-day {
  min-height: 105px;
  background: #fff;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 8px;
  font-size: 11px
}

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

.cal-day.muted {
  color: #b6bdc7;
  background: #fbfcfd
}

.cal-event {
  display: block;
  margin-top: 7px;
  border-radius: 7px;
  padding: 5px 6px;
  background: #edf2ff;
  color: #496fc9
}

.cal-event.green {
  background: #eaf8f0;
  color: #278c5b
}

.cal-event.gold {
  background: #fff3df;
  color: #99651c
}

.notification-item,
.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line)
}

.activity-item {
  grid-template-columns: auto minmax(0, 1fr)
}

.notification-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 12px
}

.notification-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700
}

.notification-toolbar select {
  min-width: 145px
}

.notification-item:first-child,
.activity-item:first-child {
  border-top: 0
}

.notification-item.unread {
  background: #fbfdff
}

.notification-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5d82e8;
  margin-top: 6px
}

.notification-item.read .notification-dot {
  background: #d9dee6
}

.notification-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0
}

.notification-copy b,
.notification-copy small {
  display: block
}

.record-relation-context {
  color: var(--ink) !important;
  font-weight: 600
}

.activity-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px
}

.activity-copy b,
.activity-copy small {
  display: block;
  line-height: 1.4
}

.notification-title,
.notification-actions {
  display: flex;
  align-items: center;
  gap: 9px
}

.notification-status {
  border-radius: 999px;
  padding: 2px 7px;
  background: #eaf0ff;
  color: #496fc9;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em
}

.notification-item.read .notification-status {
  background: #f0f2f5;
  color: var(--muted)
}

.notification-actions {
  align-self: center;
  min-width: 230px;
  justify-content: flex-end;
  flex-wrap: nowrap
}

.notification-read-toggle {
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap
}

.notification-read-toggle:hover {
  color: var(--ink)
}

.notification-open {
  min-width: 48px;
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap
}

.notification-item small,
.activity-item small {
  color: var(--muted)
}

@media(max-width:620px) {
  .notification-toolbar {
    align-items: stretch;
    flex-direction: column
  }

  .notification-toolbar label {
    justify-content: space-between
  }

  .notification-item {
    grid-template-columns: auto 1fr
  }

  .notification-actions {
    grid-column: 2;
    justify-content: space-between;
    min-width: 0;
    width: 100%
  }
}

.activity-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf1f7;
  font-size: 11px;
  font-weight: 800
}

.expense-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line)
}

.expense-row:first-child {
  border-top: 0
}

.expense-row small {
  color: var(--muted)
}

.expense-row strong {
  text-align: right
}

.progress {
  height: 8px;
  border-radius: 8px;
  background: #eef1f5;
  overflow: hidden
}

.progress>i {
  display: block;
  height: 100%;
  background: var(--navy)
}

.pet-avatar {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: #f4e6d8;
  display: grid;
  place-items: center;
  font-size: 30px
}

.search-results h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a93a1;
  margin-top: 24px
}

.result-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  margin-bottom: 8px
}

.result-item span:first-child {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f1f3f6;
  display: grid;
  place-items: center
}

.result-item small {
  color: var(--muted)
}

.result-item em {
  font-style: normal;
  color: #6a7484;
  font-size: 11px
}

.local-item {
  animation: slideIn .2s ease
}

.completed {
  opacity: .55
}

.completed b {
  text-decoration: line-through
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px
}

.settings-pane {
  display: none
}

.settings-pane.active {
  display: block
}

@media(max-width:1200px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr)
  }

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

@media(max-width:900px) {

  .split-grid,
  .detail-shell {
    grid-template-columns: 1fr
  }

  .three-grid {
    grid-template-columns: 1fr 1fr
  }

  .calendar-grid {
    min-width: 760px
  }

  .calendar-wrap {
    overflow: auto
  }
}

@media(max-width:620px) {

  .quick-grid,
  .three-grid,
  .four-grid,
  .demo-form {
    grid-template-columns: 1fr
  }

  .demo-form .full {
    grid-column: auto
  }

  .vault-hero {
    align-items: flex-start;
    flex-direction: column
  }

  .ai-result dl {
    grid-template-columns: 1fr
  }

  .quick-action {
    min-height: auto
  }

  .reminder-card {
    grid-template-columns: auto 1fr auto
  }

  .reminder-card em {
    display: none
  }

  .expense-row {
    grid-template-columns: 1fr auto
  }

  .expense-row .status {
    grid-column: 1/-1;
    width: max-content
  }
}

.settings-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700
}

.settings-nav-link:hover {
  background: #fff
}

.settings-nav-link span {
  color: #8a93a1
}

.settings-nav-link.danger-link {
  margin-top: 5px;
  border: 1px solid #f0d4d4;
  color: #a23f3f;
  background: #fff8f8
}

.redact-workspace {
  max-width: 1050px
}

.redact-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px
}

.redact-intro h2,
.redact-intro p {
  margin: 0
}

.redact-intro p {
  color: var(--muted);
  margin-top: 5px
}

.redact-file-button input {
  display: none
}

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

.redact-page {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px
}

.redact-preview {
  position: relative;
  align-self: start
}

.redact-preview img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--line)
}

.redact-box {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 2px solid #d94f4f;
  background: rgba(217, 79, 79, .18);
  pointer-events: none
}

.redact-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 7px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px
}

.redact-choice input {
  grid-row: 1/3
}

.redact-choice small {
  color: var(--muted)
}

.redact-complete {
  margin-top: 24px;
  padding: 22px;
  border-radius: 16px;
  background: #eaf8f0;
  border: 1px solid #c8ead8
}

.redact-complete h2,
.redact-complete p {
  margin: 0
}

.redact-complete p {
  margin: 5px 0 16px;
  color: #397257
}

@media(max-width:900px) {
  .redact-pages {
    grid-template-columns: 1fr
  }
}

@media(max-width:620px) {

  .redact-intro,
  .redact-page {
    display: flex;
    flex-direction: column;
    align-items: stretch
  }
}

.redact-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px
}

.redact-explainer article {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff
}

.redact-explainer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.redact-explainer b {
  display: block;
  margin-top: 5px
}

.redact-explainer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45
}

.vault-move-existing {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid #dbc8a5;
  border-radius: 13px;
  background: #fffaf1
}

.vault-move-existing>div {
  display: flex;
  flex-direction: column
}

.vault-move-existing small {
  margin-top: 3px;
  color: var(--muted)
}

.vault-move-existing select {
  height: 42px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff
}

@media(max-width:850px) {
  .vault-move-existing {
    grid-template-columns: 1fr
  }

  .redact-explainer {
    grid-template-columns: 1fr
  }
}

.property-hero {
  background-image: linear-gradient(90deg, rgba(7, 17, 32, .92), rgba(7, 17, 32, .4)), url('/images/property-hero.jpg')
}

.search-kind {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 36px 11px 13px;
  color: var(--ink);
  min-width: 170px
}

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

.search-pagination[hidden] {
  display: none
}

.search-pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1
}

.search-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed
}

@media(max-width:720px) {
  .search-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    overflow: visible
  }

  .search-toolbar .search-field {
    min-width: 100%;
    width: 100%
  }

  .search-kind {
    flex: 1;
    min-width: 0
  }

  .search-pagination {
    justify-content: space-between
  }

  .search-pagination span {
    text-align: center
  }
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.search-submit .app-icon {
  width: 17px;
  height: 17px
}

.search-field>.app-icon {
  flex: 0 0 auto;
  color: #6f7b8c
}

.result-item>span:first-child {
  font-size: 0;
  position: relative
}

.result-item>span:first-child:before {
  content: '';
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: absolute;
  left: 10px;
  top: 9px
}

.result-item>span:first-child:after {
  content: '';
  width: 7px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
  left: 22px;
  top: 23px;
  transform: rotate(45deg);
  transform-origin: left center
}

.example-data-note {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid #ead7ae;
  border-radius: 12px;
  background: #fff8e9;
  color: #765a2d;
  font-size: 12px
}

.example-data-note b {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 7px;
  background: #f0d79f;
  color: #5f461d
}

.example-data-note span {
  color: #806842
}

.cost-stats .stat-card {
  align-items: stretch
}

.cost-stats .stat-card>div {
  width: 100%;
  min-height: 112px;
  display: flex;
  flex-direction: column
}

.cost-stats .stat-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink)
}

.cost-stats .stat-card small {
  display: block;
  margin-top: 5px;
  line-height: 1.4
}

.cost-stats .stat-card strong {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  font-size: 28px;
  line-height: 1;
  color: var(--navy)
}

.quick-action {
  align-items: flex-start;
  text-align: left
}

.quick-action>b {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f1f4f8;
  color: var(--navy)
}

.quick-action>b .app-icon {
  width: 19px;
  height: 19px
}

.stat-icon .app-icon {
  width: 21px;
  height: 21px
}

.topbar-search-submit {
  border: 0;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  padding: 7px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer
}

.topbar-search-submit:hover {
  background: #1b3152
}

.app-body .page-head h1 {
  font-size: 30px;
  line-height: 1.12
}

.app-body .ai-hero h1 {
  font-size: 34px;
  line-height: 1.15
}

.app-body .detail-hero h1 {
  font-size: 32px;
  line-height: 1.15
}

.app-body .stat-card strong {
  font-size: 22px
}

.app-body .cost-stats .stat-card strong {
  font-size: 24px
}

.app-body .score-ring {
  font-size: 27px
}

@media(max-width:720px) {
  .app-body .page-head h1 {
    font-size: 27px
  }

  .app-body .ai-hero h1,
  .app-body .detail-hero h1 {
    font-size: 29px
  }
}

[data-entity-help] {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px
}

.relation-create-row {
  align-self: end
}

.relation-create-panel {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fb
}

.relation-create-panel[hidden] {
  display: none
}

.relation-create-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700
}

.relation-create-panel input,
.relation-create-panel select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff
}

.relation-create-panel .form-actions {
  margin-top: 2px
}

@media(max-width:720px) {
  .relation-create-row {
    align-self: auto
  }

  .relation-create-panel {
    grid-template-columns: 1fr
  }
}

.additional-relations {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.relation-disclosure {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 13px 2px;
  cursor: pointer;
  color: var(--ink)
}

.relation-disclosure span {
  font-weight: 700
}

.relation-disclosure small {
  grid-column: 1;
  color: var(--muted)
}

.relation-disclosure b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  font-size: 20px
}

.additional-relations-panel {
  padding: 0 0 14px
}

.additional-relations-panel[hidden] {
  display: none
}

.relation-search-row {
  display: flex;
  gap: 8px
}

.relation-search-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px
}

.relation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px
}

.relation-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700
}

.relation-chip small {
  color: var(--muted);
  font-weight: 500
}

.relation-chip button {
  border: 0;
  background: transparent;
  color: #697486;
  cursor: pointer;
  font-size: 16px;
  line-height: 1
}

.document-type-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f9fb
}

.document-fields-intro {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 3px
}

.document-fields-intro small {
  color: var(--muted);
  font-weight: 400
}

.document-type-fields label {
  display: block;
  font-size: 12px;
  font-weight: 700
}

.document-type-fields input {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink)
}

.required-mark {
  color: #b33d49
}

.optional-mark {
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500
}

.custom-metadata {
  border-bottom: 1px solid var(--line)
}

.custom-metadata-panel {
  padding: 0 0 14px
}

.custom-metadata-panel[hidden] {
  display: none
}

.custom-metadata-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px
}

.custom-metadata-labels {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(180px, 1.1fr) 36px;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em
}

.custom-metadata-row {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(180px, 1.1fr) 36px;
  gap: 8px;
  margin-bottom: 8px
}

.custom-metadata-row:has([data-custom-key]:not([hidden])) {
  grid-template-columns: minmax(160px, .8fr) minmax(140px, .7fr) minmax(180px, 1fr) 36px
}

.custom-metadata-row input,
.custom-metadata-row select {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff
}

.custom-metadata-row button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #8d5760;
  font-size: 18px;
  cursor: pointer
}

.custom-metadata-panel>.btn {
  margin-top: 4px
}

.metadata-heading {
  margin: 14px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px
}

.demo-form input[readonly] {
  background: #f5f6f8;
  color: var(--muted)
}

@media(max-width:720px) {
  .document-type-fields {
    grid-template-columns: 1fr
  }

  .custom-metadata-labels {
    display: none
  }

  .custom-metadata-row,
  .custom-metadata-row:has([data-custom-key]:not([hidden])) {
    grid-template-columns: 1fr 44px
  }

  .custom-metadata-row select,
  .custom-metadata-row [data-custom-key] {
    grid-column: 1/-1
  }

  .custom-metadata-row button {
    grid-column: 2;
    grid-row: auto
  }
}

.form-relations {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px
}

.form-relations summary {
  cursor: pointer;
  font-weight: 700
}

.form-relations summary small,
.form-relations>small,
.form-relations p {
  color: var(--muted);
  font-weight: 400
}

.form-relations select {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  background: #fff
}

.record-relations {
  margin-top: 16px
}

.record-documents-panel {
  margin-top: 16px
}

.record-documents-panel .panel-head h2 span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  place-items: center;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--muted);
  font-size: 12px
}

.linked-document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px
}

.linked-document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink)
}

.linked-document-card:hover {
  border-color: #b9c8dc;
  background: #f8fafc
}

.linked-document-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  color: var(--ink)
}

.linked-document-card b,
.linked-document-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.linked-document-card small {
  color: var(--muted);
  font-size: 12px
}

.linked-document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px
}

.linked-document-actions .btn {
  padding: 8px 10px;
  font-size: 11px;
  white-space: nowrap
}

@media(max-width:700px) {
  .linked-document-list {
    grid-template-columns: 1fr
  }

  .linked-document-card {
    grid-template-columns: 1fr
  }

  .linked-document-actions {
    justify-content: flex-start
  }
}

.relation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.relation-link {
  padding: 9px 12px;
  border-radius: 10px;
  background: #edf2f7;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700
}

.relation-link small {
  color: var(--muted);
  font-weight: 500
}

.record-scope-field {
  padding: 14px;
  border: 1px solid #dce4f0;
  border-radius: 13px;
  background: #f7f9fc
}

.record-scope-field select {
  background: #fff
}

.record-scope-field small {
  color: var(--muted);
  font-weight: 400
}

.family-group-owner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f9fb
}

.family-group-owner span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em
}

.family-group-owner b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center
}

.family-group-owner small {
  color: var(--muted)
}

.record-card-linked {
  position: relative
}

.record-card-linked>a {
  display: block;
  color: inherit
}

.record-card-linked .record-delete {
  position: absolute;
  right: 12px;
  top: 12px
}

.relation-group+.relation-group {
  margin-top: 18px
}

.relation-group h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted)
}

.relation-group h3 span {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  border-radius: 999px;
  background: #edf2ff;
  color: #496fc9;
  font-size: 10px;
  letter-spacing: 0
}

.relation-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px
}

.relation-link:hover {
  background: #e2eaf3
}

.relation-link small {
  display: block
}

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

.relation-view-switch {
  display: flex;
  padding: 3px;
  background: #f1f3f6;
  border-radius: 10px
}

.relation-view-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  cursor: pointer
}

.relation-view-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(17, 31, 51, .12)
}

.relation-tree-view[hidden] {
  display: none !important
}

.relation-tree-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #cbd7e6;
  background: #f7faff;
  border-radius: 14px
}

.relation-tree-summary>span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: #fff
}

.relation-tree-summary>div {
  display: flex;
  flex-direction: column
}

.relation-tree-summary small {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em
}

.relation-tree-summary p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px
}

.record-relation-tree,
.record-relation-tree ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.record-relation-tree {
  margin: 0 0 0 21px;
  padding: 18px 0 0 24px;
  border-left: 2px solid #d9e1eb
}

.relation-tree-group {
  position: relative;
  margin-bottom: 13px
}

.relation-tree-group>details>summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em
}

.relation-tree-group>details>summary:before {
  content: "";
  position: absolute;
  width: 25px;
  height: 2px;
  right: 100%;
  top: 50%;
  background: #d9e1eb
}

.relation-tree-group>details>summary::marker {
  color: #8995a5
}

.relation-tree-group>details>summary b {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 7px;
  background: #edf2f7;
  font-size: 11px
}

.relation-tree-group>details>ul {
  margin-left: 16px;
  padding: 8px 0 0 22px;
  border-left: 1px solid #d9e1eb
}

.relation-tree-item,
.relation-tree-shared>li {
  position: relative;
  padding: 5px 0 5px 15px
}

.relation-tree-line {
  position: absolute;
  left: -22px;
  top: 25px;
  width: 36px;
  height: 1px;
  background: #d9e1eb
}

.relation-tree-node {
  display: flex;
  align-items: center;
  gap: 8px
}

.relation-tree-node>a,
.relation-tree-shared a {
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink)
}

.relation-tree-node>a:hover,
.relation-tree-shared a:hover {
  border-color: #aebdd0;
  background: #f9fbfd
}

.relation-tree-node small,
.relation-tree-shared small {
  color: var(--muted)
}

.relation-tree-node>em {
  font-size: 10px;
  font-style: normal;
  color: #5d6f88;
  background: #edf3fa;
  padding: 5px 7px;
  border-radius: 7px
}

.relation-tree-shared {
  margin: 4px 0 2px 27px !important;
  padding-left: 22px !important;
  border-left: 1px dashed #cbd5e1
}

.relation-tree-shared .relation-tree-line {
  border-top: 1px dashed #cbd5e1;
  background: transparent
}

.relation-tree-shared a {
  min-width: 175px;
  background: #fafbfd
}

.relation-tree-shared a em {
  font-size: 10px;
  font-style: normal;
  color: #6d7888
}

@media(max-width:700px) {
  .record-relations .panel-head {
    align-items: flex-start;
    flex-direction: column
  }

  .relation-panel-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap
  }

  .relation-tree-summary {
    align-items: flex-start
  }

  .relation-tree-summary p {
    line-height: 1.45
  }

  .record-relation-tree {
    margin-left: 10px;
    padding-left: 16px
  }

  .relation-tree-group>details>ul {
    margin-left: 8px;
    padding-left: 13px
  }

  .relation-tree-node {
    align-items: flex-start;
    flex-direction: column
  }

  .relation-tree-node>a,
  .relation-tree-shared a {
    min-width: 0;
    width: 100%
  }

  .relation-tree-shared {
    margin-left: 10px !important;
    padding-left: 13px !important
  }
}

.document-row:has(.document-details-link) {
  grid-template-columns: minmax(0, 1fr) auto auto
}

.document-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px
}

.document-details-link {
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 10px
}

.document-file-link {
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 10px
}

@media(max-width:720px) {
  .document-row:has(.document-details-link) {
    grid-template-columns: minmax(0, 1fr) auto
  }

  .document-row:has(.document-details-link) time {
    display: none
  }

  .document-row:has(.document-details-link) .document-row-actions {
    grid-column: 1/-1;
    justify-content: flex-start
  }
}

.timeline-item>a,
.reminder-card>a,
.expense-row>a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: inherit;
  min-width: 0
}

.timeline-item>a:hover b,
.reminder-card>a:hover b,
.expense-row>a:hover b,
.dashboard-document-link:hover b {
  color: #365f9f
}

.dashboard-document-link {
  color: inherit
}

.auto-list-search {
  margin: 0 0 14px
}

.auto-list-search .search-field {
  max-width: none;
  width: 100%
}

.panel>.filter-bar {
  flex-wrap: wrap
}

.panel>.filter-bar .search-field {
  flex: 1 0 100%;
  width: 100%;
  max-width: none
}

/* Supabase auth/waitlist states */
.auth-message {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f3ed;
  color: var(--text);
  font-size: .92rem
}

.auth-message[data-type="error"] {
  background: #fff0ef;
  color: #8b2f2a
}

.auth-message[data-type="success"] {
  background: #edf8f1;
  color: #24603b
}

.auth-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  text-align: center;
  font-size: .9rem
}

.auth-links a {
  color: var(--muted);
  text-decoration: none
}

.auth-links a:hover {
  color: var(--text)
}

.auth-card>.eyebrow {
  display: block;
  margin-top: 8px;
  text-align: center
}

.auth-card .auth-brand {
  margin-bottom: 34px
}

.auth-links a strong {
  color: var(--ink);
  font-weight: 800
}

.auth-links a:hover strong {
  color: var(--navy)
}

button:disabled {
  opacity: .58;
  cursor: not-allowed
}

/* Connected document upload */
.drop-zone {
  gap: 10px;
  align-items: center;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s
}

.drop-zone.dragging {
  border-color: #5685f5;
  background: #f2f6ff;
  transform: scale(1.005)
}

.drop-zone:focus-visible {
  outline: 3px solid rgba(86, 133, 245, .25);
  outline-offset: 3px
}

.drop-zone .btn {
  margin-top: 8px
}

.selected-file {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  margin: 14px 0
}

.selected-file[hidden] {
  display: none
}

.selected-file>div {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.selected-file b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.selected-file small {
  color: var(--muted)
}

.document-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  background: #edf2ff;
  color: #4c73d6
}

@media(max-width:620px) {
  .drop-zone {
    padding: 30px 18px
  }

  .selected-file {
    grid-template-columns: auto 1fr
  }

  .selected-file .btn {
    grid-column: 1/-1
  }
}

/* Unified application icons and top search */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden
}

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

.app-icon use[href="#icon-dashboard"],
.app-icon use[href="#icon-sparkles"] {
  fill: currentColor;
  stroke: none
}

.side-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #8290a5;
  transition: .18s
}

.side-link {
  padding: 8px 10px;
  gap: 10px;
  border-radius: 12px
}

.side-link:hover .side-icon,
.side-link.active .side-icon {
  color: #fff;
  background: rgba(255, 255, 255, .09)
}

.side-link.active {
  box-shadow: inset 3px 0 0 var(--gold)
}

.side-link .app-icon {
  width: 18px;
  height: 18px
}

.global-search {
  height: 44px;
  width: min(620px, 58vw);
  background: #f7f8fa;
  border: 1px solid #dfe3e9;
  border-radius: 14px;
  padding: 0 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: .18s
}

.global-search:focus-within {
  background: #fff;
  border-color: #94a9d8;
  box-shadow: 0 0 0 4px rgba(86, 127, 240, .1)
}

.global-search .app-icon {
  color: #7a8494;
  flex: 0 0 auto
}

.global-search input {
  font-size: 14px;
  color: var(--ink)
}

.global-search input::placeholder {
  color: #929aa7
}

.icon-btn.icon-link {
  display: grid;
  place-items: center;
  color: #596579
}

.icon-btn.icon-link:hover {
  background: #f3f5f8;
  color: var(--ink)
}

.icon-btn .app-icon {
  width: 19px;
  height: 19px;
  margin: auto
}

@media(max-width:720px) {
  .global-search {
    width: auto
  }

  .global-search input {
    min-width: 0
  }

  .topbar-actions {
    gap: 5px
  }
}

/* Collapsible primary navigation */
.nav-group {
  margin-bottom: 7px
}

.nav-group-toggle {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: #9ca9ba;
  padding: 9px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s
}

.nav-group-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .055)
}

.nav-chevron {
  font-size: 15px;
  line-height: 1;
  transition: transform .2s ease;
  color: #607087
}

.nav-group.open .nav-group-toggle {
  color: #f0d4a1;
  background: rgba(212, 168, 93, .1);
  border-color: rgba(212, 168, 93, .16)
}

.nav-group.open .nav-chevron {
  transform: rotate(180deg);
  color: var(--gold)
}

.nav-submenu {
  display: grid;
  gap: 3px;
  overflow: hidden
}

.nav-submenu .side-link {
  font-size: 12px;
  line-height: 1.25
}

.nav-group.open .nav-submenu {
  padding-top: 5px
}

.nav-submenu[hidden] {
  display: none
}

.side-link {
  position: relative;
  overflow: hidden
}

.side-link.active::after {
  display: none
}

.side-link.active {
  box-shadow: inset 3px 0 0 var(--gold);
  padding-right: 10px
}

.record-delete {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: #8d5760;
  cursor: pointer;
  font-size: 18px;
  line-height: 1
}

.record-delete:hover {
  background: #fff0f0;
  border-color: #f0caca
}

.document-open {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  padding: 0
}

.document-open-copy {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.document-open small {
  color: var(--muted)
}

.entity-card.local-item {
  grid-template-columns: 1fr auto
}

.entity-card.local-item .entity-copy {
  min-width: 0
}

.connected-loading,
.connected-empty {
  grid-column: 1/-1;
  padding: 34px 20px;
  text-align: center;
  border: 1px dashed #cbd1da;
  border-radius: 14px;
  color: var(--muted);
  background: #fbfcfd
}

.connected-empty {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.connected-empty b {
  color: var(--ink)
}

.btn.danger {
  color: #a33d48;
  background: #fff0f0
}

.btn.danger:hover {
  background: #ffe4e5
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 14px
}

.calendar-toolbar h2 {
  min-width: 220px;
  text-align: center;
  text-transform: capitalize
}

.demo-form .checkbox-row {
  flex-direction: row;
  align-items: center;
  font-weight: 600
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  padding: 0
}

.mfa-modal {
  text-align: center
}

.mfa-modal>img {
  display: block;
  width: 220px;
  height: 220px;
  margin: 18px auto;
  border: 10px solid #fff;
  border-radius: 12px
}

.mfa-secret {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: #f3f5f8;
  border-radius: 10px;
  margin-bottom: 16px
}

.mfa-secret code {
  word-break: break-all;
  font-size: 12px
}

.mfa-factor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line)
}

.security-mfa-panel>p {
  margin-bottom: 18px;
  color: var(--muted)
}

.security-mfa-actions {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line)
}

.document-preview-modal {
  width: min(1000px, 92vw);
  height: min(780px, 88vh);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  padding: 18px
}

.document-preview-modal>.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92)
}

.image-viewer-controls {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  background: rgba(20, 29, 43, .82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
  backdrop-filter: blur(10px)
}

.image-viewer-controls[hidden] {
  display: none
}

.image-viewer-controls button {
  min-width: 38px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: #fff;
  font-weight: 750;
  cursor: pointer
}

.image-viewer-controls button:hover {
  background: rgba(255, 255, 255, .14)
}

.document-preview-modal [data-preview-content] {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #f3f5f8;
  border-radius: 12px;
  overflow: hidden
}

.document-preview-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff
}

.document-preview-modal img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
  transform-origin: center;
  transition: transform .12s ease;
  user-select: none;
  -webkit-user-drag: none
}

.document-preview-modal img.is-zoomed {
  cursor: grab;
  touch-action: none
}

.document-preview-modal img.is-zoomed:active {
  cursor: grabbing
}

.document-entity-summary {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 8px !important;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  transition: background .18s ease
}

.document-entity-summary:hover {
  background: rgba(240, 235, 225, .75)
}

.document-entity-summary>span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px
}

.document-entity-summary small {
  color: #9a743d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase
}

.document-entity-summary b {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap
}

.document-entity-summary em {
  flex: 0 0 auto;
  color: #7a8492;
  font-size: 9px;
  font-style: normal
}

.document-entity-intro {
  margin: -2px 8px 7px;
  color: #8a93a1;
  font-size: 10px;
  line-height: 1.4
}

.unlinked-help {
  display: block;
  margin-top: 5px;
  color: #687386 !important;
  font-weight: 500 !important
}

.unlinked-help b {
  color: #8a6430
}

.status.unlinked {
  display: inline-flex;
  width: max-content;
  margin-top: 6px;
  background: #f5efe5;
  color: #805f31;
  border: 1px solid #ead9bd;
  font-style: normal
}

.document-unlinked-status {
  flex: 0 0 auto;
  align-self: center;
  margin: 0 0 0 3px
}

.unlinked-empty .status.unlinked {
  align-self: center;
  margin: 0 0 5px
}

.redact-workspace {
  max-width: none;
  width: 100%
}

.redact-intro {
  flex-wrap: nowrap
}

.redact-intro>div {
  flex: 1;
  min-width: 0
}

.redact-file-button {
  width: auto;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  justify-content: center;
  text-align: center
}

.panel>.filter-bar,
.panel>.auto-list-search,
.panel .reminder-group>.filter-bar {
  margin-bottom: 16px
}

.panel [data-local-list]>.connected-empty {
  min-height: 132px;
  justify-content: center;
  box-sizing: border-box
}

.app-content>.stats-grid:not([data-dashboard-stats]) .stat-card>div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0
}

.app-content>.stats-grid:not([data-dashboard-stats]) .stat-card>div>span {
  order: 1
}

.app-content>.stats-grid:not([data-dashboard-stats]) .stat-card>div>small {
  order: 2;
  display: block;
  margin-top: 2px
}

.app-content>.stats-grid:not([data-dashboard-stats]) .stat-card>div>strong {
  order: 3;
  display: block;
  margin-top: 8px;
  line-height: 1.15
}

.page-summary-grid .stat-card {
  min-height: 112px
}

.page-summary-grid .stat-card>div {
  width: 100%
}

.app-body .page-summary-grid .stat-card {
  align-items: stretch
}

.app-body .page-summary-grid .stat-card>div {
  min-height: 112px
}

.app-body .page-summary-grid .stat-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink)
}

.app-body .page-summary-grid .stat-card small {
  font-size: 11px;
  display: block;
  margin-top: 5px;
  line-height: 1.4
}

.app-body .page-summary-grid .stat-card strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: auto;
  padding-top: 18px;
  line-height: 1;
  color: var(--navy)
}

.dashboard-greeting-loading {
  visibility: hidden
}

.member-role-select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 700
}

.detail-row .action-row .btn {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap
}

.profile-chip {
  grid-template-columns: auto minmax(0, 1fr) auto
}

.profile-chip span:nth-child(2) {
  min-width: 0
}

.profile-chip span:nth-child(2) b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.profile-chip span:nth-child(2) small {
  max-width: 100%;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word
}

.subscription-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d1d38, #203b63);
  color: #fff
}

.subscription-head h2 {
  margin: 5px 0 3px;
  font-size: 28px
}

.subscription-head p {
  margin: 0;
  color: #c3ccda
}

.subscription-head strong {
  font-size: 24px;
  white-space: nowrap;
  color: #f0cf92
}

.subscription-usage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0
}

.subscription-usage>div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px
}

.subscription-usage span {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.subscription-usage small {
  color: var(--muted)
}

.usage-track {
  height: 7px;
  margin-top: 12px;
  border-radius: 99px;
  background: #e9edf2;
  overflow: hidden
}

.usage-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #567ff0, #8b72e8);
  transition: width .35s
}

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

.subscription-actions small {
  max-width: 520px;
  color: var(--muted)
}

@media(max-width:720px) {
  .subscription-head {
    align-items: flex-start;
    flex-direction: column
  }

  .subscription-usage {
    grid-template-columns: 1fr
  }

  .subscription-actions {
    align-items: flex-start;
    flex-direction: column
  }
}

.settings-save-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 28px -26px -26px;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  background: #fafbfc;
  text-align: left
}

.settings-save-actions[hidden] {
  display: none
}

.settings-save-actions small {
  color: var(--muted)
}

.settings-save-actions .btn {
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap
}

@media(max-width:620px) {
  .settings-save-actions {
    align-items: stretch;
    flex-direction: column
  }

  .settings-save-actions .btn {
    width: 100%
  }
}

[data-settings-pane="subscription"] {
  padding: 2px
}

.subscription-head {
  padding: 30px;
  border-radius: 20px;
  align-items: center;
  box-shadow: 0 16px 38px rgba(13, 29, 56, .16)
}

.subscription-kicker {
  display: inline-flex;
  margin-bottom: 4px;
  color: #efcf95;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase
}

.subscription-head h2 {
  font-size: 34px;
  letter-spacing: -.03em
}

.subscription-price {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
  text-align: right
}

.subscription-price strong {
  font-size: 30px
}

.subscription-price small {
  color: #bdc8d7
}

.subscription-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 12px
}

.subscription-section-head h3 {
  margin: 0 0 3px;
  font-size: 17px
}

.subscription-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px
}

.subscription-section-head>a {
  color: #496ba8;
  font-size: 12px;
  font-weight: 800
}

.subscription-usage {
  margin: 0
}

.subscription-usage>article {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff
}

.subscription-usage>article b {
  font-size: 14px
}

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

.billing-grid article {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd
}

.billing-grid article>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0
}

.billing-grid article p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5
}

.billing-label {
  color: #8993a2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.subscription-notice {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid #dce4f2;
  border-radius: 14px;
  background: #f4f7fc
}

.subscription-notice b {
  white-space: nowrap;
  font-size: 12px;
  color: #365c99
}

.subscription-notice span {
  color: #667386;
  font-size: 12px;
  line-height: 1.5
}

.subscription-admin {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid #e7d8bc;
  border-radius: 18px;
  background: #fffaf1
}

.subscription-admin[hidden] {
  display: none
}

.subscription-admin .subscription-section-head {
  margin: 0 0 17px
}

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

.subscription-admin-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700
}

.subscription-admin-form input,
.subscription-admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 11px 12px
}

.subscription-admin-form .full {
  grid-column: 1/-1
}

.subscription-admin-actions {
  display: flex;
  justify-content: flex-end
}

@media(max-width:720px) {
  .subscription-price {
    align-items: flex-start;
    text-align: left
  }

  .billing-grid,
  .subscription-admin-form {
    grid-template-columns: 1fr
  }

  .subscription-notice {
    flex-direction: column
  }

  .subscription-notice b {
    white-space: normal
  }
}

.info-hero {
  padding: 110px 0 72px;
  background: radial-gradient(circle at 82% 20%, #f0e5d4, transparent 35%), linear-gradient(180deg, #fbfaf7, #f6f4ef)
}

.info-hero.compact {
  padding: 82px 0 54px
}

.info-hero h1 {
  max-width: 850px;
  margin: 0;
  font: 800 clamp(42px, 6vw, 72px)/1.04 Manrope, sans-serif;
  letter-spacing: -.045em;
  color: var(--navy)
}

.info-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 18px;
  color: var(--muted)
}

.info-section {
  padding: 80px 0
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.info-grid article,
.info-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(20, 37, 62, .05)
}

.info-grid h2,
.info-card h2,
.policy-copy h2 {
  font-family: Manrope, sans-serif;
  color: var(--navy)
}

.info-grid p,
.info-card p,
.policy-copy p {
  color: var(--muted)
}

.info-narrow,
.policy-copy {
  max-width: 820px
}

.policy-copy h2 {
  margin: 35px 0 8px
}

.policy-copy h3 {
  margin: 22px 0 5px;
  color: var(--navy);
  font-size: 17px
}

.policy-copy h2:first-child {
  margin-top: 0
}

.policy-copy p {
  font-size: 16px;
  line-height: 1.75
}

.info-small {
  margin-top: 22px;
  font-size: 12px
}

@media(max-width:760px) {
  .info-grid {
    grid-template-columns: 1fr
  }

  .info-hero {
    padding: 75px 0 50px
  }

  .cta-actions {
    justify-content: flex-start
  }
}

.policy-updated {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4eee4;
  color: #80633a !important;
  font-size: 12px !important;
  font-weight: 700
}

.cookie-table {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden
}

.cookie-table>div {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr .8fr;
  gap: 14px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  font-size: 13px
}

.cookie-table>div:first-child {
  border-top: 0
}

.cookie-table span {
  color: var(--muted)
}

@media(max-width:620px) {
  .cookie-table>div {
    grid-template-columns: 1fr
  }

  .cookie-table span {
    display: block
  }
}

.danger-zone {
  margin-top: 20px;
  border-color: #efd0d3
}

.danger-actions {
  display: flex;
  flex-direction: column
}

.danger-actions>div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 86px;
  padding: 17px 0;
  border-top: 1px solid var(--line)
}

.danger-actions>div:first-child {
  border-top: 0
}

.danger-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left
}

.danger-copy b {
  font-size: 13px
}

.danger-copy span {
  max-width: 720px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45
}

.danger-actions .btn {
  min-width: 185px;
  white-space: nowrap
}

@media(max-width:760px) {
  .danger-actions>div {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 16px 0
  }

  .danger-actions .btn {
    min-width: 0;
    justify-self: start
  }
}

.vault-locked {
  text-align: center;
  padding: 38px 20px
}

.vault-locked p {
  color: var(--muted)
}

.vault-door {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 27px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #0d1d38, #263d60);
  border: 3px solid #d2ad70;
  color: #e6c78f;
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(13, 29, 56, .2)
}

.status.manual-plan {
  background: #f5ead8;
  color: #765221;
  border: 1px solid #e5cda7
}

/* Compact application typography */
.app-body {
  --app-text-small: 11px;
  --app-text: 13px;
  --app-heading: 18px;
  font-size: var(--app-text)
}

.app-body .btn {
  font-size: var(--app-text);
  line-height: 1.25;
  padding: 10px 15px;
  border-radius: 10px
}

.app-body .page-head .btn {
  font-size: var(--app-text);
  padding: 10px 14px
}

.app-body .settings-nav button,
.app-body .settings-nav-link {
  font-size: var(--app-text);
  line-height: 1.25
}

.app-body .settings-panel h2,
.app-body .panel-head h2 {
  font-size: var(--app-heading);
  line-height: 1.2
}

.app-body .settings-panel h3 {
  font-size: var(--app-text)
}

.app-body .setting-row b {
  font-size: var(--app-text)
}

.app-body small,
.app-body .setting-row small {
  font-size: var(--app-text-small);
  line-height: 1.4
}

.app-body .setting-row select,
.app-body .settings-panel input,
.app-body .settings-panel select {
  font-size: var(--app-text)
}

.app-body .filter-pill,
.app-body .tabs button,
.app-body .compare-tabs button {
  font-size: var(--app-text-small);
  line-height: 1;
  padding: 7px 10px;
  font-weight: 700
}

.app-body .demo-form input,
.app-body .demo-form select,
.app-body .demo-form textarea {
  font-size: var(--app-text)
}

.app-body .subscription-head h2 {
  font-size: 28px
}

.app-body .subscription-price strong {
  font-size: 25px
}

.app-body .subscription-section-head h3 {
  font-size: var(--app-text)
}

.app-body .subscription-admin-form label {
  font-size: var(--app-text-small)
}

.app-body .subscription-admin-form input,
.app-body .subscription-admin-form select {
  font-size: var(--app-text)
}

.app-body .detail-row .action-row .btn {
  font-size: var(--app-text-small);
  padding: 7px 10px
}

.app-body .search-field input,
.app-body .global-search input {
  font-size: var(--app-text)
}

.subscription-admin {
  padding: 24px;
  background: linear-gradient(145deg, #fffdf8, #fff8eb)
}

.subscription-admin .subscription-section-head {
  padding-bottom: 16px;
  border-bottom: 1px solid #eadfc9
}

.subscription-admin-form {
  gap: 16px
}

.subscription-admin-form label>span {
  font-size: 11px;
  font-weight: 800;
  color: #5c6675
}

.subscription-admin-form input,
.subscription-admin-form select {
  height: 43px;
  padding: 0 12px
}

.subscription-admin-actions {
  align-items: center;
  justify-content: space-between;
  gap: 18px
}

.subscription-admin-actions small {
  max-width: 420px;
  color: var(--muted)
}

.subscription-admin-actions .btn {
  min-width: 175px
}

.subscription-grants {
  margin-top: 26px;
  padding-top: 4px;
  border-top: 1px solid #eadfc9
}

.subscription-grants .subscription-section-head {
  margin: 20px 0 10px;
  padding: 0;
  border: 0
}

.subscription-grant-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) auto minmax(100px, .7fr) minmax(160px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid #eadfc9
}

.subscription-grant-row>div {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.subscription-grant-row>div b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px
}

.subscription-grant-row>div small {
  color: var(--muted)
}

.subscription-grant-plan {
  padding: 6px 9px;
  border-radius: 999px;
  background: #efe5d2;
  color: #755726;
  font-size: 11px;
  font-weight: 800
}

.subscription-grant-row .btn {
  font-size: 11px;
  padding: 7px 10px
}

@media(max-width:850px) {
  .subscription-grant-row {
    grid-template-columns: 1fr auto
  }

  .subscription-grant-row>div:nth-of-type(n+2) {
    grid-column: 1
  }

  .subscription-grant-row>.btn {
    grid-column: 2;
    grid-row: 1
  }
}

@media(max-width:720px) {
  .subscription-admin-actions {
    align-items: stretch;
    flex-direction: column
  }

  .subscription-admin-actions .btn {
    width: 100%
  }
}

.settings-pane[data-settings-pane="profile"] .demo-form input,
.settings-pane[data-settings-pane="profile"] .demo-form select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  line-height: 44px
}

/* One shared control height across the signed-in app. Multi-select relation
   lists, text areas, checkboxes and file inputs keep their intentional size. */
.app-body {
  --app-control-height: 44px
}

.app-body .demo-form input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.app-body .demo-form select:not([multiple]),
.app-body .relation-create-panel input:not([type="hidden"]),
.app-body .relation-create-panel select:not([multiple]),
.app-body .relation-search-row input,
.app-body .document-type-fields input:not([type="hidden"]),
.app-body .custom-metadata-row input:not([type="hidden"]),
.app-body .custom-metadata-row select:not([multiple]),
.app-body .setting-row select:not([multiple]),
.app-body .settings-panel input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.app-body .settings-panel select:not([multiple]),
.app-body .subscription-admin-form input:not([type="hidden"]),
.app-body .subscription-admin-form select:not([multiple]),
.app-body .search-kind {
  box-sizing: border-box;
  height: var(--app-control-height);
  min-height: var(--app-control-height);
  padding-top: 0;
  padding-bottom: 0;
}

.app-body .search-field {
  box-sizing: border-box;
  height: var(--app-control-height);
  min-height: var(--app-control-height);
}

.app-body .search-field input {
  box-sizing: border-box;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.app-body .search-toolbar .search-submit {
  box-sizing: border-box;
  height: var(--app-control-height);
  min-height: var(--app-control-height);
}

.upload-wizard-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
}

.upload-wizard-panel .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ai-chat-panel {
  margin-top: 30px
}

.ai-chat-panel .chat-stream {
  overflow: visible
}

.dashboard-assistant {
  margin: -4px 0 20px;
  padding: 18px 20px;
  border: 1px solid #d9d4f2;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfaff, #f5f3ff);
  box-shadow: 0 10px 25px rgba(66, 55, 125, .07)
}

.dashboard-assistant-copy {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px
}

.dashboard-assistant-copy>span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #162c50, #7364d9);
  color: #fff;
  font-weight: 800
}

.dashboard-assistant-copy>div {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px
}

.dashboard-assistant-copy b {
  font-size: 14px
}

.dashboard-assistant-copy small {
  color: var(--muted)
}

.dashboard-assistant-copy>a {
  color: #536fae;
  font-size: 12px;
  font-weight: 700
}

.dashboard-assistant .chat-input {
  margin: 0;
  border-color: #c9c3ea;
  box-shadow: 0 5px 14px rgba(50, 40, 105, .07)
}

.dashboard-assistant .chat-input input {
  font-size: 14px
}

.dashboard-assistant .chat-input button {
  width: auto;
  min-width: 76px;
  padding: 0 16px;
  font-weight: 800
}

@media(max-width:620px) {
  .dashboard-assistant-copy {
    align-items: flex-start;
    flex-wrap: wrap
  }

  .dashboard-assistant-copy>a {
    width: 100%;
    padding-left: 49px
  }

  .dashboard-assistant .chat-input button {
    min-width: 64px;
    padding: 0 12px
  }
}

.assistant-thinking {
  opacity: .7
}

.assistant-result-list {
  display: grid;
  gap: 7px;
  margin: 10px 0
}

.assistant-result-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
  color: var(--ink)
}

.assistant-result-list a:hover {
  border-color: #b9c5d6;
  background: #fff
}

.assistant-result-list small {
  color: var(--muted)
}

.app-body .document-type-fields label {
  font-size: var(--app-text);
  line-height: 1.35
}

.app-body .document-type-fields .required-mark {
  font-size: inherit;
  font-weight: 800
}

.upload-wizard-panel {
  padding: 28px 30px 30px
}

.upload-wizard-panel .wizard-steps {
  gap: 10px;
  margin: 0 0 30px
}

.upload-wizard-panel .wizard-step {
  height: 6px;
  background: #e7eaf0
}

.upload-wizard-panel .wizard-step.active {
  background: linear-gradient(90deg, var(--navy), #526f9c)
}

.upload-wizard-panel [data-wizard-page]>h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25
}

.upload-wizard-panel [data-wizard-page="1"] .drop-zone {
  min-height: 250px;
  margin: 20px 0 0;
  padding: 45px;
  border-color: #c8d0dc;
  background: linear-gradient(180deg, #fcfdff, #f8fafc)
}

.upload-wizard-panel [data-wizard-page="1"] .drop-zone:hover {
  border-color: #8fa2be;
  background: #f7f9fd
}

.upload-wizard-panel [data-wizard-page="1"]>.form-actions {
  margin-top: 24px
}

.upload-wizard-panel [data-upload-metadata] {
  gap: 20px;
  margin-top: 22px
}

.upload-wizard-panel [data-upload-metadata]>label {
  gap: 8px;
  font-size: 13px
}

.upload-wizard-panel [data-upload-metadata]>label:has([data-document-category]) {
  grid-column: 1/-1;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfd
}

.upload-wizard-panel [data-document-category] {
  margin-top: 2px
}

.upload-wizard-panel .document-type-fields {
  gap: 16px;
  padding: 20px;
  border-color: #dfe4eb;
  background: #f8fafc
}

.upload-wizard-panel .document-fields-intro {
  gap: 4px;
  padding-bottom: 5px
}

.upload-wizard-panel .document-fields-intro b {
  font-size: 14px
}

.upload-wizard-panel .document-fields-intro small {
  font-size: 11px
}

.upload-wizard-panel .document-type-fields label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0
}

.upload-wizard-panel .document-field-label {
  display: flex;
  align-items: baseline;
  min-height: 18px;
  gap: 3px
}

.upload-wizard-panel .document-type-fields input {
  box-sizing: border-box;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  line-height: normal
}

.upload-wizard-panel .document-type-fields input[type="date"] {
  min-width: 0;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  line-height: 22px;
  color-scheme: light
}

.upload-wizard-panel .document-type-fields input[type="date"]::-webkit-date-and-time-value {
  display: flex;
  align-items: center;
  height: 22px;
  min-height: 22px;
  text-align: left
}

.app-body .demo-form input[type="date"] {
  box-sizing: border-box;
  height: var(--app-control-height);
  padding: 10px 12px;
  font: inherit;
  line-height: 22px;
  color-scheme: light
}

.app-body .demo-form input[type="date"]::-webkit-date-and-time-value {
  display: flex;
  align-items: center;
  height: 22px;
  min-height: 22px;
  text-align: left
}

.date-format-hint {
  margin-top: -2px;
  color: var(--muted);
  font-weight: 500
}

.samvium-date-control {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0
}

.samvium-date-control>[data-date-text] {
  width: 100%;
  padding-right: 50px !important
}

.samvium-date-control>[data-date-open] {
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 5px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #f1f4f8;
  color: var(--navy);
  cursor: pointer
}

.samvium-date-control>[data-date-open]:hover {
  background: #e6ebf2
}

.samvium-date-control>[data-date-open] .app-icon {
  width: 17px;
  height: 17px
}

.samvium-date-control>[data-date-picker] {
  position: absolute !important;
  right: 7px !important;
  top: 7px !important;
  width: 30px !important;
  height: 30px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important
}

.samvium-date-control>[data-date-text]:invalid:not(:placeholder-shown) {
  border-color: #c65b66;
  background: #fffafa
}

.upload-wizard-panel .additional-relations,
.upload-wizard-panel .custom-metadata {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  background: #fff
}

.upload-wizard-panel .relation-disclosure {
  padding: 15px 2px
}

.upload-wizard-panel .ai-processing {
  margin: 32px 0 0;
  padding: 16px 18px
}

.upload-wizard-panel [data-wizard-page="2"]>.form-actions,
.upload-wizard-panel [data-wizard-page="3"]>.form-actions {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

@media(max-width:720px) {
  .upload-wizard-panel {
    padding: 22px 18px
  }

  .upload-wizard-panel [data-wizard-page="1"] .drop-zone {
    min-height: 210px;
    padding: 32px 18px
  }

  .upload-wizard-panel [data-upload-metadata] {
    gap: 15px
  }

  .upload-wizard-panel .document-type-fields {
    padding: 16px
  }
}

.ai-analysis-page {
  width: 100%
}

.ai-analysis-page .ai-analysis-panel {
  margin-top: 0
}

.ai-analysis-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px
}

.ai-analysis-actions .btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff
}

.ai-analysis-result {
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc
}

.ai-analysis-result>b,
.ai-analysis-result>span {
  display: block
}

.ai-analysis-result>span {
  margin-top: 4px;
  color: var(--muted)
}

.ai-analysis-result>.connected-empty {
  border: 0;
  background: transparent;
  padding: 24px 16px
}

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

.analysis-finding {
  display: flex;
  min-height: 105px;
  flex-direction: column;
  padding: 14px;
  border: 1px solid #e3e7ed;
  border-radius: 12px;
  background: #fff
}

.analysis-finding span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700
}

.analysis-finding strong {
  margin-top: auto;
  padding-top: 12px;
  font-size: 21px
}

.analysis-finding small {
  margin-top: 3px;
  color: var(--muted)
}

.analysis-finding.attention {
  border-color: #ead7ae;
  background: #fffaf0
}

.analysis-finding.good {
  border-color: #cce6d8;
  background: #f5fcf8
}

.analysis-scope-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f3f5f8;
  color: var(--muted);
  font-size: 12px
}

.analysis-scope-note b {
  flex: 0 0 auto;
  color: var(--ink)
}

.document-ai-panel {
  margin-top: 18px
}

.document-ai-panel .panel-head {
  align-items: flex-start
}

.document-ai-panel [data-analyze-document][hidden] {
  display: none !important
}

.document-analysis-summary {
  margin-bottom: 14px;
  padding: 15px 16px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #f7faff
}

.document-analysis-summary b,
.document-analysis-summary p {
  display: block;
  margin: 0
}

.document-analysis-summary p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55
}

.document-analysis-layout {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(300px, 1.35fr);
  gap: 14px;
  align-items: start
}

.document-analysis-layout.metadata-only,
.document-analysis-layout.details-only {
  grid-template-columns: minmax(220px, 420px)
}

.document-analysis-layout.details-only {
  grid-template-columns: minmax(300px, 1fr)
}

.document-analysis-metadata {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.document-analysis-metadata>div {
  padding: 10px 13px
}

.document-analysis-metadata>div+div {
  border-top: 1px solid var(--line)
}

.document-analysis-metadata dt {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: capitalize
}

.document-analysis-metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.35
}

.document-analysis-details {
  display: grid;
  gap: 14px;
  min-width: 0
}

.document-analysis-foot,
.document-analysis-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px
}

.document-analysis-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto
}

.document-analysis-list {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px
}

.document-analysis-list h3 {
  margin: 0;
  padding: 11px 13px;
  background: #f5f7fa;
  font-size: 12px
}

.document-analysis-list>div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border-top: 1px solid var(--line)
}

.document-analysis-list span {
  color: var(--muted);
  text-align: right
}

.document-analysis-list.sensitive {
  border-color: #ead7ae
}

.document-analysis-list.sensitive h3 {
  background: #fffaf0
}

.document-redaction-prompt {
  max-width: 480px
}

.document-redaction-prompt h2,
.document-redaction-prompt p {
  margin: 0
}

.document-redaction-prompt p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.5
}

.document-redaction-prompt .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px
}

[data-relation-editor] .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px
}

.analysis-review-modal { max-width: 620px }
.analysis-review-modal>p { margin: 7px 0 18px; color: var(--muted) }
.analysis-review-modal form { display: grid; gap: 9px }
.analysis-review-row { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff }
.analysis-review-row>input { width: 18px; height: 18px; margin-top: 9px }
.analysis-review-row span { display: grid; gap: 6px }
.analysis-review-row span>input,
.analysis-review-row span>select { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff }
.analysis-review-modal .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px }

.document-analysis-progress {
  padding: 16px;
  border-radius: 12px;
  background: #f7f9fc
}

.document-analysis-progress b,
.document-analysis-progress small {
  display: block
}

.document-analysis-progress small {
  margin-top: 3px;
  color: var(--muted)
}

.analysis-spinner {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 3px solid #dce4ef;
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: samvium-analysis-spin .8s linear infinite
}

@keyframes samvium-analysis-spin {
  to { transform: rotate(360deg) }
}

@media(max-width:760px) {
  .document-analysis-layout,
  .document-analysis-layout.metadata-only { grid-template-columns: 1fr }
  .document-ai-panel .panel-head { gap: 12px }
  .document-analysis-foot { align-items: stretch; flex-direction: column }
  .document-analysis-actions { display: grid; margin-left: 0 }
}

@media(max-width:620px) {
  .analysis-findings {
    grid-template-columns: 1fr
  }

  .analysis-scope-note {
    flex-direction: column
  }
}

.contact-narrow {
  max-width: 980px
}

.contact-card {
  padding: 46px 50px;
  border-radius: 26px
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: 30px
}

.contact-card>p:not(.info-small) {
  max-width: 720px;
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.65
}

.contact-card .btn {
  padding: 14px 20px;
  font-size: 16px
}

.contact-card .info-small {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6
}

@media(max-width:760px) {
  .contact-card {
    padding: 30px 24px
  }

  .contact-card h2 {
    font-size: 25px
  }

  .contact-card>p:not(.info-small) {
    font-size: 16px
  }
}

.entity-image,
.record-image-preview {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #eef2f7, #e3e9f1);
  color: #53647d
}

.entity-image {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  align-self: center;
  border-radius: 18px
}

.entity-image.image-loaded {
  background-color: #e8edf3;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover
}

.entity-image .app-icon {
  width: 30px;
  height: 30px
}

.entity-image img,
.record-image-preview img {
  width: 100%;
  height: 100%
}

.entity-image img {
  object-fit: cover;
  object-position: 50% 50%
}

.record-image-preview img {
  display: block;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  image-orientation: from-image;
  background: #f3f5f8
}

.entity-card.local-item {
  grid-template-columns: auto 1fr
}

.back-link-button {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  cursor: pointer
}

.auth-card .auth-remember {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer
}

.auth-card .auth-remember input {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--navy)
}

.auth-card .auth-remember span {
  line-height: 17px
}

.auth-captcha {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin: 2px 0 16px
}

.auth-card [data-auth-mfa-login] {
  text-align: center
}

.auth-card [data-auth-mfa-login] h2 {
  margin: 0 0 8px
}

.auth-card [data-auth-mfa-login]>p {
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.55
}

.mfa-code-fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0
}

.mfa-code-fieldset legend {
  width: 100%;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  text-align: center
}

.mfa-code-inputs {
  display: grid;
  grid-template-columns: repeat(6, 48px);
  justify-content: center;
  gap: 8px
}

.auth-card .mfa-code-inputs input {
  width: 48px;
  height: 56px;
  padding: 0;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
  line-height: 56px;
  text-align: center
}

.auth-card .mfa-code-inputs input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22, 48, 82, .12);
  outline: 0
}

@media(max-width:480px) {
  .mfa-code-inputs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px
  }

  .auth-card .mfa-code-inputs input {
    width: 100%;
    height: 50px;
    font-size: 21px
  }
}

.share-button-pending {
  opacity: .52;
  cursor: wait
}

.share-button-warning {
  border-color: #e4c985;
  background: #fff8e7;
  color: #7b6021;
  opacity: 1;
  cursor: not-allowed
}

.record-overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px
}

.record-overview-grid.has-image-panel {
  grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
  align-items: stretch
}

.record-overview-grid.has-image-panel>.panel {
  min-height: 440px
}

.record-image-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  align-items: center;
  gap: 16px;
  margin: 0;
  min-height: 0;
  overflow: hidden
}

.record-document-preview-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 0;
  overflow: hidden
}

.record-side-card-head {
  min-height: 42px
}

.record-side-card-head h2 {
  margin: 0 0 3px;
  font-size: 18px
}

.record-document-preview {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3f5f8
}

.record-document-preview img,
.record-document-preview iframe {
  width: 100%;
  height: 100%;
  border: 0
}

.samvium-pdf-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0
}

.samvium-pdf-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #fff
}

.samvium-pdf-toolbar button {
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  padding: 0 8px;
  background: #edf2f7;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer
}

.samvium-pdf-toolbar button:disabled {
  opacity: .35;
  cursor: default
}

.samvium-pdf-toolbar span {
  min-width: 52px;
  text-align: center;
  font-size: 12px
}

.samvium-pdf-toolbar i {
  flex: 1
}

.samvium-pdf-canvas-wrap {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: #dfe4ea;
  text-align: center
}

.samvium-pdf-canvas-wrap canvas {
  display: inline-block;
  max-width: none;
  background: #fff;
  box-shadow: 0 4px 16px rgba(28, 39, 55, .18)
}

.record-document-preview img {
  object-fit: contain;
  object-position: center
}

.record-document-file-icon {
  display: grid;
  gap: 12px;
  max-width: 80%;
  place-items: center;
  text-align: center;
  color: var(--muted)
}

.record-document-file-icon .app-icon {
  width: 52px;
  height: 52px
}

.record-document-preview-card>.btn {
  justify-self: start
}

.record-image-preview {
  grid-column: 1/-1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 22px;
  padding: 0;
  cursor: zoom-in
}

.record-image-preview:disabled {
  cursor: default
}

.record-image-preview .app-icon {
  width: 52px;
  height: 52px
}

.record-image-card h2,
.record-image-card p {
  margin: 0
}

.record-image-card h2 {
  font-size: 18px;
  margin-bottom: 3px
}

.record-image-card>div,
.record-image-card>.record-image-button {
  grid-row: 1;
  align-self: start
}

.record-information-panel>.panel-head,
.record-image-card>div {
  min-height: 42px
}

.record-image-card p {
  margin-top: 5px;
  color: var(--muted)
}

.record-image-button {
  cursor: pointer
}

.record-image-button.disabled {
  opacity: .55;
  pointer-events: none
}

@media(max-width:900px) {
  .record-overview-grid.has-image-panel {
    grid-template-columns: 1fr
  }

  .record-overview-grid.has-image-panel .record-image-card {
    grid-row: 1
  }

  .record-overview-grid.has-image-panel>.panel {
    min-height: 400px
  }
}

@media(max-width:620px) {

  .record-image-card {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto minmax(0, 1fr)
  }

  .record-image-preview {
    grid-row: 2;
    min-height: 0;
    max-height: none
  }

  .record-image-button {
    grid-row: 1;
    justify-self: start
  }
}

.relation-editor-intro {
  color: var(--muted)
}

.relation-editor-list {
  display: grid;
  gap: 8px;
  max-height: 52vh;
  overflow: auto;
  padding: 3px
}

.relation-editor-list label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer
}

.relation-editor-list label:has(input:checked) {
  border-color: #91a7cc;
  background: #f2f6fc
}

.relation-editor-list input {
  width: 18px;
  height: 18px
}

.relation-editor-list span {
  display: flex;
  flex-direction: column
}

.relation-editor-list small {
  color: var(--muted)
}

.relation-picker-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 700
}

.relation-picker-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff
}

.relation-search-status {
  display: block;
  min-height: 16px;
  margin: -2px 0 5px;
  color: var(--muted)
}

.relation-editor-empty {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px
}

.relation-editor-empty b {
  color: var(--ink)
}

.relation-editor-list [hidden],
.relation-editor-empty[hidden] {
  display: none
}

.event-attachment {
  padding: 14px;
  border: 1px dashed #c8d0dc;
  border-radius: 12px;
  background: #f8fafc
}

.event-attachment>span {
  display: flex;
  align-items: center;
  gap: 6px
}

.event-attachment>span small,
.event-attachment>small {
  color: var(--muted);
  font-weight: 500
}

.demo-form .event-attachment input[type="file"] {
  padding: 9px;
  background: #fff
}

.relation-suggestion {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid #c9dfd3;
  border-radius: 11px;
  background: #f2faf6
}

.relation-suggestion span {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.relation-suggestion small {
  color: #56816b;
  font-size: 10px
}

.relation-suggestion b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.relation-suggestion em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #dcefe4;
  color: #347054;
  font-size: 10px;
  font-style: normal;
  font-weight: 800
}

.relation-suggestion button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #617369;
  font-size: 18px;
  cursor: pointer
}

.relation-suggestion button:hover {
  background: #dcefe4
}

.relation-aware-result mark {
  display: inline-flex;
  width: max-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #496ba8;
  font-size: 10px;
  font-weight: 700
}

.relation-aware-result div {
  min-width: 0
}

.form-relation-choice-list {
  display: grid;
  gap: 6px;
  max-height: 230px;
  overflow: auto;
  padding: 3px
}

.form-relation-choice-list>label {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer
}

.form-relation-choice-list>label:has(input:checked) {
  border-color: #91a7cc;
  background: #f2f6fc
}

.demo-form .form-relation-choice-list input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0
}

.form-relation-choice-list span {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.form-relation-choice-list b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.form-relation-choice-list small {
  color: var(--muted);
  font-weight: 500
}

.relation-choice-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px
}

.form-relations>summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.form-relations>summary>small {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf1f6;
  color: #667386;
  font-size: 10px;
  font-weight: 800
}

.relation-selected-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 4px
}

.relation-selected-summary[hidden] {
  display: none !important
}

.relation-selected-summary>span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 7px 6px 9px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #365c99;
  font-size: 11px;
  font-weight: 800
}

.relation-selected-summary small {
  color: #6c7f9c;
  font-size: 9px;
  font-weight: 600
}

.relation-selected-summary button {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #d5e2f7;
  color: #4d6488;
  cursor: pointer;
  line-height: 1
}

.relation-choice-group {
  display: grid;
  gap: 5px
}

.relation-choice-group+.relation-choice-group {
  margin-top: 8px
}

.relation-choice-group h4 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 5px 3px 2px;
  color: #7b8594;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase
}

.relation-choice-group h4 span {
  display: inline
}

.relation-choice-group>label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer
}

.relation-choice-group>label:hover {
  border-color: #cbd5e2;
  background: #fafcff
}

.relation-choice-group>label:has(input:checked) {
  border-color: #91a7cc;
  background: #f2f6fc
}

.relation-choice-group>label>i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #dbe7f7;
  color: #41699e;
  font-size: 11px;
  font-style: normal;
  opacity: 0
}

.relation-choice-group>label:has(input:checked)>i {
  opacity: 1
}

.app-body input::placeholder,
.app-body textarea::placeholder {
  color: #929ba8;
  font-size: 10px;
  font-weight: 400;
  opacity: 1
}

.app-body .demo-form input {
  letter-spacing: 0
}

.app-body .demo-form label {
  gap: 5px
}

[data-record-detail] [data-empty-detail-field][hidden] {
  display: none !important
}

.saved-views-layout {
  display: block
}

.saved-views-library .panel-head {
  align-items: end;
  margin-bottom: 20px
}

.saved-view-featured {
  margin-bottom: 26px
}

.saved-view-featured>button {
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(190, 145, 76, .25);
  border-radius: 17px;
  background:
    radial-gradient(circle at 95% 0, rgba(215, 177, 109, .2), transparent 18rem),
    linear-gradient(145deg, #122c47, #08182b);
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 38px rgba(8, 24, 43, .14);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease
}

.saved-view-featured>button:hover {
  box-shadow: 0 22px 48px rgba(8, 24, 43, .2);
  transform: translateY(-2px)
}

.saved-view-featured-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(236, 206, 151, .25);
  border-radius: 14px;
  color: #e6bd77;
  background: rgba(255, 255, 255, .08);
  font-size: 22px
}

.saved-view-featured>button>span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px
}

.saved-view-featured small {
  color: #d3ad6b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase
}

.saved-view-featured b {
  font-size: 17px
}

.saved-view-featured em {
  color: #aeb9c8;
  font-size: 12px;
  font-style: normal
}

.saved-view-featured strong {
  color: #deb56d;
  font-size: 20px
}

.saved-view-library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px
}

.saved-view-library-heading h3,
.saved-view-library-heading p {
  margin: 0
}

.saved-view-library-heading h3 {
  font-size: 15px
}

.saved-view-library-heading p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px
}

.saved-view-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px
}

.saved-view-list-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f9f8f4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease
}

.saved-view-list-item:hover {
  border-color: rgba(184, 135, 67, .32);
  box-shadow: 0 16px 34px rgba(15, 32, 53, .08);
  transform: translateY(-2px)
}

.saved-view-list-item.active {
  border-color: rgba(184, 135, 67, .42);
  background: #fbf7ef
}

.saved-view-open {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 13px;
  min-width: 0;
  padding: 20px 10px 20px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer
}

.saved-view-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(191, 144, 75, .22);
  border-radius: 12px;
  color: #9a6d2d;
  background: linear-gradient(145deg, #fbf5e9, #efe1c7);
  font-size: 21px
}

.saved-view-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px
}

.saved-view-card-copy b {
  overflow: hidden;
  color: #10213a;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap
}

.saved-view-card-copy small {
  color: #657184;
  font-size: 11px;
  line-height: 1.45
}

.saved-view-card-copy em {
  color: #9a7a48;
  font-size: 10px;
  font-style: normal;
  line-height: 1.4
}

.saved-view-card-arrow {
  margin-top: 8px;
  color: #9b7740;
  font-size: 18px;
  transition: transform .2s ease
}

.saved-view-open:hover .saved-view-card-arrow {
  transform: translateX(3px)
}

.saved-view-delete {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8b5960;
  cursor: pointer
}

.saved-view-delete:hover {
  border-color: #ead8da;
  background: #fff5f5
}

.saved-view-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  padding: 36px;
  border: 1px dashed rgba(32, 56, 82, .16);
  border-radius: 17px;
  background: rgba(248, 247, 243, .7);
  text-align: center
}

.saved-view-empty>span {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 16px;
  color: #9a6d2d;
  background: #f2e8d5;
  font-size: 28px
}

.saved-view-empty b {
  font-size: 18px
}

.saved-view-empty p {
  max-width: 420px;
  margin: 6px 0 20px;
  color: var(--muted)
}

.saved-view-workspace-nav {
  margin-bottom: 10px
}

.saved-view-builder>.panel-head {
  margin-bottom: 20px
}

.saved-view-builder form {
  display: grid;
  gap: 16px
}

.saved-view-builder label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700
}

.saved-view-builder input,
.saved-view-builder select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff
}

.saved-view-name {
  max-width: 520px
}

.saved-view-builder fieldset {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px
}

.saved-view-builder legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 800
}

.saved-view-kind-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px
}

.saved-view-kind-grid label {
  display: flex;
  align-items: center;
  flex-direction: row;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer
}

.saved-view-kind-grid label:has(input:checked) {
  border-color: #91a7cc;
  background: #f2f6fc
}

.saved-view-kind-grid input {
  width: 17px;
  height: 17px
}

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

.saved-view-relation-picker {
  position: relative
}

.saved-view-relation-results {
  position: absolute;
  z-index: 12;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(25, 37, 55, .14)
}

.saved-view-relation-results button {
  display: flex;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer
}

.saved-view-relation-results button:hover {
  background: #f2f5fa
}

.saved-view-relation-results span,
.saved-view-relation-selected span {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.saved-view-relation-results small,
.saved-view-relation-selected small {
  color: var(--muted);
  font-size: 11px
}

.saved-view-relation-selected {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  padding: 8px 10px;
  border: 1px solid #dbe3f1;
  border-radius: 10px;
  background: #f7f9fd
}

.saved-view-relation-selected:not([hidden]) {
  display: flex
}

.saved-view-relation-selected button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer
}

.saved-view-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px
}

.saved-view-results-head {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.saved-view-results-head h2,
.saved-view-results-head p {
  margin: 0
}

.saved-view-results-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px
}

.saved-view-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px
}

.saved-view-preview-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(248, 249, 251, .7)
}

.saved-view-preview-empty span {
  color: #9a6d2d;
  font-size: 22px
}

.saved-view-preview-empty p {
  margin: 0
}

.relation-overview-head {
  align-items: end;
  margin-bottom: 18px
}

.relation-overview-search {
  display: flex;
  width: min(360px, 100%);
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700
}

.relation-overview-search input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff
}

.relation-overview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px
}

.relation-overview-summary span {
  padding: 7px 11px;
  border: 1px solid rgba(27, 49, 73, .08);
  border-radius: 999px;
  color: var(--muted);
  background: #f5f3ee;
  font-size: 10px
}

.relation-overview-summary b {
  color: var(--ink);
  font-size: 12px
}

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

.relation-overview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff
}

.relation-overview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(145deg, #fbfaf7, #f5f2eb)
}

.relation-overview-card-head>a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px
}

.relation-overview-card-head small {
  color: #98703a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase
}

.relation-overview-card-head b {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap
}

.relation-overview-card-head>span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #6f7783;
  background: #eceae5;
  font-size: 9px;
  font-weight: 700
}

.relation-overview-documents {
  padding: 7px
}

.relation-overview-documents>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--ink)
}

.relation-overview-documents>a:hover {
  background: #f3f5f8
}

.relation-overview-documents>a>span {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.relation-overview-documents b,
.relation-overview-documents small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.relation-overview-documents b {
  font-size: 11px
}

.relation-overview-documents small,
.relation-overview-documents em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal
}

.relation-overview-documents p {
  margin: 0;
  padding: 14px 10px;
  color: #9098a3;
  font-size: 10px
}

.saved-view-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.saved-view-result div {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.saved-view-result b,
.saved-view-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.saved-view-result small {
  color: var(--muted)
}

.saved-view-result em {
  align-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #607086;
  font-size: 9px;
  font-style: normal;
  font-weight: 800
}

@media(max-width:900px) {
  .saved-view-list {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .relation-overview-list {
    grid-template-columns: 1fr
  }

  .saved-view-kind-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .saved-view-filter-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:620px) {

  .saved-view-featured>button {
    grid-template-columns: auto 1fr
  }

  .saved-view-featured strong {
    display: none
  }

  .relation-overview-head {
    align-items: stretch
  }

  .saved-view-list,
  .saved-view-kind-grid,
  .saved-view-filter-grid,
  .saved-view-results {
    grid-template-columns: 1fr
  }
}

.vault-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px
}

.vault-explainer article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff
}

.vault-explainer article>span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.vault-explainer article>b {
  display: block;
  margin-top: 5px
}

.vault-explainer article p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px
}

.vault-explainer-secure {
  border-color: #dbc8a5 !important;
  background: #fffaf1 !important
}

.vault-steps {
  display: grid;
  gap: 0
}

.vault-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line)
}

.vault-step:first-child {
  border-top: 0
}

.vault-step>span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #eef1f5;
  font-size: 12px;
  font-weight: 800
}

.vault-step>div {
  display: flex;
  flex-direction: column
}

.vault-step small {
  color: var(--muted)
}

.vault-step em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef1f5;
  color: #687386;
  font-size: 10px;
  font-style: normal;
  font-weight: 800
}

.vault-step em[data-state="done"] {
  background: #e9f8f0;
  color: #278c5b
}

.vault-step em[data-state="ready"] {
  background: #edf2ff;
  color: #496fc9
}

.vault-step em[data-state="required"] {
  background: #fff2dd;
  color: #99651c
}

.vault-gate-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 13px;
  background: #f4f6f9
}

.vault-gate-action[hidden],
[data-vault-upload][hidden] {
  display: none !important
}

.vault-gate-action p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px
}

.vault-upload-choice {
  align-items: flex-start !important;
  padding: 14px;
  border: 1px solid #dbc8a5;
  border-radius: 12px;
  background: #fffaf1
}

.vault-upload-choice>span {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.vault-upload-choice small {
  color: var(--muted);
  font-weight: 500
}

@media(max-width:700px) {
  .vault-explainer {
    grid-template-columns: 1fr
  }

  .vault-step {
    grid-template-columns: auto 1fr
  }

  .vault-step em {
    grid-column: 2;
    justify-self: start
  }

  .vault-gate-action {
    align-items: flex-start;
    flex-direction: column
  }
}

.calendar-event-link {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 6px 7px;
  transition: .15s
}

.calendar-event-link:hover {
  background: #dfe8ff;
  transform: translateY(-1px)
}

.calendar-event-link strong,
.calendar-event-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.calendar-event-link strong {
  font-size: 11px
}

.calendar-event-link small {
  margin-top: 2px;
  color: #667a9e;
  font-size: 9px
}

.cal-more {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700
}

.calendar-upcoming-link {
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px
}

.calendar-upcoming-link:hover {
  background: #f5f7fa
}

.calendar-upcoming-link .card-arrow {
  align-self: center
}

.record-relations [hidden],
.detail-metadata-editor [hidden],
.demo-form [data-detail-edit-save][hidden],
.demo-form [data-detail-edit-cancel][hidden],
.page-actions [data-detail-edit][hidden] {
  display: none !important
}

[data-record-detail] .demo-form input:disabled,
[data-record-detail] .demo-form select:disabled {
  border-color: transparent;
  background: #f7f8fa;
  color: var(--ink);
  opacity: 1
}

[data-record-detail] .detail-metadata-row button[hidden] {
  display: none !important
}

.document-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px
}

.document-icon .app-icon {
  width: 17px;
  height: 17px
}

.document-icon small {
  font-size: 8px;
  line-height: 1;
  font-weight: 800
}

.dashboard-document-link {
  min-width: 0
}

.dashboard-document-copy {
  min-width: 0
}

.dashboard-document-copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-document-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.dashboard-document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px
}

.dashboard-document-actions .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
  white-space: nowrap
}

.dashboard-document-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto
}

.dashboard-reminder-row>div {
  gap: 3px
}

@media(max-width:720px) {
  .dashboard-document-row {
    grid-template-columns: auto minmax(0, 1fr) auto
  }

  .dashboard-document-row time {
    display: none
  }

  .dashboard-document-actions {
    grid-column: 2/-1;
    justify-content: flex-start
  }
}

.document-access-panel {
  margin-top: 16px
}

.document-access-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f9fb
}

.document-access-summary.shared {
  border-color: #c9dfd3;
  background: #f2faf6
}

.document-access-summary.vault {
  border-color: #dbc8a5;
  background: #fffaf1
}

.document-access-summary>span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  color: var(--navy)
}

.document-access-summary>div,
.document-access-person>div {
  display: flex;
  min-width: 0;
  flex-direction: column
}

.document-access-summary small,
.document-access-person small,
.document-access-pending span {
  color: var(--muted)
}

.document-access-summary>em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  color: #5d6b7e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800
}

.document-access-person {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 13px 3px;
  border-bottom: 1px solid var(--line)
}

.document-access-person:last-child {
  border-bottom: 0
}

.document-access-person .avatar {
  width: 34px;
  height: 34px
}

.document-access-pending {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  padding: 12px;
  border-radius: 11px;
  background: #fff7e8;
  font-size: 12px
}

@media(max-width:620px) {
  .document-access-summary {
    grid-template-columns: auto 1fr
  }

  .document-access-summary>em {
    grid-column: 2;
    justify-self: start
  }

  .document-access-person {
    grid-template-columns: auto 1fr
  }

  .document-access-person>.status {
    grid-column: 2;
    justify-self: start
  }
}

.detail-metadata-editor {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.document-relation-field {
  padding: 14px 0 4px
}

.document-relation-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700
}

.document-relation-field-head .btn {
  padding: 7px 10px;
  font-size: 11px
}

.document-relation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.document-relation-chips a {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #dbe3f1;
  border-radius: 999px;
  padding: 7px 10px;
  background: #f7f9fd;
  color: var(--ink)
}

.document-relation-chips small,
.document-relation-empty {
  color: var(--muted);
  font-size: 11px
}

.detail-metadata-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 12px
}

.detail-metadata-heading h3,
.detail-metadata-heading small {
  margin: 0
}

.detail-metadata-heading small,
.detail-metadata-empty {
  color: var(--muted)
}

.detail-metadata-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 10px
}

.detail-metadata-row label {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.detail-metadata-row button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #a33;
  cursor: pointer
}

@media(max-width:820px) {
  .detail-metadata-row {
    grid-template-columns: 1fr 1fr
  }

  .detail-metadata-row button {
    justify-self: end
  }
}

@media(max-width:620px) {
  .detail-metadata-heading {
    align-items: flex-start;
    flex-direction: column
  }

  .detail-metadata-row {
    grid-template-columns: 1fr
  }

  .detail-metadata-row button {
    justify-self: end
  }
}
.shared-links-panel {
  display: grid;
  gap: 20px;
}

.shared-links-notice {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(176, 131, 45, .28);
  border-radius: 14px;
  background: rgba(244, 231, 199, .3);
}

.shared-links-notice span,
.shared-link-row small {
  color: var(--muted);
}

.shared-link-list {
  display: grid;
  gap: 12px;
}

.shared-link-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.shared-link-row>div {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.shared-link-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #8b6528;
  background: rgba(212, 168, 93, .2);
  font-size: 1.15rem;
}

.document-share-modal label,
.account-security-grid label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.document-share-modal input {
  width: 100%;
}

.account-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.account-security-grid>[data-change-email-form],
.account-security-grid>[data-change-password-form] {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft, #faf9f6);
}

.account-security-grid h3,
.account-security-grid p {
  margin: 0;
}

.account-security-grid p {
  color: var(--muted);
}

@media (max-width: 720px) {
  .account-security-grid {
    grid-template-columns: 1fr;
  }

  .shared-link-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .shared-link-row>button {
    grid-column: 1 / -1;
  }
}
/* Help center */
.help-page {
  background: #fbfaf7;
}

.help-page main {
  padding-bottom: 80px;
}

.help-hero,
.help-start,
.help-library,
.help-videos,
.help-faq,
.help-contact {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.help-hero {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 86px 40px 72px;
  text-align: center;
}

.help-hero h1 {
  max-width: 800px;
  margin: 10px 0 12px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.help-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.help-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(760px, 100%);
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(11, 25, 48, .1);
}

.help-search>span {
  color: var(--muted);
  font-size: 1.7rem;
}

.help-search input {
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  font-size: 1rem;
}

.help-popular,
.help-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.help-popular span {
  color: var(--muted);
}

.help-popular button,
.help-filters button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4f596a;
  background: #fff;
  cursor: pointer;
}

.help-popular button:hover,
.help-filters button:hover,
.help-filters button.active {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.help-platform-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px 7px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
}

.help-platform-picker>div {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: #edf0f4;
}

.help-platform-picker button {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.help-platform-picker button.active {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 3px 10px rgba(22,34,56,.08);
}

[data-help-platform][hidden] {
  display: none !important;
}

.help-start,
.help-library,
.help-videos,
.help-faq {
  padding: 50px 0;
}

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

.help-section-head h2 {
  margin: 7px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.help-section-head p,
.help-section-head>span {
  color: var(--muted);
}

.help-section-head a {
  color: var(--navy);
  font-weight: 700;
}

.help-start-grid,
.help-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.help-start-grid article,
.help-video-grid article {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(22, 34, 56, .06);
}

.help-start-grid article>span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.help-start-grid h3,
.help-video-grid h3 {
  margin: 18px 0 6px;
}

.help-start-grid p,
.help-video-grid p {
  margin: 0;
  color: var(--muted);
}

.help-mini-ui {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  height: 105px;
  margin-top: 18px;
  padding: 15px;
  border-radius: 14px;
  background: #eef3ff;
}

.help-mini-ui i {
  border-radius: 7px;
  background: rgba(86, 127, 240, .25);
}

.help-mini-ui i:first-child {
  grid-row: span 2;
}

.help-mini-ui strong {
  align-self: center;
  font-size: .82rem;
}

.help-mini-ui.metadata {
  grid-template-columns: 1fr 1fr;
  background: #f5f0ff;
}

.help-mini-ui.metadata i:first-child {
  grid-column: 1 / -1;
  grid-row: auto;
}

.help-mini-ui.relations {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #f9f1df;
}

.help-mini-ui.relations i:first-child {
  grid-row: auto;
}

.help-mini-ui.relations b {
  color: #9b7331;
}

.help-filters {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.help-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.help-guide-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 34, 56, .05);
}

.help-guide-card[hidden] {
  display: none;
}

.help-guide-card summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 14px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

.help-guide-card summary::-webkit-details-marker {
  display: none;
}

.help-guide-card summary>div {
  min-width: 0;
}

.help-guide-card summary em {
  color: var(--muted);
  font-size: .78rem;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.help-guide-card summary h3 {
  margin: 5px 0;
}

.help-guide-card summary p {
  margin: 0;
  color: var(--muted);
}

.help-guide-card summary>b {
  transition: transform .2s;
}

.help-guide-card[open] summary>b {
  transform: rotate(45deg);
}

.help-guide-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.15rem;
  font-weight: 800;
}

.help-guide-icon.blue { color: #315fd6; background: #eaf0ff; }
.help-guide-icon.purple { color: #7159cd; background: #f0ecff; }
.help-guide-icon.gold { color: #946c29; background: #f8efd9; }
.help-guide-icon.green { color: #24855a; background: #e4f6ed; }
.help-guide-icon.red { color: #c34b4b; background: #fdeaea; }

.help-guide-body {
  padding: 0 20px 20px 76px;
  border-top: 1px solid #f0f1f3;
}

.help-guide-body ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  line-height: 1.55;
}

.help-guide-body a {
  color: #315fd6;
  font-weight: 700;
}

.help-tip,
.help-warning {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-radius: 12px;
  color: #315f4b;
  background: #edf8f2;
}

.help-warning {
  color: #76561f;
  background: #fbf4e5;
}

.help-no-results {
  margin-top: 18px;
}

.help-no-results[hidden] {
  display: none;
}

.help-video-grid article {
  display: flex;
  flex-direction: column;
}

.help-video-grid article .btn {
  align-self: flex-start;
  margin-top: 18px;
}

.help-video-poster {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  margin: -22px -22px 0;
  color: #fff;
  background: linear-gradient(135deg, #173053, #6689ec);
}

.help-video-poster.vault { background: linear-gradient(135deg, #281f18, #c49a52); }
.help-video-poster.ai { background: linear-gradient(135deg, #2d2352, #9177ed); }

.help-video-poster>span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-left: 3px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
}

.help-video-poster small {
  position: absolute;
  right: 12px;
  bottom: 10px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(0,0,0,.55);
}

.help-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.help-faq details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}

.help-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.help-faq p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.help-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
  padding: 34px;
  border-radius: 24px;
  color: #fff;
  background: var(--navy);
}

.help-contact h2 {
  margin: 7px 0;
  font-size: 2rem;
}

.help-contact p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.7);
}

.help-contact .eyebrow {
  color: var(--gold);
}

.help-contact .btn {
  color: var(--navy);
  background: #fff;
  white-space: nowrap;
}

/* Premium help center */
.help-page {
  color: #11213a;
  background:
    radial-gradient(circle at 82% 3%, rgba(202, 158, 87, .1), transparent 29rem),
    linear-gradient(180deg, #f8f6f1 0, #fdfcf9 42rem, #f4f1eb 100%);
}

.help-page .help-hero {
  position: relative;
  isolation: isolate;
  width: min(1220px, calc(100% - 40px));
  margin-top: 30px;
  padding: 88px 48px 48px;
  overflow: hidden;
  border: 1px solid rgba(224, 193, 137, .19);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(202, 158, 87, .26), transparent 26rem),
    radial-gradient(circle at 4% 110%, rgba(64, 103, 151, .27), transparent 28rem),
    linear-gradient(145deg, #102944, #07172a 58%, #040c16);
  box-shadow: 0 36px 90px rgba(7, 23, 42, .18), inset 0 1px rgba(255, 255, 255, .09);
}

.help-page .help-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, #000, transparent 78%);
}

.help-page .help-hero .eyebrow {
  color: #e6bd75;
}

.help-page .help-hero h1 {
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.help-page .help-hero p {
  color: rgba(236, 242, 249, .76);
}

.help-page .help-search {
  padding: 9px 10px 9px 20px;
  border-color: rgba(255, 255, 255, .2);
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .95);
}

.help-page .help-search:focus-within {
  border-color: rgba(213, 172, 101, .8);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .27), 0 0 0 4px rgba(210, 169, 94, .14);
}

.help-page .help-popular > span,
.help-page .help-platform-picker > span {
  color: rgba(236, 242, 249, .68);
}

.help-page .help-popular button {
  border-color: rgba(255, 255, 255, .18);
  color: #e8eef5;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.help-page .help-popular button:hover {
  border-color: rgba(223, 188, 128, .55);
  color: #fff;
  background: rgba(202, 158, 87, .2);
}

.help-page .help-platform-picker {
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(14px);
}

.help-page .help-platform-picker > div {
  background: rgba(1, 8, 17, .34);
}

.help-page .help-platform-picker button {
  color: rgba(236, 242, 249, .68);
}

.help-page .help-platform-picker button.active {
  color: #0b1d33;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.help-assurance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(700px, 100%);
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.help-assurance span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 22px 14px 0;
  color: rgba(236, 242, 249, .72);
}

.help-assurance b {
  color: #ddb978;
  font-size: .72rem;
  letter-spacing: .09em;
}

.help-assurance small {
  font-size: .8rem;
  font-weight: 700;
}

.help-page .help-start,
.help-page .help-library,
.help-page .help-videos,
.help-page .help-faq {
  padding-block: 64px;
}

.help-page .help-section-head h2 {
  color: #0b1d33;
  letter-spacing: -.045em;
}

.help-page .help-section-head a {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(154, 111, 46, .35);
  color: #8f672b;
}

.help-page .help-start-grid article,
.help-page .help-video-grid article,
.help-page .help-guide-card,
.help-page .help-faq details {
  border-color: rgba(23, 42, 66, .1);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 46px rgba(15, 31, 52, .065), inset 0 1px rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.help-page .help-start-grid article:hover,
.help-page .help-video-grid article:hover,
.help-page .help-guide-card:hover,
.help-page .help-faq details:hover {
  transform: translateY(-3px);
  border-color: rgba(183, 133, 58, .3);
  box-shadow: 0 24px 58px rgba(15, 31, 52, .1), inset 0 1px rgba(255, 255, 255, .95);
}

.help-page .help-start-grid article {
  padding: 26px;
  border-radius: 24px;
}

.help-page .help-start-grid article > span {
  background: linear-gradient(145deg, #1b3858, #07172a);
  box-shadow: 0 9px 22px rgba(7, 23, 42, .2);
}

.help-page .help-mini-ui {
  border: 1px solid rgba(67, 102, 151, .1);
  background: linear-gradient(145deg, #eef4fc, #f8fafc);
}

.help-page .help-mini-ui.metadata {
  background: linear-gradient(145deg, #f2edfb, #fbf9fd);
}

.help-page .help-mini-ui.relations {
  background: linear-gradient(145deg, #f8f0df, #fffaf0);
}

.help-page .help-filters button {
  padding: 9px 15px;
  border-color: rgba(22, 41, 65, .12);
  color: #586578;
  background: rgba(255, 255, 255, .8);
}

.help-page .help-filters button:hover,
.help-page .help-filters button.active {
  border-color: #102944;
  color: #fff;
  background: linear-gradient(145deg, #1a3858, #08182b);
  box-shadow: 0 10px 24px rgba(8, 24, 43, .16);
}

.help-page .help-guide-card {
  overflow: hidden;
  border-radius: 21px;
}

.help-page .help-guide-card.featured {
  border-color: rgba(189, 141, 69, .34);
  background: linear-gradient(145deg, rgba(255, 252, 244, .95), rgba(255, 255, 255, .88));
}

.help-page .help-guide-card[open] {
  border-color: rgba(177, 127, 52, .34);
  box-shadow: 0 26px 62px rgba(15, 31, 52, .11);
}

.help-page .help-guide-card summary > b,
.help-page .help-faq summary > b {
  color: #9c7130;
}

.help-page .help-video-poster {
  background: linear-gradient(135deg, #0c2039, #456d9e);
}

.help-page .help-video-poster.vault {
  background: linear-gradient(135deg, #18130d, #b8873f);
}

.help-page .help-video-poster.ai {
  background: linear-gradient(135deg, #211c3b, #7059b5);
}

.help-page .help-contact {
  position: relative;
  overflow: hidden;
  padding: 44px 46px;
  border: 1px solid rgba(226, 192, 132, .2);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(202, 158, 87, .24), transparent 21rem),
    linear-gradient(145deg, #102944, #061426 68%, #040c16);
  box-shadow: 0 28px 70px rgba(7, 23, 42, .18), inset 0 1px rgba(255, 255, 255, .08);
}

.help-page .help-contact h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.045em;
}

.help-page .help-contact p {
  color: rgba(236, 242, 249, .72);
}

.help-page .help-contact .eyebrow {
  color: #e6bd75;
}

.help-contact-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.help-page .help-contact .btn {
  min-width: 190px;
  color: #0b1d33;
  background: #fff;
  box-shadow: 0 13px 30px rgba(0, 0, 0, .22);
}

.help-contact-link {
  color: rgba(244, 247, 251, .78);
  font-size: .86rem;
  font-weight: 700;
}

.help-contact-link:hover {
  color: #fff;
}

@media (max-width: 800px) {
  .help-start-grid,
  .help-video-grid,
  .help-guide-grid,
  .help-faq-grid {
    grid-template-columns: 1fr;
  }

  .help-section-head,
  .help-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .help-contact-actions {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .help-hero,
  .help-start,
  .help-library,
  .help-videos,
  .help-faq,
  .help-contact {
    width: min(100% - 24px, 1160px);
  }

  .help-hero {
    padding: 60px 0 42px;
  }

  .help-page .help-hero {
    margin-top: 16px;
    padding: 60px 20px 28px;
    border-radius: 25px;
  }

  .help-assurance {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 18px;
  }

  .help-assurance span {
    justify-content: flex-start;
    padding: 0;
  }

  .help-page .help-contact {
    padding: 34px 25px;
  }

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

  .help-guide-card summary {
    grid-template-columns: auto 1fr;
  }

  .help-guide-card summary>b {
    display: none;
  }

  .help-guide-body {
    padding: 0 16px 18px;
  }
}

/* Premium application and authentication visual system */
.app-body {
  --navy: #08172a;
  --navy2: #112945;
  --ink: #10213a;
  --muted: #6b7585;
  --line: rgba(22, 40, 64, .1);
  --bg: #f2f0eb;
  --gold: #c99a51;
  --shadow: 0 24px 60px rgba(14, 30, 51, .09), 0 2px 8px rgba(14, 30, 51, .04);
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 5%, rgba(201, 154, 81, .09), transparent 30rem),
    linear-gradient(145deg, #f6f4ef, #eeece7);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.app-body ::selection,
.auth-page ::selection {
  color: #fff;
  background: #9c753b;
}

.app-body :focus-visible,
.auth-page :focus-visible {
  outline: 2px solid #b98943;
  outline-offset: 3px;
}

.app-shell {
  grid-template-columns: 272px 1fr;
}

.sidebar {
  position: relative;
  padding: 24px 17px 18px;
  background:
    radial-gradient(circle at 30% -5%, rgba(202, 159, 88, .2), transparent 19rem),
    linear-gradient(165deg, #122945 0%, #071426 56%, #050e1a 100%);
  border-right: 1px solid rgba(231, 198, 141, .16);
  box-shadow: 18px 0 50px rgba(7, 20, 38, .08);
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 36%;
  background: linear-gradient(to bottom, rgba(234, 208, 157, .55), transparent);
  pointer-events: none;
}

.sidebar-brand {
  min-height: 78px;
  padding: 0 10px 22px;
}

.sidebar-brand img {
  width: 174px;
  height: 66px;
  filter: brightness(0) invert(1) drop-shadow(0 10px 20px rgba(0, 0, 0, .2));
}

.side-nav {
  gap: 6px;
  padding-right: 3px;
  scrollbar-color: rgba(231, 198, 141, .23) transparent;
}

.nav-group {
  border-radius: 13px;
}

.nav-group-toggle {
  color: #7f8da2;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.side-link {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #aeb9c9;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.side-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .055);
  transform: translateX(2px);
}

.side-link.active {
  color: #fff;
  border-color: rgba(232, 202, 149, .21);
  background: linear-gradient(90deg, rgba(213, 174, 106, .19), rgba(255, 255, 255, .055));
  box-shadow: inset 3px 0 #d1a35c, 0 9px 24px rgba(0, 0, 0, .12);
}

.side-icon {
  color: #c9a76e;
}

.sidebar-foot {
  background: transparent;
}

.profile-chip {
  border: 1px solid rgba(232, 202, 149, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  backdrop-filter: blur(14px);
}

.avatar {
  background: linear-gradient(145deg, #efd39d, #b98135);
  box-shadow: 0 8px 18px rgba(155, 108, 42, .22), inset 0 1px rgba(255, 255, 255, .5);
}

.app-topbar {
  height: 78px;
  justify-content: flex-start;
  padding: 0 34px;
  border-bottom-color: rgba(201, 154, 81, .16);
  background: rgba(250, 249, 246, .84);
  box-shadow: 0 8px 30px rgba(14, 30, 51, .035);
  backdrop-filter: blur(22px) saturate(140%);
}

.global-search {
  width: min(610px, 58vw);
  border-color: rgba(20, 41, 67, .11);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  box-shadow: inset 0 1px rgba(255, 255, 255, .85), 0 8px 24px rgba(14, 30, 51, .045);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.global-search:focus-within {
  border-color: rgba(201, 154, 81, .52);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 154, 81, .09), 0 12px 30px rgba(14, 30, 51, .07);
}

.topbar-search-submit {
  border-radius: 999px;
  padding: 8px 16px;
  background: linear-gradient(145deg, #183451, #08172a);
  box-shadow: inset 0 1px rgba(255, 255, 255, .12);
}

.icon-btn {
  border-color: rgba(20, 41, 67, .11);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 7px 20px rgba(14, 30, 51, .045), inset 0 1px rgba(255, 255, 255, .9);
}

.app-content {
  height: calc(100vh - 78px);
  padding: 38px 42px 72px;
  background:
    radial-gradient(circle at 92% 0, rgba(208, 171, 106, .1), transparent 26rem),
    linear-gradient(160deg, rgba(255, 255, 255, .2), transparent 45%);
}

.page-head {
  margin-bottom: 28px;
}

.app-body .page-head h1 {
  margin-top: 7px;
  color: #0b1b31;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.app-body .eyebrow {
  color: #966d2f;
  letter-spacing: .15em;
}

.app-body .btn {
  min-height: 42px;
  border: 1px solid rgba(18, 37, 61, .08);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, .28);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.app-body .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 30, 51, .12);
}

.app-body .btn-primary {
  border-color: rgba(230, 201, 149, .16);
  background: linear-gradient(145deg, #183653, #07172a);
  box-shadow: 0 10px 24px rgba(8, 23, 42, .16), inset 0 1px rgba(255, 255, 255, .14);
}

.panel,
.stat-card,
.quick-action,
.entity-card,
.settings-panel,
.filter-panel,
.upload-modal,
.detail-stats div,
.help-guide-card,
.help-faq details {
  border-color: rgba(19, 39, 64, .1);
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(251, 250, 247, .92));
  box-shadow: 0 16px 42px rgba(14, 30, 51, .055), inset 0 1px rgba(255, 255, 255, .92);
}

.panel,
.settings-panel,
.filter-panel {
  border-radius: 20px;
}

.panel {
  padding: 23px;
}

.panel-head {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(20, 41, 67, .075);
}

.panel-head>a,
.dashboard-assistant-copy>a {
  color: #8c652d;
}

.quick-grid {
  gap: 12px;
}

.quick-action {
  min-height: 112px;
  padding: 17px;
  border-radius: 17px;
}

.quick-action:hover,
.stat-card:hover,
.entity-card:hover {
  border-color: rgba(201, 154, 81, .35);
  box-shadow: 0 22px 52px rgba(14, 30, 51, .105), inset 0 1px rgba(255, 255, 255, .95);
  transform: translateY(-3px);
}

.quick-action>b {
  border: 1px solid rgba(201, 154, 81, .15);
  border-radius: 12px;
  color: #8d672f;
  background: linear-gradient(145deg, #fbf5e9, #efe1c7);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.stat-card {
  overflow: hidden;
  min-height: 106px;
  border-radius: 18px;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent, #c99a51) 8%, transparent);
  pointer-events: none;
}

.stat-icon {
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, .75);
}

.app-body .stat-card strong {
  color: #0b1b31;
  font-size: 25px;
  letter-spacing: -.035em;
}

.stats-grid[data-dashboard-stats] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.upload-source-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-assistant {
  position: relative;
  overflow: hidden;
  padding: 21px 22px;
  border-color: rgba(196, 154, 86, .24);
  border-radius: 21px;
  background:
    radial-gradient(circle at 100% 0, rgba(209, 173, 111, .2), transparent 18rem),
    linear-gradient(135deg, #fffdf8, #f7f2e9);
  box-shadow: 0 18px 46px rgba(63, 47, 25, .07), inset 0 1px rgba(255, 255, 255, .9);
}

.dashboard-assistant-copy>span {
  border: 1px solid rgba(231, 199, 143, .2);
  background: linear-gradient(145deg, #193959, #08172a);
  box-shadow: 0 10px 23px rgba(8, 23, 42, .18), inset 0 1px rgba(255, 255, 255, .15);
}

.chat-input,
.dashboard-assistant .chat-input {
  border-color: rgba(153, 110, 46, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(55, 42, 23, .055), inset 0 1px rgba(255, 255, 255, .9);
}

.filter-pill,
.tabs button,
.compare-tabs button,
.section-tabs a,
.section-tabs button {
  border-color: rgba(19, 39, 64, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px rgba(255, 255, 255, .8);
}

.filter-pill.active,
.tabs button.active,
.compare-tabs button.active,
.section-tabs .active {
  border-color: rgba(225, 193, 136, .17);
  background: linear-gradient(145deg, #173451, #08172a);
  box-shadow: 0 8px 20px rgba(8, 23, 42, .14), inset 0 1px rgba(255, 255, 255, .12);
}

.app-body input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.app-body select,
.app-body textarea,
.auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  border-color: rgba(19, 39, 64, .13);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 2px rgba(14, 30, 51, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.app-body input:focus,
.app-body select:focus,
.app-body textarea:focus,
.auth-card input:focus {
  outline: 0;
  border-color: rgba(193, 143, 67, .58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 154, 81, .1);
}

.detail-hero {
  overflow: hidden;
  border: 1px solid rgba(231, 201, 148, .2);
  border-radius: 24px;
  box-shadow: 0 28px 65px rgba(8, 23, 42, .16), inset 0 1px rgba(255, 255, 255, .12);
}

.modal-backdrop {
  background: rgba(4, 13, 24, .62);
  backdrop-filter: blur(12px);
}

.upload-modal {
  border-radius: 24px;
  box-shadow: 0 36px 100px rgba(4, 13, 24, .28), inset 0 1px rgba(255, 255, 255, .9);
}

.empty-state {
  border: 1px dashed rgba(161, 117, 51, .3);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 253, 248, .82), rgba(245, 240, 231, .72));
}

.auth-page {
  background: #f3f0e9;
}

.auth-page .site-header {
  border-bottom-color: rgba(21, 42, 67, .08);
  background: rgba(250, 248, 243, .88);
  backdrop-filter: blur(22px);
}

.auth-page .site-header .brand img {
  filter: drop-shadow(0 8px 16px rgba(7, 20, 38, .08));
}

.auth-page .site-header .main-nav,
.auth-page .site-header .nav-actions {
  display: none;
}

.auth-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 17%, rgba(202, 158, 87, .2), transparent 28rem),
    radial-gradient(circle at 87% 82%, rgba(70, 104, 145, .12), transparent 32rem),
    linear-gradient(145deg, #fbfaf6, #f3f0e9 58%, #ebe7df);
}

.auth-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(18, 43, 71, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 43, 71, .045) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, #000, transparent 73%);
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: min(460px, 100%);
  padding: 44px;
  border-color: rgba(162, 116, 49, .17);
  border-radius: 28px;
  background: rgba(255, 255, 253, .9);
  box-shadow: 0 38px 95px rgba(18, 36, 59, .14), 0 8px 26px rgba(18, 36, 59, .06), inset 0 1px rgba(255, 255, 255, .98);
  backdrop-filter: blur(22px);
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 13%;
  left: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(176, 126, 49, .75), transparent);
}

.auth-card h1 {
  color: #0a1a2f;
  font-size: 32px;
  letter-spacing: -.04em;
}

.auth-card>.eyebrow {
  color: #966d2f;
  letter-spacing: .14em;
}

.auth-card .btn-primary {
  background: linear-gradient(145deg, #183653, #07172a);
  box-shadow: 0 13px 30px rgba(8, 23, 42, .2), inset 0 1px rgba(255, 255, 255, .13);
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 250px 1fr; }
  .app-content { padding-inline: 30px; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { width: min(292px, 86vw); }
  .app-topbar { padding-inline: 18px; }
  .app-content { padding: 28px 22px 60px; }
  .stats-grid[data-dashboard-stats] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .app-topbar { height: 70px; }
  .app-content { height: calc(100vh - 70px); padding: 24px 16px 50px; }
  .app-body .page-head h1 { font-size: 29px; }
  .auth-wrap { padding: 22px 16px; }
  .auth-card { padding: 32px 24px; border-radius: 23px; }
  .stats-grid[data-dashboard-stats] { grid-template-columns: 1fr; }
}
