.demand-app {
  min-height: 70vh;
  padding: 38px 0 76px;
  background: #f5f7fa;
  color: #172b45;
}

.demand-container {
  max-width: 1240px;
}

.demand-topline,
.demand-section-heading,
.demand-card-top,
.demand-card-bottom,
.demand-offer-top,
.demand-admin-heading,
.demand-admin-offer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.demand-topline {
  align-items: flex-end;
  padding: 0 0 28px;
}

.demand-topline h1 {
  margin: 8px 0 7px;
  color: #10243b;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 750;
}

.demand-topline p {
  max-width: 650px;
  margin: 0;
  color: #617184;
  font-size: 1rem;
  line-height: 1.65;
}

.demand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #63778d;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.demand-eyebrow span {
  color: #2376b7;
}

.demand-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.demand-nav-link,
.demand-text-link,
.demand-aside-back {
  color: #2d648c;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.demand-nav-link {
  padding: 10px 12px;
  border-radius: 9px;
}

.demand-nav-link:hover,
.demand-text-link:hover,
.demand-aside-back:hover {
  color: #174a73;
  text-decoration: underline;
}

.demand-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.demand-button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.demand-button-primary {
  color: #fff !important;
  background: #2376b7;
  box-shadow: 0 7px 18px rgba(35, 118, 183, .19);
}

.demand-button-primary:hover {
  color: #fff !important;
  background: #185f96;
  box-shadow: 0 10px 22px rgba(35, 118, 183, .24);
}

.demand-button-quiet {
  color: #28597d !important;
  border-color: #d7e1ea;
  background: #fff;
}

.demand-button-quiet:hover {
  color: #18496c !important;
  background: #f3f8fc;
}

.demand-flash {
  margin: 0 0 22px;
}

.demand-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 2px 0 24px;
  border: 1px solid #e2e9ef;
  border-radius: 15px;
  background: #e2e9ef;
  box-shadow: 0 8px 24px rgba(21, 43, 67, .045);
}

.demand-summary > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  justify-content: center;
  padding: 17px 22px;
  background: #fff;
}

.demand-summary strong {
  color: #163553;
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: -.04em;
}

.demand-summary span {
  color: #748396;
  font-size: .79rem;
  font-weight: 650;
}

.demand-search-panel,
.demand-content-card,
.demand-detail-card,
.demand-form-card,
.demand-aside-card {
  border: 1px solid #e3eaf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(18, 42, 65, .045);
}

.demand-search-panel {
  margin-bottom: 36px;
  padding: 18px;
}

.demand-filter-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.7fr) repeat(3, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}

.demand-filter-form label,
.demand-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: #455a70;
  font-size: .8rem;
  font-weight: 700;
}

.demand-filter-form label span,
.demand-field > span {
  color: #455a70;
  font-size: .8rem;
  font-weight: 700;
}

.demand-filter-form input,
.demand-filter-form select,
.demand-field input,
.demand-field select,
.demand-field textarea,
.demand-admin-category-form input,
.demand-admin-status-filter select,
.demand-admin-action select {
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #d9e2eb;
  border-radius: 9px;
  background: #fff;
  color: #203b56;
  font: inherit;
  font-size: .89rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.demand-filter-form input:focus,
.demand-filter-form select:focus,
.demand-field input:focus,
.demand-field select:focus,
.demand-field textarea:focus,
.demand-admin-category-form input:focus {
  border-color: #5b9dca;
  box-shadow: 0 0 0 3px rgba(35, 118, 183, .12);
}

.demand-field .select2-container {
  width: 100% !important;
}

.demand-field .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  height: 43px;
  padding: 0 12px;
  border: 1px solid #d9e2eb;
  border-radius: 9px;
  background: #fff;
}

.demand-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0;
  color: #203b56;
  line-height: 41px;
}

.demand-field .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #8795a3;
}

.demand-field .select2-container--default.select2-container--focus .select2-selection--single,
.demand-field .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #5b9dca;
  box-shadow: 0 0 0 3px rgba(35, 118, 183, .12);
}

.demand-filter-actions {
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
}

