@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
}
:root {
  color-scheme: light;
  --canvas: #ffffff;
  --sidebar: #f6f7f9;
  --subtle: #f8f9fb;
  --text: #252a34;
  --muted: #636b79;
  --line: #e6e8ee;
  --accent: #3453d9;
  --selected: #edf1ff;
  --hover: #f3f5f9;
  --green: #257451;
  --green-bg: #eaf6ef;
  --error: #b63d45;
  --amber: #8c611f;
  --amber-bg: #fbf3e5;
  --blue: #405bb3;
  --blue-bg: #eef2ff;
  --avatar: #e9ecf3;
  --shadow: 0 16px 48px #14204026;
  --radius: 6px;
  font-family: "Public Sans", sans-serif;
  font-size: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #191c23;
    --sidebar: #14171d;
    --subtle: #1e222b;
    --text: #e5e8f0;
    --muted: #a0a9b9;
    --line: #2d3340;
    --accent: #a5b5ff;
    --selected: #272f48;
    --hover: #232936;
    --green: #8bd5ad;
    --green-bg: #20392e;
    --error: #ffabb2;
    --amber: #e9c184;
    --amber-bg: #3b3224;
    --blue: #afbdff;
    --blue-bg: #2a314b;
    --avatar: #313a4b;
    --shadow: 0 16px 48px #0006;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #191c23;
  --sidebar: #14171d;
  --subtle: #1e222b;
  --text: #e5e8f0;
  --muted: #a0a9b9;
  --line: #2d3340;
  --accent: #a5b5ff;
  --selected: #272f48;
  --hover: #232936;
  --green: #8bd5ad;
  --green-bg: #20392e;
  --error: #ffabb2;
  --amber: #e9c184;
  --amber-bg: #3b3224;
  --blue: #afbdff;
  --blue-bg: #2a314b;
  --avatar: #313a4b;
  --shadow: 0 16px 48px #0006;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button,
input,
select {
  border-radius: var(--radius);
}
input,
select {
  background: var(--canvas);
  color: var(--text);
  border: 1px solid var(--line);
  height: 36px;
}
input {
  padding: 0 12px;
  min-width: 0;
  caret-color: var(--accent);
}
input::placeholder {
  color: var(--muted);
}
select {
  padding: 0 28px 0 10px;
}
label {
  display: block;
  font-weight: 550;
  margin-bottom: 8px;
}
::selection {
  background: var(--selected);
  color: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
.rotated {
  transform: rotate(180deg);
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  padding: 10px 16px;
  background: var(--canvas);
  z-index: 20;
}
.skip-link:focus {
  top: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition: background 0.16s ease;
}
.button:hover {
  background: var(--hover);
}
.button.primary {
  background: #3453d9;
  border-color: #3453d9;
  color: #fff;
}
.button.primary:hover {
  background: #2945be;
}
.icon-button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--hover);
  color: var(--text);
}
.text-button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-weight: 550;
}
.text-button:hover {
  color: var(--accent);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 208px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 26px 12px 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  color: #3453d9;
}
.workspace-name {
  padding: 28px 12px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.workspace-name span {
  font-size: 9px;
  font-weight: 600;
  border: 1px solid var(--line);
  padding: 1px 4px;
  border-radius: 3px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav a,
.saved-views a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius);
  color: var(--muted);
}
.sidebar nav .icon {
  width: 17px;
  height: 17px;
}
.sidebar nav a:hover,
.saved-views a:hover {
  background: var(--hover);
  color: var(--text);
}
.sidebar nav a.selected {
  color: var(--accent);
  background: var(--selected);
  font-weight: 600;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
}
.saved-views {
  margin-top: 29px;
}
.nav-label {
  padding: 0 12px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.saved-views a > span:last-child {
  margin-left: auto;
  font-size: 11px;
}
.view-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.green-dot {
  background: var(--green);
}
.amber-dot {
  background: var(--amber);
}
.sidebar-bottom {
  margin-top: auto;
}
.sample-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 12px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 6px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 550;
}
.sidebar-footer small {
  font-size: 10px;
  font-weight: 400;
}
.sidebar-footer .theme-toggle {
  margin-left: auto;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--text);
  font-size: 10px;
  font-weight: 550;
  flex-shrink: 0;
}
.avatar.small {
  width: 27px;
  height: 27px;
  font-size: 9px;
}
.avatar.tiny {
  width: 20px;
  height: 20px;
  font-size: 8px;
}
.app-shell {
  margin-left: 208px;
  min-height: 100vh;
}
.topbar {
  height: 56px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.breadcrumb > span:first-child {
  color: var(--muted);
}
.breadcrumb .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.topbar-note {
  font-size: 11px;
  color: var(--muted);
}
.menu-toggle {
  display: none;
}
main:focus {
  outline: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 28px 26px;
}
.page-heading h1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.heading-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--subtle);
  border: 1px solid var(--line);
  min-width: 24px;
  height: 24px;
  border-radius: 5px;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 500;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.directory-layout.has-detail {
  grid-template-columns: minmax(0, 1fr) 316px;
}
.directory {
  min-width: 0;
}
.filters {
  display: flex;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  min-height: 46px;
}
.filter-button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 0 13px;
  padding-top: 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.filter-button span {
  font-size: 10px;
  font-weight: 500;
}
.filter-button:hover {
  color: var(--text);
}
.filter-button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.table-toolbar {
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 290px;
  min-width: 160px;
}
.search-field > .icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}
.search-field input {
  padding-left: 32px;
  padding-right: 28px;
  width: 100%;
  font-size: 12px;
}
.search-field kbd {
  position: absolute;
  right: 9px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 17px;
  text-align: center;
  line-height: 18px;
  font-size: 10px;
  color: var(--muted);
}
.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toolbar-filters select {
  font-size: 11px;
}
.owner-filter {
  position: relative;
}
.owner-filter > .icon {
  position: absolute;
  top: 10px;
  left: 8px;
  width: 15px;
  height: 15px;
  pointer-events: none;
  color: var(--muted);
}
.owner-filter select {
  padding-left: 28px;
  max-width: 145px;
}
.table-scroll {
  position: relative;
  overflow-x: auto;
  scrollbar-width: thin;
}
.account-table,
.records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.account-table th,
.records-table th {
  height: 35px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 450;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.account-table th,
.account-table td {
  padding: 10px 12px;
}
.account-table th:first-child,
.account-table td:first-child {
  padding-left: 28px;
}
.account-table th:last-child,
.account-table td:last-child {
  padding-right: 18px;
  padding-left: 0;
  width: 32px;
}
.account-table td {
  height: 67px;
  border-bottom: 1px solid var(--line);
}
.account-table tr[data-account-row] {
  transition: background 0.15s ease;
  cursor: pointer;
}
.account-table tr[data-account-row]:hover {
  background: var(--hover);
}
.account-table tr.is-selected {
  background: var(--selected);
}
.account-table tr.is-selected .account-open {
  color: var(--accent);
}
.company-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.company-cell .text-button {
  font-size: 12px;
  font-weight: 550;
}
.company-cell small {
  font-size: 11px;
  margin-top: 2px;
}
.company-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #0000000d;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo-1 {
  background: #283653;
  color: #fff;
}
.logo-2 {
  background: #e8e5de;
  color: #494333;
}
.logo-3 {
  background: #e9eee8;
  color: #466649;
}
.logo-4 {
  background: #2e594b;
  color: #fff;
}
.logo-5 {
  background: #eee9e2;
  color: #6c5542;
}
.logo-6 {
  background: #e7eaf4;
  color: #405582;
}
.logo-7 {
  background: #eae1e6;
  color: #8a435f;
}
.logo-8 {
  background: #494547;
  color: #fff;
}
.company-avatar.large {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 16px;
}
.number {
  text-align: right;
  white-space: nowrap;
}
.last-contact {
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.active {
  color: var(--green);
  background: var(--green-bg);
}
.status.needs-review {
  color: var(--amber);
  background: var(--amber-bg);
}
.status.prospect {
  color: var(--blue);
  background: var(--blue-bg);
}
.row-open {
  width: 20px;
}
.row-open .icon {
  width: 14px;
  height: 14px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px;
  font-size: 11px;
  color: var(--muted);
}
.portfolio-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.portfolio-summary > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.portfolio-summary strong {
  font-weight: 550;
  color: var(--text);
}
.directory-note {
  display: flex;
  gap: 5px;
  padding: 22px 28px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.directory-note a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.directory-note a:hover {
  color: var(--accent);
}
.directory-note .icon {
  width: 12px;
  height: 12px;
}
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
}
.empty-state h2 {
  margin: 12px 0 6px;
  font-size: 16px;
  color: var(--text);
}
.empty-state .button {
  margin-top: 18px;
}
.detail-column {
  display: none;
  min-width: 0;
  border-left: 1px solid var(--line);
}
.has-detail .detail-column {
  display: block;
}
.account-dialog {
  position: relative;
  inset: auto;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--text);
  width: 100%;
  max-width: none;
  max-height: none;
  overflow: visible;
}
.account-dialog[open] {
  display: block;
}
.detail-toolbar {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 16px 0 22px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.detail-toolbar > div {
  display: flex;
  align-items: center;
  gap: 1px;
}
.detail-toolbar form {
  display: flex;
  margin: 0;
}
.detail-toolbar .icon {
  width: 14px;
  height: 14px;
}
.detail-content {
  padding: 25px 22px;
}
.detail-identity h2 {
  font-size: 21px;
  font-weight: 600;
  margin-top: 15px;
  letter-spacing: -0.03em;
}
.detail-identity p {
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 11px;
}
.detail-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.account-facts {
  margin: 16px 0 0;
  display: grid;
  gap: 13px;
  font-size: 11px;
}
.account-facts > div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 8px;
  align-items: center;
}
.account-facts dt {
  color: var(--muted);
}
.account-facts dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.contact-card strong {
  font-size: 12px;
  font-weight: 500;
}
.contact-card a {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.contact-card a:hover {
  color: var(--accent);
}
.contact-avatar {
  width: 32px;
  height: 32px;
  background: var(--subtle);
  border: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.relationship-note {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 12px;
  color: var(--muted);
}
.note-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted);
}
.research-link {
  display: flex;
  margin-top: 28px;
  gap: 6px;
  font-size: 11px;
  padding: 7px 8px;
}
.research-link .icon {
  width: 14px;
  height: 14px;
}
.research-link .icon:last-child {
  margin-left: auto;
}
dialog::backdrop {
  background: #11182a60;
}
.account-dialog:modal {
  position: fixed;
  inset: 0 0 0 auto;
  width: 360px;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: panel-in 0.18s ease-out;
}
.account-dialog:modal .detail-toolbar {
  height: 56px;
}
.account-dialog:modal .detail-content {
  padding: 26px;
}
.preview-workspace {
  border-top: 0;
}
.preview-body {
  padding: 8px 28px 32px;
  max-width: 1100px;
}
.preview-body form {
  max-width: 700px;
}
.input-action {
  display: flex;
  gap: 10px;
}
.input-action input {
  flex: 1;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.preview-placeholder {
  display: grid;
  justify-items: center;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  margin-top: 32px;
  padding: 100px 24px;
  background: var(--subtle);
  color: var(--muted);
}
.preview-placeholder > .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
}
.preview-placeholder h2 {
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
}
.preview-placeholder p {
  font-size: 13px;
  margin-top: 8px;
}
.preview-result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 12px;
}
.preview-result-heading .text-button {
  font-size: 12px;
  color: var(--accent);
}
#preview-result {
  margin-top: 20px;
}
iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.panel {
  margin: 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 16px;
}
.panel-heading p {
  font-size: 12px;
  margin-top: 5px;
}
.count-badge {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}
.records-table td,
.records-table th {
  padding: 14px 16px;
}
.records-table td {
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.records-table td.record-notes {
  white-space: normal;
  min-width: 200px;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.database-error {
  padding: 32px;
}
.database-error h2 {
  margin: 16px 0 10px;
}
.database-error details {
  margin: 22px 0;
  overflow-wrap: anywhere;
}
.database-error pre {
  white-space: pre-wrap;
  font-size: 12px;
}
.login-layout {
  display: grid;
  grid-template-columns: 360px 220px;
  gap: 70px;
  align-items: start;
  justify-content: center;
  margin: 65px 28px;
}
.login-heading > .icon {
  width: 26px;
  height: 26px;
  margin-bottom: 22px;
  color: var(--muted);
}
.login-heading h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}
.login-heading p {
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.7;
}
.login-panel form {
  margin-top: 28px;
}
.login-panel input {
  width: 100%;
  height: 40px;
}
.login-panel label {
  font-size: 12px;
}
.login-panel .primary {
  width: 100%;
  margin-top: 18px;
  min-height: 40px;
}
.login-help {
  font-size: 11px;
  color: var(--muted);
  margin-top: 22px;
  line-height: 1.7;
}
.back-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--accent);
}
.login-note {
  margin-top: 70px;
  border-left: 1px solid var(--line);
  padding-left: 28px;
  color: var(--muted);
}
.login-note h3 {
  color: var(--text);
  font-size: 13px;
}
.login-note p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
}
.login-note > span {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  margin-top: 24px;
}
.login-note .icon {
  width: 13px;
  height: 13px;
}
.error-message {
  font-size: 12px;
  color: var(--error);
  margin-top: 9px;
}
@keyframes panel-in {
  from {
    transform: translateX(20px);
  }
  to {
    transform: translateX(0);
  }
}
@media (min-width: 1600px) {
  .directory-layout.has-detail {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .detail-content {
    padding: 28px;
  }
  .account-table td {
    height: 72px;
  }
  .company-cell .text-button {
    font-size: 13px;
  }
  .account-table {
    font-size: 13px;
  }
  .status {
    font-size: 11px;
  }
  .sidebar {
    width: 224px;
  }
  .app-shell {
    margin-left: 224px;
  }
}
@media (max-width: 1250px) {
  .has-detail .last-contact {
    display: none;
  }
  .filters {
    gap: 17px;
    padding-left: 22px;
    padding-right: 22px;
  }
  .table-toolbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .toolbar-filters select {
    max-width: 115px;
  }
  .company-cell {
    gap: 8px;
  }
  .account-table td:first-child,
  .account-table th:first-child {
    padding-left: 22px;
  }
}
@media (max-width: 1099px) {
  .directory-layout.has-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .directory-layout .detail-column {
    display: contents;
  }
  .account-dialog:modal {
    display: block;
  }
  .has-detail .last-contact {
    display: table-cell;
  }
  .table-toolbar,
  .filters {
    padding-left: 28px;
    padding-right: 28px;
  }
  .account-table td:first-child,
  .account-table th:first-child {
    padding-left: 28px;
  }
  .login-layout {
    gap: 35px;
    grid-template-columns: minmax(260px, 360px) 190px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease-out;
    box-shadow: var(--shadow);
    width: 224px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-shell {
    margin-left: 0;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .topbar {
    justify-content: flex-start;
    gap: 12px;
    padding: 0 18px;
  }
  .topbar-note {
    margin-left: auto;
  }
  .page-heading {
    padding: 28px 22px 22px;
  }
  .filters,
  .table-toolbar {
    padding-left: 22px;
    padding-right: 22px;
  }
  .account-table td:first-child,
  .account-table th:first-child {
    padding-left: 22px;
  }
  .directory-note {
    padding: 20px 22px;
  }
  .panel {
    margin: 0 22px;
  }
  .login-layout {
    margin: 40px 22px;
  }
}
@media (max-width: 560px) {
  .topbar-note {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    padding: 25px 18px 20px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    max-width: 230px;
    font-size: 12px;
    line-height: 1.65;
  }
  .page-heading .button {
    font-size: 12px;
    padding: 6px 9px;
  }
  .filters {
    padding: 0 18px;
    gap: 19px;
    overflow-x: auto;
  }
  .filter-button {
    font-size: 11px;
    min-height: 44px;
  }
  .table-toolbar {
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .search-field input {
    height: 38px;
  }
  .toolbar-filters {
    width: 100%;
    justify-content: space-between;
  }
  .toolbar-filters select {
    max-width: none;
    min-height: 36px;
  }
  .account-table {
    min-width: 510px;
  }
  .account-table td {
    height: 68px;
  }
  .account-table td:first-child,
  .account-table th:first-child {
    padding-left: 18px;
  }
  .account-table .last-contact {
    display: none;
  }
  .account-table th,
  .account-table td {
    padding-left: 9px;
    padding-right: 9px;
  }
  .company-cell .text-button {
    font-size: 12px;
  }
  .company-cell {
    gap: 9px;
  }
  .company-avatar {
    width: 29px;
    height: 29px;
  }
  .account-table th:last-child,
  .account-table td:last-child {
    padding-right: 10px;
  }
  .table-footer {
    padding: 15px 18px;
    font-size: 10px;
  }
  .portfolio-summary {
    padding: 17px 18px;
    flex-wrap: wrap;
    font-size: 10px;
    margin-top: 0;
    gap: 8px;
  }
  .directory-note {
    padding: 18px;
    font-size: 10px;
  }
  .preview-body {
    padding: 5px 18px 24px;
  }
  .input-action {
    gap: 7px;
  }
  .input-action input {
    width: 0;
  }
  .preview-placeholder {
    padding: 75px 20px;
  }
  .preview-placeholder h2 {
    font-size: 16px;
  }
  .preview-placeholder p {
    font-size: 12px;
  }
  .preview-workspace .page-heading {
    flex-wrap: wrap;
  }
  .panel {
    margin: 0 18px;
  }
  .panel-heading {
    padding: 20px 18px;
  }
  .panel-heading > .status {
    display: none;
  }
  .login-layout {
    display: block;
    max-width: 360px;
    margin: 24px auto;
    padding: 0 18px;
  }
  .login-note {
    margin: 35px 0 0;
    padding: 22px 0;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .login-note > span {
    margin-top: 14px;
  }
  .login-heading h2 {
    font-size: 21px;
  }
  .login-heading > .icon {
    margin-bottom: 16px;
  }
  .database-error {
    padding: 24px;
  }
  .account-dialog:modal .detail-content {
    padding: 24px;
  }
  .button,
  .icon-button {
    min-height: 36px;
  }
  .detail-toolbar .icon-button {
    width: 36px;
  }
  .sidebar nav a,
  .saved-views a {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.entry-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--canvas);
}
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
}
.entry-header .brand {
  padding: 0;
  font-size: 19px;
}
.entry-header .brand-mark {
  width: 30px;
  height: 30px;
}
.entry-main {
  flex: 1;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding: 55px 24px 110px;
}
.entry-form {
  min-width: 0;
  width: 350px;
  max-width: 100%;
}
.entry-form h1 {
  font-size: 26px;
  letter-spacing: -0.035em;
}
.entry-intro {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.entry-form form {
  margin-top: 34px;
}
.entry-form label {
  font-size: 12px;
  margin: 20px 0 8px;
}
.entry-form input {
  height: 42px;
  width: 100%;
  font-size: 13px;
}
.entry-form .primary {
  width: 100%;
  height: 42px;
  margin-top: 24px;
}
.entry-form .primary .icon {
  margin-left: auto;
}
.entry-form .primary {
  justify-content: flex-start;
  padding: 0 14px;
}
.entry-credentials {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.entry-credentials > span {
  font-weight: 550;
  color: var(--text);
}
.entry-credentials p {
  margin-top: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.entry-credentials code {
  font-size: 11px;
  color: var(--text);
  background: var(--subtle);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}
.credential-separator {
  margin: 0 5px;
  color: var(--muted);
}
.entry-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .entry-header {
    padding: 25px 22px;
  }
  .entry-header .brand {
    font-size: 17px;
  }
  .entry-main {
    padding: 55px 26px 80px;
  }
  .entry-form h1 {
    font-size: 24px;
  }
  .entry-footer {
    padding: 22px;
    font-size: 10px;
  }
}

@media (max-width: 560px) {
  .account-table {
    min-width: 0;
    table-layout: auto;
  }
  .account-table th:nth-child(3),
  .account-table td:nth-child(3),
  .account-table th:nth-child(4),
  .account-table td:nth-child(4) {
    display: none;
  }
  .account-table td:first-child,
  .account-table th:first-child {
    width: 65%;
  }
  .account-table td {
    height: 67px;
  }
  .account-table .status {
    font-size: 10px;
  }
  .account-table td:last-child {
    width: 24px;
  }
  .account-table .row-open {
    width: 24px;
  }
  .sidebar:not(.open) {
    box-shadow: none;
  }
}
