@font-face {
  font-family: Vazirmatn;
  src: url('/static/fonts/vazirmatn-arabic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/static/fonts/vazirmatn-arabic-600-normal.woff2') format('woff2');
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0600-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/static/fonts/vazirmatn-arabic-700-normal.woff2') format('woff2');
  font-weight: 700 900;
  font-display: swap;
  unicode-range: U+0600-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/static/fonts/vazirmatn-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/static/fonts/vazirmatn-latin-600-normal.woff2') format('woff2');
  font-weight: 500 900;
  font-display: swap;
  unicode-range: U+0000-024F;
}
:root {
  color-scheme: light;
  --ink: #17243b;
  --muted: #53627b;
  --accent: #234885;
  --accent-hover: #18366a;
  --soft: #edf3fc;
  --border: #dfe6ef;
  --paper: #fff;
  --canvas: #f6f8fc;
  --positive: #17604a;
  --warning: #795611;
  --danger: #9a303b;
  --rail: 216px;
  --r: 9px;
  --shadow: 0 8px 25px #182a4610;
  --font: 'B Koodak', Vazirmatn, Tahoma, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 14px/1.75 var(--font);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  line-height: 1.45;
  letter-spacing: -0.35px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 14px;
}
p,
.sub,
small {
  color: var(--muted);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
summary {
  cursor: pointer;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 13px;
  min-height: 36px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #f0f4fa;
  border-color: #c0cee0;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 600;
}
button.primary:hover {
  background: var(--accent-hover);
}
button.danger {
  color: var(--danger);
}
button.quiet,
.icon-button {
  background: transparent;
  border-color: transparent;
}
button.quiet:hover,
.icon-button:hover {
  background: var(--soft);
}
.icon-button {
  padding: 7px;
}
:focus-visible {
  outline: 2px solid #3f6fba;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  inset-block-start: 5px;
  inset-inline-start: 10px;
  z-index: 100;
  transform: translateY(-150%);
  background: white;
  padding: 6px 14px;
}
.skip:focus {
  transform: none;
}
.rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-inline-end: 1px solid var(--border);
  padding: 23px 13px 13px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-inline: 8px;
  line-height: 1.2;
}
.brand strong {
  display: block;
  font-size: 23px;
}
.brand small {
  display: block;
  font:
    600 9px/1.5 Vazirmatn,
    Arial,
    sans-serif;
  letter-spacing: 1.8px;
  color: #596985;
  direction: ltr;
}
.mark {
  flex: none;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 37px;
  height: 37px;
  padding: 9px;
  background: #203e72;
  border-radius: 9px;
  direction: ltr;
}
.mark i {
  width: 4px;
  background: #e0ebff;
  border-radius: 1px;
}
.mark i:nth-child(1) {
  height: 8px;
}
.mark i:nth-child(2) {
  height: 13px;
}
.mark i:nth-child(3) {
  height: 19px;
  background: #a6c3ff;
}
nav {
  display: grid;
  gap: 4px;
  margin-block-start: 35px;
}
.rail nav button {
  justify-content: start;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  padding: 8px 10px;
  gap: 11px;
}
.rail nav button:hover,
.rail nav button.selected {
  background: var(--soft);
  color: var(--accent);
}
.rail nav button.selected {
  font-weight: 700;
}
.rail footer {
  margin-block-start: auto;
  border-top: 1px solid var(--border);
  padding-block-start: 8px;
}
.rail footer button {
  width: 100%;
  justify-content: start;
}
body.collapsed {
  --rail: 66px;
}
.collapsed .rail {
  padding-inline: 8px;
}
.collapsed .rail .brand {
  margin-inline: 6px;
}
.collapsed .rail .brand div,
.collapsed .rail nav span {
  display: none;
}
.collapsed .rail nav button,
.collapsed .rail footer button {
  justify-content: center;
}
main {
  margin-inline-start: var(--rail);
  min-width: 0;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  background: white;
  padding: 0 30px;
  border-bottom: 1px solid var(--border);
}
.top-context,
.top-actions,
.actions,
.toolbar,
.sectionhead,
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-context {
  min-width: 0;
}
#crumb {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.top-actions {
  flex: none;
  gap: 6px;
}
#mobileMenu {
  display: none;
}
.profile {
  position: relative;
}
.profile summary {
  list-style: none;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.popover {
  position: absolute;
  inset-inline-end: 0;
  top: 43px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px;
  min-width: 146px;
  box-shadow: var(--shadow);
}
.popover strong {
  display: block;
  padding-inline: 9px;
}
#view {
  max-width: 1530px;
  margin: auto;
  padding: 31px clamp(16px, 3vw, 46px) 48px;
  outline: none;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-block-end: 23px;
}
.heading p {
  margin-block-start: 5px;
}
.actions,
.toolbar,
.meta {
  flex-wrap: wrap;
}
.sectionhead {
  justify-content: space-between;
  margin-block-end: 14px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  min-width: 0;
}
.panel + .panel {
  margin-block-start: 13px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(245px, 1fr);
  gap: 15px;
  align-items: start;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-block-end: 18px;
}
.stat {
  padding: 15px 17px;
  min-width: 0;
  border-inline-end: 1px solid var(--border);
}
.stat:last-child {
  border-inline-end: 0;
}
.stat strong {
  display: block;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.6;
  color: #203e72;
  font-variant-numeric: tabular-nums;
}
.stat small {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.stat svg {
  width: 16px;
  height: 16px;
}
.empty {
  text-align: center;
  padding: 30px 12px;
  color: var(--muted);
}
.emptyicon {
  background: var(--soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin: 0 auto 8px;
}
.empty h3 {
  color: var(--ink);
}
.empty button {
  margin-block-start: 10px;
}
.result,
.case-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.result:last-child,
.case-row:last-child {
  border-bottom: 0;
}
.case-row button {
  flex: none;
}
.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-block-end: 17px;
}
.tabs button {
  flex: none;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 13px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.case-head {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px 19px 0;
  margin-block-end: 17px;
}
.case-head .heading {
  margin-block-end: 9px;
}
.case-head .tabs {
  margin: 0;
  border: 0;
}
.case-head .heading p {
  font-size: 12px;
}
.workspace-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block-end: 12px;
}
.workspace-title p {
  font-size: 12px;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(162px, 196px) minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}
.step-list {
  display: grid;
  gap: 3px;
  padding: 7px;
}
.step-list button {
  justify-content: start;
  gap: 8px;
  text-align: start;
  border: 0;
  color: var(--muted);
  background: transparent;
  padding: 7px 8px;
  font-size: 12px;
}
.step-list button.active {
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
}
.step-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
}
.step-number.done {
  color: var(--positive);
  background: #ecf7f0;
}
.step-number svg {
  width: 14px;
  height: 14px;
}
.worksheet-main {
  min-width: 0;
}
.step-head {
  padding-block-end: 12px;
  margin-block-end: 14px;
  border-bottom: 1px solid var(--border);
}
.step-head p {
  margin-block-start: 5px;
}
.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block-start: 13px;
}
.save {
  font-size: 12px;
  color: var(--muted);
}
.save[data-state='error'] {
  color: var(--danger);
}
.mode {
  display: flex;
  gap: 2px;
  background: #edf1f7;
  border-radius: 7px;
  padding: 3px;
}
.mode button {
  padding: 3px 8px;
  min-height: 28px;
  border: 0;
  font-size: 12px;
  background: transparent;
  color: var(--muted);
}
.mode button[aria-pressed='true'] {
  background: white;
  color: var(--accent);
  box-shadow: 0 1px 4px #21324d15;
}
.assistant {
  margin-block-start: 12px;
}
.assistant-answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 15px;
}
.field {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  margin-block-end: 10px;
}
.field label {
  font-weight: 600;
}
.field small {
  font-size: 11px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfd9e7;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 7px 10px;
  min-height: 37px;
}
textarea {
  min-height: 76px;
  resize: vertical;
}
input[type='checkbox'] {
  width: 15px;
  min-height: 15px;
  accent-color: var(--accent);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block: 6px;
}
details > summary {
  color: var(--accent);
}
details.advanced {
  border-top: 1px solid var(--border);
  margin: 10px 0;
  padding-block: 9px;
}
details.advanced[open] > summary {
  margin-block-end: 10px;
}
.ltr,
.money {
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
bdi {
  overflow-wrap: anywhere;
}
.toolbar {
  margin-block-end: 12px;
}
.toolbar input {
  width: min(100%, 255px);
}
.toolbar select {
  width: auto;
  max-width: 100%;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: start;
}
th,
td {
  padding: 9px 11px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
th {
  background: #f1f5fa;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
td button {
  white-space: nowrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 2px 7px;
  background: #edf2f9;
  color: #42536e;
  font-size: 11px;
}
.pill.ok {
  color: var(--positive);
  background: #eaf6ef;
}
.pill.warn,
.notice.warn {
  color: var(--warning);
  background: #fbf5e7;
}
.pill.error {
  color: var(--danger);
  background: #fbeef0;
}
.notice {
  background: var(--soft);
  color: #264575;
  padding: 9px 11px;
  border-radius: 6px;
  margin-block: 8px;
  overflow-wrap: anywhere;
}
.line {
  border-top: 1px solid var(--border);
  margin-block: 14px;
}
.offer {
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--canvas);
  padding: 10px;
  direction: ltr;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  width: min(620px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 20px;
  color: var(--ink);
  box-shadow: 0 23px 80px #17243b38;
}
dialog::backdrop {
  background: #14274355;
}
.modalhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-block-end: 13px;
}
.dialog-actions {
  margin-block-start: 16px;
}
#toast {
  display: none;
  position: fixed;
  inset-inline-end: 20px;
  inset-block-end: 20px;
  z-index: 30;
  background: #203958;
  color: white;
  padding: 10px 16px;
  border-radius: 7px;
  max-width: min(440px, 85vw);
  box-shadow: var(--shadow);
}
#toast.show {
  display: block;
}
#toast.bad {
  background: #8a2837;
}
.skeleton {
  height: 76px;
  border-radius: var(--r);
  background: #e8eef6;
  margin-bottom: 15px;
  animation: pulse 1.4s infinite alternate;
}
@keyframes pulse {
  to {
    opacity: 0.5;
  }
}
.login {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  min-height: 100dvh;
  background: white;
  --rail: 0px;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 30px;
}
.login-content {
  width: min(100%, 364px);
  animation: enter 0.35s ease-out;
}
.login-content .brand {
  margin: 0 0 36px;
}
.login-content h1 {
  font-size: 25px;
  margin-bottom: 5px;
}
.login-content form {
  display: grid;
  gap: 8px;
  margin-block-start: 25px;
}
.login-content label {
  font-weight: 600;
  margin-block-start: 5px;
}
.login-content input {
  min-height: 43px;
}
.password-field {
  display: flex;
  gap: 4px;
}
#loginButton {
  width: 100%;
  justify-content: space-between;
  min-height: 43px;
  margin-block-start: 8px;
}
.login-content footer {
  border-top: 1px solid var(--border);
  margin-block-start: 34px;
  padding-block-start: 12px;
  color: var(--muted);
  font-size: 12px;
}
.login-content footer span {
  margin-inline: 5px;
}
#error {
  color: var(--danger);
}
.login-art {
  background-color: #eaf0fa;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-inline-start: 1px solid #dfebfa;
}
.art-frame {
  width: min(62%, 310px);
  aspect-ratio: 1;
  position: relative;
  border: 1px solid #bdcee8;
  border-radius: 24px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8%;
  padding: 20% 13%;
  padding-block: 16%;
}
.art-frame span {
  background: #33568f;
  width: 12%;
  height: 34%;
  border-radius: 4px 4px 0 0;
  z-index: 1;
}
.art-frame span:nth-child(2) {
  height: 63%;
  background: #6081b4;
}
.art-frame span:nth-child(3) {
  height: 92%;
  background: #88a6d2;
}
.art-frame i {
  position: absolute;
  inset: 11%;
  border: 1px solid #c5d5ec;
  border-radius: 15px;
}
.art-frame i:last-child {
  inset: -11%;
  border-style: dashed;
  border-radius: 32px;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
}
@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .workspace {
    grid-template-columns: minmax(142px, 168px) minmax(0, 1fr);
  }
  .topbar {
    padding-inline: 16px;
  }
}
@media (max-width: 760px) {
  body,
  body.collapsed {
    --rail: 0px;
  }
  .rail {
    display: none;
    width: 205px;
    top: 57px;
    box-shadow: var(--shadow);
  }
  body.menu-open .rail {
    display: flex;
  }
  body.collapsed .rail .brand div,
  body.collapsed .rail nav span {
    display: block;
  }
  .collapsed .rail nav button {
    justify-content: start;
  }
  #collapse {
    display: none;
  }
  #mobileMenu {
    display: inline-flex;
  }
  .topbar {
    min-height: 57px;
    padding-inline: 8px;
    gap: 4px;
  }
  .top-actions {
    gap: 1px;
  }
  .search-button span {
    display: none;
  }
  .search-button kbd {
    display: none;
  }
  #view {
    padding: 16px 12px 30px;
  }
  .case-head {
    padding: 11px 10px 0;
  }
  .case-head .heading,
  .workspace-title {
    align-items: start;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .step-list {
    width: 100%;
    display: flex;
    overflow: auto;
  }
  .step-list button {
    flex: none;
  }
  .worksheet-main {
    width: 100%;
  }
  .login {
    display: block;
  }
  .login-main {
    min-height: 100dvh;
  }
  .login-art {
    display: none;
  }
}
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .heading,
  .workspace-title {
    flex-wrap: wrap;
  }
  .panel {
    padding: 13px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    border-bottom: 1px solid var(--border);
  }
  .stat:last-child {
    border-bottom: 0;
  }
  h1 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  .rail,
  .topbar,
  .skip,
  button,
  dialog,
  #toast {
    display: none !important;
  }
  main {
    margin: 0;
  }
  #view {
    max-width: none;
    padding: 0;
  }
  body,
  .panel {
    background: white;
  }
  .panel {
    border: 0;
    padding: 0;
  }
  h2,
  h3 {
    break-after: avoid;
  }
}
.recommendation {
  display: block;
  padding: 0;
  min-height: 25px;
  color: var(--accent);
  font-size: 12px;
}
.workspace.with-assistant {
  grid-template-columns: minmax(155px, 175px) minmax(0, 1fr) minmax(
      235px,
      285px
    );
}
.workspace .assistant {
  margin-block-start: 0;
}
#providerForm {
  max-width: 620px;
}
@media (min-width: 1100px) {
  .case-workspace .case-head {
    position: sticky;
    top: 69px;
    z-index: 3;
  }
  .case-workspace .step-list {
    position: sticky;
    top: 221px;
  }
}
@media (max-width: 1080px) {
  .workspace.with-assistant {
    grid-template-columns: minmax(142px, 168px) minmax(0, 1fr);
  }
  .workspace .assistant {
    grid-column: 2;
    grid-row: 1;
  }
  .workspace.with-assistant .worksheet-main {
    grid-column: 2;
  }
}
@media (max-width: 760px) {
  .workspace .assistant {
    order: 1;
    width: 100%;
  }
  .workspace.with-assistant .worksheet-main {
    order: 2;
  }
  .worksheet-main > .sectionhead {
    align-items: start;
  }
}
.valuation-sheet {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.valuation-sheet .sheet-result {
  position: sticky;
  top: 75px;
  margin: 0;
  overflow-wrap: anywhere;
}
.valuation-sheet h2,
.valuation-sheet button,
#inventory {
  margin-block: 10px;
}
@media (max-width: 760px) {
  .valuation-sheet {
    grid-template-columns: 1fr;
  }
  .valuation-sheet .sheet-result {
    position: static;
  }
}
.input-source {
  font-size: 12px;
  color: var(--muted);
}
.input-source > summary {
  font-weight: 400;
}
.valuation-sheet #params .grid {
  align-items: start;
}
.sheet-result .money {
  word-break: break-word;
}
#calculateValue { width:100%; margin:14px 0 0; }
#inventory table {min-width:1020px;}
#inventory td {overflow-wrap:normal;padding:8px 6px;}
#inventory td:nth-child(8){min-width:112px;}
#inventory td:nth-child(11){min-width:145px;max-width:200px;}
#curl {min-height:164px;direction:ltr;text-align:left;}
@media(min-width:1150px){#simpleForm>.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 12px;}#simpleForm>.grid .field{margin-bottom:4px;}}
.offer{scroll-margin-top:70px}
