.smart-center {
  background: #eef4f8;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.smart-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px;
}

.smart-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.smart-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.smart-title-row h2 {
  margin: 0;
  color: #101827;
  font-size: 34px;
  line-height: 1.18;
}

.smart-title-row p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.smart-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #b8c8d9;
  background: #fff;
  color: #24405d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.smart-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.smart-entry {
  border: 1px solid #c9d6e4;
  background: #fff;
  padding: 18px;
}

.smart-entry strong {
  display: block;
  margin-bottom: 6px;
  color: #132133;
  font-size: 18px;
}

.smart-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.smart-panel {
  border: 1px solid #c9d6e4;
  background: #fff;
}

.smart-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid #c9d6e4;
  background: #f8fafc;
}

.smart-tab {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid #c9d6e4;
  background: transparent;
  color: #334155;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.smart-tab[aria-selected="true"] {
  background: #fff;
  color: var(--blue);
}

.smart-pane {
  display: none;
  padding: 22px;
}

.smart-pane.active {
  display: block;
}

.smart-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: stretch;
}

.smart-input,
.smart-textarea,
.smart-select,
.smart-number {
  width: 100%;
  border: 1px solid #bdcad8;
  background: #fff;
  color: #172033;
  font: inherit;
}

.smart-input,
.smart-select,
.smart-number {
  min-height: 46px;
  padding: 10px 12px;
}

.smart-textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

.smart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.smart-btn.secondary {
  background: #fff;
  color: var(--blue);
}

.smart-btn.danger {
  border-color: var(--red);
  background: var(--red);
}

.smart-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.smart-chip {
  border: 1px solid #c9d6e4;
  background: #f8fafc;
  color: #29405a;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.smart-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.smart-card {
  border: 1px solid #d5dee9;
  background: #fff;
  padding: 16px;
}

.smart-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.smart-card p {
  margin: 7px 0;
  color: #4b5f76;
  font-size: 14px;
  line-height: 1.55;
}

.smart-card .badge {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 5px 8px;
  background: #e7f3ff;
  color: #0b4f8a;
  font-size: 12px;
  font-weight: 900;
}

.smart-card .risk {
  border-left: 3px solid #d97706;
  background: #fff7ed;
  padding: 8px 10px;
  color: #7c2d12;
}

.smart-rfq-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: none;
  border-top: 1px solid #c9d6e4;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 -12px 28px rgba(23, 32, 51, .12);
}

.smart-rfq-bar.active {
  display: block;
}

.smart-rfq-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.smart-rfq-text {
  color: #24364b;
  font-size: 14px;
  font-weight: 800;
}

.smart-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid #d5dee9;
}

.smart-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.smart-table th,
.smart-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e3e9f1;
  text-align: left;
  vertical-align: middle;
}

.smart-table th {
  background: #f8fafc;
  color: #24364b;
  font-weight: 900;
}

.smart-form-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.smart-field label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.smart-note {
  margin: 14px 0 0;
  border-left: 3px solid var(--blue);
  background: #f2f8ff;
  padding: 10px 12px;
  color: #29405a;
  font-size: 14px;
  line-height: 1.55;
}

.smart-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(10, 18, 30, .46);
}

.smart-drawer.active {
  display: block;
}

.smart-drawer-panel {
  margin-left: auto;
  width: min(760px, 100%);
  height: 100%;
  overflow: auto;
  background: #fff;
  box-shadow: -22px 0 50px rgba(0, 0, 0, .22);
}

.smart-drawer-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d5dee9;
  background: #fff;
  padding: 18px 20px;
}

.smart-drawer-head h3 {
  margin: 0;
  font-size: 22px;
}

.smart-drawer-body {
  padding: 20px;
}

.smart-close {
  width: 38px;
  height: 38px;
  border: 1px solid #c9d6e4;
  background: #fff;
  color: #24364b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 940px) {
  .smart-title-row,
  .smart-entry-grid,
  .smart-result-grid,
  .smart-form-grid,
  .smart-search-row,
  .smart-rfq-inner {
    grid-template-columns: 1fr;
  }

  .smart-status {
    width: fit-content;
  }
}

@media (max-width: 560px) {
  .smart-shell {
    padding: 34px 16px;
  }

  .smart-title-row h2 {
    font-size: 27px;
  }

  .smart-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .smart-tab {
    border-right: 0;
    border-bottom: 1px solid #c9d6e4;
    text-align: left;
  }

  .smart-pane {
    padding: 16px;
  }

  .smart-drawer-panel {
    width: 100%;
  }
}
