:root {
  --ink: #202521;
  --muted: #6d746f;
  --line: #e4e6e4;
  --soft: #f5f6f5;
  --blue: #2856d8;
  --blue-dark: #1d43b1;
  --coral: #ff6f61;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(25, 31, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-main {
  display: grid;
  min-height: 74px;
  align-items: center;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 30px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  line-height: 1;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 700;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-text strong {
  font-family: Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.logo-text small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.search-form {
  position: relative;
  display: flex;
  min-height: 46px;
  align-items: center;
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.search-form:focus-within {
  background: var(--white);
  border-color: var(--blue);
}

.search-icon {
  position: relative;
  width: 18px;
  height: 18px;
  margin-left: 17px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.search-icon::after {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}

.search-input {
  width: 100%;
  padding: 0 38px 0 14px;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.search-input::placeholder {
  color: #9ba09d;
}

.search-clear {
  position: absolute;
  right: 12px;
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: #a6aaa7;
  border: 0;
  border-radius: 50%;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.plain-action,
.footer-top button {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.list-button,
.primary-button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 19px;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.list-button:hover,
.list-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.category-nav {
  display: flex;
  min-height: 46px;
  align-items: flex-end;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  display: none;
}

.category-tab {
  position: relative;
  padding: 0 1px 13px;
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.category-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
}

.category-tab.is-active {
  color: var(--blue);
}

.category-tab.is-active::after {
  transform: scaleX(1);
}

.intro {
  padding: 64px 0 48px;
  background: #f7f8fb;
  border-bottom: 1px solid var(--line);
}

.intro-inner {
  display: grid;
  align-items: end;
  grid-template-columns: 1fr 0.75fr;
  gap: 80px;
}

.intro-label,
.section-kicker {
  margin: 0 0 13px;
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.intro h1 {
  margin: 0;
  font-size: clamp(34px, 4.7vw, 58px);
  letter-spacing: -0.07em;
  line-height: 1.3;
}

.intro-copy {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}

.platform-note {
  background: #fff9e8;
  border-bottom: 1px solid #f1e4bd;
}

.platform-note .shell {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
}

.platform-note p {
  margin: 0;
  color: #6f6547;
  font-size: 10px;
}

.platform-note a {
  margin-left: auto;
  color: #6f6547;
  font-size: 9px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note-icon {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  background: #a38b47;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
}

.market {
  padding-block: 72px 100px;
}

.market-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.market-toolbar h2,
.list-panel h2,
.platform-grid h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.06em;
  line-height: 1.3;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.sort-control select {
  min-width: 150px;
  padding: 9px 30px 9px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
  font-weight: 700;
}

.mobile-search {
  display: none;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-top: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chip {
  padding: 8px 14px;
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.filter-chip.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 0 16px;
}

.result-line p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.result-line strong {
  margin-right: 3px;
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 20px;
}

.result-line button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #afb4b0;
  font-size: 9px;
}

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

.listing-card {
  position: relative;
  min-width: 0;
}

.listing-card[hidden] {
  display: none;
}

.listing-open {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.listing-visual {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1.02;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.listing-visual::before,
.listing-visual::after {
  position: absolute;
  width: 65%;
  height: 65%;
  border: 1px solid rgba(32, 37, 33, 0.24);
  border-radius: 50%;
  content: "";
}

.listing-visual::after {
  width: 43%;
  height: 43%;
}

.listing-visual > strong {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: clamp(62px, 7vw, 92px);
  font-style: italic;
  line-height: 1;
}

.listing-visual-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-visual.has-thumbnail::before {
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  background: linear-gradient(180deg, rgba(10, 13, 11, 0.12), rgba(10, 13, 11, 0.38));
  border: 0;
  border-radius: 0;
}

.listing-visual.has-thumbnail::after,
.listing-visual.has-thumbnail > strong,
.listing-visual.has-thumbnail .visual-note {
  display: none;
}

.listing-visual.has-thumbnail .visual-code {
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.visual-blue {
  background: #94aaef;
}

.visual-coral {
  background: #f2a08f;
}

.visual-gold {
  background: #ead083;
}

.visual-mint {
  background: #a8d7bf;
}

.visual-violet {
  background: #b9afe7;
}

.visual-sky {
  background: #9acfdc;
}

.visual-orange {
  background: #e7b080;
}

.visual-pink {
  background: #e6afc4;
}

.visual-code {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.visual-note {
  position: absolute;
  right: -8px;
  bottom: -27px;
  color: rgba(255, 255, 255, 0.55);
  font-family: Georgia, serif;
  font-size: 105px;
  line-height: 1;
  transform: rotate(-10deg);
}

.price-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(32, 37, 33, 0.74);
  border-radius: 999px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.new-badge,
.popular-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 66px;
  padding: 6px 0 4px;
  color: var(--white);
  background: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  transform: translate(-20px, 8px) rotate(-45deg);
}

.popular-badge {
  background: var(--coral);
}

.favorite-button {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 6;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--white);
  background: rgba(32, 37, 33, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.favorite-button.is-favorite {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
}

.listing-info {
  display: flex;
  padding: 10px 2px 0;
  flex-direction: column;
}

.listing-type {
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.listing-info > strong {
  margin-top: 3px;
  font-size: 13px;
}

.listing-summary,
.listing-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-summary {
  margin-top: 2px;
}

.listing-meta {
  margin-top: 4px;
  color: #959a96;
}

.empty-state {
  margin: 28px 0 0;
  padding: 50px 20px;
  color: var(--muted);
  background: var(--soft);
  border-radius: var(--radius);
  font-size: 12px;
  text-align: center;
}

.list-section {
  padding-bottom: 100px;
}

.list-panel {
  display: flex;
  min-height: 230px;
  padding: 42px 48px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  color: var(--white);
  background: var(--blue);
  border-radius: 18px;
}

.list-panel .section-kicker {
  color: rgba(255, 255, 255, 0.65);
}

.list-panel p:not(.section-kicker) {
  max-width: 600px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.list-panel .primary-button {
  min-width: 220px;
  color: var(--ink);
  background: var(--white);
}

.list-panel .primary-button:hover,
.list-panel .primary-button:focus-visible {
  background: #f0f2f8;
}

.list-panel-actions {
  display: flex;
  min-width: 230px;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}

.secondary-on-blue {
  min-height: 40px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.platform-section {
  padding: 95px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.platform-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.role-list {
  border-top: 1px solid var(--ink);
}

.role-list > div {
  display: grid;
  padding: 22px 0;
  grid-template-columns: 45px 180px 1fr;
  align-items: start;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.role-list span {
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.role-list h3,
.role-list p {
  margin: 0;
}

.role-list h3 {
  font-size: 12px;
}

.role-list p {
  color: var(--muted);
  font-size: 10px;
}

.site-footer {
  padding: 52px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 50px;
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.footer-top nav a,
.footer-top nav button {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  margin-top: 36px;
  padding-top: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #929793;
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.footer-bottom p {
  max-width: 760px;
  margin: 0;
}

.mobile-bottom-nav {
  display: none;
}

.app-dialog {
  width: min(620px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 30px);
  padding: 0;
  overflow: auto;
  background: var(--white);
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.app-dialog::backdrop {
  background: rgba(20, 25, 22, 0.55);
  backdrop-filter: blur(3px);
}

.dialog-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 10;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 50%;
  font-size: 19px;
}

.dialog-instrument {
  margin: 0;
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dialog-disclaimer {
  margin: 18px 0;
  padding: 12px;
  color: #746842;
  background: #fff9e8;
  border-radius: 8px;
  font-size: 9px;
}

.full-button {
  width: 100%;
}

.detail-dialog {
  width: min(1040px, calc(100% - 28px));
}

.detail-hero {
  position: relative;
  display: grid;
  height: 230px;
  place-items: center;
  overflow: hidden;
}

.detail-hero::before,
.detail-hero::after {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(32, 37, 33, 0.22);
  border-radius: 50%;
  content: "";
}

.detail-hero::after {
  width: 150px;
  height: 150px;
}

.detail-hero > span {
  position: absolute;
  top: 20px;
  left: 25px;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.detail-hero > strong {
  position: relative;
  z-index: 2;
  font-family: Georgia, serif;
  font-size: 120px;
  font-style: italic;
  line-height: 1;
}

.detail-hero > i {
  position: absolute;
  right: 25px;
  bottom: -30px;
  color: rgba(255, 255, 255, 0.5);
  font-family: Georgia, serif;
  font-size: 130px;
  font-style: normal;
  line-height: 1;
}

.detail-hero-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero.has-thumbnail::before {
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  background: linear-gradient(180deg, rgba(10, 13, 11, 0.08), rgba(10, 13, 11, 0.35));
  border: 0;
  border-radius: 0;
}

.detail-hero.has-thumbnail::after {
  display: none;
}

.detail-hero.has-thumbnail > span {
  z-index: 2;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
}

.detail-main {
  padding: 34px 38px 42px;
}

.detail-aside {
  padding: 34px 28px;
  background: #f7f8fb;
  border-left: 1px solid var(--line);
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.detail-title-row h2 {
  margin: 3px 0 4px;
  font-size: 28px;
}

.trust-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.verified-badge,
.status-pill,
.owner-badge {
  display: inline-flex;
  width: max-content;
  padding: 3px 7px;
  color: #23724a;
  background: #e8f7ee;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
}

.verified-badge::before {
  margin-right: 4px;
  content: "✓";
}

.verified-badge.is-pending {
  color: #7a6841;
  background: #fff5d9;
}

.verified-badge.is-pending::before {
  content: "…";
}

.icon-text-button,
.text-button,
.safety-actions button,
.manager-actions button {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 9px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-lead {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.detail-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 9px;
  font-size: 12px;
}

.detail-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 2;
}

.review-list {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
}

.review-item {
  padding: 13px;
  background: var(--soft);
  border-radius: 8px;
}

.review-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-item strong {
  color: #e1a52a;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.review-item span,
.review-item p,
.muted-copy {
  color: var(--muted);
  font-size: 9px;
}

.review-item p,
.muted-copy {
  margin: 5px 0 0;
}

.safety-actions {
  display: flex;
  gap: 18px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.safety-actions button:last-child {
  color: #b54b42;
}

.detail-price {
  display: flex;
  padding-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.detail-price span {
  color: var(--muted);
  font-size: 9px;
}

.detail-price strong {
  font-family: Arial, sans-serif;
  font-size: 17px;
}

.detail-facts {
  margin: 15px 0;
}

.detail-facts div {
  display: flex;
  padding: 8px 0;
  justify-content: space-between;
  gap: 16px;
  font-size: 9px;
}

.detail-facts dt {
  color: var(--muted);
}

.detail-facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.form-dialog {
  width: min(650px, calc(100% - 28px));
}

.workspace-dialog {
  width: min(1000px, calc(100% - 28px));
  min-height: min(680px, calc(100dvh - 30px));
}

.dialog-heading,
.workspace-heading {
  padding: 34px 38px 24px;
  border-bottom: 1px solid var(--line);
}

.dialog-heading h2,
.workspace-heading h2 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.05em;
}

.dialog-heading > p:not(.section-kicker) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stack-form {
  display: grid;
  gap: 15px;
  padding: 28px 38px 36px;
}

.stack-form label:not(.check-label),
.editor-fields label:not(.check-label) {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stack-form label > span,
.editor-fields label > span,
.tag-fieldset legend {
  font-size: 9px;
  font-weight: 700;
}

.stack-form input:not([type="checkbox"]),
.stack-form select,
.stack-form textarea,
.editor-fields input:not([type="checkbox"]),
.editor-fields select,
.editor-fields textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font-size: 11px;
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus,
.editor-fields input:focus,
.editor-fields select:focus,
.editor-fields textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 86, 216, 0.1);
}

.stack-form textarea,
.editor-fields textarea {
  resize: vertical;
}

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

.thumbnail-field input[type="file"] {
  padding: 10px;
  cursor: pointer;
}

.thumbnail-field small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.thumbnail-preview {
  display: grid;
  width: 180px;
  gap: 10px;
}

.thumbnail-preview[hidden] {
  display: none;
}

.thumbnail-preview img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.check-label input {
  margin-top: 2px;
  accent-color: var(--blue);
}

.guardian-fields {
  display: grid;
  gap: 12px;
  padding: 15px;
  background: #fff9e8;
  border-radius: 8px;
}

.guardian-fields[hidden] {
  display: none;
}

.danger-button,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.danger-button {
  color: var(--white);
  background: #c74e45;
  border: 0;
}

.secondary-button {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.editor-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
}

.editor-fields {
  display: grid;
  gap: 15px;
  padding: 28px 32px 36px;
}

.listing-preview {
  padding: 28px;
  background: #f7f8fb;
  border-left: 1px solid var(--line);
}

.listing-preview .listing-card {
  max-width: 240px;
  margin-top: 20px;
}

.listing-preview .listing-card,
.listing-preview .listing-card * {
  pointer-events: none;
}

.listing-preview > p:last-child {
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
}

.tag-fieldset {
  display: flex;
  margin: 0;
  padding: 13px;
  flex-wrap: wrap;
  gap: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-fieldset label {
  display: flex !important;
  align-items: center;
  flex-direction: row !important;
  gap: 5px !important;
  color: var(--muted);
  font-size: 9px;
}

.tag-fieldset input {
  accent-color: var(--blue);
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.owner-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 4;
}

.card-trust {
  margin-top: 4px;
  color: #6e8a78;
  font-size: 7px;
  font-weight: 700;
}

.manager-list {
  display: grid;
  gap: 10px;
  padding: 25px 35px 40px;
}

.manager-item {
  display: grid;
  padding: 12px;
  align-items: center;
  grid-template-columns: 68px 1fr auto;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.manager-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 700;
}

.manager-item h3,
.manager-item p {
  margin: 0;
}

.manager-item h3 {
  margin-top: 4px;
  font-size: 12px;
}

.manager-item p {
  color: var(--muted);
  font-size: 9px;
}

.status-pill {
  color: #23724a;
  background: #e8f7ee;
}

.status-pill.is-paused {
  color: #7a6841;
  background: #fff5d9;
}

.manager-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.manager-actions button:last-child {
  color: #b54b42;
}

.manager-mark.has-thumbnail {
  overflow: hidden;
  background: var(--soft);
}

.manager-mark.has-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-empty {
  display: grid;
  min-height: 300px;
  place-content: center;
  justify-items: center;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}

.message-workspace {
  display: grid;
  min-height: 560px;
  grid-template-columns: 280px 1fr;
}

.thread-list {
  padding: 12px;
  border-right: 1px solid var(--line);
}

.thread-button {
  display: flex;
  width: 100%;
  padding: 12px;
  align-items: flex-start;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.thread-button.is-active {
  background: #f1f4ff;
  border-radius: 8px;
}

.thread-button strong {
  font-size: 11px;
}

.thread-button span {
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
}

.conversation-heading {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 700;
}

.message-list {
  display: flex;
  padding: 18px;
  overflow: auto;
  flex-direction: column;
  gap: 10px;
  background: #f7f8fb;
}

.message-bubble {
  max-width: 74%;
  padding: 10px 12px;
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px 11px 11px 11px;
}

.message-bubble.is-me {
  align-self: flex-end;
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  border-radius: 11px 3px 11px 11px;
}

.message-bubble p {
  margin: 0;
  font-size: 10px;
  white-space: pre-line;
}

.message-bubble time {
  display: block;
  margin-top: 4px;
  color: inherit;
  font-size: 7px;
  opacity: 0.6;
}

.message-form {
  display: grid;
  padding: 12px;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border-top: 1px solid var(--line);
}

.message-form input {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

.compact-grid {
  padding: 25px 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.favorites-dialog .empty-state {
  margin: 25px 30px;
}

.verification-panel {
  display: flex;
  padding: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--soft);
  border-radius: 8px;
}

.verification-panel div {
  display: flex;
  flex-direction: column;
}

.verification-panel span {
  color: var(--muted);
  font-size: 8px;
}

.verification-panel strong {
  font-size: 11px;
}

.blocked-panel {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.blocked-panel > div:first-child,
.blocked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.blocked-panel span {
  font-size: 10px;
  font-weight: 800;
}

.blocked-panel strong {
  color: var(--muted);
  font-size: 10px;
}

.blocked-list {
  display: grid;
  gap: 8px;
}

.blocked-item {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.blocked-item .secondary-button {
  min-width: 70px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 18px;
  visibility: hidden;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .header-main {
    grid-template-columns: auto 1fr;
  }

  .header-search {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .mobile-search {
    display: flex;
    min-height: 44px;
    margin-top: 23px;
  }

  .intro-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .platform-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-layout,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .detail-aside,
  .listing-preview {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .message-workspace {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 70px;
  }

  .shell {
    width: min(100% - 28px, 520px);
  }

  .site-header {
    position: static;
  }

  .header-main {
    min-height: 66px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .logo-text strong {
    font-size: 14px;
  }

  .header-actions .plain-action {
    display: none;
  }

  .list-button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 9px;
  }

  .category-nav {
    width: 100%;
    padding-inline: 14px;
    gap: 27px;
  }

  .intro {
    padding: 40px 0 32px;
  }

  .intro h1 {
    font-size: 35px;
  }

  .intro-copy {
    font-size: 11px;
  }

  .platform-note .shell {
    min-height: 56px;
  }

  .platform-note p {
    font-size: 8px;
    line-height: 1.6;
  }

  .platform-note a {
    display: none;
  }

  .market {
    padding-block: 45px 70px;
  }

  .market-toolbar {
    align-items: flex-start;
  }

  .market-toolbar h2 {
    font-size: 27px;
  }

  .sort-control {
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }

  .sort-control span {
    display: none;
  }

  .sort-control select {
    min-width: 105px;
    padding: 8px 24px 8px 8px;
    font-size: 9px;
  }

  .filter-row {
    width: calc(100% + 14px);
    margin-top: 14px;
    padding-right: 14px;
  }

  .filter-chip {
    padding: 7px 12px;
    font-size: 9px;
  }

  .result-line {
    margin: 24px 0 12px;
  }

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

  .listing-visual {
    border-radius: 9px;
  }

  .visual-code {
    top: 9px;
    left: 9px;
    font-size: 6px;
  }

  .listing-visual > strong {
    font-size: 62px;
  }

  .visual-note {
    font-size: 80px;
  }

  .price-label {
    bottom: 7px;
    left: 7px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .favorite-button {
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    font-size: 22px;
  }

  .listing-info {
    padding-top: 7px;
  }

  .listing-info > strong {
    font-size: 12px;
  }

  .listing-summary,
  .listing-meta {
    font-size: 8px;
  }

  .list-section {
    width: 100%;
    padding-bottom: 0;
  }

  .list-panel {
    min-height: 0;
    padding: 38px 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 27px;
    border-radius: 0;
  }

  .list-panel h2 {
    font-size: 28px;
  }

  .list-panel .primary-button {
    width: 100%;
  }

  .list-panel-actions {
    width: 100%;
    min-width: 0;
  }

  .platform-section {
    padding: 70px 0;
  }

  .platform-grid h2 {
    font-size: 30px;
  }

  .role-list > div {
    grid-template-columns: 32px 1fr;
    gap: 5px 10px;
  }

  .role-list p {
    grid-column: 2;
  }

  .site-footer {
    padding-bottom: 30px;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-top nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    min-height: 66px;
    padding: 7px 10px 5px;
    align-items: end;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -7px 24px rgba(25, 31, 27, 0.08);
    backdrop-filter: blur(12px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex;
    min-width: 0;
    padding: 0;
    align-items: center;
    flex-direction: column;
    gap: 2px;
    color: var(--muted);
    background: transparent;
    border: 0;
  }

  .mobile-bottom-nav .is-active {
    color: var(--blue);
  }

  .mobile-bottom-nav small {
    font-size: 7px;
    font-weight: 700;
  }

  .nav-home {
    width: 19px;
    height: 17px;
    background: currentColor;
    border-radius: 3px;
    clip-path: polygon(50% 0, 100% 40%, 90% 40%, 90% 100%, 10% 100%, 10% 40%, 0 40%);
  }

  .nav-heart {
    font-family: Arial, sans-serif;
    font-size: 26px;
    line-height: 1;
  }

  .mobile-list-action > span {
    display: grid;
    width: 35px;
    height: 35px;
    margin-top: -12px;
    place-items: center;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-size: 23px;
    line-height: 1;
  }

  .nav-message {
    width: 21px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 5px;
  }

  .nav-user {
    width: 19px;
    height: 19px;
    border: 2px solid currentColor;
    border-radius: 50%;
  }

  .toast {
    right: 14px;
    bottom: 78px;
  }

  .app-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 12px;
  }

  .detail-hero {
    height: 180px;
  }

  .detail-hero > strong {
    font-size: 90px;
  }

  .detail-main,
  .detail-aside {
    padding: 24px 20px 30px;
  }

  .detail-title-row {
    flex-direction: column;
    gap: 12px;
  }

  .detail-title-row h2 {
    font-size: 24px;
  }

  .dialog-heading,
  .workspace-heading {
    padding: 28px 20px 20px;
  }

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

  .workspace-heading .primary-button {
    width: 100%;
  }

  .dialog-heading h2,
  .workspace-heading h2 {
    font-size: 24px;
  }

  .stack-form,
  .editor-fields {
    padding: 22px 20px 28px;
  }

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

  .listing-preview {
    padding: 22px 20px;
  }

  .listing-preview .listing-card {
    max-width: 190px;
  }

  .message-workspace {
    min-height: 580px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .thread-list {
    display: flex;
    padding: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .thread-button {
    width: 155px;
    flex: 0 0 auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .conversation {
    min-height: 470px;
  }

  .manager-list {
    padding: 18px 15px 28px;
  }

  .manager-item {
    grid-template-columns: 58px 1fr;
  }

  .manager-mark {
    width: 58px;
    height: 58px;
  }

  .manager-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .compact-grid {
    padding: 20px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
