@font-face {
  font-family: Noto;
  src: url("/assets/font.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #142d3c;
  --muted: #73838e;
  --line: #e5eaed;
  --red: #e6001c;
  --bg: #f6f8fa;
  --white: #fff;
  --green: #13826a;
  --side: 218px;
  font-family: Noto, Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  object-fit: contain;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.grow {
  flex: 1;
}
.end {
  justify-content: flex-end;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 17px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #edf2f5;
}
.btn.primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: #244558;
}
.btn.red {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
}
.btn.icon-only {
  padding: 10px;
  min-width: 38px;
  min-height: 38px;
}
.btn.sm {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.btn.full {
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
}
.field input,
.field select,
.field textarea,
input.control,
select.control,
textarea.control {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #dce3e8;
  border-radius: 7px;
  background: white;
  min-height: 42px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #738c9e;
  box-shadow: 0 0 0 3px #142d3c09;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--red);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fields .wide {
  grid-column: 1/-1;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  font-size: 10px;
  padding: 4px 7px;
  background: #edf3f5;
  color: #547180;
  white-space: nowrap;
}
.pill.green {
  background: #e8f5ef;
  color: #198466;
}
.pill.red {
  background: #fff0f1;
  color: #b91c35;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.startup {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.startup img {
  width: 140px;
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #dce3e8;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--side);
  background: white;
  border-right: 1px solid var(--line);
  padding: 32px 16px 18px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar nav {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0 24px 33px;
}
.brand img {
  width: 132px;
  height: 67px;
}
.brand-tagline {
  display: block;
  margin-top: 12px;
  text-align: center;
  white-space: nowrap;
  color: #5b7784;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.login-logo img {
  display: block;
  width: 145px;
  height: 75px;
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .brand-tagline {
    background-image: linear-gradient(
      110deg,
      #5b7784 0%,
      #5b7784 40%,
      #e6001c 48%,
      #f68798 50%,
      #e6001c 52%,
      #5b7784 60%,
      #5b7784 100%
    );
    background-size: 300% 100%;
    background-position: 100% 50%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: brand-light-sweep 8s ease-in-out infinite;
  }
}
@keyframes brand-light-sweep {
  0%,
  25% {
    background-position: 100% 50%;
  }
  65%,
  100% {
    background-position: 0% 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-tagline {
    animation: none;
    background: none;
    color: #5b7784;
  }
}
.nav-label {
  padding: 20px 15px 9px;
  color: #9aa6af;
  font-size: 10px;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-radius: 7px;
  color: #667984;
  margin: 2px 0;
  font-size: 12px;
  font-weight: 500;
}
.nav-link:hover {
  background: #f7f9fa;
}
.nav-link.active {
  color: var(--ink);
  background: #edf2f5;
  font-weight: 650;
}
.nav-link.active .icon {
  color: var(--red);
}
.user-area {
  flex-shrink: 0;
  margin-top: auto;
  padding: 18px 9px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf0f3;
  border-radius: 50%;
  color: #4d6979;
  font-size: 12px;
  flex: none;
}
.user-name {
  font-size: 12px;
  font-weight: 600;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace {
  margin-left: var(--side);
  min-height: 100vh;
}
.topbar {
  height: 64px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffffcf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar .breadcrumb {
  font-size: 12px;
  color: #8a99a2;
}
.org-select {
  display: flex;
  align-items: center;
  gap: 8px;
}
.org-select select {
  max-width: 240px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.workspace main {
  padding: 34px 38px 70px;
  max-width: 1620px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head .eyebrow {
  margin-bottom: 7px;
}
.tabbar {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
}
.tab {
  color: var(--muted);
  border-bottom: 2px solid transparent;
  padding: 12px 0;
  white-space: nowrap;
  font-size: 13px;
}
.tab.active {
  color: var(--ink);
  border-color: var(--red);
  font-weight: 600;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.panel-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-body {
  padding: 24px;
}
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.order-input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.order-input textarea {
  display: block;
  border: 0;
  outline: 0;
  box-shadow: none;
  resize: vertical;
  min-height: 75px;
  max-height: 200px;
  width: 100%;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.order-input textarea::placeholder {
  color: #9aa7b0;
}
.order-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}
.search-wrap {
  position: relative;
  flex: 1;
}
.search-wrap .icon {
  position: absolute;
  top: 12px;
  left: 13px;
  color: #93a1aa;
}
.search-wrap input {
  padding: 11px 12px 11px 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
}
.catalog-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.family-filter {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.family-filter button {
  padding: 7px 12px;
  border-radius: 6px;
  color: #738691;
  font-size: 12px;
  border: 1px solid transparent;
}
.family-filter button.active {
  background: white;
  color: var(--ink);
  border-color: #dce4e9;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.product-card:hover {
  border-color: #bacbd5;
  box-shadow: 0 7px 18px #172d3c05;
}
.product-photo {
  height: 133px;
  padding: 22px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(145deg, #fff, #fafcfd);
}
.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.product-photo .no-photo {
  width: 70px;
  height: 55px;
  color: #c2cfd7;
}
.product-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.product-code {
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.55;
}
.product-title {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 30px;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.price {
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}
.currency {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.add-btn {
  width: 31px;
  height: 31px;
  border: 1px solid #dfe7ec;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.add-btn:hover {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.cart {
  position: sticky;
  top: 24px;
}
.cart-head {
  padding: 21px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-lines {
  max-height: 460px;
  overflow: auto;
}
.cart-line {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-line .model {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
  padding-right: 5px;
}
.cart-line .line-price {
  font-size: 12px;
  font-weight: 600;
}
.qty {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  align-items: center;
  width: 92px;
}
.qty button {
  padding: 3px 8px;
  color: #78909e;
}
.qty input {
  width: 35px;
  border: 0;
  text-align: center;
  font-size: 12px;
  padding: 4px 0;
  color: var(--ink);
  appearance: textfield;
}
.qty input::-webkit-inner-spin-button {
  appearance: none;
}
.cart-empty {
  padding: 50px 25px;
  color: #96a5ae;
  font-size: 12px;
  text-align: center;
}
.cart-bottom {
  padding: 21px;
}
.cart-total {
  padding: 4px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-total strong {
  font-size: 21px;
  letter-spacing: -0.6px;
}
.cart-project {
  padding: 0 20px 18px;
}
.empty {
  padding: 65px 25px;
  text-align: center;
  border: 1px dashed #d6e0e6;
  border-radius: 10px;
  color: var(--muted);
  background: #ffffff80;
}
.empty .icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  color: #9ab0bd;
}
.empty h2 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 16px;
}
.inline-error {
  color: #ba2438;
  font-size: 12px;
  padding: 10px 0;
  line-height: 1.6;
}
.success {
  color: var(--green);
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  padding: 14px 18px;
  background: #fafbfc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  color: #8797a1;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafcfd;
}
.cell-product {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cell-product img {
  width: 58px;
  height: 42px;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.config-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.config-visual {
  background: linear-gradient(145deg, #eef3f6, #fff);
  min-height: 245px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.config-visual img {
  height: 195px;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.config-result {
  padding: 25px;
}
.config-result .model {
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.6;
}
.config-result .price {
  font-size: 30px;
  margin: 18px 0;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.spec-grid div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.spec-grid dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.spec-grid dd {
  margin: 0;
  font-size: 12px;
}
.config-placeholder {
  padding: 45px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.switch-group {
  display: flex;
  gap: 5px;
  background: #f0f4f6;
  border-radius: 7px;
  padding: 4px;
}
.switch-group button {
  flex: 1;
  padding: 8px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
}
.switch-group button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 1px 4px #142d3c0d;
}
.quote-sheet {
  max-width: 1000px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: auto;
  padding: 36px;
}
.quote-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.quote-sheet-head img {
  width: 145px;
  height: 70px;
}
.quote-sheet-meta {
  text-align: right;
  line-height: 1.8;
}
.quote-sheet .customer-name {
  font-size: 21px;
  font-weight: 600;
}
.document-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: flex-end;
}
.topology {
  overflow: auto;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.topology svg {
  min-width: 700px;
  width: 100%;
  height: auto;
  display: block;
}
.topology-editor {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 20px;
}
.knowledge-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.knowledge-item {
  padding: 25px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.knowledge-item p {
  margin-top: 15px;
  font-size: 12px;
  line-height: 1.9;
  color: #637a88;
  white-space: pre-wrap;
}
.source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 12px;
  color: #566f7f;
  border-bottom: 1px solid var(--line);
}
.tabs-content {
  margin-top: 25px;
}
details {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #687f8e;
  list-style: none;
}
summary:after {
  content: "+";
  float: right;
}
.detail-hero {
  height: 220px;
  display: flex;
  justify-content: center;
  padding: 20px;
  background: #f9fbfc;
  margin-bottom: 24px;
  border-radius: 8px;
}
.detail-hero img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}
.detail-description {
  line-height: 1.9;
  font-size: 13px;
  color: #596f7c;
}
.mobile-menu {
  display: none;
}
dialog {
  border: 0;
  border-radius: 13px;
  padding: 0;
  max-width: 730px;
  width: calc(100% - 40px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 30px 100px #102b4040;
}
dialog::backdrop {
  background: #102c4055;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.dialog-body {
  padding: 26px 28px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 22px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: 0 4px 20px #0002;
  display: none;
  z-index: 100;
}
#toast.show {
  display: block;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px max(40px, 12vw);
  position: relative;
}
.login-logo {
  width: 145px;
  height: auto;
  position: absolute;
  top: 38px;
  left: 50px;
}
.login-form h1 {
  margin-bottom: 30px;
  font-size: 30px;
}
.login-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 320px;
  max-width: 100%;
}
.login-art {
  background: #112c3c;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-art:before {
  content: "";
  position: absolute;
  inset: -100px;
  background: radial-gradient(ellipse at 65% 25%, #526f7f80, transparent 60%);
}
.login-art .wall-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  width: 75%;
  transform: perspective(900px) rotateY(-18deg) rotateX(5deg);
  filter: drop-shadow(0 25px 35px #0008);
}
.wall-art span {
  aspect-ratio: 16/9;
  background: linear-gradient(155deg, #587a8e, #1e435a);
  border: 1px solid #6f93a355;
}
.wall-art span:nth-child(2n) {
  background: linear-gradient(155deg, #284e67, #a5bcc7);
}
.wall-art span:nth-child(5) {
  background: linear-gradient(155deg, #c50926, #f14562);
}
.login-art .brand-caption {
  position: absolute;
  bottom: 50px;
  left: 45px;
  color: #d7e2e9;
  font-size: 12px;
  letter-spacing: 2px;
}
.quiet-link {
  font-size: 11px;
  color: #8b9ca7;
}
.rule-row {
  display: grid;
  grid-template-columns: 1fr 1fr 100px;
  gap: 12px;
}
.admin-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.text-link {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #4d6c80;
}
.file-upload {
  border: 1px dashed #d4e0e7;
  border-radius: 8px;
  padding: 18px;
  font-size: 12px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.project-card:hover {
  border-color: #adbfcb;
}
.project-card .project-icon {
  margin-bottom: 25px;
  color: #809bab;
}
.project-card h3 {
  margin-bottom: 8px;
}
.project-card .row {
  margin-top: 24px;
}
.request-body {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
}
.seg-label {
  font-size: 12px;
  color: #6f8796;
  margin: 20px 0 10px;
}
.pill.test {
  background: #f7f1e9;
  color: #8c6b31;
}
.bare-text {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
}
textarea.code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  min-height: 220px;
}
@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1150px) {
  :root {
    --side: 190px;
  }
  .workspace main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .quote-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand {
    padding: 0 15px 28px;
  }
  .config-layout {
    grid-template-columns: 1fr 1fr;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  :root {
    --side: 0px;
  }
  .sidebar {
    transform: translateX(-100%);
    width: 218px;
    box-shadow: 10px 0 50px #142d3c22;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 59px;
    padding: 0 20px;
  }
  .workspace main {
    padding: 25px 20px;
  }
  .quote-layout {
    grid-template-columns: 1fr;
  }
  .cart {
    position: static;
  }
  .cart-lines {
    max-height: none;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-form {
    padding: 150px 35px 60px;
    align-items: center;
  }
  .login-form h1 {
    font-size: 27px;
  }
  .login-logo {
    left: 35px;
    top: 35px;
  }
  .config-layout {
    grid-template-columns: 1fr;
  }
  .topology-editor {
    grid-template-columns: 1fr;
  }
  .knowledge-list {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .org-select select {
    max-width: 190px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 25px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-photo {
    height: 110px;
    padding: 16px;
  }
  .product-body {
    padding: 12px;
  }
  .product-code {
    font-size: 11px;
  }
  .product-title {
    font-size: 10px;
  }
  .price {
    font-size: 12px;
  }
  .product-bottom {
    gap: 5px;
  }
  .quote-sheet {
    padding: 22px;
  }
  .quote-sheet-head {
    margin-bottom: 25px;
  }
  .quote-sheet-head img {
    width: 105px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .fields .wide {
    grid-column: auto;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .order-tools .small {
    display: none;
  }
  .org-select .icon {
    display: none;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .page-head .btn {
    padding: 8px 10px;
    font-size: 11px;
  }
  .document-actions {
    flex-wrap: wrap;
  }
  .dialog-body {
    padding: 22px;
  }
  .dialog-head {
    padding: 20px;
  }
  .rule-row {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    font-size: 11px;
  }
  td,
  th {
    padding: 12px;
  }
  .cell-product img {
    display: none;
  }
  .catalog-tools {
    flex-wrap: wrap;
  }
  .btn {
    min-height: 40px;
  }
}

.graph-preview {
  max-width: 100%;
  overflow: auto;
  margin: 20px 0;
}
.graph-preview svg {
  width: 100%;
  min-width: 500px;
  height: auto;
}
.product-photo {
  overflow: hidden;
}
.product-photo img {
  transform: scale(1.3);
}

.language-picker {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 11px;
  max-width: 105px;
}
.login-form > .language-picker {
  position: absolute;
  right: 30px;
  top: 40px;
}
.topbar > .language-picker {
  margin-left: auto;
  margin-right: 18px;
}

.mobile-quote-bar {
  display: none;
}
@media (max-width: 850px) {
  main:has(.mobile-quote-bar) {
    padding-bottom: 90px;
  }
  #cart {
    scroll-margin-top: 80px;
  }
  .mobile-quote-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    bottom: 15px;
    left: 20px;
    right: 20px;
    z-index: 25;
    border: 0;
    border-radius: 12px;
    padding: 16px 20px;
    background: var(--ink);
    color: white;
    font: inherit;
    box-shadow: 0 8px 25px #142b3b33;
    cursor: pointer;
  }
  .mobile-quote-bar strong {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

.profile-link {
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
}
.profile-link:hover .user-name {
  color: var(--red);
}
.profile-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.profile-panel {
  max-width: 760px;
}
.profile-details {
  margin: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-details dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
}
.profile-details dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .profile-details {
    grid-template-columns: 1fr;
  }
}
