/* Hallmark · pre-emit critique: P5 H4 E5 S5 R5 V4
 * genre: modern-minimal · macrostructure: Workbench · tone: technical · anchor: wisteria
 * system: Sokosumi DESIGN.md · enrichment: none · nav/footer: existing shared chrome
 * contrast: pass (46–50) · honest/chrome/tokens/icons: pass (56–60) · mobile: pass (36, 59, 61–69)
 */

.design-tool-page {
  min-width: 0;
}

.dm-hero {
  display: grid;
  gap: clamp(36px, 6vw, 80px);
  padding: clamp(52px, 8vw, 104px) 0 clamp(72px, 11vw, 144px);
}

.dm-intro {
  min-width: 0;
  align-self: start;
}

.dm-overline,
.dm-result-label {
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 14px;
}

.dm-intro h1 {
  max-width: 13ch;
  min-width: 0;
  color: var(--foreground);
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.dm-lede {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--foreground);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  text-wrap: pretty;
}

.dm-standard {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.6;
}

.dm-standard a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
}

.dm-workbench {
  min-width: 0;
  align-self: start;
  scroll-margin-top: 96px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.dm-form,
.dm-progress,
.dm-result {
  padding: clamp(22px, 4vw, 38px);
}

.dm-form label,
.dm-file label {
  display: block;
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
}

.dm-form-row {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dm-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 16px;
  outline: 2px solid transparent;
  outline-offset: 1px;
}

.dm-form input::placeholder {
  color: var(--muted-foreground);
}

@media (hover: hover) and (pointer: fine) {
  .dm-form input:hover {
    background: var(--muted);
  }
}

.dm-form input:focus-visible {
  background: var(--card);
  border-color: var(--foreground);
  outline-color: var(--primary);
}

.dm-form input[aria-invalid="true"] {
  border-color: var(--foreground);
  outline-style: dashed;
}

.dm-submit {
  min-height: 48px;
}

.dm-submit[disabled],
.dm-result-actions button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.dm-help,
.dm-error,
.dm-file p {
  min-height: 1lh;
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.5;
}

.dm-error {
  color: var(--foreground);
  font-weight: 500;
}

.dm-progress,
.dm-result {
  scroll-margin-top: 96px;
  border-top: 1px solid var(--border);
}

.dm-progress-line {
  height: 2px;
  overflow: hidden;
  background: var(--muted);
}

.dm-progress-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transform: scaleX(0.16);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.dm-progress[data-phase="running"] .dm-progress-line span {
  transform: scaleX(0.66);
}

.dm-progress[data-phase="finishing"] .dm-progress-line span {
  transform: scaleX(0.92);
}

.dm-progress ol {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.dm-progress li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.4;
}

.dm-progress li span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dm-progress[data-phase="queued"] [data-step="queued"],
.dm-progress[data-phase="running"] [data-step="running"],
.dm-progress[data-phase="finishing"] [data-step="finishing"] {
  color: var(--foreground);
}

.dm-progress[data-phase="queued"] [data-step="queued"] span,
.dm-progress[data-phase="running"] [data-step="running"] span,
.dm-progress[data-phase="finishing"] [data-step="finishing"] span {
  color: var(--card);
  background: var(--primary);
  border-color: var(--primary);
}

.dm-progress > p {
  margin-top: 22px;
  color: var(--foreground);
  font-size: 14px;
}

.dm-result-head,
.dm-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.dm-result-label {
  margin-bottom: 5px;
}

.dm-result-head h2 {
  color: var(--foreground);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.dm-result-head a {
  display: block;
  max-width: min(56ch, 70vw);
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted-foreground);
  font-size: 12px;
  text-decoration: underline;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dm-tabs {
  display: flex;
  gap: 4px;
  margin: 28px 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dm-tabs button,
.dm-another {
  min-height: 44px;
  padding: 0 14px;
  color: var(--muted-foreground);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.dm-tabs button[aria-selected="true"] {
  color: var(--foreground);
  background: var(--muted);
}

@media (hover: hover) and (pointer: fine) {
  .dm-tabs button:hover,
  .dm-another:hover {
    color: var(--foreground);
  }
}

.dm-tabs button:active,
.dm-another:active {
  transform: translateY(1px);
}

.dm-preview {
  display: grid;
  gap: 28px;
}

.dm-preview-block h3 {
  margin-bottom: 10px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
}

.dm-preview-block > p,
.dm-prose-section p,
.dm-prose-section li {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.65;
}

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

.dm-swatch {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--background);
}

.dm-swatch-color {
  display: block;
  height: 46px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--muted);
}

.dm-swatch strong,
.dm-swatch small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-swatch strong {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
}

.dm-swatch small {
  margin-top: 2px;
  color: var(--muted-foreground);
  font-size: 11px;
}

.dm-type-list,
.dm-prose-sections {
  border-top: 1px solid var(--border);
}

.dm-type-row,
.dm-prose-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.dm-type-row {
  display: grid;
  grid-template-columns: minmax(90px, 0.7fr) minmax(0, 1.3fr);
  gap: 8px 18px;
}

.dm-type-row dt {
  color: var(--muted-foreground);
  font-size: 12px;
}

.dm-type-row dd {
  min-width: 0;
  margin: 0;
  color: var(--foreground);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.dm-prose-section h3 {
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.dm-prose-section p + p,
.dm-prose-section ul + p,
.dm-prose-section p + ul {
  margin-top: 10px;
}

.dm-prose-section ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.dm-file textarea {
  display: block;
  width: 100%;
  min-height: 480px;
  resize: vertical;
  padding: 18px;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  outline: 2px solid transparent;
  outline-offset: 1px;
  tab-size: 2;
}

.dm-file textarea:focus-visible {
  background: var(--card);
  border-color: var(--foreground);
  outline-color: var(--primary);
}

.dm-another {
  margin-top: 18px;
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dm-explainer,
.dm-process,
.dm-gallery-section,
.dm-marketing,
.dm-faq {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 1px solid var(--border);
}

.dm-explainer > header,
.dm-process > header {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 60px);
}

.dm-explainer h2,
.dm-process h2,
.dm-gallery-section h2,
.dm-marketing h2,
.dm-faq h2 {
  color: var(--foreground);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.dm-explainer header p,
.dm-process header p,
.dm-section-head > div > p,
.dm-marketing > div > p {
  max-width: 68ch;
  margin-top: 14px;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.dm-spec-list {
  margin: 0;
  border-top: 1px solid var(--foreground);
}

.dm-spec-list > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.35fr) minmax(0, 1fr);
  gap: 16px 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.dm-spec-list dt {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 500;
}

.dm-spec-list dd {
  max-width: 70ch;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.6;
}

.dm-process ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--foreground);
}

.dm-process li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.dm-process li > span {
  color: var(--primary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.dm-process h3 {
  color: var(--foreground);
  font-size: 17px;
  font-weight: 500;
}

.dm-process li p {
  max-width: 70ch;
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.6;
}

.dm-gallery-count {
  color: var(--muted-foreground);
  font-size: 13px;
  white-space: nowrap;
}

.dm-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.dm-gallery-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .dm-gallery-card:hover {
    border-color: var(--primary);
  }
}

.dm-gallery-card:active {
  transform: translateY(1px);
}

.dm-gallery-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.dm-gallery-shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}

.dm-gallery-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.dm-gallery-meta {
  display: block;
  min-width: 0;
  padding: 12px;
}

.dm-gallery-meta strong,
.dm-gallery-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dm-gallery-meta strong {
  font-size: 13px;
  font-weight: 500;
}

.dm-gallery-meta small {
  margin-top: 3px;
  color: var(--muted-foreground);
  font-size: 11px;
}

.dm-gallery-more {
  margin-top: 18px;
}

.dm-marketing {
  display: grid;
  gap: 34px;
}

.dm-marketing ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--foreground);
}

.dm-marketing li {
  position: relative;
  padding: 16px 0 16px 26px;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.55;
}

.dm-marketing li::before {
  position: absolute;
  top: 24px;
  left: 2px;
  width: 10px;
  height: 1px;
  background: var(--primary);
  content: "";
}

.dm-faq > h2 {
  margin-bottom: 32px;
}

@media (min-width: 40rem) {
  .dm-form-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dm-swatches {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dm-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  .dm-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .dm-intro {
    position: sticky;
    top: 110px;
  }

  .dm-marketing {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }

  .dm-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 39.99rem) {
  .dm-result-actions,
  .dm-result-actions .btn,
  .dm-gallery-more {
    width: 100%;
  }

  .dm-spec-list > div,
  .dm-type-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .dm-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dm-progress-line span {
    transition: none;
  }
}


/* --- tool layout ------------------------------------------------------- */

.dm-tool {
  padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px);
}

.dm-tool-head {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.dm-tool-head .dm-overline {
  margin-bottom: 8px;
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dm-tool-head h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dm-tool-meta {
  align-items: center;
  color: var(--muted-foreground);
  display: flex;
  font-size: 13px;
  gap: 14px;
  padding-bottom: 6px;
}

.dm-tool-meta a {
  color: inherit;
  text-decoration: none;
}

.dm-tool-meta a:hover {
  color: var(--foreground);
}

.dm-live::before {
  background: #1fbf5f;
  border-radius: 999px;
  content: "";
  display: inline-block;
  height: 6px;
  margin-right: 7px;
  vertical-align: 1px;
  width: 6px;
}

.dm-bar {
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dm-bar:focus-within {
  border-color: var(--foreground);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--foreground) 6%, transparent);
}

.dm-bar label {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.dm-bar input {
  background: transparent;
  border: 0;
  color: var(--foreground);
  flex: 1;
  font-size: 17px;
  height: 46px;
  min-width: 0;
  outline: 0;
  padding: 0 8px;
}

.dm-bar input::placeholder {
  color: var(--muted-foreground);
}

.dm-bar .dm-submit {
  background: var(--foreground);
  border: 0;
  border-radius: 10px;
  color: var(--background);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  height: 46px;
  padding: 0 18px;
  white-space: nowrap;
}

.dm-bar .dm-submit:disabled {
  cursor: default;
  opacity: 0.5;
}

.dm-bar .dm-submit kbd {
  font-family: inherit;
  margin-left: 8px;
  opacity: 0.55;
}

.dm-try {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dm-try > span {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-right: 4px;
  text-transform: uppercase;
}

.dm-try button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--foreground);
  cursor: pointer;
  font-size: 13px;
  padding: 5px 12px;
}

.dm-try button:hover {
  border-color: var(--foreground);
}

.dm-try i {
  background: var(--border);
  height: 16px;
  margin: 0 6px;
  width: 1px;
}

.dm-try #designMdExample {
  border: 0;
  color: var(--muted-foreground);
  padding-inline: 4px;
}

.dm-try #designMdExample:hover {
  color: var(--foreground);
}

