.mify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.mify-card,
.mify-panel,
.mify-dashboard article,
.mify-auth {
  border: 1px solid #eadfd5;
  border-radius: 8px;
  background: #fffaf5;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(34, 29, 24, 0.06);
}

.mify-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.mify-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #f3eee7;
}

.mify-card-media img,
.mify-detail-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mify-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.mify-card-body h3,
.mify-card-body p {
  margin: 0;
}

.mify-card-body p {
  color: #6f655d;
}

.mify-card-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.mify-card-meta strong {
  font-size: 26px;
  line-height: 1;
}

.mify-card-meta small {
  color: #6f655d;
  text-align: right;
}

.mify-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mify-card h3,
.mify-panel h2 {
  margin: 10px 0;
}

.mify-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e4f7ef;
  color: #0a6b4a;
  font-size: 13px;
  font-weight: 700;
}

.mify-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #eadfd5;
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #6f655d;
  font-size: 13px;
  font-weight: 800;
}

.mify-button,
.mify-auth button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  background: #e65f4d;
  text-decoration: none;
  font-weight: 700;
}

.mify-button:hover,
.mify-button:focus-visible,
.mify-auth button:hover,
.mify-auth button:focus-visible {
  outline: 3px solid rgba(230, 95, 77, 0.18);
  outline-offset: 2px;
}

.mify-table {
  display: grid;
  gap: 8px;
}

.mify-table > div {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.mify-table > div:first-child {
  color: #6f655d;
  background: #f8f2eb;
}

.mify-holding-table > div {
  grid-template-columns: 1.5fr 1.3fr 0.8fr 0.9fr 1.4fr;
}

.mify-button-secondary {
  color: #71423b;
  background: #fff7f0;
  border: 1px solid rgba(113, 66, 59, 0.18);
  box-shadow: none;
}

.mify-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.mify-action-stack .mify-button {
  width: 100%;
  justify-content: center;
}

.mify-trade-table small {
  display: block;
  color: #6f655d;
  overflow-wrap: anywhere;
}

.mify-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.mify-auth {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin-bottom: 56px;
}

.mify-auth input,
.mify-seller-form input,
.mify-seller-form select,
.mify-seller-form textarea,
.mify-inline-form input {
  width: 100%;
  min-height: 42px;
  margin-top: 6px;
  border: 1px solid #eadfd5;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.mify-seller-form {
  display: grid;
  gap: 16px;
}

.mify-seller-form fieldset {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  border: 1px solid #eadfd5;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.mify-seller-form legend {
  padding: 0 8px;
  color: #0a6b4a;
  font-weight: 900;
}

.mify-seller-form label,
.mify-auth label {
  color: #4e453e;
  font-weight: 800;
}

.mify-seller-form small {
  display: block;
  margin-top: 6px;
  color: #6f655d;
  font-weight: 600;
}

.mify-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.mify-seller-form textarea {
  min-height: 92px;
  padding: 10px 12px;
}

.mify-check-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.mify-check-row input {
  width: auto;
  min-height: auto;
  margin: 0 6px 0 0;
}

.mify-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #fff7f0;
  color: #4f4039;
}

.mify-status-strip small {
  color: #7a6d64;
  overflow-wrap: anywhere;
}

.mify-seller-table small {
  display: block;
  color: #6f655d;
  overflow-wrap: anywhere;
}

.mify-copy {
  overflow-wrap: anywhere;
  border-radius: 8px;
  padding: 12px;
  background: #111;
  color: #fff;
}

.mify-detail {
  display: grid;
  gap: 18px;
}

.mify-detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.mify-detail-hero figure {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f3eee7;
}

.mify-detail-hero .mify-section-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.mify-section-head p {
  color: #6f655d;
  overflow-wrap: anywhere;
}

.mify-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.mify-detail-grid article {
  display: grid;
  gap: 8px;
  min-height: 92px;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.mify-detail-grid strong,
.mify-detail-rules h3 {
  color: #6f655d;
  font-size: 13px;
}

.mify-detail-grid span {
  font-size: 20px;
  font-weight: 800;
  color: #1f1a17;
}

.mify-detail-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mify-detail-rules > div {
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.mify-detail-rules h3,
.mify-detail-rules p {
  margin: 0;
}

.mify-detail-rules p {
  margin-top: 8px;
  line-height: 1.7;
}

.mify-compliance-note {
  border: 1px solid #d9eadf;
  border-radius: 8px;
  padding: 14px;
  background: #f4fbf7;
  color: #0a6b4a;
  font-weight: 800;
}

.mify-inline-form {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.mify-inline-form input {
  margin-top: 0;
}

.mify-trade-result {
  min-height: 24px;
  margin: 12px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mify-trade-result,
[data-seller-result],
[data-auth-result] {
  color: #6f655d;
}

.mify-trade-result[data-state="success"],
[data-seller-result][data-state="success"],
[data-auth-result][data-state="success"] {
  color: #0a6b4a;
}

.mify-trade-result[data-state="error"],
[data-seller-result][data-state="error"],
[data-auth-result][data-state="error"] {
  color: #b33a2e;
}

.mify-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.mify-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.mify-empty-row {
  margin: 0;
  padding: 16px;
  color: #6f655d;
  background: #fff;
  border-radius: 8px;
}

.mify-workbench {
  margin-top: 18px;
}

.mify-referral-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 58px;
}

@media (max-width: 720px) {
  .mify-grid {
    grid-template-columns: 1fr;
  }

  .mify-table > div {
    grid-template-columns: 1fr;
  }

  .mify-inline-form {
    grid-template-columns: 1fr;
  }

  .mify-detail-hero {
    grid-template-columns: 1fr;
  }

  .mify-detail-hero figure {
    min-height: auto;
    aspect-ratio: 16 / 11;
  }

  .mify-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .mify-card-meta small {
    text-align: left;
  }
}
