@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --coral: #f05252;
  --coral-strong: #c92f3f;
  --blush: #fff1ed;
  --paper: #fffcfa;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #67605d;
  --soft: #f6f3f1;
  --line: #e7e1dd;
  --teal: #1c7168;
  --teal-soft: #e8f4f1;
  --amber: #a96807;
  --amber-soft: #fff4d7;
  --danger: #a72937;
  --header-h: 68px;
  --bottom-h: 68px;
  --radius: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  word-break: keep-all;
}
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
:focus-visible { outline: 3px solid rgba(28, 113, 104, .36); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 250, .97);
}
.header-inner { width: min(1180px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: baseline; gap: 9px; min-height: 44px; flex: 0 0 auto; }
.brand-main { font-size: 25px; line-height: 1; font-weight: 900; }
.brand-sub { color: var(--coral); font-size: 11px; font-weight: 850; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin-left: auto; }
.desktop-nav a { min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 750; border-bottom: 2px solid transparent; }
.desktop-nav a[aria-current="page"] { color: var(--coral-strong); border-bottom-color: var(--coral); }
.header-actions { display: flex; gap: 8px; margin-left: 14px; }
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 0;
}
.icon-button > svg { width: 20px; height: 20px; margin: 0; }
.icon-button:hover { border-color: #bdb5b0; background: var(--soft); }

.page { min-height: calc(100vh - var(--header-h)); }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 54px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-soft { background: var(--soft); }
.section-blush { background: var(--blush); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 27px; line-height: 1.2; }
.section-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; color: var(--coral-strong); font-size: 13px; font-weight: 800; white-space: nowrap; }
.text-link > svg { width: 16px; height: 16px; }