.dm-error {
  margin-top: 12px;
}

.dm-output {
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin-top: 24px;
  min-height: 300px;
  padding: 0;
}

.dm-output[data-state="result"] {
  border-style: solid;
  background: var(--card);
}

.dm-output-empty {
  display: none;
}

.dm-output[data-state="empty"] .dm-output-empty {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 300px;
  padding: 40px 24px;
  text-align: center;
}

.dm-output-empty > span {
  align-items: center;
  background: var(--muted);
  border-radius: 999px;
  color: var(--muted-foreground);
  display: inline-flex;
  font-size: 14px;
  height: 32px;
  justify-content: center;
  margin-bottom: 8px;
  width: 32px;
}

.dm-output-empty strong {
  font-size: 14px;
  font-weight: 500;
}

.dm-output-empty small {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.5;
  max-width: 44ch;
}

.dm-output .dm-progress,
.dm-output .dm-result {
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: clamp(20px, 3vw, 32px);
}

.dm-gallery-section {
  padding-top: clamp(56px, 8vw, 96px);
}

.dm-section-head {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.dm-gallery-section h2,
.dm-how h2,
.dm-faq h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.dm-how .dm-overline {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dm-how h2 {
  max-width: 28ch;
}

.dm-how ol {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
}

.dm-how li span {
  color: var(--primary);
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  margin-bottom: 12px;
}

.dm-how h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.dm-how p {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 14.5px;
  line-height: 1.55;
}

.dm-how p a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dm-faq {
  max-width: 760px;
}

@media (max-width: 40rem) {
  .dm-tool-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .dm-bar {
    border-radius: 14px;
    flex-wrap: wrap;
    padding: 8px;
  }

  .dm-bar label {
    display: none;
  }

  .dm-bar input {
    flex-basis: 100%;
  }

  .dm-bar .dm-submit {
    width: 100%;
  }

  .dm-how ol {
    grid-template-columns: 1fr;
  }
}

/* --- /tools hub -------------------------------------------------------- */

.tools-hero {
  padding: clamp(64px, 10vw, 128px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}

.tools-hero h1 {
  font-size: clamp(44px, 7.5vw, 88px);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 1;
}

.tools-hero p {
  margin-top: 16px;
  color: var(--muted-foreground);
  font-size: clamp(17px, 2vw, 21px);
}

.tools-list {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 460px));
  justify-content: center;
  max-width: 960px;
  margin: 0 auto clamp(72px, 10vw, 128px);
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--foreground);
  display: grid;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.tool-card:hover {
  border-color: var(--foreground);
  transform: translateY(-2px);
}

.tool-card-doc {
  background: var(--muted);
  border-radius: 12px;
  color: var(--muted-foreground);
  display: grid;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  gap: 4px;
  line-height: 1.5;
  padding: 18px 20px;
}

.tool-card-doc span:first-child {
  color: var(--foreground);
  font-weight: 600;
}

.tool-card-copy {
  display: grid;
  gap: 6px;
}

.tool-card-copy strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tool-card-copy > span {
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.5;
}

.tool-card-copy em {
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}

/* --- brand tiles, analysis pages ------------------------------------- */

.dm-brand {
  --brand: #f0f0f0;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
  display: inline-flex;
  flex: none;
  height: 40px;
  justify-content: center;
  overflow: hidden;
  width: 40px;
}

.dm-brand img {
  display: block;
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.dm-brand b {
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
}

.dm-gallery-meta {
  align-items: center;
  display: flex;
  gap: 10px;
}

.dm-gallery-meta > span:last-child {
  min-width: 0;
}

.dm-gallery-meta .dm-brand {
  height: 36px;
  width: 36px;
}

.dm-gallery-meta .dm-brand img {
  height: 22px;
  width: 22px;
}

.dm-gallery-card {
  text-decoration: none;
}

.dm-gallery-all {
  color: var(--muted-foreground);
  font-size: 13px;
  text-decoration: none;
}

.dm-gallery-all:hover {
  color: var(--foreground);
}

.dm-result-head {
  align-items: start;
}

#designMdBrand:empty {
  display: none;
}

#designMdBrand .dm-brand {
  height: 44px;
  margin-right: 14px;
  width: 44px;
}