.demand-section-heading {
  align-items: flex-end;
  margin: 0 0 16px;
}

.demand-section-heading h2 {
  margin: 5px 0 0;
  color: #17324e;
  font-size: 1.42rem;
  font-weight: 750;
  letter-spacing: -.025em;
}

.demand-count {
  color: #6a7d90;
  font-size: .78rem;
  font-weight: 700;
}

.demand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.demand-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e0e8ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 46, 70, .035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.demand-card:hover {
  transform: translateY(-2px);
  border-color: #c8d9e7;
  box-shadow: 0 13px 30px rgba(20, 46, 70, .08);
}

.demand-card-top {
  margin-bottom: 14px;
}

.demand-pill,
.demand-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 99px;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.demand-pill.is-need {
  color: #1f608f;
  background: #e6f2fb;
}

.demand-pill.is-wish {
  color: #805b22;
  background: #fbf1dc;
}

.demand-status.is-success {
  color: #1c714e;
  background: #e5f5ec;
}

.demand-status.is-pending {
  color: #895c19;
  background: #fff2d8;
}

.demand-status.is-muted {
  color: #637286;
  background: #edf1f5;
}

.demand-card h2 {
  margin: 0 0 8px;
  color: #172f49;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 750;
}

.demand-card h2 a {
  color: inherit;
  text-decoration: none;
}

.demand-card h2 a:hover {
  color: #2376b7;
}

.demand-card-copy {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #647588;
  font-size: .89rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.demand-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0;
  color: #718295;
  font-size: .75rem;
}

.demand-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.demand-card-meta i {
  color: #7d9ab1;
}

.demand-card-bottom {
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 13px;
  border-top: 1px solid #edf1f4;
}

.demand-card-bottom > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.demand-card-bottom strong {
  color: #264b69;
  font-size: .88rem;
}

.demand-card-bottom small {
  color: #8090a0;
  font-size: .72rem;
}

.demand-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.demand-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 54px 22px;
  border: 1px dashed #d2dee8;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

.demand-empty-compact {
  padding: 32px 20px;
}

.demand-empty-icon,
.demand-opportunity-icon,
.demand-choice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #2376b7;
  background: #eaf4fb;
}

.demand-empty h2,
.demand-empty h3 {
  margin: 14px 0 5px;
  color: #17324e;
  font-size: 1.25rem;
}

.demand-empty p {
  max-width: 480px;
  margin: 0 0 18px;
  color: #6c7c8e;
}

.demand-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  color: #667a8d;
  font-size: .85rem;
}

.demand-form-layout {
  max-width: 820px;
  margin: 0 auto;
}

.demand-form-card {
  padding: clamp(20px, 4vw, 38px);
}

.demand-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demand-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.demand-form legend {
  margin-bottom: 10px;
  color: #40566d;
  font-size: .85rem;
  font-weight: 750;
}

.demand-choice-grid,
.demand-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.demand-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce5ec;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.demand-choice.is-selected {
  border-color: #73a9cf;
  background: #f4f9fd;
}

.demand-choice input {
  flex: 0 0 auto;
  accent-color: #2376b7;
}

.demand-choice-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.demand-choice > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.demand-choice strong {
  color: #26415b;
  font-size: .88rem;
}

.demand-choice small,
.demand-field small {
  color: #7c8b99;
  font-size: .73rem;
  font-weight: 500;
}

.demand-field textarea {
  min-height: 110px;
  resize: vertical;
}

.demand-input-prefix {
  display: flex;
  overflow: hidden;
  border: 1px solid #d9e2eb;
  border-radius: 9px;
  background: #fff;
}

.demand-input-prefix:focus-within {
  border-color: #5b9dca;
  box-shadow: 0 0 0 3px rgba(35, 118, 183, .12);
}

.demand-input-prefix > span {
  display: grid;
  place-items: center;
  width: 40px;
  border-right: 1px solid #e4eaf0;
  color: #6d8195;
  background: #f7f9fb;
  font-size: .85rem;
  font-weight: 700;
}

.demand-input-prefix input {
  min-width: 0;
  border: 0;
  box-shadow: none !important;
}

