/* Industry categories — token-driven, shared across themes */

.ind-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.ind-stack { display: grid; gap: 10px; width: 100%; min-width: 0; }

/* AI — prompt */
.m-prompt {
  display: flex; align-items: flex-end; gap: 8px; width: 100%;
  background: var(--surface); border: var(--bd,1px) solid var(--line);
  border-radius: var(--radius); padding: 8px 8px 8px 14px;
  box-shadow: var(--shadow-sm, var(--shadow-n));
}
.m-prompt textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; resize: none;
  min-height: 44px; max-height: 120px; padding: 8px 0;
}
.m-prompt textarea:focus { outline: none; }
.m-prompt .m-btn { flex: 0 0 auto; }

/* AI — chat */
.m-chat { display: grid; gap: 10px; width: 100%; }
.m-chat-msg {
  max-width: 92%; padding: 10px 12px; border-radius: var(--radius-sm, 12px);
  border: var(--bd,1px) solid var(--line); background: var(--surface);
}
.m-chat-msg.user { margin-left: auto; background: var(--accent-soft); }
.m-chat-msg .who { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.m-chat-msg.streaming::after { content: "▍"; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* AI — model selector */
.m-model { display: grid; gap: 6px; width: 100%; }
.m-model-btn {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 10px 12px;
  border: var(--bd,1px) solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
.m-model-btn small { color: var(--muted); font-weight: 600; }
.m-model-list { display: none; border: var(--bd,1px) solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.m-model.open .m-model-list { display: block; }
.m-model-list button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.m-model-list button:last-child { border-bottom: 0; }
.m-model-list button.is-active { background: var(--accent-soft); }

/* AI — feature bento / usage / logos */
.m-bento-mini { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; width: 100%; }
.m-bento-mini > * { background: var(--surface); border: var(--bd,1px) solid var(--line); border-radius: var(--radius-sm); padding: 12px; min-width: 0; box-shadow: var(--shadow-sm,none); }
.m-bento-mini h4 { margin: 0 0 4px; font-size: 14px; }
.m-bento-mini p { margin: 0; color: var(--muted); font-size: 12px; }
.m-usage { width: 100%; }
.m-usage .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.m-usage .bar > i { display: block; height: 100%; width: 62%; background: var(--accent); border-radius: 99px; }
.m-usage .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-weight: 650; }
.m-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.m-logos span {
  display: grid; place-items: center; height: 48px; border-radius: var(--radius-sm);
  border: var(--bd,1px) solid var(--line); background: var(--surface); font-weight: 800; font-size: 11px; letter-spacing: .04em; color: var(--muted);
}

/* API key */
.m-apikey { display: flex; gap: 8px; width: 100%; align-items: center; }
.m-apikey input { flex: 1; min-width: 0; padding: 10px 12px; border: var(--bd,1px) solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-family: ui-monospace, monospace; }

/* SaaS pricing tiers */
.m-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.m-tier { border: var(--bd,1px) solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); min-width: 0; }
.m-tier.featured { border-color: var(--accent); box-shadow: var(--shadow-n); }
.m-tier b { display: block; font-size: 20px; }
.m-tier span { color: var(--muted); font-size: 12px; }

/* Fashion */
.m-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.m-sizes button {
  min-width: 40px; height: 36px; padding: 0 10px; border: var(--bd,1px) solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); font-weight: 700;
}
.m-sizes button.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.m-sizes button:disabled { opacity: .4; text-decoration: line-through; }
.m-variants { display: flex; gap: 8px; }
.m-variants button {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line); padding: 0;
}
.m-variants button.is-on { box-shadow: 0 0 0 2px var(--accent); }
.m-lookbook {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  border: var(--bd,1px) solid var(--line); background: var(--surface);
}
.m-lookbook .ph { aspect-ratio: 4/5; background: linear-gradient(145deg, var(--accent-soft), var(--surface-2, var(--line))); }
.m-lookbook figcaption { padding: 10px 12px; font-weight: 700; }
.m-lookbook figcaption small { display: block; color: var(--muted); font-weight: 600; }
.m-quick {
  display: grid; grid-template-columns: 88px 1fr; gap: 10px; width: 100%;
  border: var(--bd,1px) solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--surface);
}
.m-quick .ph { border-radius: var(--radius-sm); background: var(--accent-soft); min-height: 88px; }
.m-wish { display: inline-flex; align-items: center; gap: 8px; }
.m-wish button { width: 40px; height: 40px; border-radius: var(--pill,99px); border: var(--bd,1px) solid var(--line); background: var(--surface); font-size: 18px; }
.m-wish button.is-on { background: var(--danger-soft, var(--accent-soft)); border-color: var(--danger, var(--accent)); }