.search-hero { padding: 44px 0 42px; border-bottom: 1px solid var(--line); }
.search-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 52px; align-items: end; }
.eyebrow { color: var(--teal); font-size: 12px; font-weight: 850; text-transform: uppercase; margin-bottom: 10px; }
.search-hero h1 { margin: 0 0 15px; font-size: 45px; line-height: 1.12; max-width: 680px; }
.search-hero p { margin: 0; color: var(--muted); line-height: 1.7; }
.search-form { height: 62px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--surface); display: flex; align-items: center; padding: 6px; }
.search-form > svg { width: 21px; height: 21px; margin: 0 9px 0 7px; color: var(--muted); flex: 0 0 auto; }
.search-form input { min-width: 0; flex: 1; height: 46px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-form button { height: 46px; border: 0; border-radius: 4px; padding: 0 18px; background: var(--coral); color: #fff; font-size: 13px; font-weight: 850; white-space: nowrap; }
.search-form button:hover { background: var(--coral-strong); }

.color-entry { padding: 22px 0; border-bottom: 1px solid var(--line); }
.color-entry-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.color-entry-copy b { display: block; font-size: 15px; }
.color-entry-copy span { color: var(--muted); font-size: 12px; }
.color-list { display: flex; gap: 9px; overflow-x: auto; padding: 3px; scrollbar-width: none; }
.color-list::-webkit-scrollbar { display: none; }
.color-choice { width: 44px; height: 44px; border: 2px solid var(--surface); outline: 1px solid #cec5c0; border-radius: 50%; flex: 0 0 auto; position: relative; }
.color-choice[aria-pressed="true"]::after { content: ""; position: absolute; inset: 12px; border: 2px solid #fff; border-radius: 50%; }
.color-choice:nth-child(1) { background: #d85b60; }
.color-choice:nth-child(2) { background: #df7766; }
.color-choice:nth-child(3) { background: #c34867; }
.color-choice:nth-child(4) { background: #963f55; }
.color-choice:nth-child(5) { background: #b77b70; }
.color-choice:nth-child(6) { background: #6c344a; }

.button { min-height: 46px; padding: 0 18px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 800; text-align: center; }
.button > svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button-coral { border-color: var(--coral); background: var(--coral); }
.button-coral:hover { border-color: var(--coral-strong); background: var(--coral-strong); }
.button-outline { background: var(--surface); color: var(--ink); }
.button-outline:hover { background: var(--soft); }
.button-teal { background: var(--teal); border-color: var(--teal); }
.button-block { width: 100%; }

.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { min-height: 38px; padding: 0 13px; border: 1px solid #d8d0cb; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
button.chip { cursor: pointer; }
.chip[aria-pressed="true"], .chip.active { color: #15554e; border-color: var(--teal); background: var(--teal-soft); }
.chip > svg { width: 15px; height: 15px; }

.swatch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.swatch-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.swatch-visual { aspect-ratio: 4 / 3; min-height: 160px; position: relative; background: var(--swatch, #d85b60); overflow: hidden; display: flex; align-items: flex-end; padding: 13px; }
.swatch-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.swatch-code { position: relative; z-index: 1; color: #fff; font-size: 11px; font-weight: 850; text-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.status-badge { min-height: 25px; padding: 0 7px; border: 1px solid #bddbd6; border-radius: 3px; background: #fff; color: var(--teal); display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 850; }
.status-badge > svg { width: 12px; height: 12px; }
.swatch-visual .status-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.save-button { position: absolute; top: 9px; right: 9px; z-index: 2; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.save-button > svg { width: 18px; height: 18px; }
.save-button[aria-pressed="true"] { color: #fff; border-color: var(--coral); background: var(--coral); }
.swatch-body { padding: 14px; }
.card-kicker { color: #8a817c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.swatch-title { min-height: 42px; margin: 5px 0 10px; font-size: 15px; font-weight: 850; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta-row { display: flex; gap: 5px; flex-wrap: wrap; }
.meta-tag { min-height: 25px; padding: 0 7px; border-radius: 3px; background: var(--soft); color: var(--muted); display: inline-flex; align-items: center; font-size: 10px; }
.card-actions { display: grid; grid-template-columns: 1fr 44px; gap: 8px; margin-top: 12px; }
.card-actions .button { min-height: 42px; padding: 0 10px; font-size: 12px; }
.compare-trigger { width: 44px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.compare-trigger > svg { width: 18px; height: 18px; }
.compare-trigger[aria-pressed="true"] { background: var(--teal-soft); color: var(--teal); border-color: var(--teal); }

.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.group-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; min-width: 0; }
.group-media { height: 166px; position: relative; overflow: hidden; background: var(--blush); }
.group-media img { width: 100%; height: 100%; object-fit: cover; }
.group-media .group-status { position: absolute; top: 11px; left: 11px; }
.group-status { min-height: 27px; padding: 0 8px; border-radius: 3px; background: var(--teal); color: #fff; display: inline-flex; align-items: center; font-size: 10px; font-weight: 850; }
.group-status.soon { background: var(--amber); }
.group-card-body { padding: 16px; }
.group-card h3 { min-height: 48px; margin: 7px 0 12px; font-size: 17px; line-height: 1.42; }
.group-info { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.group-info span { display: flex; align-items: center; gap: 7px; }
.group-info svg { width: 15px; height: 15px; color: var(--teal); flex: 0 0 auto; }
.group-card .button { width: 100%; margin-top: 16px; }

.contribution { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; align-items: center; }
.contribution h2 { margin: 0 0 10px; font-size: 30px; }
.contribution p { margin: 0 0 22px; color: var(--muted); }
.texture-frame { height: 250px; overflow: hidden; border-radius: var(--radius); background: var(--coral); }
.texture-frame img { width: 100%; height: 100%; object-fit: cover; }

.page-title { padding: 34px 0 24px; border-bottom: 1px solid var(--line); }
.page-title-row { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.page-title h1 { margin: 0; font-size: 36px; line-height: 1.15; }
.page-title p { margin: 8px 0 0; color: var(--muted); }
.result-toolbar { padding: 18px 0; border-bottom: 1px solid var(--line); }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.result-count b { color: var(--coral-strong); }
.mobile-filter-button { display: none; }
.search-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 26px 0 74px; }
.filter-panel { align-self: start; position: sticky; top: calc(var(--header-h) + 18px); }
.filter-panel h2 { margin: 0 0 10px; font-size: 15px; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; font-size: 13px; font-weight: 850; }
.check-list { display: grid; gap: 6px; }
.check-row { min-height: 38px; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; cursor: pointer; }
.check-row input { width: 17px; height: 17px; accent-color: var(--teal); }
.search-results .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.compare-dock { position: fixed; left: 50%; bottom: 18px; z-index: 50; width: min(720px, calc(100% - 32px)); min-height: 64px; transform: translate(-50%, 110px); opacity: 0; pointer-events: none; transition: transform .22s ease, opacity .22s ease; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 14px 35px rgba(0, 0, 0, .2); display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.compare-dock.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.compare-slots { display: flex; gap: 7px; flex: 0 0 auto; }
.compare-slot { width: 42px; height: 42px; border: 2px solid #fff; border-radius: 4px; background: var(--slot, transparent); }
.compare-slot.empty { border: 1px dashed #888; }
.compare-copy { flex: 1; margin: 0; font-size: 12px; }
.compare-dock .button { min-height: 42px; background: #fff; border-color: #fff; color: var(--ink); padding: 0 14px; font-size: 12px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 42px; padding: 34px 0 68px; }
.detail-gallery { min-width: 0; }
.detail-main-visual { aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; background: #b34952; position: relative; }
.detail-main-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-main-visual .status-badge { position: absolute; top: 14px; left: 14px; }
.detail-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 9px; }
.detail-thumb { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 4px; background: var(--thumb, #d85b60); overflow: hidden; }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-panel { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.detail-panel .card-kicker { color: var(--coral-strong); }
.detail-panel h1 { margin: 8px 0 12px; font-size: 30px; line-height: 1.25; }
.detail-panel > p { color: var(--muted); margin: 0 0 18px; }
.fact-list { margin: 0 0 20px; border-top: 1px solid var(--line); }
.fact-row { min-height: 47px; display: grid; grid-template-columns: 92px 1fr; align-items: center; border-bottom: 1px solid var(--line); font-size: 13px; }
.fact-row dt { color: var(--muted); }
.fact-row dd { margin: 0; font-weight: 750; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.content-block { padding: 28px 0; border-top: 1px solid var(--line); }
.content-block h2 { margin: 0 0 15px; font-size: 21px; }
.content-block p { color: var(--muted); }
.note-box { padding: 16px; border-left: 4px solid var(--teal); background: var(--teal-soft); color: #244d48; font-size: 13px; }

.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; padding: 28px 0 70px; }
.feed-list { display: grid; gap: 14px; }
.feed-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; grid-template-columns: 210px minmax(0, 1fr); overflow: hidden; }
.feed-visual { min-height: 230px; background: var(--swatch, #d85b60); position: relative; }
.feed-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feed-copy { padding: 17px; display: flex; flex-direction: column; }
.author-row { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 11px; font-weight: 850; flex: 0 0 auto; }
.author-row b { display: block; font-size: 13px; }
.author-row span { color: var(--muted); font-size: 10px; }
.feed-copy h2 { margin: 0 0 8px; font-size: 18px; }
.feed-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.feed-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 6px; }
.feed-actions button { min-width: 44px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--muted); font-size: 11px; }
.feed-actions svg { width: 17px; height: 17px; }
.side-panel { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.side-panel h2 { margin: 0 0 13px; font-size: 17px; }
.color-index { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: 96px; margin-bottom: 14px; }
.color-index span:nth-child(1) { background: #b5454e; }.color-index span:nth-child(2) { background: #d86865; }.color-index span:nth-child(3) { background: #9c4257; }.color-index span:nth-child(4) { background: #b57d6f; }
.side-copy { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.form-shell { padding: 34px 0 74px; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 28px; }
.step { height: 5px; background: var(--line); border-radius: 999px; }
.step.active { background: var(--coral); }
.form-head { margin-bottom: 26px; }
.form-head h1 { margin: 0 0 8px; font-size: 32px; }
.form-head p { margin: 0; color: var(--muted); }
.form-section { padding: 24px 0; border-top: 1px solid var(--line); }
.form-section h2 { margin: 0 0 15px; font-size: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border: 1px solid #cfc7c2; border-radius: var(--radius); background: #fff; color: var(--ink); padding: 0 13px; }
.field textarea { min-height: 126px; padding-top: 12px; resize: vertical; }
.field small { color: var(--muted); }
.upload-box { min-height: 210px; border: 1px dashed #bcb2ac; border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; text-align: center; padding: 20px; position: relative; overflow: hidden; }
.upload-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-box svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--teal); }
.upload-box b { display: block; }
.upload-box span { color: var(--muted); font-size: 12px; }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.upload-box.has-image .upload-preview { display: block; }
.upload-box.has-image .upload-copy { display: none; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { min-height: 42px; }
.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; }
.consent input { margin-top: 4px; accent-color: var(--teal); }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 24px; }

.group-list-layout { padding: 26px 0 70px; }
.group-list-layout .group-grid { margin-top: 20px; }
.group-detail-hero { padding: 34px 0; border-bottom: 1px solid var(--line); }
.group-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 42px; }
.group-detail-copy h1 { margin: 12px 0 14px; font-size: 39px; line-height: 1.2; max-width: 720px; }
.group-detail-copy > p { color: var(--muted); font-size: 17px; }
.group-cover { height: 290px; border-radius: var(--radius); overflow: hidden; margin-top: 25px; background: var(--blush); }
.group-cover img { width: 100%; height: 100%; object-fit: cover; }
.apply-panel { align-self: start; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.apply-panel h2 { margin: 0 0 14px; font-size: 18px; }
.apply-panel .fact-row { grid-template-columns: 76px 1fr; }
.apply-panel .button { width: 100%; margin-top: 16px; }
.agenda { display: grid; gap: 0; border-top: 1px solid var(--line); }
.agenda-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.agenda-row time { color: var(--coral-strong); font-size: 13px; font-weight: 850; }
.agenda-row b { display: block; margin-bottom: 4px; }
.agenda-row p { margin: 0; color: var(--muted); font-size: 13px; }

.my-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding: 32px 0 72px; }
.profile-summary { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-size: 20px; font-weight: 900; margin-bottom: 12px; }
.profile-summary h1 { margin: 0; font-size: 21px; }
.profile-summary p { margin: 4px 0 18px; color: var(--muted); font-size: 12px; }
.profile-nav { display: grid; border-top: 1px solid var(--line); }
.profile-nav button { min-height: 46px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; padding: 0 8px; font-size: 13px; font-weight: 750; }
.profile-nav button[aria-selected="true"] { color: var(--coral-strong); background: var(--blush); }
.dashboard-head { margin-bottom: 20px; }
.dashboard-head h2 { margin: 0 0 7px; font-size: 27px; }
.dashboard-head p { margin: 0; color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.summary-item { padding: 18px 14px; border-right: 1px solid var(--line); }
.summary-item:last-child { border-right: 0; }
.summary-item strong { display: block; font-size: 25px; }
.summary-item span { color: var(--muted); font-size: 11px; }
.tab-panel[hidden] { display: none; }
.list-row { min-height: 78px; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.list-thumb { width: 52px; height: 52px; border-radius: 4px; background: var(--swatch, var(--blush)); overflow: hidden; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-copy b { display: block; font-size: 14px; }
.list-copy span { color: var(--muted); font-size: 11px; }
.row-status { color: var(--teal); font-size: 11px; font-weight: 850; white-space: nowrap; }

.app-footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--surface); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 14px; font-weight: 850; }
.footer-copy { color: var(--muted); font-size: 11px; text-align: right; }
.demo-notice { padding: 12px 20px; border-top: 1px solid #f2d7d2; background: #fff6f3; color: #7a4941; text-align: center; font-size: 11px; }

.bottom-nav { display: none; }
.toast { position: fixed; left: 50%; bottom: 88px; z-index: 80; max-width: calc(100% - 32px); transform: translate(-50%, 22px); opacity: 0; pointer-events: none; border-radius: var(--radius); background: var(--ink); color: #fff; padding: 11px 15px; font-size: 12px; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-end; justify-content: center; background: rgba(23, 23, 23, .48); padding: 18px; }
.modal-backdrop.is-open { display: flex; }
.modal { width: min(520px, 100%); max-height: min(680px, calc(100vh - 36px)); overflow-y: auto; border-radius: 8px 8px 6px 6px; background: #fff; padding: 20px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.modal-head h2 { margin: 0; font-size: 20px; }
.modal p { color: var(--muted); font-size: 13px; }
.modal .field { margin-top: 12px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }

@media (max-width: 980px) {
  .search-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .search-form { max-width: 650px; }
  .swatch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-results .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout, .group-detail-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .feed-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
  .my-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { padding-bottom: var(--bottom-h); }
  .app-header { height: var(--header-h); }
  .header-inner, .container, .narrow { width: min(100% - 30px, 680px); }
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .icon-button:first-child { display: none; }
  .brand-main { font-size: 22px; }
  .brand-sub { font-size: 10px; }
  .section { padding: 38px 0; }
  .section-head { align-items: start; margin-bottom: 17px; }
  .section-head h2 { font-size: 23px; }
  .search-hero { padding: 28px 0 26px; }
  .search-hero h1 { font-size: 32px; }
  .search-hero p br { display: none; }
  .search-form { height: 58px; }
  .search-form input { font-size: 13px; }
  .search-form button { padding: 0 13px; }
  .color-entry-inner { display: block; }
  .color-entry-copy { margin-bottom: 12px; }
  .color-list { margin: 0 -2px; }
  .swatch-grid, .search-results .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .swatch-card:nth-child(n + 5).home-extra { display: none; }
  .swatch-visual { min-height: 126px; }
  .swatch-body { padding: 11px; }
  .swatch-title { font-size: 14px; }
  .card-actions { grid-template-columns: 1fr 42px; }
  .group-grid { grid-template-columns: 1fr; }
  .group-media { height: 190px; }
  .contribution { grid-template-columns: 1fr; }
  .contribution h2 { font-size: 26px; }
  .texture-frame { height: 210px; grid-row: 1; }
  .page-title { padding: 25px 0 19px; }
  .page-title h1 { font-size: 30px; }
  .page-title-row { align-items: start; }
  .page-title-row .button { min-width: 46px; padding: 0 12px; }
  .toolbar-row { align-items: flex-start; }
  .result-toolbar .chip-row { width: 100%; }
  .result-count { padding-top: 9px; }
  .mobile-filter-button { display: inline-flex; }
  .search-workspace { grid-template-columns: 1fr; padding-top: 18px; }
  .filter-panel { position: fixed; inset: auto 0 0; z-index: 75; max-height: 80vh; overflow-y: auto; transform: translateY(105%); transition: transform .22s ease; background: #fff; border-radius: 10px 10px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 36px rgba(0,0,0,.18); }
  .filter-panel.is-open { transform: translateY(0); }
  .compare-dock { bottom: calc(var(--bottom-h) + 8px); }
  .compare-copy { display: none; }
  .compare-dock .button { flex: 1; }
  .detail-layout, .group-detail-grid { grid-template-columns: 1fr; padding-top: 20px; }
  .detail-panel, .apply-panel { position: static; }
  .detail-main-visual { aspect-ratio: 4 / 3; }
  .detail-panel h1 { font-size: 27px; }
  .feed-card { grid-template-columns: 1fr; }
  .feed-visual { min-height: 245px; }
  .side-panel { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-head h1 { font-size: 28px; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .group-detail-copy h1 { font-size: 31px; }
  .group-cover { height: 230px; }
  .my-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .profile-summary { position: static; }
  .profile-nav { display: flex; overflow-x: auto; border-top: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .profile-nav button { flex: 0 0 auto; border-bottom: 2px solid transparent; padding: 0 13px; }
  .profile-nav button[aria-selected="true"] { border-bottom-color: var(--coral); background: transparent; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-item:nth-child(2) { border-right: 0; }
  .summary-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .list-row { grid-template-columns: 50px minmax(0, 1fr); }
  .row-status { grid-column: 2; padding-bottom: 10px; }
  .footer-row { display: block; }
  .footer-copy { margin-top: 8px; text-align: left; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--bottom-h); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .98); display: grid; grid-template-columns: repeat(5, 1fr); }
  .bottom-nav a { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #766f6b; font-size: 10px; font-weight: 750; }
  .bottom-nav a > svg { width: 20px; height: 20px; }
  .bottom-nav a[aria-current="page"] { color: var(--coral-strong); }
  .modal-backdrop { padding: 0; }
  .modal { width: 100%; max-height: 86vh; border-radius: 10px 10px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .header-inner, .container, .narrow { width: calc(100% - 24px); }
  .brand-sub { display: none; }
  .search-hero h1 { font-size: 29px; }
  .search-form > svg { display: none; }
  .search-form input { padding-left: 7px; }
  .search-form button { font-size: 12px; }
  .section-head h2 { font-size: 21px; }
  .swatch-grid, .search-results .swatch-grid { gap: 8px; }
  .swatch-visual { min-height: 116px; }
  .meta-tag:nth-child(n + 3) { display: none; }
  .detail-actions { grid-template-columns: 1fr; }
  .agenda-row { grid-template-columns: 72px minmax(0,1fr); }
}