.demand-form-note,
.demand-supplier-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border-radius: 10px;
  color: #52708a;
  background: #edf5fb;
  font-size: .81rem;
  line-height: 1.5;
}

.demand-form-note i,
.demand-supplier-intro i {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #377eaf;
}

.demand-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 5px;
}

.demand-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 18px;
}

.demand-detail-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.demand-detail-card,
.demand-content-card,
.demand-aside-card {
  padding: 22px;
}

.demand-detail-category {
  margin: 0 0 6px;
  color: #668198;
  font-size: .8rem;
  font-weight: 700;
}

.demand-detail-card h2 {
  margin: 0 0 13px;
  color: #16324d;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}

.demand-detail-copy {
  margin: 0;
  color: #4e6479;
  font-size: .97rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.demand-specifications {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #e3eaf0;
  border-radius: 11px;
  background: #f8fafc;
}

.demand-specifications strong {
  color: #40566d;
  font-size: .85rem;
}

.demand-specifications p {
  margin: 7px 0 0;
  color: #52667a;
  line-height: 1.65;
}

.demand-credit-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid #cfe0ed;
  border-radius: 16px;
  background: linear-gradient(120deg, #f4f9fd, #fff);
}

.demand-credit-balance strong {
  display: block;
  margin: 6px 0;
  color: #163d5d;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.04em;
}

.demand-credit-balance strong small {
  font-size: .95rem;
  letter-spacing: 0;
}

.demand-credit-balance p,
.demand-credit-package p {
  margin: 0;
  color: #657a8d;
}

.demand-credit-purchase-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.demand-credit-purchase-form > .demand-field {
  max-width: 360px;
}

.demand-credit-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.demand-credit-package {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border: 1px solid #dce6ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(27, 55, 80, .045);
}

.demand-credit-package strong {
  color: #1c4566;
  font-size: 1.45rem;
}

.demand-credit-package .demand-button {
  width: 100%;
  margin-top: 5px;
}

.demand-credit-status {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #cfe0ed;
  border-radius: 10px;
  color: #24506f;
  background: #f2f8fc;
}

.demand-credit-status.is-paid {
  border-color: #b8e0cb;
  color: #17613c;
  background: #effaf4;
}

.demand-credit-status.is-failed {
  border-color: #efc7c7;
  color: #8d3030;
  background: #fff5f5;
}

.demand-credit-positive {
  color: #167344 !important;
  font-weight: 750;
}

.demand-credit-negative {
  color: #a03d3d !important;
  font-weight: 750;
}

.demand-credit-inline-link {
  margin-top: -12px;
}

.demand-unlock-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #d3e3ee;
  border-radius: 13px;
  background: #f6fafc;
}

.demand-unlock-panel h3 {
  margin: 6px 0;
  color: #234864;
  font-size: 1.05rem;
}

.demand-unlock-panel p {
  max-width: 620px;
  margin: 0;
  color: #62788c;
  font-size: .85rem;
}

.demand-unlock-panel form {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.demand-transaction-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #cddfee;
  border-radius: 13px;
  background: #f4f9fd;
}

.demand-transaction-panel h3 {
  margin: 6px 0;
  color: #234864;
  font-size: 1rem;
}

.demand-transaction-panel p {
  margin: 0;
  color: #62788c;
  font-size: .87rem;
}

.demand-transaction-panel form,
.demand-select-offer-form {
  flex: 0 0 auto;
}

.demand-select-offer-form {
  margin-top: 14px;
}

.demand-offer-product {
  margin: 4px 0 10px;
  font-size: .86rem;
}

.demand-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #edf1f4;
}

.demand-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demand-facts span,
.demand-facts strong {
  font-size: .8rem;
}

.demand-facts span {
  color: #7b8b9a;
}

.demand-facts strong {
  color: #2a4966;
}

.demand-review-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid #d2a54b;
  border-radius: 7px;
  color: #6b5426;
  background: #fff8e9;
  font-size: .83rem;
  line-height: 1.5;
}

.demand-review-note a {
  color: #315e81;
  font-weight: 750;
}

.demand-intent-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin: 15px 0;
}