#designMdBrand .dm-brand img {
  height: 26px;
  width: 26px;
}

.dm-analysis {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px);
}

.dm-analysis-head {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.dm-analysis-head > div:not(.dm-result-actions) {
  flex: 1;
  min-width: 0;
}

.dm-analysis-head .dm-brand {
  height: 64px;
  width: 64px;
  border-radius: 14px;
}

.dm-analysis-head .dm-brand img {
  height: 40px;
  width: 40px;
}

.dm-analysis-head .dm-overline {
  color: var(--muted-foreground);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dm-analysis-head h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dm-analysis-source {
  color: var(--muted-foreground);
  font-size: 13px;
  margin-top: 6px;
}

.dm-analysis-source a {
  color: var(--foreground);
  text-decoration: none;
}

.dm-analysis-source a:hover {
  text-decoration: underline;
}

.dm-analysis-grid {
  align-items: start;
  display: grid;
  gap: 24px;
}

.dm-analysis .dm-output {
  margin-top: 0;
}

.dm-analysis-side {
  display: grid;
  gap: 16px;
}

.dm-analysis-shot {
  margin: 0;
}

.dm-analysis-shot img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: block;
  height: auto;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.dm-analysis-shot figcaption {
  color: var(--muted-foreground);
  font-size: 12px;
  margin-top: 8px;
}

.dm-analysis-cta {
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--foreground);
  display: block;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 16px;
  text-decoration: none;
}

.dm-analysis-cta:hover {
  border-color: var(--foreground);
}

@media (min-width: 60rem) {
  .dm-analysis-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 40rem) {
  .dm-analysis-head {
    align-items: start;
    flex-wrap: wrap;
  }

  .dm-analysis-head .dm-result-actions {
    width: 100%;
  }
}