/* Portfolio */
.m-role { font-family: var(--font-display, var(--font)); font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.m-role em { font-style: normal; color: var(--accent); }
.m-project {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: var(--bd,1px) solid var(--line); background: var(--surface); min-width: 0;
}
.m-project .ph { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--accent-soft), var(--line)); }
.m-project .reveal {
  position: absolute; inset: auto 0 0; padding: 12px;
  background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--bg);
  transform: translateY(40%); opacity: 0; transition: transform var(--dur-2), opacity var(--dur-2);
}
.m-project:hover .reveal, .m-project:focus-within .reveal { transform: none; opacity: 1; }
.m-masonry { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.m-masonry .tile { border-radius: var(--radius-sm); background: var(--accent-soft); border: var(--bd,1px) solid var(--line); min-height: 64px; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.m-masonry .tile.tall { min-height: 96px; grid-row: span 2; }
.m-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.m-skills span { padding: 4px 10px; border-radius: var(--pill,99px); border: var(--bd,1px) solid var(--line); background: var(--surface); font-size: 12px; font-weight: 700; }
.m-exp { display: grid; gap: 0; width: 100%; border-left: 2px solid var(--line); padding-left: 14px; }
.m-exp li { list-style: none; padding: 0 0 14px; position: relative; }
.m-exp li::before { content: ""; position: absolute; left: -19px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.m-exp strong { display: block; }
.m-exp span { color: var(--muted); font-size: 12px; }
.m-quote {
  padding: 14px; border: var(--bd,1px) solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm, none);
}
.m-quote p { margin: 0 0 8px; }
.m-quote cite { color: var(--muted); font-style: normal; font-size: 12px; font-weight: 700; }
.m-contact { display: grid; gap: 8px; width: 100%; }
.m-contact input, .m-contact textarea {
  width: 100%; padding: 10px 12px; border: var(--bd,1px) solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface);
}
.m-social { display: flex; flex-wrap: wrap; gap: 8px; }
.m-social a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; text-decoration: none;
  border: var(--bd,1px) solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 700; font-size: 13px;
}
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; text-align: center; }
.m-stats div { background: var(--surface); border: var(--bd,1px) solid var(--line); border-radius: var(--radius-sm); padding: 10px 6px; min-width: 0; }
.m-stats b { display: block; font-size: 22px; letter-spacing: -.03em; }
.m-stats span { font-size: 11px; color: var(--muted); font-weight: 700; }

/* Business */
.m-services { display: grid; gap: 8px; width: 100%; }
.m-services article { padding: 12px; border: var(--bd,1px) solid var(--line); border-radius: var(--radius); background: var(--surface); }
.m-services h4 { margin: 0 0 4px; }
.m-services p { margin: 0; color: var(--muted); font-size: 13px; }
.m-team { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; width: 100%; }
.m-team .av { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2, var(--accent-soft))); }
.m-team h4 { margin: 0; }
.m-team p { margin: 0; color: var(--muted); font-size: 12px; }
.m-cta-band {
  width: 100%; padding: 18px; border-radius: var(--radius);
  background: var(--accent-soft); border: var(--bd,0) solid var(--line);
  display: grid; gap: 8px; justify-items: start;
}
.m-cta-band h4 { margin: 0; }
.m-news { display: flex; gap: 8px; width: 100%; }
.m-news input { flex: 1; min-width: 0; padding: 10px 12px; border: var(--bd,1px) solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }

@media (max-width: 520px) {
  .m-bento-mini, .m-tiers, .m-masonry, .m-quick, .m-stats { grid-template-columns: 1fr; }
  .m-logos { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .m-chat-msg.streaming::after, .m-project .reveal { animation: none; transition: none; }
}