.demand-intent-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 11px;
  background: #f4f8fb;
}

.demand-intent-stats strong {
  color: #1c547e;
  font-size: 1.5rem;
}

.demand-intent-stats span {
  color: #708398;
  font-size: .76rem;
}

.demand-response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demand-footnote,
.demand-muted {
  color: #78899a;
  font-size: .79rem;
  line-height: 1.55;
}

.demand-footnote {
  margin: 10px 0 0;
}

.demand-offer-list,
.demand-comment-list,
.demand-admin-review-list {
  display: flex;
  flex-direction: column;
}

.demand-offer,
.demand-comment {
  padding: 15px 0;
  border-top: 1px solid #edf1f4;
}

.demand-offer-top {
  align-items: flex-start;
}

.demand-offer h3 {
  margin: 3px 0 0;
  color: #21405b;
  font-size: 1rem;
}

.demand-offer-top > strong {
  color: #1f694d;
  font-size: 1rem;
  white-space: nowrap;
}

.demand-offer p,
.demand-comment p {
  margin: 9px 0;
  color: #556a7e;
  font-size: .88rem;
  line-height: 1.6;
}

.demand-offer small,
.demand-comment small {
  color: #8593a1;
  font-size: .74rem;
}

.demand-offer-form {
  margin-top: 12px;
  padding-top: 15px;
  border-top: 1px solid #e9eef2;
}

.demand-offer-form summary {
  color: #2c668f;
  font-size: .9rem;
  font-weight: 750;
  cursor: pointer;
}

.demand-offer-form[open] summary {
  margin-bottom: 16px;
}

.demand-comment-form {
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid #e9eef2;
}

.demand-comment > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.demand-comment strong {
  color: #2c4964;
  font-size: .86rem;
}

.demand-detail-aside {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demand-aside-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.demand-opportunity-card {
  color: #fff;
  border-color: #193e5f;
  background: linear-gradient(145deg, #173d5c, #102a42);
}

.demand-opportunity-card .demand-eyebrow {
  color: #b5cce0;
}

.demand-opportunity-card > strong {
  margin-top: 18px;
  color: #fff;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -.05em;
}

.demand-opportunity-card h2,
.demand-aside-card h2 {
  margin: 8px 0;
  color: inherit;
  font-size: 1.15rem;
}

.demand-opportunity-card p,
.demand-aside-card p {
  margin: 0 0 16px;
  color: #b9c8d6;
  font-size: .82rem;
  line-height: 1.55;
}

.demand-opportunity-card .demand-text-link {
  color: #d4e9f8;
}

.demand-aside-card:not(.demand-opportunity-card) p {
  color: #687d91;
}

.demand-aside-back {
  padding: 8px 3px;
}

.demand-welcome,
.demand-opportunity-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid #d8e7f1;
  border-radius: 15px;
  background: linear-gradient(120deg, #edf6fc, #fff);
}

.demand-welcome h2,
.demand-opportunity-banner h2 {
  margin: 5px 0 5px;
  color: #183651;
  font-size: 1.45rem;
  font-weight: 750;
}

.demand-welcome p,
.demand-opportunity-banner p {
  margin: 0;
  color: #65798c;
  font-size: .86rem;
}

.demand-dashboard-section {
  margin-top: 32px;
}

.demand-opportunity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.demand-opportunity-tile {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 5px 12px;
  padding: 17px;
  border: 1px solid #e0e8ef;
  border-radius: 13px;
  background: #fff;
  color: #233f59;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.demand-opportunity-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20, 46, 70, .07);
  text-decoration: none;
}

.demand-opportunity-icon {
  grid-row: span 3;
  width: 42px;
  height: 42px;
}

.demand-opportunity-name {
  font-size: .87rem;
  font-weight: 750;
}

.demand-opportunity-tile strong {
  color: #2775aa;
  font-size: 1.45rem;
  line-height: 1;
}

.demand-opportunity-tile small {
  color: #798999;
  font-size: .72rem;
}

.demand-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4eaf0;
  border-radius: 12px;
  background: #fff;
}

.demand-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.demand-table th,
.demand-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f4;
  color: #52677b;
  font-size: .81rem;
  text-align: left;
  vertical-align: middle;
}

