@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Hairline.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Thin.ttf") format("truetype");
  font-style: normal;
  font-weight: 200;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Heavy.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  src: url("../fonts/yekan-bakh/YekanBakhFaNum-Fat.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  --brand: #5546dc;
  --brand-dark: #3e32b1;
  --brand-soft: #efedff;
  --ink: #24243c;
  --muted: #7b8093;
  --bg: #f7f8fc;
  --line: #eaecf3;
  --green: #168666;
  --green-soft: #eaf8f1;
  --amber: #a37415;
  --red: #c64759;
  --radius: 14px;
  --shadow: 0 4px 24px #27245d05;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --font-family: "Yekan Bakh FaNum", Tahoma, sans-serif;
  font-family: var(--font-family);
  font-weight: 400;
  font-synthesis: none;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #9284ff;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--brand);
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.shell {
  padding-right: 248px;
}
.sidebar {
  position: fixed;
  inset: 0 0 0 auto;
  width: 248px;
  background: white;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 20;
  padding: 30px 18px 16px;
}
.brand {
  font-size: 29px;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -1px;
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.sidebar .brand {
  padding: 0 18px 28px;
}
.nav-label {
  font-size: 12px;
  color: #9297a6;
  margin: 20px 16px 9px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: auto;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #666b80;
  border-radius: 9px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover {
  background: #f7f7fc;
}
.nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.nav .count {
  margin-right: auto;
  font-size: 12px;
  padding: 0 7px;
  border-radius: 5px;
  background: #e4dfff;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}
.help-box {
  background: #f7f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px;
}
.help-box p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 12px;
}
.help-box button {
  width: 100%;
}
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 5px 0;
}
.avatar {
  width: 37px;
  height: 37px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  background: #f1ebdf;
  color: #8b7146;
  font-weight: 700;
  flex-shrink: 0;
}
.user small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 16px;
}
.crumb {
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.crumb strong {
  color: var(--ink);
  font-weight: 500;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.top-actions .date {
  color: var(--muted);
  font-size: 12px;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  color: #71758b;
}
.dot {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef9776;
  border: 1px solid white;
}
.content {
  max-width: 1550px;
  margin: auto;
  padding: 32px 36px 36px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.page-head h1 {
  font-size: 24px;
  letter-spacing: -0.7px;
  margin: 0 0 8px;
  font-weight: 800;
}
.page-head p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.btn:hover {
  border-color: #bfb9eb;
  background: #fafaff;
}
.btn.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 3px 6px #5546dc16;
}
.btn.primary:hover {
  background: var(--brand-dark);
}
.btn.small {
  padding: 7px 11px;
  font-size: 12px;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--brand);
}
.btn.danger {
  background: #fff2f3;
  color: var(--red);
  border-color: #f5d3d8;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.metric,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.metric {
  padding: 21px 20px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: #71758a;
  font-size: 12px;
}
.metric-icon {
  width: 33px;
  height: 33px;
  background: #f5f4ff;
  color: #8176db;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.metric-value {
  font-size: 25px;
  font-weight: 800;
  margin: 15px 0 12px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.metric-value small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-right: 4px;
  letter-spacing: 0;
}
.metric-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.metric-foot .up {
  color: var(--green);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f1f7;
  color: #73788b;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  font-weight: 500;
}
.badge.green {
  background: var(--green-soft);
  color: var(--green);
}
.badge.purple {
  background: var(--brand-soft);
  color: var(--brand);
}
.badge.amber {
  background: #fff6e6;
  color: var(--amber);
}
.badge.red {
  background: #fceff0;
  color: var(--red);
}
.panel {
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 21px;
}
.panel-head h2 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
}
.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 0;
}
.ladder {
  background: linear-gradient(105deg, #fff 50%, #fbfaff);
  position: relative;
}
.ladder-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 15px;
}
.ladder-summary strong {
  font-size: 14px;
}
.purple-text {
  color: var(--brand);
}
.tier-track {
  display: flex;
  position: relative;
  margin: 31px 6px 25px;
  gap: 0;
}
.tier-track:before {
  content: "";
  position: absolute;
  top: 13px;
  right: 0;
  left: 0;
  height: 5px;
  background: #eeedf5;
  border-radius: 6px;
}
.tier-track:after {
  content: "";
  position: absolute;
  top: 13px;
  right: 0;
  width: var(--progress, 62%);
  height: 5px;
  background: var(--brand);
  border-radius: 6px;
}
.tier {
  flex: 1;
  z-index: 1;
  text-align: center;
}
.tier:first-child {
  text-align: right;
}
.tier:last-child {
  text-align: left;
}
.tier-circle {
  width: 29px;
  height: 29px;
  background: white;
  border: 3px solid #e7e6f1;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  color: white;
}
.tier.done .tier-circle {
  background: var(--brand);
  border-color: var(--brand);
}
.tier.current .tier-circle {
  outline: 5px solid #efecff;
}
.tier strong {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}
.tier span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.rule {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f6f5ff;
  color: #797397;
  font-size: 12px;
  line-height: 1.9;
}
.rule svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
}
.grid-even {
  grid-template-columns: 1fr 1fr;
}
.table-wrap {
  overflow: auto;
  margin: 0 -24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  white-space: nowrap;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: #9297a7;
  background: #fafbfe;
  padding: 12px 20px;
  border-block: 1px solid var(--line);
}
td {
  padding: 17px 20px;
  border-bottom: 1px solid #f0f1f6;
  font-size: 12px;
}
tr:last-child td {
  border-bottom: 0;
}
td .customer {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 500;
}
.customer .avatar {
  font-size: 11px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f1f2fa;
  color: #7b7c9b;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.table-link {
  background: none;
  border: 0;
  color: var(--brand);
  font: inherit;
  padding: 0;
}
.chart {
  height: 160px;
  display: flex;
  gap: 15px;
  align-items: end;
  padding: 10px 10px 28px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0 32px;
  position: relative;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 39px,
    #f1f2f7 40px
  );
}
.bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: end;
  flex-direction: column;
  position: relative;
}
.bar {
  width: 65%;
  max-width: 38px;
  background: #e6e2fd;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.bar-col:last-child .bar {
  background: var(--brand);
}
.bar-col span {
  position: absolute;
  bottom: -26px;
  font-size: 10px;
  color: var(--muted);
}
.chart-total {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-total strong {
  font-size: 25px;
}
.list-item {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.list-item:last-child {
  border: 0;
}
.list-item .grow {
  flex: 1;
}
.list-item h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 5px;
}
.list-item p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #a0a5b2;
  font-size: 11px;
  padding: 3px 0;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.toolbar input {
  flex: 1;
  min-width: 160px;
}
.toolbar select {
  width: auto;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  min-width: 0;
}
.field label {
  font-size: 13px;
  color: #5b6075;
}
.field small {
  color: var(--muted);
  font-size: 11px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #e1e4ed;
  background: white;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 2px solid var(--brand-soft);
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-height: 0;
  accent-color: var(--brand);
}
input[type="file"] {
  font-size: 12px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  margin: 15px 0;
  line-height: 1.8;
}
.form-actions {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: end;
}
.muted {
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 55px 20px;
  color: var(--muted);
}
.empty svg {
  width: 36px;
  height: 36px;
  color: #b8b1df;
}
.empty h3 {
  color: var(--ink);
  font-size: 16px;
}
.empty p {
  font-size: 13px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  color: var(--muted);
  font-size: 12px;
}
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}
.tab {
  border: 0;
  background: none;
  padding: 14px 3px;
  color: var(--muted);
  white-space: nowrap;
}
.tab.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}
.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.kv > div {
  min-width: 0;
}
.kv dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.kv dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.timeline {
  padding-right: 7px;
}
.event {
  border-right: 1px solid #e5e0f8;
  padding: 0 21px 23px;
  position: relative;
}
.event:before {
  content: "";
  position: absolute;
  right: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  background: #aaa0eb;
  border: 2px solid white;
  border-radius: 50%;
}
.event strong {
  font-weight: 500;
  font-size: 13px;
}
.event p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.resource {
  display: flex;
  flex-direction: column;
}
.resource-cover {
  height: 105px;
  background: #f3f1fe;
  color: var(--brand);
  border-radius: 9px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-cover svg {
  width: 33px;
  height: 33px;
}
.resource h3 {
  font-size: 15px;
}
.resource p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  flex: 1;
}
.resource .actions {
  margin-top: 12px;
}
.toast {
  background: #292640;
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 8px 30px #25234030;
  margin-top: 10px;
  max-width: 440px;
  font-size: 13px;
}
#toasts {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
}
dialog {
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 18px;
  width: min(680px, calc(100% - 32px));
  max-height: 88vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #17113030;
}
dialog::backdrop {
  background: #25233e66;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-size: 18px;
  margin: 0;
}
.modal-body {
  line-height: 1.9;
  font-size: 14px;
}
.public {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.public-aside {
  background: #4437b4;
  color: #fff;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.public-aside .brand {
  color: white;
}
.public-aside .brand small {
  color: #d0caf6;
}
.public-aside h2 {
  font-size: 35px;
  line-height: 1.8;
  margin: 25px 0;
}
.public-aside p {
  color: #d1ccf5;
  line-height: 2.2;
}
.public-main {
  padding: 45px;
  max-width: 800px;
  width: 100%;
  margin: auto;
}
.public-main h1 {
  font-size: 25px;
}
.steps {
  display: flex;
  gap: 10px;
  margin: 26px 0;
}
.steps span {
  height: 4px;
  flex: 1;
  background: #e2e0f1;
  border-radius: 5px;
}
.steps span.active {
  background: var(--brand);
}
.notice {
  padding: 16px;
  background: var(--brand-soft);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 22px;
}
.notice.warning {
  background: #fff6e8;
  color: #947124;
}
.notice.error {
  background: #fff0f2;
  color: #b83f52;
}
.success-icon {
  width: 65px;
  height: 65px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
}
.success-icon svg {
  width: 30px;
  height: 30px;
}
.onboarding {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f4f2ff;
  border: 1px solid #e4dffc;
  padding: 18px 22px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.onboarding p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.onboarding .grow {
  flex: 1;
}
.admin .sidebar {
  background: #24233d;
  color: white;
}
.admin .sidebar .brand {
  color: #fff;
}
.admin .nav a {
  color: #bdbbd4;
}
.admin .nav a.active {
  background: #45415f;
  color: white;
}
.admin .nav a:hover {
  background: #34314e;
}
.admin .help-box {
  background: #302d4a;
  border-color: #49455f;
}
.admin .user {
  color: #fff;
}
.admin-tag {
  background: #f2eafc;
  color: #75539a;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
}
.menu-btn {
  display: none;
}
.mobile-shade {
  display: none;
}
.numbers {
  font-variant-numeric: tabular-nums;
}
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkpoint {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.checkpoint.done {
  color: var(--green);
  background: #f6fcf9;
}
.skeleton {
  height: 18px;
  background: linear-gradient(90deg, #f0f0f5, #fafafe, #f0f0f5);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 6px;
  margin: 18px 0;
}
@keyframes loading {
  to {
    background-position: -200% 0;
  }
}
.row-items {
  display: grid;
  grid-template-columns: 2fr 0.65fr 1fr 36px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.calc {
  background: #f7f6ff;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}
.calc-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0;
}
.calc-line.total {
  font-weight: 700;
  border-top: 1px solid #e3e0f4;
  padding-top: 14px;
}
.doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 12px 0;
}
.doc h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.doc p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.article {
  font-size: 15px;
  line-height: 2.2;
}
.article h3 {
  font-size: 17px;
}
.contract-scroll {
  max-height: 250px;
  overflow: auto;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px;
  margin-bottom: 14px;
}
.collapsed .sidebar {
  width: 83px;
  padding-inline: 12px;
}
.collapsed.shell {
  padding-right: 83px;
}
.collapsed .nav a span,
.collapsed .sidebar .brand,
.collapsed .nav-label,
.collapsed .sidebar-bottom {
  display: none;
}
.collapsed .nav {
  margin-top: 20px;
}
.small-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.error-text {
  font-size: 12px;
  color: var(--red);
  margin: 5px 0;
}
.chart-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.unread {
  background: #faf9ff;
}
.visually-hidden {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .metric-value {
    font-size: 29px;
  }
}
@media (max-width: 1150px) {
  .shell {
    padding-right: 210px;
  }
  .sidebar {
    width: 210px;
    padding-inline: 12px;
  }
  .content {
    padding: 26px 22px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .stats {
    gap: 12px;
  }
  .metric {
    padding: 16px 14px;
  }
  .metric-value {
    font-size: 21px;
  }
  .grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav a {
    font-size: 13px;
  }
  .top-actions .date {
    display: none;
  }
}
@media (max-width: 850px) {
  .shell,
  .collapsed.shell {
    padding-right: 0;
  }
  .sidebar,
  .collapsed .sidebar {
    transform: translateX(100%);
    width: 248px;
  }
  .shell.drawer .sidebar {
    transform: translateX(0);
  }
  .shell.drawer .mobile-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #24223f66;
    z-index: 19;
    border: 0;
  }
  .menu-btn {
    display: inline-flex;
  }
  .topbar {
    height: 66px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid2,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .public {
    grid-template-columns: 1fr;
  }
  .public-aside {
    display: none;
  }
  .public-main {
    padding: 28px 20px;
  }
  .content {
    padding: 24px 18px;
  }
  .top-actions {
    gap: 9px;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .metric-value {
    font-size: 25px;
  }
  .collapsed .nav a span,
  .collapsed .sidebar .brand,
  .collapsed .nav-label,
  .collapsed .sidebar-bottom {
    display: block;
  }
  .grid2 > .panel {
    margin-bottom: 0;
  }
  .grid2 {
    margin-bottom: 22px;
  }
  .sidebar-bottom {
    padding-top: 10px;
  }
  .sidebar {
    padding-top: 20px;
  }
}
@media (max-width: 560px) {
  .page-head {
    align-items: start;
    flex-direction: column;
  }
  .page-head > .actions {
    width: 100%;
  }
  .page-head > .actions .btn {
    flex: 1;
  }
  .stats {
    gap: 10px;
  }
  .metric {
    padding: 14px 12px;
  }
  .metric-top {
    font-size: 11px;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .metric-value {
    font-size: 20px;
  }
  .metric-foot {
    font-size: 10px;
  }
  .panel {
    padding: 19px 16px;
  }
  .table-wrap {
    margin: 0 -16px;
  }
  .form-grid,
  .cards,
  .checkbox-list {
    grid-template-columns: 1fr;
  }
  .form-grid > .full {
    grid-column: auto;
  }
  .ladder-summary {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .tier strong {
    font-size: 11px;
  }
  .tier span {
    font-size: 10px;
  }
  .tier-track {
    margin-inline: 0;
  }
  .rule {
    font-size: 11px;
  }
  .onboarding {
    align-items: start;
    flex-wrap: wrap;
  }
  .topbar {
    padding: 0 17px;
  }
  .crumb {
    font-size: 11px;
    gap: 7px;
  }
  .top-actions .profile-name {
    display: none;
  }
  .btn {
    padding: 9px 12px;
  }
  .footer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .row-items {
    grid-template-columns: 1fr 65px 32px;
  }
  .row-items .price {
    grid-column: 1/-1;
  }
  .kv {
    gap: 19px 12px;
  }
  .responsive-table thead {
    display: none;
  }
  .responsive-table tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 10px 15px;
  }
  .responsive-table td {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border: 0;
    padding: 8px 0;
    white-space: normal;
  }
  .responsive-table td:before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
  }
  .responsive-table td:first-child {
    font-weight: 700;
  }
  .chart {
    gap: 10px;
  }
  .public-main {
    padding: 24px 18px;
  }
  .toolbar input,
  .toolbar select {
    width: 100%;
    flex: 1;
    min-width: 120px;
  }
  .panel-head {
    align-items: start;
  }
  .tabs {
    gap: 16px;
  }
  .metric-value small {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 850px) {
  .desktop-collapse {
    display: none;
  }
}
@media print {
  body {
    background: white;
  }
  body > #app,
  body > #toasts {
    display: none;
  }
  dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
  dialog::backdrop {
    background: white;
  }
  .modal-head,
  .form-actions {
    display: none !important;
  }
  .notice {
    border: 1px solid #ddd;
  }
  .table-wrap {
    overflow: visible;
  }
  table {
    white-space: normal;
  }
}
.nav a {
  font-size: 13px;
  gap: 10px;
  padding-inline: 12px;
}
.nav a > span:not(.count) {
  min-width: 0;
}
.nav .count {
  flex-shrink: 0;
  padding-inline: 5px;
  margin-right: auto;
}
.field label {
  font-size: 14px;
}
td {
  font-size: 13px;
}
.badge {
  font-size: 12px;
}
.list-item h3 {
  font-size: 14px;
}
.list-item p {
  font-size: 12px;
}
.page-head p {
  font-size: 14px;
}
.rule {
  font-size: 13px;
}
.tier strong {
  font-size: 13px;
}
.metric-top {
  font-size: 13px;
}
.chart-total small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.customer {
  color: var(--ink);
}
.customer:hover {
  color: var(--brand);
}
.field input[aria-invalid="true"] {
  border-color: var(--red);
}
@media (max-width: 1150px) and (min-width: 851px) {
  .sidebar {
    width: 225px;
  }
  .shell {
    padding-right: 225px;
  }
  .nav a {
    font-size: 12px;
  }
  .nav .count {
    display: none;
  }
  .metric-top {
    font-size: 12px;
  }
}
@media (max-width: 560px) {
  .metric-top {
    font-size: 12px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-value small {
    font-size: 10px;
  }
  .metric-foot {
    font-size: 11px;
  }
  .tier strong {
    font-size: 11px;
  }
  .rule {
    font-size: 12px;
  }
  .page-head p {
    font-size: 13px;
  }
  .top-actions {
    gap: 6px;
  }
}

/* Shared typography across partner, admin, public pages and dialogs. */
h1, h2, h3, h4, p, button, input, select, textarea { font-family: var(--font-family); }
strong, b { font-weight: 700; }
.page-head h1, .public-main h1, .public-aside h2 { font-weight: 800; }
.metric-value, .chart-total strong { font-weight: 800; letter-spacing: 0; }
.panel-head h2, .modal-head h2, .resource h3 { font-weight: 700; }
.field label, .btn, .tab, th { font-weight: 500; }
.page-head p, .public-main > .muted, .public-aside p { font-weight: 300; }
.public-aside h2 { font-weight: 200; }
.brand { letter-spacing: 0; }
