:root {
  color-scheme: light;
  --ink: #142935;
  --muted: #526773;
  --line: #dce4e5;
  --canvas: #f5f7f7;
  --nav: #102631;
  --nav-muted: #b1c1c6;
  --green: #047857;
  --green-dark: #065b47;
  --mint: #e1f4ec;
  --blue: #08678b;
  --paper: #fff;
  --red: #9f392d;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
label,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #0a91c4;
  outline-offset: 3px;
}
button,
a.action {
  border: 0;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.95rem, 3vw, 2.7rem);
  line-height: 1.1;
  font-weight: 690;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 670;
}
h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 650;
}
small,
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  z-index: 20;
  top: -70px;
  left: 12px;
  background: white;
  padding: 10px 14px;
  border-radius: 5px;
}
.skip:focus {
  top: 10px;
}
.loading {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
}
.loading img {
  width: 175px;
}
.action,
.icon-btn,
.nav-item,
.plain,
.search-trigger,
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
}
.action {
  min-height: 41px;
  padding: 9px 16px;
  border-radius: 7px;
  color: white;
  background: var(--green);
  line-height: 1.25;
  text-align: center;
  font-size: 0.9rem;
}
.action:hover {
  background: var(--green-dark);
  text-decoration: none;
}
.action.secondary {
  color: var(--ink);
  background: #fff;
  border: 1px solid #c9d6d8;
}
.action.secondary:hover,
.icon-btn:hover,
.search-trigger:hover {
  background: #edf2f2;
}
.action svg,
.plain svg {
  width: 17px;
  height: 17px;
}
.plain {
  background: none;
  padding: 3px;
  color: var(--green-dark);
  font-size: 0.88rem;
}
.plain:hover {
  text-decoration: underline;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0;
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.visually-hidden {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  background: #fff;
}
.auth-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 82px);
  color: #f8fffc;
  background: radial-gradient(ellipse at 108% 84%, #145554 0, transparent 58%), #102936;
  gap: 45px;
}
.auth-intro::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: 95%;
  height: 90%;
  right: -40%;
  bottom: -33%;
  opacity: 0.38;
  transform: rotate(30deg);
  background: repeating-radial-gradient(
    ellipse at 60% 88%,
    transparent 0 23px,
    rgba(132, 222, 193, 0.37) 24px,
    transparent 25px 42px
  );
}
.brand-image {
  width: 170px;
  display: block;
  height: auto;
}
.auth-intro .brand-image {
  width: 190px;
}
.auth-intro h1 {
  font-size: clamp(2.6rem, 4.7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
  max-width: 9.5em;
}
.auth-intro h1 span {
  color: #8ee4bf;
}
.auth-copy {
  max-width: 505px;
  line-height: 1.65;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: #d5e5e8;
  margin-top: 23px;
}
.auth-intro .section-label {
  color: #9fdac0;
  margin-bottom: 18px;
}
.section-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-example {
  max-width: 530px;
  width: 100%;
  border-top: 1px solid #517174;
  padding-top: 17px;
}
.auth-example > p {
  font-size: 0.8rem;
  color: #d6e8e5;
  margin-bottom: 12px;
}
.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
}
.route span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.route > svg {
  color: #8eb4b6;
  width: 14px;
}
.route span svg {
  color: #8ee4bf;
  width: 16px;
}
.auth-panel {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 65px clamp(28px, 6vw, 110px);
}
.auth-panel-inner {
  width: 100%;
  max-width: 415px;
}
.auth-panel .section-label {
  color: var(--green);
  margin-bottom: 13px;
}
.auth-panel h2 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  margin-bottom: 8px;
}
.auth-panel .intro-text {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 26px;
}
.auth-options {
  display: grid;
  gap: 12px;
  margin-top: 15px;
  text-align: center;
}
.auth-options .plain {
  justify-self: center;
}
.auth-foot {
  margin-top: 26px;
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.auth-foot a {
  font-weight: 600;
}
.field {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
  font-size: 0.87rem;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.filter-input,
.search-input {
  color: var(--ink);
  border: 1px solid #bccbce;
  border-radius: 6px;
  background: white;
  padding: 10px 12px;
  min-height: 41px;
  width: 100%;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 76px;
}
.field small {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
}
.fields,
.auth-form {
  display: grid;
  gap: 16px;
}
.fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.span-all {
  grid-column: 1/-1;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.error {
  margin: 12px 0;
  color: #862d27;
  background: #fff1ed;
  border: 1px solid #edc3bc;
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 0.89rem;
  line-height: 1.5;
}
.error:empty {
  display: none;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--nav);
  color: #edf5f5;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  position: sticky;
  top: 0;
  padding: 24px 14px 14px;
  z-index: 4;
}
.side-brand {
  display: block;
  padding: 4px 10px 23px;
  border-bottom: 1px solid #2d434c;
}
.side-brand img {
  width: 172px;
}
.workspace {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 21px 8px;
  min-width: 0;
}
.workspace-icon {
  background: #295044;
  border: 1px solid #427461;
  border-radius: 8px;
  display: grid;
  place-items: center;
  height: 35px;
  width: 35px;
  color: #b8f1d4;
  flex-shrink: 0;
}
.workspace-icon svg {
  width: 18px;
}
.workspace strong,
.workspace small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.workspace > div {
  min-width: 0;
}
.workspace strong {
  font-size: 0.92rem;
}
.workspace small {
  color: #b4c7cc;
  font-size: 0.73rem;
  margin-top: 2px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  color: #cad7da;
  border-radius: 7px;
  min-height: 42px;
  font-size: 0.92rem;
  font-weight: 530;
  padding: 9px 12px;
}
.nav-item svg,
.side-link svg {
  width: 18px;
  height: 18px;
}
.nav-item:hover {
  background: #1b3641;
  color: #fff;
  text-decoration: none;
}
.nav-item[aria-current="page"] {
  color: #d6ffef;
  background: #224e46;
  box-shadow: inset 3px 0 #77ddaa;
}
.nav-sep {
  margin: 13px 9px 9px;
  border: 0;
  border-top: 1px solid #304851;
}
.side-footer {
  margin-top: auto;
  padding: 16px 6px 0;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--nav-muted);
  padding: 7px;
  background: transparent;
}
.mobile-toggle,
.mobile-logo {
  display: none;
}
.content {
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 9px clamp(20px, 3vw, 54px);
  border-bottom: 1px solid var(--line);
  background: white;
  gap: 14px;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
  color: #748991;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.search-trigger {
  color: var(--muted);
  background: transparent;
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 7px 8px;
  font-weight: 500;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #dfede8;
  color: #225b48;
  font-weight: 700;
  font-size: 0.76rem;
}
.profile-button {
  font-size: 0.84rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0;
  max-width: 250px;
}
.profile-button .name {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
#main.workspace-main {
  max-width: 1720px;
  margin: 0 auto;
  padding: clamp(23px, 3vw, 48px) clamp(20px, 3vw, 54px) 55px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.98rem;
  line-height: 1.5;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.stats {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 15px;
  margin-bottom: 19px;
}
.stat {
  min-width: 0;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.stat.primary {
  background: #163b3e;
  border-color: #163b3e;
  color: white;
}
.stat.primary::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -62px;
  width: 170px;
  height: 150px;
  opacity: 0.38;
  transform: rotate(-30deg);
  background: repeating-radial-gradient(
    ellipse at 85% 70%,
    transparent 0 9px,
    #60a896 10px,
    transparent 11px 23px
  );
  pointer-events: none;
}
.stat-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.stat-name svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}
.stat.primary .stat-name,
.stat.primary .stat-name svg {
  color: #b5eddb;
}
.stat strong {
  display: block;
  font-size: clamp(1.55rem, 2.55vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.055em;
  font-weight: 660;
  margin: 12px 0 6px;
  font-variant-numeric: tabular-nums;
}
.stat small {
  font-size: 0.8rem;
  display: block;
}
.stat.primary small {
  color: #cae0dc;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.13fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  padding: 20px 21px 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head .plain {
  flex-shrink: 0;
}
.panel-body {
  padding: 18px 21px;
}
.stage-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(65px, 1fr) minmax(70px, auto);
  column-gap: 12px;
  align-items: center;
  padding: 9px 0;
  font-size: 0.89rem;
}
.stage-row .amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 590;
}
.stage-name {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}
.stage-name small {
  font-size: 0.75rem;
}
progress {
  appearance: none;
  border: none;
  width: 100%;
  height: 6px;
  background: #e8eeee;
  border-radius: 20px;
  overflow: hidden;
  color: var(--bar, #328f78);
}
progress::-webkit-progress-bar {
  background: #e8eeee;
  border-radius: 20px;
}
progress::-webkit-progress-value {
  background: var(--bar, #328f78);
  border-radius: 20px;
}
progress::-moz-progress-bar {
  background: var(--bar, #328f78);
  border-radius: 20px;
}
.stage-new {
  --bar: #497f99;
}
.stage-qualified {
  --bar: #3b8290;
}
.stage-proposal {
  --bar: #17865d;
}
.stage-won {
  --bar: #28714a;
}
.stage-lost {
  --bar: #9e7764;
}
.overview-list {
  display: grid;
}
.list-row {
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  text-align: left;
  color: var(--ink);
}
.list-row + .list-row {
  border-top: 1px solid var(--line);
}
.list-row:hover,
.result:hover {
  background: #f3f8f6;
}
.list-row strong,
.result strong {
  display: block;
  font-weight: 620;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.list-row small,
.result small {
  display: block;
  line-height: 1.4;
  margin-top: 3px;
}
.mini-date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 550;
}
.overdue {
  color: #9a4930;
}
.overview-wide {
  margin-top: 19px;
}
.toolbar {
  padding: 14px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-box {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}
.filter-box svg {
  width: 16px;
  color: var(--muted);
}
.filter-input {
  border: 0;
  min-height: 32px;
  width: 240px;
  padding: 4px;
  background: transparent;
}
.tabs {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  align-items: center;
}
.tab {
  padding: 7px 9px;
  border-radius: 5px;
  background: transparent;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 560;
}
.tab.active {
  color: var(--green-dark);
  background: var(--mint);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th {
  padding: 10px 16px;
  background: #f5f8f7;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid #e8eeee;
  vertical-align: middle;
  overflow-wrap: anywhere;
  max-width: 360px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td .row-link {
  background: transparent;
  color: var(--ink);
  padding: 3px 0;
  font-size: inherit;
  font-weight: 625;
  text-align: left;
  overflow-wrap: anywhere;
}
td .row-link:hover {
  color: var(--green);
  text-decoration: underline;
}
.sub {
  color: var(--muted);
  display: block;
  font-size: 0.79rem;
  margin-top: 3px;
  line-height: 1.4;
}
.number {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 30px;
  background: #eaf0f3;
  color: #385868;
  padding: 4px 9px;
  font-size: 0.77rem;
  font-weight: 620;
  white-space: nowrap;
}
.badge.stage-qualified,
.badge.info {
  color: #086080;
  background: #dff2f7;
}
.badge.stage-proposal {
  color: #805b09;
  background: #faf0d6;
}
.badge.stage-won,
.badge.good {
  color: #186146;
  background: #daf1e5;
}
.badge.stage-lost {
  color: #85463a;
  background: #f7e7e1;
}
.empty {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 33px 16px;
  gap: 9px;
}
.empty svg {
  width: 23px;
  height: 23px;
  color: #538578;
}
.empty p {
  color: var(--muted);
  max-width: 44ch;
  line-height: 1.5;
  font-size: 0.88rem;
}
.empty .plain {
  margin-top: 4px;
}
.section-stack {
  display: grid;
  gap: 20px;
}
.integration {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
  gap: 22px;
  background: #143a3d;
  color: #fff;
  padding: clamp(22px, 3vw, 38px);
  border-radius: 10px;
  align-items: center;
}
.integration h2 {
  font-size: 1.75rem;
}
.integration p {
  margin: 9px 0 17px;
  color: #d0e3de;
  line-height: 1.6;
  max-width: 58ch;
}
.integration ol {
  color: #d5ece3;
  padding-left: 25px;
  margin: 0;
  line-height: 1.85;
}
.import-box {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.import-box p,
.dialog-intro,
.details p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.import-box input {
  max-width: 100%;
  font-size: 0.9rem;
}
.import-box input::file-selector-button {
  border: 1px solid #c8d6d7;
  padding: 7px 11px;
  border-radius: 5px;
  background: #f4f8f6;
  color: var(--ink);
  margin-right: 8px;
  cursor: pointer;
}
.import-summary {
  width: 100%;
  padding: 16px;
  border-radius: 7px;
  border: 1px solid #badbcb;
  background: #eff9f3;
  line-height: 1.5;
}
.import-summary ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: min(580px, calc(100vw - 28px));
  max-height: 88dvh;
  color: var(--ink);
  box-shadow: 0 24px 80px #10263138;
}
dialog::backdrop {
  background: rgba(13, 32, 41, 0.54);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: white;
  position: sticky;
  top: 0;
  z-index: 1;
}
.dialog-body {
  padding: 20px 22px;
}
.dialog-intro {
  margin-bottom: 15px;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: #f8faf9;
}
.details {
  display: grid;
  gap: 14px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  gap: 13px;
}
.detail-grid dt {
  color: var(--muted);
  font-size: 0.81rem;
  margin-bottom: 3px;
}
.detail-grid dd {
  margin: 0;
  font-weight: 580;
  overflow-wrap: anywhere;
}
.search-list {
  margin-top: 12px;
  max-height: 48vh;
  overflow: auto;
}
.result {
  width: 100%;
  background: white;
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
#notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9;
  max-width: min(440px, calc(100vw - 32px));
  background: #173c36;
  color: white;
  border-radius: 7px;
  box-shadow: 0 5px 15px #10263120;
  padding: 11px 17px;
  font-size: 0.9rem;
}
#notice:empty {
  display: none;
}
@media (min-width: 1550px) {
  .shell {
    grid-template-columns: 254px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 9px;
    padding-right: 9px;
  }
  .overview-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-head,
  .panel-body {
    padding-left: 15px;
    padding-right: 15px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stage-row {
    grid-template-columns: 1fr minmax(45px, 0.65fr) auto;
    gap: 7px;
  }
  .name {
    display: none;
  }
}
@media (max-width: 780px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    padding: 24px 25px 30px;
    gap: 27px;
  }
  .auth-intro h1 {
    font-size: clamp(2.25rem, 8vw, 3.8rem);
    max-width: 14em;
  }
  .auth-intro .brand-image {
    width: 157px;
  }
  .auth-copy {
    margin-top: 13px;
    font-size: 0.96rem;
  }
  .auth-example {
    display: none;
  }
  .auth-intro .section-label {
    margin-bottom: 10px;
  }
  .auth-panel {
    padding: 32px 24px 40px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(277px, 80vw);
    transform: translateX(-104%);
    height: 100dvh;
    visibility: hidden;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
  }
  .shell.menu-open .menu-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 3;
    background: #10263170;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    min-height: 55px;
    padding: 7px 15px;
    gap: 8px;
  }
  .top-actions {
    gap: 6px;
    margin-left: auto;
  }
  .breadcrumb {
    gap: 5px;
    font-size: 0.8rem;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 8px;
  }
  .stat strong {
    font-size: 1.55rem;
  }
  .stat {
    padding: 13px;
  }
  .workspace-main .page-heading {
    margin-bottom: 18px;
  }
  .workspace-main .page-heading p {
    font-size: 0.9rem;
  }
  .integration {
    grid-template-columns: 1fr;
  }
  .search-trigger span {
    display: none;
  }
  .side-footer {
    margin-bottom: 5px;
  }
}
@media (max-width: 540px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stat.primary {
    grid-column: 1/-1;
  }
  .stat.primary strong {
    font-size: 2rem;
  }
  .stat-name {
    font-size: 0.79rem;
  }
  .stat-name svg {
    width: 15px;
  }
  .stat small {
    font-size: 0.74rem;
  }
  #main.workspace-main {
    padding: 22px 13px 40px;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .breadcrumb strong,
  .breadcrumb svg {
    display: none;
  }
  .dialog-head,
  .dialog-body,
  .dialog-foot {
    padding-left: 15px;
    padding-right: 15px;
  }
  td,
  th {
    padding-left: 11px;
    padding-right: 11px;
  }
  .toolbar {
    padding: 10px;
  }
  .filter-input {
    width: min(240px, 65vw);
  }
  .auth-foot {
    margin-top: 16px;
  }
  .stage-row {
    grid-template-columns: 1fr 1fr auto;
  }
}
.menu-shade {
  display: none;
}
.record-links {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 11px;
}
.record-links summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--green-dark);
}
.chart-note {
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.55;
  margin-bottom: 9px;
}
[hidden] {
  display: none !important;
}