.demand-table th {
  color: #718398;
  background: #f7f9fb;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.demand-table tr:last-child td {
  border-bottom: 0;
}

.demand-table td a:not(.demand-text-link) {
  color: #275d84;
  text-decoration: none;
}

.demand-table td a:hover {
  text-decoration: underline;
}

.demand-table td small {
  display: block;
  margin-top: 4px;
  color: #8391a0;
  font-size: .71rem;
}

.demand-table td .demand-status {
  font-size: .67rem;
}

.demand-supplier-intro {
  margin: 0 0 18px;
}

.demand-supplier-intro p {
  margin: 0;
}

/* Admin demand moderation */
.demand-admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: -4px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8edf2;
}

.demand-admin-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #5f7182;
  font-size: .83rem;
  font-weight: 700;
  text-decoration: none;
}

.demand-admin-tabs a:hover,
.demand-admin-tabs a.is-active {
  color: #205f8a;
  background: #eaf3f9;
}

.demand-admin-tabs a span {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 99px;
  color: #496a84;
  background: #dceaf4;
  font-size: .69rem;
}

.demand-admin-heading {
  align-items: flex-end;
  margin: 0 0 15px;
}

.demand-admin-heading h2 {
  margin: 0 0 3px;
  color: #223a50;
  font-size: 1.2rem;
}

.demand-admin-heading p {
  margin: 0;
  color: #7a8998;
  font-size: .8rem;
}

.demand-admin-status-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #64788b;
  font-size: .78rem;
  font-weight: 700;
}

.demand-admin-status-filter select,
.demand-admin-action select {
  min-height: 36px;
  padding: 7px 9px;
  font-size: .78rem;
}

.demand-admin-action {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
}

.demand-admin-table {
  min-width: 820px;
}

.demand-admin-empty {
  padding: 25px;
  border: 1px dashed #d8e1e9;
  border-radius: 10px;
  color: #778696;
  text-align: center;
}

.demand-admin-review {
  padding: 17px 0;
  border-top: 1px solid #e9eef2;
}

.demand-admin-review:first-child {
  border-top: 0;
}

.demand-admin-review small {
  color: #7b8997;
  font-size: .73rem;
}

.demand-admin-review h3 {
  margin: 4px 0;
  color: #28435b;
  font-size: 1rem;
}

.demand-admin-review h3 a {
  color: inherit;
}

.demand-admin-review p {
  max-width: 850px;
  margin: 9px 0 13px;
  color: #53687b;
  font-size: .86rem;
  line-height: 1.6;
}

.demand-admin-actions {
  display: flex;
  gap: 8px;
}

.demand-admin-offer-head {
  align-items: flex-start;
}

.demand-admin-offer-head > strong {
  color: #26704f;
  white-space: nowrap;
}

.demand-admin-category-form {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(200px, 1.5fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 18px;
  padding: 15px;
  border-radius: 10px;
  background: #f6f8fa;
}

.demand-admin-category-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #53687b;
  font-size: .76rem;
  font-weight: 700;
}

.demand-admin-category-form input {
  min-height: 39px;
  padding: 8px 10px;
  font-size: .82rem;
}

