@font-face {
  font-family: "Public Sans";
  src: url("/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/public-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #10171b;
  --paper: #1a2129;
  --field: #151c22;
  --border: #30383f;
  --separator: #ffffff0e;
  --text: #e1e5e9;
  --muted: #a3afb9;
  --primary: #6741b6;
  --purple: #c5a7f4;
  --selected: #6741b62c;
  --green: #79d9b9;
  --amber: #f0c382;
  --red: #f4a6ae;
  --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 "Public Sans", system-ui, sans-serif;
}
a { color: var(--purple); }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.22; font-weight: 600; letter-spacing: -.02em; }
h2, h3 { font-size: 16px; line-height: 1.4; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  transform: translateY(-150%);
  background: var(--paper);
}
.skip-link:focus { transform: none; }
.crm-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-right: 1px solid var(--separator);
  padding: 12px;
}
.crm-brand {
  height: 58px;
  display: flex;
  align-items: center;
  padding-inline: 13px;
  margin-bottom: 18px;
}
.crm-brand img { display: block; width: 145px; max-height: 48px; object-fit: contain; }
.crm-nav { display: grid; gap: 4px; }
.crm-import { margin-top: auto; padding-top: 12px; }
.crm-import .button { width: 100%; }
.crm-nav-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 7px;
  background: #6741b61a;
  color: var(--purple);
  font-weight: 600;
}
.crm-nav-group span { font-size: 18px; line-height: 1; }
.crm-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 12px 9px 40px;
  border-radius: 6px;
}
.crm-nav a:hover { background: var(--paper); color: var(--text); }
.crm-nav a[aria-current] { color: var(--purple); background: var(--selected); }
.crm-nav a[aria-current]::before {
  content: "";
  width: 3px;
  height: 22px;
  border-radius: 2px;
  background: #926ae0;
  position: absolute;
  left: 12px;
}
.crm-workspace { margin-left: 220px; min-width: 0; }
.crm-header {
  min-height: 69px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--separator);
}
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); }
.breadcrumbs strong { color: var(--text); }
.currency-chip, .demo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid #7659a2;
  border-radius: 5px;
  padding: 4px 8px;
  background: var(--selected);
  color: var(--purple);
  font-size: .8125rem;
  text-transform: none;
}
.currency-chip { color: var(--muted); background: var(--paper); border-color: var(--border); }
.demo-label.actual { color: var(--green); border-color: #356955; background: #21463855; }
main { max-width: 1480px; min-width: 0; padding: 25px 28px 0; margin: 0 auto; }
.panel { padding: 19px; background: var(--paper); border: 1px solid var(--separator); border-radius: var(--radius); min-width: 0; }
.button, .icon-button {
  border: 1px solid #3e4852;
  border-radius: 6px;
  background: var(--paper);
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.button:not(:disabled):hover, .icon-button:not(:disabled):hover { background: #272f39; border-color: #596577; }
.button.subtle { background: transparent; color: var(--purple); }
.button.apply-button { background: var(--primary); border-color: #8c63db; color: #fff; }
.button.apply-button:hover { background: #7852c6; }
.icon-button { width: 34px; height: 34px; min-height: unset; padding: 0; color: var(--purple); font-size: 20px; }
.text-button { border: 0; background: none; color: var(--purple); padding: 5px 0; text-align: left; }
.text-button:hover { text-decoration: underline; }
label, .field-label { min-width: 0; color: var(--muted); }
input:not([type="checkbox"]):not([type="hidden"]), select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 6px;
  padding: 8px 10px;
}
input[type="checkbox"] { accent-color: #9a72e8; }
input::placeholder { color: var(--muted); }
input:focus, select:focus { border-color: var(--purple); }
.quiet-note, .detail-empty { color: var(--muted); font-size: .875rem; }
.error-box {
  background: #80374532;
  border: 1px solid #a55360;
  border-radius: var(--radius);
  padding: 11px 13px;
  margin: 12px 0;
  color: var(--red);
}
.request-empty { padding: 24px; color: var(--muted); }
.request-empty strong { display: block; color: var(--text); margin-bottom: 3px; }
.crm-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 27px 0 20px;
  margin-top: 30px;
  border-top: 1px solid var(--separator);
  color: var(--muted);
  font-size: .8125rem;
}
@media (max-width: 800px) {
  .crm-sidebar { position: static; width: auto; padding: 0 14px 10px; border: 0; border-bottom: 1px solid var(--separator); }
  .crm-brand { padding: 0; margin: 0; height: 52px; }
  .crm-brand img { width: 126px; max-height: 36px; }
  .crm-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .crm-nav-group { display: none; }
  .crm-import .button { width: auto; }
  .crm-nav a { padding: 8px 10px; justify-content: center; }
  .crm-nav a[aria-current]::before { inset: auto 12px 0; width: auto; height: 2px; }
  .crm-workspace { margin-left: 0; }
  .crm-header { min-height: 47px; padding: 8px 14px; font-size: .8125rem; }
  main { padding: 16px 14px 0; }
}
@media (max-width: 460px) {
  .panel { padding: 14px; }
  input:not([type="checkbox"]):not([type="hidden"]), select { font-size: 16px; }
}