@media (max-width: 991px) {
  .demand-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .demand-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .demand-detail-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demand-aside-back {
    grid-column: 1 / -1;
  }

  .demand-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demand-credit-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .demand-app {
    padding: 26px 0 50px;
  }

  .demand-topline h1 {
    font-size: 2rem;
  }

  .demand-actions {
    width: 100%;
    gap: 3px;
  }

  .demand-nav-link {
    padding: 8px 7px;
    font-size: .78rem;
  }

  .demand-actions .demand-button {
    margin-left: auto;
    padding: 9px 11px;
    font-size: .78rem;
  }

  .demand-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demand-summary > div {
    min-height: 80px;
    padding: 13px 15px;
  }

  .demand-summary strong {
    font-size: 1.45rem;
  }

  .demand-filter-form,
  .demand-grid,
  .demand-choice-grid,
  .demand-form-row,
  .demand-opportunity-grid,
  .demand-detail-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .demand-filter-actions {
    flex-wrap: wrap;
  }

  .demand-section-heading,
  .demand-welcome,
  .demand-opportunity-banner,
  .demand-credit-balance,
  .demand-unlock-panel,
  .demand-transaction-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .demand-credit-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .demand-unlock-panel form,
  .demand-transaction-panel form {
    width: 100%;
    align-items: stretch;
  }

  .demand-credit-balance > a {
    width: 100%;
  }

  .demand-card {
    padding: 17px;
  }

  .demand-card-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .demand-detail-card,
  .demand-content-card,
  .demand-aside-card {
    padding: 17px;
  }

  .demand-facts,
  .demand-intent-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demand-form-actions {
    justify-content: stretch;
  }

  .demand-form-actions > * {
    flex: 1;
  }

  .demand-admin-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .demand-admin-category-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demand-button,
  .demand-card,
  .demand-opportunity-tile {
    transition: none;
  }
}


/* =========================================
   DEMAND MARKETPLACE CARDS
========================================= */

.demand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.demand-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.demand-card:hover {
    transform: translateY(-4px);
    border-color: #d5e1ec;
    box-shadow: 0 12px 30px rgba(25, 45, 65, .09);
}

/* Image */

.demand-card-image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f4f7;
    text-decoration: none;
}

.demand-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.demand-card:hover .demand-card-image img {
    transform: scale(1.045);
}

.demand-image-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    color: #98a6b5;
    background: linear-gradient(135deg, #f4f7fa, #e9eef3);
}

.demand-image-placeholder i {
    font-size: 32px;
}

.demand-image-placeholder span {
    font-size: 12px;
    font-weight: 600;
}

/* Type badge */

.demand-type-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.demand-type-badge.need {
    color: #1559a6;
    background: #eaf3ff;
}

.demand-type-badge.wish {
    color: #7950a5;
    background: #f2eaff;
}

/* Card body */

.demand-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px;
}

.demand-card-category {
    margin-bottom: 9px;
    color: #748397;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.demand-card-title {
    margin: 0 0 9px;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: -.3px;
}

.demand-card-title a {
    color: #192b40;
    text-decoration: none;
}

.demand-card-title a:hover {
    color: #2367b1;
}

.demand-card-excerpt {
    display: -webkit-box;
    min-height: 54px;
    margin: 0 0 16px;
    overflow: hidden;
    color: #718096;
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.demand-card-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: #586b80;
    font-size: 12px;
    font-weight: 600;
}

.demand-card-location i {
    color: #8798aa;
}

/* Footer */

.demand-card-divider {
    height: 1px;
    margin: 17px 0 13px;
    background: #edf0f3;
}

.demand-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.demand-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.demand-card-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #42566c;
    font-size: 12px;
    font-weight: 700;
}

.demand-card-stats span i {
    color: #8193a6;
}

.demand-card-stats small {
    color: #8997a6;
    font-size: 10px;
    font-weight: 500;
}

.demand-card-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 7px;
    color: #2367b1;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.demand-card-link:hover {
    color: #174b83;
}

.demand-card-link i {
    transition: transform .2s ease;
}

.demand-card-link:hover i {
    transform: translateX(3px);
}

/* Responsive */

@media (max-width: 991px) {
    .demand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 575px) {
    .demand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .demand-card {
        border-radius: 12px;
    }

    .demand-card-body {
        padding: 12px;
    }

    .demand-card-title {
        font-size: 14px;
    }

    .demand-card-excerpt {
        min-height: 48px;
        margin-bottom: 12px;
        font-size: 11px;
    }

    .demand-card-category {
        font-size: 9px;
    }

    .demand-type-badge {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 9px;
    }

    .demand-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .demand-card-stats {
        gap: 9px;
    }

    .demand-card-stats small {
        font-size: 9px;
    }

    .demand-card-link {
        font-size: 11px;
    }

    .demand-card-divider {
        margin: 12px 0;
    }

    .demand-card-location {
        font-size: 10px;
    }
}
