/* 脱毛ログ — Claude Design「2a ビジュアル・ダッシュボード」準拠。モバイル優先、960px 以上でデスクトップ配置。ライトモードのみ。 */
:root {
    --bg: #f4f2ee;
    --surface: #fff;
    --text: #232427;
    --text-2: #44454a;
    --text-3: #55565a;
    --muted: #66676b;
    --faint: #9a9ba0;
    --line: #efece7;
    --border: #e5e2dc;
    --border-2: #d4d0c8;
    --disabled: #c9c4bb;
    --blue: #3f64a0;
    --blue-dark: #2f4f84;
    --blue-soft: #e8eef7;
    --blue-track: #e1e8f3;
    --blue-dot: #9fb3d4;
    --blue-light: #c9d5e8;
    --blue-figure: #d6e0ef;
    --blue-mid: #8aa4cb;
    --coral: #c96a50;
    --coral-dark: #a24c36;
    --coral-soft: #f7e9e4;
    --stripe: repeating-linear-gradient(135deg, #ebe8e2 0 5px, #e1ddd5 5px 10px);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Noto Sans JP", system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 14px; }
a { color: var(--blue); text-decoration: none; }
a:hover { opacity: .75; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.muted-s { font-size: 11px; color: var(--muted); font-weight: 400; }
.coral { color: var(--coral-dark); }
.blue { color: var(--blue); }
.empty { color: var(--muted); font-size: 13px; padding: 8px 4px; }
.errors { color: var(--coral-dark); background: var(--coral-soft); border-radius: 10px; padding: 10px 14px 10px 30px; margin: 0 0 12px; font-size: 13px; }
p.errors { padding: 8px 12px; margin-top: 8px; }
.flash { max-width: 1120px; margin: 12px auto 0; padding: 10px 14px; background: var(--blue-soft); color: var(--blue-dark); border-radius: 10px; font-size: 13px; width: calc(100% - 24px); }

.m-only { display: revert; }
.d-only { display: none !important; }
@media (min-width: 960px) {
    .m-only { display: none !important; }
    .d-only { display: revert !important; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 12px 12px 0; }
.site-main { padding-bottom: 18px; }
@media (min-width: 960px) {
    .wrap { padding: 32px 32px 0; }
    .site-main { padding-bottom: 56px; }
}

/* ---------- header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 10px; padding: 12px 16px; max-width: 1120px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 17px; color: var(--text); margin-right: auto; display: flex; align-items: center; }
.logo-img { height: 34px; width: auto; display: block; }
.gnav, .header-search, .header-user { display: none; }
.header-cta { font-size: 13px; font-weight: 700; color: var(--blue); }
.header-menu { position: relative; }
.header-menu summary { list-style: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 14px; cursor: pointer; }
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu-panel { position: absolute; right: 0; top: 42px; background: var(--surface); border-radius: 14px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); padding: 6px; min-width: 200px; display: flex; flex-direction: column; }
.header-menu-panel a { color: var(--text); padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.header-menu-panel a:hover { background: var(--bg); opacity: 1; }
@media (min-width: 960px) {
    .header-inner { height: 68px; padding: 0 24px; gap: 20px; }
    .logo { font-size: 20px; margin-right: 0; flex: none; }
    .logo-img { height: 44px; }
    .gnav { display: flex; flex: none; gap: 20px; height: 100%; font-size: 14px; white-space: nowrap; }
    .gnav a { display: flex; align-items: center; color: var(--text-2); white-space: nowrap; }
    .gnav a.is-active { color: var(--blue); font-weight: 700; box-shadow: inset 0 -3px 0 var(--blue); }
    .header-search { display: none; }
    .header-user { display: block; font-size: 14px; color: var(--text-2); }
    .header-cta { height: 40px; padding: 0 18px; border-radius: 10px; background: var(--blue); color: #fff; display: flex; align-items: center; font-size: 14px; white-space: nowrap; flex: none; margin-left: auto; }
    .header-menu { display: none; }
}
@media (min-width: 1200px) {
    .header-inner { padding: 0 32px; gap: 28px; }
    .gnav { gap: 24px; }
    .header-search { display: flex; flex: none; align-items: center; margin-left: auto; width: 240px; height: 40px; border-radius: 99px; background: var(--bg); padding: 0 16px; font-size: 13px; color: #8a8b90; white-space: nowrap; }
    .header-cta { margin-left: 0; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { padding: 22px 16px; font-size: 11px; line-height: 1.8; }
.footer-logo, .footer-links { display: none; }
.footer-policy-m { display: block; font-size: 13px; color: var(--text); font-weight: 700; margin-bottom: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; }
.footer-legal a { color: var(--text-2); }
@media (min-width: 960px) {
    .footer-inner { max-width: 1120px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 32px; font-size: 12px; }
    .footer-logo { display: block; font-weight: 700; font-size: 16px; color: var(--text); }
    .footer-logo-img { height: 20px; width: auto; display: block; }
    .footer-policy-m { display: none; }
    .footer-about { min-width: 0; }
    .footer-about p { max-width: 420px; margin-top: 6px; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; min-width: 0; }
    .footer-links a { color: var(--text-2); }
    .footer-legal { grid-column: 1 / -1; gap: 8px 20px; margin-top: 0; font-size: 13px; min-width: 0; }
    .footer-copy { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
    .footer-inner { padding-right: 32px; padding-left: 32px; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px 32px; }
    .footer-links { flex-wrap: nowrap; gap: 20px; }
    .footer-legal { grid-column: auto; justify-content: flex-end; gap: 8px 16px; }
    .footer-copy { grid-column: 1 / -1; }
}

/* ---------- common parts ---------- */
.card { background: var(--surface); border-radius: 16px; padding: 16px; }
@media (min-width: 960px) { .card { border-radius: 18px; padding: 20px 22px; } }
.card-title { font-size: 14px; font-weight: 700; }
.card-title-l { font-size: 15px; font-weight: 700; }
.card-kicker { font-size: 12px; color: var(--muted); font-weight: 500; }
.card-note { font-size: 11px; color: var(--muted); }
.card-desc { font-size: 11px; color: var(--muted); margin: 2px 0 14px; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
@media (min-width: 960px) {
    .card-title { font-size: 16px; }
    .card-title-l { font-size: 18px; }
    .card-note { font-size: 12px; }
    .card-desc { font-size: 12px; margin-bottom: 18px; }
}
.section-head { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 8px; }
.section-head h2 { font-size: 14px; }
.section-head a, .section-head .muted { font-size: 12px; }
.section-title { font-size: 15px; font-weight: 700; padding: 4px 4px 0; }
@media (min-width: 960px) {
    .section-head { padding: 8px 2px 12px; }
    .section-head h2 { font-size: 20px; }
    .section-head a, .section-head .muted { font-size: 13px; }
    .section-title { font-size: 20px; padding: 0; }
}
.page-title { font-size: 22px; font-weight: 700; }
.page-title-m { font-size: 20px; font-weight: 700; }
.page-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (min-width: 960px) { .page-title { font-size: 30px; } .page-sub { font-size: 14px; } }
.crumbs { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs span:last-child { color: var(--text); }
.more-link { display: block; font-size: 12px; margin-top: 10px; }
.note-blue { background: var(--blue-soft); color: var(--blue-dark); border-radius: 10px; padding: 9px 12px; font-size: 12px; margin-top: 10px; }
.note-gray { background: var(--bg); border-radius: 10px; padding: 9px 12px; font-size: 12px; margin-top: 10px; }
@media (min-width: 960px) { .note-blue, .note-gray { font-size: 13px; padding: 10px 12px; margin-top: 12px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 12px; font-size: 14px; font-weight: 700; border: 0; background: var(--bg); color: var(--text); white-space: nowrap; }
.btn:hover { opacity: .85; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-dark { background: var(--text); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); font-size: 13px; }
.btn-soft { background: var(--bg); color: var(--text); font-weight: 400; }
.btn-danger { background: var(--coral-dark); color: #fff; }
.btn-danger-outline { background: transparent; border: 1.5px solid var(--coral-dark); color: var(--coral-dark); }
.btn-lg { height: 50px; font-size: 15px; }
.btn-sm { height: 40px; font-size: 13px; padding: 0 14px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-grow { flex: 1; }
.btn[disabled], .btn.is-disabled { background: var(--disabled); color: #fff; cursor: not-allowed; opacity: 1; }
.btn-pr { font-size: 10px; opacity: .8; font-weight: 400; }
.pr-label { font-size: 10px; color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font-size: 12px; color: var(--blue); }
.link-btn.muted { color: var(--muted); }
@media (min-width: 960px) { .btn-lg { height: 54px; padding: 0 30px; font-size: 16px; } }

/* chips & tags */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 99px; font-weight: 500; }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-coral { background: var(--coral-soft); color: var(--coral-dark); }
.chip-gray { background: var(--bg); color: var(--text-3); font-weight: 400; }
@media (min-width: 960px) { .chips { margin-top: 14px; } .chip { font-size: 13px; padding: 5px 12px; } }
.tag { font-size: 10px; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--text-3); }
.tag-coral { background: var(--coral-soft); color: var(--coral-dark); font-weight: 700; }
.tag-line { background: transparent; border: 1px solid var(--disabled); border-radius: 4px; padding: 1px 7px; }
.pill { font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--bg); color: var(--text); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw-blue, .seg-blue { background: var(--blue); }
.sw-coral, .seg-coral { background: var(--coral); }
.seg-coral-light { background: #e6b3a4; }
.seg-blue-light { background: var(--blue-mid); }
.seg-gray { background: var(--disabled); }

/* inputs */
.input { width: 100%; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); padding: 0 10px; font-size: 13px; }
textarea.input { height: auto; padding: 8px 10px; line-height: 1.7; }
.input-l { height: 48px; border-radius: 12px; font-size: 14px; background: var(--bg); border-color: var(--bg); padding: 0 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.field .input { color: var(--text); }

/* meters */
.meter5 { display: grid; grid-template-columns: repeat(5, 12px); gap: 2px; flex: none; }
.meter5 span { height: 6px; border-radius: 2px; background: var(--border); }
.meter5 span.on { background: var(--blue); }
.hbar { display: block; position: relative; height: 8px; border-radius: 4px; background: var(--line); }
.hbar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--blue); }

/* ---------- experience card ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 960px) {
    .cards { gap: 14px; }
    .cards-2 { grid-template-columns: repeat(2, 1fr); }
    .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .cards-4 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.exp-card { background: var(--surface); border-radius: 14px; min-width: 0; }
.exp-card-link { color: var(--text); display: flex; align-items: stretch; gap: 12px; height: 100%; padding: 12px 14px; }
.exp-card-link:hover { opacity: 1; box-shadow: 0 0 0 2px var(--blue-soft); border-radius: 14px; }
.exp-card-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.exp-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.exp-card-parts { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.exp-card-fig { display: flex; align-items: center; justify-content: center; align-self: center; flex: none; width: 64px; height: 120px; }
.exp-card-fig .figure-body, .exp-card-fig .figure-face { width: 100%; height: 100%; }
@media (min-width: 960px) {
    .exp-card-link { gap: 8px; min-height: 170px; }
    .exp-card-fig { align-self: stretch; width: clamp(56px, 28%, 96px); height: auto; }
}
.exp-card-fav { margin-left: auto; font-size: 11px; color: var(--coral-dark); flex: none; align-self: center; }
.exp-card-brand { font-size: 11px; color: var(--muted); }
.exp-card-paid { font-size: 19px; font-weight: 700; margin-top: 4px; }
.exp-card-meta { font-size: 11px; color: var(--text-2); }
.exp-card-result { display: flex; align-items: center; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.exp-card-result-label { font-size: 11px; font-weight: 700; color: var(--blue-dark); }
.exp-card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }

/* pager */
.pager { display: flex; justify-content: center; gap: 6px; padding: 14px 0 6px; flex-wrap: wrap; }
.pager-num, .pager-text { min-width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; font-size: 13px; color: var(--text); padding: 0 14px; }
.pager-num { padding: 0; }
.pager-num.is-current { background: var(--text); color: #fff; font-weight: 700; }

/* favorite */
.fav-form { display: contents; }
.fav { display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; text-decoration: none; }
.fav .fav-heart { color: var(--coral-dark); }
.fav-box { width: 52px; height: 48px; border-radius: 12px; flex-direction: column; font-size: 16px; line-height: 1; flex: none; }
.fav-box .fav-count { font-size: 10px; color: var(--muted); margin-top: 3px; }
.fav-round { width: 44px; height: 44px; border-radius: 50%; font-size: 17px; flex: none; }
.fav-wide { height: 48px; padding: 0 18px; border-radius: 12px; gap: 6px; font-size: 14px; }
@media (min-width: 960px) { .fav-box { width: 56px; height: 50px; } }

/* bottom bar (mobile) */
.bottom-bar { position: sticky; bottom: 0; z-index: 15; background: var(--surface); border-top: 1px solid var(--border); padding: 10px 14px; display: flex; gap: 8px; align-items: center; }
.bottom-bar .btn { height: 48px; }

/* logo placeholder */
.logo-ph { width: 48px; height: 48px; border-radius: 12px; flex: none; background: var(--stripe); display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #7d786f; }
.logo-ph-l { width: 52px; height: 52px; border-radius: 14px; }
@media (min-width: 960px) { .logo-ph-l { width: 72px; height: 72px; border-radius: 18px; font-size: 22px; } }

/* body figure */
/* 1a やわらかシルエット: 輪郭（フィルタ）・下地・髪や顔の描き足し。部位はシルエットでマスクして塗る */
.bp-base { fill: var(--blue-track); color: var(--blue-track); }
.bp-ol-flood { flood-color: var(--blue-mid); }
.bp-ground { fill: var(--line); }
.bp-decor { pointer-events: none; }
.bp-hair { fill: var(--blue-mid); }
.bp-ink { fill: var(--blue-dark); }
.bp-line { fill: none; stroke: var(--blue-dark); stroke-linecap: round; }
.figure-body .region, .figure-face .region { fill: none; }
.figure-body .region :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot),
.figure-face .region :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot) { fill: var(--blue-figure); stroke: #fff; stroke-width: 1.8; transition: fill .15s; }
a .region { cursor: pointer; }
a .region:hover :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot),
.region.is-hover :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot) { fill: var(--blue-mid); }
.figure-body .region.is-on :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot),
.figure-face .region.is-on :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot) { fill: var(--blue); }
a:focus { outline: none; }
a:focus-visible .region :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot) { stroke: var(--coral); stroke-width: 3.2; }
.region .hit { fill: transparent; stroke: none; }
.region .leader { fill: none; stroke: var(--blue-mid); stroke-width: 1; }
.region .dot { fill: var(--blue-mid); stroke: none; }
a:hover .region .leader, a:focus-visible .region .leader, .region.is-hover .leader, .region.is-on .leader { stroke: var(--blue-dark); }
a:hover .region .dot, a:focus-visible .region .dot, .region.is-hover .dot, .region.is-on .dot { fill: var(--blue-dark); }
.region .lbl { font-size: 12px; fill: var(--text); font-weight: 500; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
.region .lbl-in { fill: var(--blue-dark); font-size: 11px; stroke: none; }
.region.is-on .lbl { font-weight: 700; }
.region.is-on .lbl-in, .region:hover .lbl-in, .region.is-hover .lbl-in { fill: #fff; font-weight: 700; }
a:hover .region .lbl:not(.lbl-in), a:focus-visible .region .lbl:not(.lbl-in), .region.is-hover .lbl:not(.lbl-in) { fill: var(--blue-dark); font-weight: 700; }
/* 小さい図（カード・詳細など）: 該当部位だけを描くので、すべて塗る */
.figure-mini .region.is-on :is(rect, ellipse, circle, path):not(.leader):not(.hit):not(.dot) { fill: var(--blue); stroke: #fff; stroke-width: 2.4; }
.figure-mini .bp-ring { fill: none; stroke: var(--blue); stroke-width: 2.4; opacity: .55; }

/* interactive picker */
.bp { width: 100%; max-width: 440px; margin: 0 auto; }
.bp-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 999px; margin-bottom: 10px; }
.bp-tab { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.bp-tab.is-active { background: var(--surface); color: var(--blue-dark); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.bp-tab:focus-visible { outline: 2px solid var(--coral); outline-offset: 1px; }
.bp-panel[hidden] { display: none; }
.no-js .bp-tabs { display: none; }
.no-js .bp-panel[hidden] { display: block; }
.bp-svg { display: block; width: 100%; height: auto; max-height: 70vh; }
.part-tile.is-active { background: var(--blue); color: #fff; }

/* ---------- 01 home ---------- */
.hero { background: var(--surface); }
.hero-inner { padding: 26px 18px 22px; }
.hero h1 { font-size: 28px; line-height: 1.35; letter-spacing: -.01em; }
.hero .accent { color: var(--blue); }
.hero .lead { font-size: 13px; line-height: 1.8; color: var(--text-3); margin-top: 10px; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.hero-actions .btn { height: 50px; font-size: 15px; }
@media (min-width: 960px) {
    .hero-inner { max-width: 1120px; margin: 0 auto; padding: 64px 32px 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
    .hero h1 { font-size: 52px; line-height: 1.25; letter-spacing: -.02em; }
    .hero .lead { font-size: 16px; line-height: 1.9; margin-top: 18px; max-width: 500px; }
    .hero-actions { flex-direction: row; gap: 10px; margin-top: 28px; }
    .hero-actions .btn { height: 54px; padding: 0 30px; font-size: 16px; }
    .hero-counts { display: flex !important; gap: 28px; margin-top: 32px; font-size: 12px; color: var(--muted); }
    .hero-counts b { font-size: 22px; color: var(--text); }
    .hero-stats { background: var(--bg); border-radius: 20px; padding: 22px; display: block; }
    .hs-title { font-size: 13px; font-weight: 700; }
    .hs-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
    .hs-row { background: var(--surface); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 130px 1fr 90px; gap: 14px; align-items: center; }
    .hs-name { font-size: 14px; font-weight: 700; display: flex; flex-direction: column; line-height: 1.3; }
    .hs-name small { font-size: 10px; color: var(--muted); font-weight: 400; }
    .hs-val { text-align: right; font-size: 17px; font-weight: 700; }
    .hs-val small, .stat-paid small { font-size: 11px; }
    .hs-note { font-size: 11px; color: var(--muted); margin-top: 12px; }
}
.hs-empty { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.7; }
.home-body { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.stat-rows { display: flex; flex-direction: column; margin-top: 8px; }
.stat-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; }
.stat-name { font-size: 13px; font-weight: 700; }
.stat-name small { font-weight: 400; color: var(--muted); font-size: 11px; }
.stat-paid { font-size: 18px; font-weight: 700; }
.stat-ses { font-size: 13px; font-weight: 500; color: var(--blue); min-width: 36px; text-align: right; }
.parts-card { display: flex; flex-direction: column; }
.parts-figures { display: block; order: 2; }
.parts-list { order: 1; }
.parts-title { font-size: 15px; margin-bottom: 12px; }
.fig-body-l { width: 120px; }
.fig-face-l { width: 90px; }
.part-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 14px; order: 3; }
.parts-list .part-tiles { margin-top: 0; }
.part-tile { font-size: 12px; padding: 8px 0; text-align: center; border-radius: 10px; background: var(--bg); color: var(--text); display: flex; flex-direction: column; }
.part-tile b { font-weight: 400; }
.part-tile:hover { background: var(--blue); color: #fff; opacity: 1; }
@media (max-width: 959px) {
    .parts-card { display: grid; grid-template-areas: "title" "fig" "tiles"; }
    .parts-list { display: contents; }
    .parts-title { grid-area: title; }
    .parts-figures { grid-area: fig; }
    .part-tiles { grid-area: tiles; margin-top: 14px !important; }
}
@media (min-width: 960px) {
    .home-body { gap: 40px; padding-top: 40px; }
    .parts-card { border-radius: 20px; padding: 28px; display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: center; }
    .parts-figures { order: 0; }
    .fig-body-l { width: 170px; }
    .fig-face-l { width: 130px; }
    .parts-title { font-size: 22px; margin: 0; }
    .parts-sub { display: block !important; font-size: 13px; color: var(--muted); margin: 4px 0 18px; }
    .part-tiles { gap: 8px; }
    .part-tile { text-align: left; padding: 12px; border-radius: 12px; }
    .part-tile b { font-size: 14px; font-weight: 700; }
    .part-tile span { font-size: 11px; color: var(--muted); }
    .part-tile:hover span, .part-tile.is-active span { color: #fff; }
    .home-split { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
    .home-brands .section-title { margin-bottom: 14px; }
    .home-brands .card { border-radius: 16px; padding: 20px; }
}
.home-split { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 960px) { .home-split { display: grid; } }
.brand-pick { display: flex; gap: 6px; margin-top: 10px; }
.brand-pick .input { height: 46px; border-radius: 10px; font-size: 14px; flex: 1; }
.brand-pick .btn { height: 46px; width: 64px; padding: 0; border-radius: 10px; }
.brand-pills { display: flex !important; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
@media (min-width: 960px) { .brand-pills { display: none !important; } .brand-pick { margin-top: 0; } }
.brand-rows { flex-direction: column; margin-top: 12px; font-size: 14px; }
@media (min-width: 960px) { .brand-rows { display: flex !important; } }
.brand-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.brand-row:last-child { border-bottom: 0; }

/* ---------- 02 search ---------- */
.search-top { background: var(--surface); padding: 16px 16px 12px; }
.chip-scroll { display: flex; gap: 6px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.filter-open { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--text); color: #fff; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border: 0; }
.filter-count { width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--text); font-size: 10px; display: grid; place-items: center; }
.active-chip { flex: none; height: 36px; padding: 0 12px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-dark); display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.active-chip span { opacity: .6; }
.active-chips { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.active-chips .active-chip { height: 30px; font-size: 12px; }
.search-layout { display: flex; flex-direction: column; gap: 10px; }
.search-results { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 960px) {
    .search-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }
    .search-results { gap: 16px; }
    .search-results .page-title { font-size: 26px; }
}
/* filter sheet: mobile = bottom sheet（JS で開閉）, desktop = sidebar */
.sheet { display: none; }
.no-js .sheet, .sheet.is-open { display: block; }
.sheet.is-open { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(35, 36, 39, .45); }
.no-js .sheet-backdrop { display: none; }
.filter-panel { background: var(--surface); display: flex; flex-direction: column; font-size: 13px; }
.sheet.is-open .filter-panel { position: absolute; left: 0; right: 0; bottom: 0; top: 48px; border-radius: 20px 20px 0 0; }
.filter-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filter-title { font-size: 15px; }
.filter-clear { font-size: 13px; color: var(--muted); }
.sheet-x { background: none; border: 0; font-size: 20px; line-height: 1; padding: 0; }
.filter-body { flex: 1; overflow-y: auto; padding: 4px 16px 0; }
.filter-sec { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.filter-sec legend { font-weight: 700; margin-bottom: 8px; padding: 0; float: left; width: 100%; }
.filter-sec legend + * { clear: both; }
.filter-sec legend small { font-weight: 400; color: var(--muted); font-size: 11px; }
.filter-foot { padding: 12px 16px 22px; border-top: 1px solid var(--line); }
.filter-foot .btn { height: 50px; font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.range-row { display: flex; gap: 6px; align-items: center; }
.range-row .input { flex: 1; min-width: 0; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; border-bottom: 0; cursor: pointer; }
.switch { appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--border); position: relative; cursor: pointer; margin: 0; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.switch:checked { background: var(--blue); }
.switch:checked::after { left: 21px; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: block; font-size: 12px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); }
.choice input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 10px; padding: 3px; font-size: 12px; text-align: center; }
.seg-opt { cursor: pointer; position: relative; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt > span { display: block; padding: 8px 0; border-radius: 8px; color: var(--muted); }
.seg-opt input:checked + span { background: var(--surface); font-weight: 700; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--blue); }
@media (min-width: 960px) {
    .sheet { display: block; }
    .sheet-backdrop { display: none; }
    .filter-panel { border-radius: 16px; padding: 6px 18px 18px; position: sticky; top: 20px; }
    .filter-head { padding: 12px 0; border-bottom: 0; }
    .filter-clear { font-size: 12px; color: var(--blue); }
    .filter-body { padding: 0; overflow: visible; }
    .filter-sec { padding: 12px 0; border-bottom: 0; border-top: 1px solid var(--line); }
    .choice > span { padding: 4px 10px; }
    .segmented { display: flex; flex-direction: column; gap: 6px; background: none; padding: 0; text-align: left; font-size: 13px; }
    .seg-opt > span { padding: 0 0 0 24px; color: var(--text); position: relative; }
    .seg-opt > span::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -8px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--disabled); box-sizing: border-box; }
    .seg-opt input:checked + span { background: none; box-shadow: none; font-weight: 400; }
    .seg-opt input:checked + span::before { border: 5px solid var(--blue); }
    .toggle-row { font-weight: 400; justify-content: flex-start; flex-direction: row-reverse; gap: 8px; }
    .toggle-row .switch { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--disabled); background: #fff; }
    .toggle-row .switch::after { display: none; }
    .toggle-row .switch:checked { background: var(--blue); border-color: var(--blue); }
    .toggle-row .switch:checked::before { content: "✓"; color: #fff; font-size: 11px; position: absolute; inset: 0; display: grid; place-items: center; }
    .filter-foot { padding: 6px 0 0; border: 0; }
    .filter-foot .btn { height: 46px; font-size: 14px; }
}
.search-summary { padding: 14px 16px; }
.ss-count { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.ss-count b { color: var(--text); font-size: 15px; }
.ss-note { font-size: 10px; }
.ss-medians { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ss-label { font-size: 11px; color: var(--muted); }
.ss-big { font-size: 22px; font-weight: 700; }
.ss-big small { font-size: 12px; }
.ss-hist { margin-top: 10px; }
.hist { display: flex; gap: 3px; align-items: flex-end; height: 34px; border-bottom: 1px solid var(--border-2); position: relative; }
.hist > span { flex: 1; background: var(--blue-light); border-radius: 2px 2px 0 0; }
.hist > span.is-core { background: var(--blue); }
.hist-scale { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); margin-top: 3px; }
.ss-group { font-size: 10px; color: var(--muted); margin-top: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; gap: 10px; }
.results-range { font-size: 12px; color: var(--muted); }
.sort-select select { border: 0; background: transparent; font-size: 13px; font-weight: 500; text-align: right; }
.sort-tabs { gap: 4px; font-size: 12px; background: var(--surface); border-radius: 10px; padding: 3px; }
.sort-tabs a { padding: 6px 12px; color: var(--text-3); border-radius: 8px; }
.sort-tabs a.is-active { background: var(--text); color: #fff; font-weight: 700; }
@media (min-width: 960px) {
    .search-summary { padding: 18px 22px; display: grid; grid-template-columns: auto auto 1fr; gap: 12px 40px; align-items: center; }
    .ss-count { display: block; }
    .ss-medians { display: flex; gap: 28px; margin: 0; }
    .ss-label { font-size: 12px; }
    .ss-big { font-size: 28px; }
    .ss-big small { font-size: 13px; }
    .ss-hist { margin: 0; }
    .ss-hist .hist { height: 48px; }
    .ss-hist .hist-scale { font-size: 10px; }
    .ss-group { grid-column: 1 / -1; margin: 0; font-size: 11px; }
    .sort-tabs { display: flex !important; }
    .results-range { font-size: 13px; }
    .results-bar { padding: 0; }
}

/* ---------- 03 experience detail ---------- */
.detail { padding-top: 0; }
.detail-grid { display: block; }
.detail-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detail-head { border-radius: 0; margin: 0 -12px; padding: 16px 16px 18px; }
.detail-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.badge-outline { font-size: 11px; font-weight: 700; border: 1px solid var(--blue); color: var(--blue); padding: 3px 9px; border-radius: 99px; background: #fff; }
.badge-draft { font-size: 11px; font-weight: 700; background: var(--coral-soft); color: var(--coral-dark); padding: 3px 9px; border-radius: 99px; }
.detail-updated { font-size: 11px; color: var(--muted); }
.detail-head h1 { font-size: 20px; line-height: 1.45; }
.detail-place { font-size: 13px; color: var(--blue); margin-top: 2px; font-weight: 500; }
.detail-edit { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; }
.detail-head-row { display: grid; grid-template-columns: 1fr 92px; gap: 14px; align-items: center; }
.detail-head-main { min-width: 0; }
.detail-fig { width: 92px; height: 128px; border-radius: 14px; background: var(--blue-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.detail-fig .figure-body, .detail-fig .figure-face { width: 56px; height: auto; }
.detail-fig-label { font-size: 11px; font-weight: 700; color: var(--blue-dark); }
.claims-flagged { margin-top: 10px; padding-top: 10px !important; border-top: 1px solid var(--line); }
.chart-card, .price-card, .breakdown-card, .review-card, .claims-card, .facts-card, .photos-card, .source-card { padding: 16px; }
.visit-chart { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 8px; margin-top: 14px; }
.visit-axis { position: relative; height: 120px; font-size: 10px; color: var(--muted); text-align: right; }
.visit-axis span { position: absolute; right: 0; transform: translateY(50%); white-space: nowrap; line-height: 1; }
.visit-bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; align-items: end; height: 120px; border-bottom: 1px solid var(--border); }
.visit-bars .bar { border-radius: 4px 4px 0 0; background: var(--blue); min-height: 4px; }
.visit-bars .bar.is-extra { background: var(--coral); }
.visit-bars .bar.is-empty { height: 100%; background: none; border: 1.5px dashed var(--border-2); border-bottom: 0; }
.visit-labels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 5px; font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; line-height: 1.4; min-width: 0; }
.session-strip { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; margin-top: 14px; cursor: default; }
.session-strip span { height: 10px; background: var(--blue); }
.session-strip span:first-child { border-radius: 5px 0 0 5px; }
.session-strip span:last-child { border-radius: 0 5px 5px 0; }
.session-strip span:only-child { border-radius: 5px; }
.session-strip span.is-extra { background: var(--coral); }
.session-labels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; margin-top: 4px; font-size: 10px; color: var(--muted); text-align: center; min-width: 0; }
.session-labels .is-noticed { color: var(--blue-dark); font-weight: 700; white-space: nowrap; }
.visit-labels:has(> span:nth-child(11)) > span,
.session-labels:has(> span:nth-child(11)) > span { visibility: hidden; }
.visit-bars:has(> span:nth-child(11)),
.visit-labels:has(> span:nth-child(11)) { gap: 3px; }
.visit-labels:has(> span:nth-child(11)) > span { white-space: nowrap; }
.visit-labels:has(> span:nth-child(11)) > span:first-child,
.visit-labels:has(> span:nth-child(11)) > span:last-child,
.visit-labels:has(> span:nth-child(11)) > span:nth-child(5n),
.session-labels:has(> span:nth-child(11)) > span:first-child,
.session-labels:has(> span:nth-child(11)) > span:last-child,
.session-labels:has(> span:nth-child(11)) > span:nth-child(5n),
.session-labels:has(> span:nth-child(11)) > span.is-noticed { visibility: visible; }
.visit-labels > span:first-child { text-align: left; }
.visit-labels > span:last-child { text-align: right; }
.session-labels:has(.is-noticed) { padding-bottom: 1.4em; }
.session-labels .is-noticed { position: relative; }
.session-labels .is-noticed > .m-only,
.session-labels .is-noticed > span:last-child { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.session-labels .is-noticed:first-child > .m-only,
.session-labels .is-noticed:first-child > span:last-child { left: 0; transform: none; }
.session-labels .is-noticed:last-child > .m-only,
.session-labels .is-noticed:last-child > span:last-child { left: auto; right: 0; transform: none; }
.chart-foot .legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-3); margin-top: 10px; flex-wrap: wrap; align-items: center; }
.legend > span { display: flex; align-items: center; gap: 5px; }
.chart-foot .note-blue { margin-top: 12px; }
/* price card */
.price-top { display: flex; justify-content: space-between; align-items: flex-end; }
.price-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.price-big { font-size: 34px; font-weight: 700; line-height: 1.15; }
.price-big small { font-size: 15px; margin-left: 2px; }
.price-delta { text-align: right; font-size: 11px; color: var(--muted); }
.price-delta b { display: block; font-size: 16px; color: var(--blue); }
.price-delta b.is-up, .price-delta-line b.is-up { color: var(--coral-dark); }
.price-delta-line { font-size: 13px; margin-top: 2px; }
.price-delta-line b { color: var(--blue); }
.dot-strip { position: relative; height: 40px; margin-top: 16px; }
.dot-track { position: absolute; left: 0; right: 0; top: 18px; height: 6px; border-radius: 3px; background: var(--blue-track); }
.dot-strip .dot { position: absolute; top: 17px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--blue-dot); }
.median-line { position: absolute; top: 8px; width: 2px; height: 26px; margin-left: -1px; background: var(--text); }
.median-tag { position: absolute; top: 0; transform: translateX(-50%); font-size: 9px; background: #fff; padding: 0 3px; font-weight: 700; line-height: 1.2; }
.me-dot { position: absolute; top: 13px; margin-left: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--coral-dark); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.dot-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); gap: 6px; }
.dot-scale .me { color: var(--coral-dark); font-weight: 700; }
.dot-caption { font-size: 10px; color: var(--muted); margin-top: 6px; }
.dot-strip-s { height: 34px; margin-top: 4px; }
.dot-strip-s .dot-track { top: 14px; }
.dot-strip-s .median-line { top: 4px; }
.dot-strip-s .me-dot { top: 9px; }
/* minis */
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.minis-m .mini { background: var(--surface); border-radius: 16px; padding: 14px; }
.mini-sessions { display: flex; gap: 12px; align-items: center; }
.donut { width: 56px; height: 56px; border-radius: 50%; background: conic-gradient(var(--blue) 0 var(--p), var(--coral) var(--p) 100%); display: grid; place-items: center; flex: none; }
.donut span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.mini-label { font-size: 11px; color: var(--muted); }
.mini-value { font-size: 15px; font-weight: 700; }
.mini-value-l { font-size: 20px; font-weight: 700; line-height: 1.3; }
.mini-value-l small { font-size: 12px; }
.mini-sub { font-size: 10px; color: var(--muted); }
.mini-head { display: flex; justify-content: space-between; font-size: 11px; }
.mini-head + .mini-value { margin: 2px 0 8px; }
.step-meter { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.step-meter span { flex: 1; border-radius: 3px; background: var(--border); }
.step-meter span.on-blue { background: var(--blue); }
.step-meter span.on-coral { background: var(--coral); }
.detail-summary-m { display: flex; flex-direction: column; gap: 10px; }
/* breakdown */
.seg-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-top: 10px; }
.breakdown-rows { font-size: 13px; margin-top: 10px; }
.breakdown-row { display: flex; justify-content: space-between; padding: 5px 0; gap: 10px; }
.breakdown-row .num { font-weight: 500; }
.breakdown-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breakdown-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 7px; margin-top: 4px; }
/* review, claims & facts */
.review-card p { font-size: 14px; line-height: 1.85; text-wrap: pretty; margin-top: 8px; }
.badge-soft { font-size: 10px; font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); padding: 2px 8px; border-radius: 99px; flex: none; }
.claims-card .card-note { display: block; margin-top: 4px; }
.claims { margin: 10px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.claims > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.claims > div:last-child { border-bottom: 0; padding-bottom: 0; }
.claims dt { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.claims dd { margin: 2px 0 0; line-height: 1.6; }
.claims dd.muted { color: var(--muted); }
.badge-warn { font-size: 10px; font-weight: 700; color: var(--coral-dark); background: var(--coral-soft); padding: 1px 7px; border-radius: 99px; flex: none; }
.facts-pair { display: flex; flex-direction: column; gap: 10px; }
.facts { margin: 8px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.facts-brand { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.facts-foot { font-size: 11px; color: var(--muted); margin-top: 12px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); flex: none; }
.facts-subnote { display: block; font-size: 11px; color: var(--muted); }
.facts dd { margin: 0; text-align: right; }
/* photos */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-align: center; }
.photo-grid img { height: 72px; width: 100%; object-fit: cover; border-radius: 8px; background: var(--stripe); }
.source-card ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.source-card .card-note { margin-top: 4px; display: block; }
/* order on mobile */
@media (max-width: 959px) {
    .detail-pair { display: contents; }
    .detail-head { order: 1; }
    .chart-card { order: 2; }
    .detail-summary-m { order: 3; }
    .breakdown-card { order: 4; }
    .review-card { order: 5; }
    .claims-card { order: 6; }
    .facts-pair { display: contents; }
    .cost-card { order: 7; }
    .basics-card { order: 8; }
    .source-card { order: 9; }
    .photos-card { order: 10; }
    .similar { order: 11; }
    .detail-main > .m-only:last-child { order: 12; }
}
.similar .section-head h2 { font-size: 14px; }
.deletion { padding: 16px 14px 0; text-align: center; }
.deletion summary { list-style: none; font-size: 12px; color: var(--muted); cursor: pointer; }
.deletion summary::-webkit-details-marker { display: none; }
.deletion-form { text-align: left; margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.deletion-form textarea, .deletion-form input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.deletion-form .btn { align-self: flex-start; }
@media (min-width: 960px) {
    .detail { padding-top: 20px; }
    .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; margin-top: 16px; align-items: start; }
    .detail-main { gap: 14px; }
    .detail-head { border-radius: 18px; margin: 0; padding: 22px 24px; }
    .badge-outline { font-size: 12px; padding: 4px 10px; }
    .detail-updated { font-size: 12px; }
    .detail-head h1 { font-size: 28px; margin: 2px 0 2px; }
    .detail-place { font-size: 15px; }
    .detail-head-row { grid-template-columns: 1fr 128px; gap: 24px; }
    .detail-fig { width: 128px; height: 176px; border-radius: 16px; gap: 6px; }
    .detail-fig .figure-body, .detail-fig .figure-face { width: 80px; }
    .detail-fig-label { font-size: 12px; }
    .chart-card { padding: 22px 24px; }
    .chart-card .card-title { font-size: 18px; }
    .visit-chart { grid-template-columns: 80px minmax(0, 1fr); gap: 0 12px; margin-top: 18px; }
    .visit-axis, .visit-bars { height: 200px; }
    .visit-axis { font-size: 11px; }
    .visit-bars { gap: 14px; background: repeating-linear-gradient(to top, transparent 0 39px, #f1efeb 39px 40px); }
    .visit-bars .bar { border-radius: 6px 6px 0 0; }
    .visit-labels { gap: 14px; font-size: 11px; margin-top: 6px; }
    .session-strip { gap: 4px; margin-top: 18px; }
    .session-strip span { height: 12px; }
    .session-strip span:first-child { border-radius: 6px 0 0 6px; }
    .session-strip span:last-child { border-radius: 0 6px 6px 0; }
    .session-strip span:only-child { border-radius: 6px; }
    .session-labels { gap: 4px; margin-top: 6px; font-size: 11px; }
    .chart-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
    .chart-foot .legend { margin: 0; font-size: 12px; gap: 16px; }
    .chart-foot .note-blue { margin: 0; padding: 8px 14px; font-size: 13px; }
    .detail-pair { display: grid; grid-template-columns: 1fr; gap: 14px; }
    .detail-pair.has-photos { grid-template-columns: 1fr 1fr; }
    .detail-pair:empty { display: none; }
    .photos-card, .breakdown-card { padding: 20px 22px; }
    .photo-grid { gap: 8px; margin-top: 12px; }
    .photo-grid img { height: 84px; }
    .seg-bar { height: 16px; border-radius: 8px; margin-top: 12px; }
    .review-card, .claims-card { padding: 22px 24px; }
    .review-card p { font-size: 15px; line-height: 1.9; }
    .badge-soft { font-size: 11px; padding: 3px 10px; }
    .claims { margin-top: 12px; font-size: 14px; }
    .claims > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; }
    .claims dt { font-size: 12px; padding-top: 2px; }
    .claims dd { margin: 0; line-height: 1.65; }
    .facts-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
    .facts-pair > :only-child { grid-column: 1 / -1; }
    .facts-card { padding: 20px 22px; }
    .facts-card .card-title { margin-bottom: 4px; }
    .facts { border-top: 0; margin-top: 0; }
    .facts > div { padding: 8px 0; }
    .similar .section-head h2 { font-size: 18px; }
    .detail-side { display: flex !important; flex-direction: column; gap: 12px; position: sticky; top: 20px; }
    .side-card { padding: 20px; }
    .price-block .price-big { font-size: 40px; letter-spacing: -.01em; }
    .price-block .price-big small { font-size: 16px; }
    .price-block .dot-strip { margin-top: 14px; }
    .minis-d { gap: 8px; margin-top: 16px; }
    .minis-d .mini { background: var(--bg); border-radius: 12px; padding: 12px; }
    .minis-d .mini-sessions { gap: 10px; }
    .minis-d .donut { width: 44px; height: 44px; }
    .minis-d .donut span { width: 32px; height: 32px; background: var(--bg); font-size: 14px; }
    .minis-d .mini-label, .minis-d .mini-head { font-size: 10px; }
    .minis-d .mini-value { font-size: 14px; }
    .minis-d .mini-head + .mini-value { font-size: 13px; margin: 2px 0 6px; }
    .minis-d .mini-value-l { font-size: 17px; }
    .minis-d .mini-value-l small { font-size: 11px; }
    .minis-d .mini-sub .coral { font-size: 10px; }
    .minis-d .step-meter { height: 18px; }
    .minis-d .step-meter span { border-radius: 2px; background: #dcd8d0; }
    .minis-d .step-meter span.on-blue { background: var(--blue); }
    .minis-d .step-meter span.on-coral { background: var(--coral); }
    .side-actions { display: flex; gap: 8px; margin-top: 16px; }
    .side-actions .btn { height: 50px; font-size: 15px; }
    .side-pr { font-size: 10px; color: var(--muted); margin-top: 6px; text-align: right; }
    .detail-side .deletion { padding: 4px 0; }
}

/* ---------- 04 record form ---------- */
.is-task .site-header, .is-task .site-footer { display: none; }
@media (min-width: 960px) { .is-task .site-header, .is-task .site-footer { display: block; } }
.record-form { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 960px) { .record-form { min-height: 0; } }
.task-bar { display: flex !important; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface); font-size: 14px; }
.task-close { font-size: 20px; line-height: 1; color: var(--text); width: 40px; }
.task-bar .muted-s { width: 40px; text-align: right; }
@media (min-width: 960px) { .task-bar { display: none !important; } }
.is-task .site-main { padding-bottom: 0; background: var(--surface); }
@media (min-width: 960px) { .is-task .site-main { background: none; padding-bottom: 56px; } }
.record-wrap { flex: 1; padding: 0; }
@media (min-width: 960px) { .record-wrap { padding: 32px 32px 0; } }
.record-grid { display: block; }
.record-questions { border-radius: 0; padding: 8px 16px 20px; display: flex; flex-direction: column; gap: 22px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-head { display: flex; gap: 8px; align-items: center; padding: 0; float: left; width: 100%; }
.q-head + * { clear: both; }
.q-head b { font-size: 16px; }
.q-head small { font-size: 11px; color: var(--muted); }
.q-num { width: 20px; height: 20px; border-radius: 50%; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.q.is-done .q-num { background: var(--blue); font-size: 0; }
.q.is-done .q-num::after { content: "✓"; font-size: 11px; }
.q-hint { font-size: 11px; color: var(--muted); margin-top: 6px; }
.choice-chips-l { margin-top: 10px; }
.choice-chips-l .choice > span { font-size: 13px; padding: 8px 14px; }
.choice-s > span { font-size: 12px; padding: 5px 11px; }
.other-parts { margin-top: 8px; }
.other-parts summary { list-style: none; display: inline-block; font-size: 13px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--border); cursor: pointer; }
.other-parts summary::-webkit-details-marker { display: none; }
.other-parts[open] summary { background: var(--bg); }
.other-groups { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.other-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.other-group-name { font-size: 11px; color: var(--muted); width: 100%; }
.place-field { position: relative; margin-top: 10px; }
.place-field .input-l { padding-right: 70px; font-weight: 700; }
.type-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.money-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 10px; }
.amount-box { height: 56px; border-radius: 12px; border: 2px solid var(--border); display: flex; align-items: center; padding: 0 12px; gap: 4px; cursor: text; }
.amount-box:focus-within { border-color: var(--blue); }
.amount-box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 22px; font-weight: 700; background: none; padding: 0; }
.amount-box b { font-size: 13px; }
.amount-box-s { height: 44px; border-width: 1px; }
.amount-box-s input { font-size: 16px; }
.stepper { height: 56px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 0 10px; gap: 4px; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; flex: none; padding: 0; }
.stepper label { display: flex; align-items: baseline; justify-content: center; min-width: 0; }
.stepper input { width: 3ch; border: 0; background: none; font-size: 20px; font-weight: 700; text-align: right; padding: 0; outline: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper small { font-size: 12px; font-weight: 700; }
.money-opts { display: flex; gap: 6px; margin-top: 8px; align-items: center; }
.pill-check { position: relative; cursor: pointer; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check > span { display: block; font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--bg); }
.pill-check input:checked + span { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
.pill-check input:focus-visible + span { outline: 2px solid var(--blue); }
.per-preview { font-size: 12px; color: var(--blue-dark); margin-left: auto; }
.amount-box.is-off { opacity: .45; }
.timing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; font-size: 12px; text-align: center; }
.choice-box { position: relative; cursor: pointer; }
.choice-box input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box > span { display: block; padding: 10px 0; border-radius: 10px; border: 1px solid var(--border); }
.choice-box input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 700; }
.choice-box input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.timing-older { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.timing-older[hidden] { display: none; }
.more-fields summary { font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.field-wide { grid-column: 1 / -1; }
.task-foot { position: sticky; bottom: 0; background: var(--surface); padding: 12px 16px 20px; border-top: 1px solid var(--line); display: block !important; }
.task-foot .btn { height: 50px; font-size: 15px; }
.task-foot p { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; }
@media (min-width: 960px) { .task-foot { display: none !important; } }
.record-extra { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.record-delete { text-align: center; }
@media (min-width: 960px) {
    .record-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin-top: 24px; align-items: start; }
    .record-questions { border-radius: 18px; padding: 28px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; }
    .q-head b { font-size: 17px; }
    .q-num { width: 22px; height: 22px; font-size: 12px; }
    .q-hint { font-size: 12px; }
    .choice-chips-l { margin-top: 12px; }
    .place-field { margin-top: 12px; }
    .place-field .input-l { height: 50px; }
    .money-row { margin-top: 12px; }
    .amount-box input { font-size: 24px; }
    .stepper button { width: 30px; height: 30px; }
    .timing-grid { grid-template-columns: 1fr 1fr; margin-top: 12px; font-size: 13px; }
    .choice-box > span { padding: 12px 0; }
    .more-fields { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
    .field-grid { grid-template-columns: repeat(3, 1fr); }
    .record-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 12px; }
    .preview-card { padding: 20px; }
    .pv-parts { font-size: 17px; font-weight: 700; margin-top: 10px; }
    .pv-place { font-size: 12px; color: var(--muted); min-height: 1.6em; }
    .pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
    .pv-box { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
    .pv-box small { font-size: 10px; color: var(--muted); }
    .pv-box b { font-size: 18px; font-variant-numeric: tabular-nums; }
    .pv-box[data-pv-box="per"] b { font-size: 15px; }
    .pv-box.is-empty { background: none; border: 1.5px dashed var(--border-2); color: var(--faint); }
    .pv-box.is-empty small { color: var(--faint); }
    .pv-box.is-empty b { font-size: 13px; font-weight: 400; }
    .preview-card .submit-btn { height: 50px; font-size: 15px; margin-top: 14px; }
    .side-note { font-size: 11px; color: var(--muted); line-height: 1.7; padding: 0 6px; }
    .record-extra { padding: 16px 32px 0; }
}
.photo-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.photo-item { margin: 0; font-size: 11px; display: flex; flex-direction: column; gap: 4px; }
.photo-item img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.status { font-size: 10px; padding: 1px 6px; border-radius: 99px; background: var(--bg); }
.status-approved { background: var(--blue-soft); color: var(--blue-dark); }
.status-rejected { background: var(--coral-soft); color: var(--coral-dark); }
.photo-add { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 960px) { .photo-add { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; } .photo-add .q-hint { grid-column: 1 / -1; margin: 0; } }
.photo-add > label { min-width: 0; }
.photo-add input[type="file"] { width: 100%; min-width: 0; }
.photo-preview { width: 120px; height: 100px; object-fit: cover; border-radius: 8px; }
.photo-preview[hidden] { display: none; }
@media (min-width: 960px) {
    .photo-add { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
    .photo-add > label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
    .photo-add > label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
    .photo-add > label:nth-of-type(3) { grid-column: 3; grid-row: 1; }
    .photo-add > button { grid-column: 4; grid-row: 1; }
    .photo-preview { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- 05 done ---------- */
.done-wrap { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; }
.done-head { text-align: center; padding: 0 4px 6px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--blue-dark); background: var(--blue-soft); padding: 5px 12px; border-radius: 99px; }
.status-pill-coral { color: var(--coral-dark); background: var(--coral-soft); }
.done-head h1 { font-size: 24px; margin-top: 10px; }
.done-summary { border-radius: 18px; padding: 18px; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.done-fig { display: flex; }
.fig-done { width: 52px; }
.done-body { display: contents; }
.done-title-row { align-self: center; }
.done-parts { font-size: 17px; font-weight: 700; display: block; }
.done-brand { font-size: 12px; color: var(--muted); display: block; }
.done-stats, .done-compare, .done-link, .done-missing, .add-tiles { grid-column: 1 / -1; }
.done-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; text-align: center; }
.done-stats > div { background: var(--bg); border-radius: 12px; padding: 12px 4px; }
.done-stats small { display: block; font-size: 10px; color: var(--muted); }
.done-stats b { font-size: 17px; line-height: 1.55; }
.done-stats > div:first-child b { font-size: 22px; line-height: 1.2; }
.done-stats em { font-style: normal; font-size: 10px; }
.done-compare-title { font-size: 12px; font-weight: 700; display: block; }
.done-link { text-align: center; font-size: 13px; font-weight: 500; }
.done-missing { font-size: 13px; color: var(--text-3); line-height: 1.8; text-wrap: pretty; }
.add-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.add-tile { height: 64px; border-radius: 12px; border: 1.5px dashed var(--blue); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.done-grid { display: flex; flex-direction: column; gap: 10px; }
.followup { border-radius: 18px; padding: 18px 16px; box-shadow: 0 0 0 2px var(--blue); }
.followup-top { display: flex; justify-content: space-between; align-items: baseline; }
.followup-step { font-size: 11px; color: var(--blue-dark); font-weight: 700; }
.followup-q { font-size: 19px; margin-top: 4px; }
.answer-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.answer-btn { width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; padding: 0 14px; font-size: 14px; text-align: left; }
.answer-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.answer-inline { display: flex; gap: 6px; }
.answer-inline .amount-box { flex: 1; }
.answer-inline .btn { height: 44px; }
.answer-text { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.answer-text .btn { align-self: flex-end; height: 42px; }
.progress4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; }
.progress4 span { height: 4px; border-radius: 2px; background: var(--border); }
.progress4 span.on { background: var(--blue); }
.save-card { border-radius: 18px; }
.save-desc { font-size: 12px; color: var(--text-3); line-height: 1.7; margin-top: 4px; }
.btn-google { display: flex; width: 100%; background: #fff; border: 1px solid var(--border-2); font-weight: 500; margin-top: 10px; }
.g-mark { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 9px "IBM Plex Mono", monospace; color: #7d786f; }
.edit-url { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.edit-url-title { font-size: 12px; font-weight: 700; }
.copy-row { display: flex; gap: 6px; margin-top: 6px; }
.copy-src { flex: 1; min-width: 0; height: 40px; border-radius: 10px; background: var(--bg); border: 0; padding: 0 10px; font: 11px "IBM Plex Mono", monospace; color: var(--text-3); }
@media (min-width: 960px) {
    .done-wrap { max-width: 960px; padding-top: 40px; gap: 14px; }
    .status-pill { font-size: 13px; padding: 6px 14px; }
    .done-head h1 { font-size: 34px; margin-top: 12px; }
    .done-summary { border-radius: 22px; padding: 28px 32px; margin-top: 10px; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
    .fig-done { width: 96px; }
    .done-body { display: block; }
    .done-title-row { display: flex; justify-content: space-between; align-items: baseline; }
    .done-parts { font-size: 22px; display: inline; }
    .done-brand { font-size: 14px; display: inline; margin-left: 10px; }
    .done-stats { gap: 10px; margin-top: 16px; text-align: left; }
    .done-stats > div { border-radius: 14px; padding: 14px 16px; }
    .done-stats small { font-size: 12px; }
    .done-stats b, .done-stats > div:first-child b { font-size: 30px; line-height: 1.3; }
    .done-stats em { font-size: 14px; }
    .done-compare { margin-top: 18px; display: grid; grid-template-columns: 180px 1fr; gap: 16px; align-items: center; }
    .done-compare-title { font-size: 13px; }
    .done-compare .dot-scale { font-size: 11px; }
    .done-missing { margin-top: 12px; }
    .add-tiles { margin-top: 12px; max-width: 480px; }
    .done-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
    .followup, .save-card { padding: 22px; box-shadow: none; }
    .followup-step { font-size: 12px; }
    .followup-q { font-size: 18px; }
    .followup .answer-list { display: grid; grid-template-columns: 1fr 1fr; }
    .followup .answer-list > form:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .followup .answer-btn { height: 42px; border-radius: 10px; font-size: 13px; }
    .save-card .card-title { font-size: 16px; }
    .save-desc { font-size: 13px; }
    .btn-google { margin-top: 12px; }
    .edit-url { border: 0; padding: 0; }
}

/* ---------- 06 brands ---------- */
.brands-top { background: var(--surface); }
.brands-top .wrap { padding: 16px 16px 0; }
.brands-head { display: flex; flex-direction: column; gap: 12px; }
.search-input { height: 44px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; gap: 8px; padding: 0 14px; font-size: 13px; color: #8a8b90; }
.search-input input { border: 0; background: none; outline: 0; flex: 1; min-width: 0; font-size: 13px; color: var(--text); }
.cat-tabs { display: flex; gap: 20px; margin-top: 14px; font-size: 13px; }
.cat-tabs a { padding: 0 0 10px; color: var(--muted); border-bottom: 2.5px solid transparent; }
.cat-tabs a.is-active { color: var(--blue); font-weight: 700; border-color: var(--blue); }
.list-note { font-size: 11px; color: var(--muted); padding: 0 4px 8px; }
.brand-grid { display: flex; flex-direction: column; gap: 8px; }
.brand-card { background: var(--surface); border-radius: 16px; padding: 14px; display: flex; gap: 12px; align-items: center; color: var(--text); }
.brand-card-body { flex: 1; min-width: 0; }
.brand-card-name { font-size: 15px; font-weight: 700; }
.brand-card-meta { font-size: 11px; color: var(--muted); }
.brand-card-inline { display: flex !important; gap: 10px; margin-top: 6px; font-size: 11px; flex-wrap: wrap; }
.brand-card-none { font-size: 11px; color: var(--faint); margin-top: 6px; line-height: 1.7; }
.chev { color: var(--faint); }
@media (min-width: 960px) {
    .brands-top { background: none; }
    .brands-top .wrap { padding: 32px 32px 0; }
    .brands-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .page-sub.d-only { display: block !important; }
    .brands-head .search-input { width: 300px; background: var(--surface); }
    .cat-tabs { gap: 6px; margin-top: 20px; }
    .cat-tabs a { height: 38px; padding: 0 16px; border-radius: 99px; background: var(--surface); color: var(--text); display: flex; align-items: center; border: 0; }
    .cat-tabs a.is-active { background: var(--text); color: #fff; }
    .brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 16px; }
    .brand-card { border-radius: 18px; padding: 20px; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; align-content: start; }
    .brand-card:hover { opacity: 1; box-shadow: 0 0 0 2px var(--blue); }
    .brand-card-name { font-size: 17px; }
    .brand-card-meta { font-size: 12px; }
    .brand-card-bars { grid-column: 1 / -1; display: flex !important; flex-direction: column; gap: 8px; margin-top: 4px; font-size: 12px; }
    .bar-row { display: grid; grid-template-columns: 70px 1fr 54px; gap: 8px; align-items: center; }
    .bar-row b { text-align: right; }
    .brand-card-bars .brand-card-none { font-size: 12px; margin: 0; }
    .brand-card-add { border: 1.5px dashed var(--border-2); background: none; display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
    .brand-card-add b { font-size: 15px; }
    .brand-card-add p { font-size: 12px; color: var(--muted); line-height: 1.7; }
}

/* ---------- 07 brand detail ---------- */
.brand-hero { background: var(--surface); }
.brand-hero .wrap { padding: 16px 16px 0; }
.brand-title-row { display: flex; gap: 12px; align-items: center; }
.brand-title { flex: 1; min-width: 0; }
.brand-cat { font-size: 11px; color: var(--blue); font-weight: 700; }
.brand-title h1 { font-size: 21px; line-height: 1.3; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.kpi { background: var(--bg); border-radius: 12px; padding: 10px; }
.kpi-label { font-size: 10px; color: var(--muted); }
.kpi-val { font-size: 20px; font-weight: 700; }
.kpi-val small { font-size: 11px; }
.kpi-blue { background: var(--blue-soft); }
.kpi-blue .kpi-label, .kpi-blue .kpi-val { color: var(--blue); }
.kpi-coral { background: var(--coral-soft); }
.kpi-coral .kpi-label, .kpi-coral .kpi-val { color: var(--coral-dark); }
.anchor-tabs { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; overflow-x: auto; scrollbar-width: none; }
.anchor-tabs a { padding: 0 0 10px; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.anchor-tabs a.is-active { color: var(--blue); font-weight: 700; border-color: var(--blue); }
.brand-grid-main { display: flex; flex-direction: column; gap: 10px; }
.brand-side { display: contents; }
.plan-rows { display: flex; flex-direction: column; gap: 16px; }
.plan-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; gap: 8px; }
.plan-head span { color: var(--muted); }
.plan-bars { display: grid; grid-template-columns: 44px 1fr; gap: 4px 8px; align-items: center; font-size: 10px; }
.pb-label { color: var(--muted); }
.pb-label.is-actual { color: var(--blue); font-weight: 700; }
.pb-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pb-bar { height: 12px; border-radius: 3px; flex: none; }
.pb-official { background: repeating-linear-gradient(135deg, #d9d5ce 0 3px, #eceae5 3px 6px); border: 1px solid var(--disabled); }
.pb-actual { background: linear-gradient(90deg, var(--blue) var(--official), var(--coral) var(--official)); }
.pb-val { font-size: 12px; white-space: nowrap; }
.pb-none { font-size: 11px; color: var(--muted); }
.plan-note { font-size: 10px; color: var(--coral-dark); margin-top: 4px; padding-left: 52px; }
.plan-foot { font-size: 10px; color: var(--muted); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.hist-l { height: 96px; gap: 4px; margin-top: 14px; }
.hist-l > span { border-radius: 4px 4px 0 0; }
.hist-median { position: absolute; top: -6px; bottom: 0; width: 2px; margin-left: -1px; background: var(--text); }
.hist-median-tag { position: absolute; top: -10px; transform: translateX(-50%); font-size: 10px; font-weight: 700; background: #fff; padding: 0 4px; font-style: normal; white-space: nowrap; }
.hist-l + .hist-scale { font-size: 10px; margin-top: 4px; }
.dot-cols { display: flex; gap: 6px; align-items: flex-end; margin-top: 12px; }
.dot-col { flex: 1; display: flex; flex-direction: column-reverse; gap: 3px; align-items: center; }
.dot-col-label { font-size: 10px; color: var(--muted); margin-top: 4px; }
.dot-c { width: 14px; height: 14px; border-radius: 50%; background: var(--blue-light); }
.dot-col.is-mode .dot-c { background: var(--blue); }
.dot-col.is-mode .dot-col-label { color: var(--blue); font-weight: 700; }
.dot-more { font-size: 9px; color: var(--muted); }
.dist-block + .dist-block { margin-top: 14px; }
.dist-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.dist-head span { color: var(--muted); }
.dist-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: 10px; color: #fff; font-weight: 700; }
.dist-bar span { display: grid; place-items: center; }
.dist-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }
.dist-card .card-title { margin-bottom: 12px; }
.store-links { display: flex; flex-direction: column; }
.store-list { padding: 6px 16px; }
.store-link { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); gap: 10px; }
.store-link:last-child { border-bottom: 0; }
.store-link small { color: var(--muted); font-size: 11px; }
.store-count { color: var(--blue); font-size: 12px; white-space: nowrap; }
@media (max-width: 959px) {
    #price { order: 1; } .brand-side > :first-child { order: 2; } #effect { order: 3; } .sessions-card { order: 4; } .brand-exps { order: 5; } #stores { order: 6; }
    .brand-exps .exp-card:nth-child(n+3) { display: none; }
}
@media (min-width: 960px) {
    .brand-hero { border-bottom: 1px solid var(--line); }
    .brand-hero .wrap { padding: 24px 32px 0; }
    .brand-title-row { gap: 18px; margin-top: 16px; }
    .brand-cat { font-size: 13px; }
    .brand-title h1 { font-size: 32px; }
    .brand-actions { display: flex !important; gap: 8px; }
    .kpis { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
    .kpi { border-radius: 14px; padding: 14px 16px; }
    .kpi-label { font-size: 12px; }
    .kpi-val { font-size: 28px; }
    .kpi-val small { font-size: 13px; }
    .anchor-tabs { gap: 28px; margin-top: 22px; font-size: 14px; }
    .anchor-tabs a { padding-bottom: 12px; border-width: 3px; }
    .brand-grid-main { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; padding-top: 20px; align-items: start; }
    .brand-side { display: flex; flex-direction: column; gap: 16px; }
    #price { padding: 22px 24px; }
    .plan-rows { gap: 20px; }
    .plan-head { font-size: 14px; margin-bottom: 8px; }
    .plan-head span { font-size: 12px; font-weight: 400; }
    .plan-bars { gap: 6px 10px; font-size: 11px; }
    .pb-bar { height: 16px; border-radius: 4px; }
    .pb-val { font-size: 14px; }
    .pb-none { font-size: 12px; }
    .plan-note { font-size: 12px; margin-top: 6px; padding-left: 54px; }
    .plan-foot { font-size: 11px; margin-top: 18px; padding-top: 12px; }
    .hist-l { height: 110px; gap: 5px; margin-top: 18px; }
    .dist-card, .brand-exps, .store-list { grid-column: 1 / -1; }
    .dist-card { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 20px 24px; }
    .dist-block + .dist-block { margin: 0; }
    .dist-head { font-size: 14px; margin-bottom: 8px; }
    .dist-head span { font-size: 12px; }
    .dist-bar { height: 26px; font-size: 11px; }
    .dist-scale { font-size: 11px; }
    .brand-exps .section-head { padding: 10px 2px 12px; }
    .store-list { padding: 20px 24px; }
    .store-list .card-title-l { margin-bottom: 10px; display: block !important; }
    .store-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .store-link { background: var(--bg); border-radius: 12px; padding: 14px 16px; border: 0; font-size: 14px; }
    .store-link small { display: block; font-size: 12px; }
    .store-count { font-size: 13px; }
}

/* ---------- stats block (08 store / fallback) ---------- */
.stats-groups { display: flex; flex-direction: column; }
.stats-group { padding: 10px 0; border-top: 1px solid var(--line); }
.sg-name { font-size: 13px; }
.sg-name small { font-size: 11px; color: var(--muted); }
.sg-vals { display: flex; gap: 18px; align-items: baseline; }
.sg-paid { font-size: 24px; font-weight: 700; }
.sg-paid small { font-size: 12px; }
.sg-ses { font-size: 16px; font-weight: 700; color: var(--blue); }
.stats-none { font-size: 11px; color: var(--muted); margin-top: 10px; padding: 10px 12px; background: var(--bg); border-radius: 10px; }
@media (min-width: 960px) {
    .store-stats .stats-block { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
    .store-stats .card-desc { line-height: 1.7; margin: 4px 0 0; }
    .store-stats .card-title-l { font-size: 17px; }
    .store-stats .stats-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .store-stats .stats-group { background: var(--bg); border-radius: 14px; padding: 14px 16px; border: 0; }
    .store-stats .sg-name small { font-size: 12px; }
    .store-stats .sg-vals { margin-top: 4px; }
    .store-stats .sg-paid { font-size: 26px; }
    .store-stats .sg-ses { font-size: 17px; }
    .store-stats .stats-none { margin: 0; background: none; border: 1.5px dashed var(--border-2); border-radius: 14px; padding: 14px 16px; font-size: 12px; color: var(--faint); display: flex; align-items: center; }
}

/* ---------- 08 store ---------- */
.map-ph { height: 120px; background: repeating-linear-gradient(135deg, #e9e7e2 0 7px, #e0ddd6 7px 14px); display: grid; place-items: center; font: 12px "IBM Plex Mono", monospace; color: #7d786f; }
.store-page { display: flex; flex-direction: column; gap: 10px; padding-top: 0; }
.store-head { border-radius: 0; margin: 0 -12px; }
.store-brand { font-size: 12px; font-weight: 700; }
.store-title-row { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.store-title-row h1 { font-size: 22px; }
.store-address { font-size: 12px; color: var(--muted); }
.kpis-store { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.kpis-store .kpi { padding: 10px 12px; }
@media (min-width: 960px) {
    .store-page { padding-top: 24px; gap: 16px; }
    .store-top { display: grid; grid-template-columns: 1fr 360px; gap: 16px; margin-top: 0; }
    .store-head { border-radius: 18px; margin: 0; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
    .store-brand { font-size: 13px; }
    .store-title-row h1 { font-size: 32px; }
    .store-address { font-size: 13px; }
    .kpis-store { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
    .store-actions { display: flex !important; gap: 8px; margin-top: 18px; }
    .map-ph-d { display: grid !important; height: auto; min-height: 280px; border-radius: 18px; }
}

/* ---------- 09 part ---------- */
.part-page { display: flex; flex-direction: column; gap: 10px; padding-top: 0; }
.part-figure-card { border-radius: 0; margin: 0 -12px; display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.part-fig { display: flex; justify-content: center; }
.fig-part { width: 76px; }
.part-parent { font-size: 12px; }
.part-parent a { color: var(--muted); }
.part-head-m h1 { font-size: 22px; }
.part-figure-card .pills { grid-column: 1 / -1; }
.part-stats-title { font-size: 15px; }
.part-table { display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.pt-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "name name type" "bar paid ses"; gap: 4px 8px; align-items: center; }
.pt-name { grid-area: name; }
.pt-type { grid-area: type; color: var(--muted); text-align: right; }
.pt-bar { grid-area: bar; width: 52vw; max-width: 200px; min-width: 0; }
.pt-bar span { display: block; height: 12px; border-radius: 3px; background: var(--blue); }
.pt-bar span.is-salon { background: var(--blue-mid); }
.pt-paid { grid-area: paid; font-size: 14px; }
.pt-ses { grid-area: ses; color: var(--blue); text-align: right; }
@media (max-width: 959px) {
    .pt-row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .pt-bar { width: auto; max-width: none; }
}
@media (min-width: 960px) {
    .part-page { padding-top: 24px; gap: 16px; }
    .part-top { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-top: 0; }
    .part-figure-card { border-radius: 18px; margin: 0; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
    .fig-part { width: 170px; }
    .part-figure-card .pills { justify-content: center; }
    .part-stats { padding: 24px; }
    .part-stats .page-title { font-size: 32px; }
    .part-stats .page-sub { font-size: 13px; margin-top: 2px; }
    .part-stats-title { font-size: 17px; margin-top: 22px; }
    .part-table { display: grid; grid-template-columns: minmax(100px, 1.4fr) minmax(86px, 1fr) minmax(32px, .8fr) minmax(80px, auto) minmax(40px, auto); gap: 10px 14px; align-items: center; font-size: 13px; }
    .pt-head, .pt-row { display: contents; }
    .pt-head.d-only { display: contents !important; }
    .pt-name, .pt-type, .pt-bar, .pt-paid, .pt-ses { grid-area: auto; }
    .pt-head span { font-size: 11px; color: var(--muted); }
    .pt-head span:last-child { text-align: right; }
    .pt-name, .pt-type { min-width: 0; overflow-wrap: anywhere; }
    .pt-type { text-align: left; }
    .pt-bar { width: auto; max-width: none; min-width: 0; }
    .pt-bar span { height: 14px; }
    .pt-paid { font-size: 16px; text-align: right; }
}

/* ---------- 10 mypage ---------- */
.profile-bar { background: var(--surface); padding: 16px; display: flex !important; gap: 12px; align-items: center; }
@media (min-width: 960px) { .profile-bar { display: none !important; } }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar-l { width: 48px; height: 48px; font-size: 18px; }
.profile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.profile-text b { font-size: 15px; }
.profile-text small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.mypage { display: block; }
.mypage-main { display: flex; flex-direction: column; gap: 10px; }
.mypage-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; }
.mypage-head .page-title { font-size: 15px; }
.mypage-head small { font-size: 12px; color: var(--muted); font-weight: 400; }
.my-record { display: flex; flex-direction: column; }
.mr-title-row { display: flex; justify-content: space-between; align-items: flex-start; }
.mr-title { font-size: 15px; font-weight: 700; }
.mr-sub { font-size: 11px; color: var(--muted); }
.state-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.state-pill.is-public { background: var(--blue-soft); color: var(--blue-dark); }
.mr-nums { display: flex; gap: 16px; margin-top: 10px; font-size: 13px; align-items: baseline; }
.mr-nums b { font-size: 17px; }
.mr-progress { margin-top: 12px; }
.mr-progress-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.progress6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
.progress6 span { height: 5px; border-radius: 3px; background: var(--border); }
.progress6 span.on { background: var(--blue); }
.mr-hint { font-size: 11px; color: var(--coral-dark); margin-top: 4px; }
.mr-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; font-size: 11px; text-align: center; }
.mr-actions a { padding: 9px 0; border-radius: 10px; background: var(--bg); color: var(--text); }
.mr-actions a.is-accent { background: var(--coral-soft); color: var(--coral-dark); font-weight: 700; }
.mr-draft { margin-top: 8px; }
.mr-draft p { font-size: 12px; color: var(--coral-dark); }
.mr-draft .btn { margin-top: 10px; height: 42px; }
.fav-head { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.fav-tabs { display: flex; gap: 6px; font-size: 12px; }
.fav-tabs a { padding: 6px 12px; border-radius: 99px; background: var(--surface); color: var(--text); }
.fav-tabs a.is-active { background: var(--text); color: #fff; font-weight: 700; }
.fav-links { display: flex; flex-direction: column; gap: 8px; }
.fav-link { display: flex; gap: 12px; align-items: center; color: var(--text); padding: 12px 14px; }
.fav-link > span:nth-child(2), .fav-link > b { flex: 1; display: flex; flex-direction: column; }
.fav-link small { font-size: 11px; color: var(--muted); }
.account-card { padding: 6px 16px; font-size: 13px; }
.account-row button { width: 100%; display: flex; justify-content: space-between; padding: 12px 0; border: 0; background: none; font-size: 13px; text-align: left; }
.account-row + .account-row button { border-top: 1px solid var(--line); }
.account-danger button { color: var(--coral-dark); }
.empty-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.contact-form { display: grid; gap: 16px; margin-top: 16px; }
.contact-form textarea { width: 100%; resize: vertical; }
@media (min-width: 960px) {
    .mypage { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
    .mypage-nav { padding: 20px; display: flex !important; flex-direction: column; gap: 14px; position: sticky; top: 20px; }
    .profile { display: flex; gap: 12px; align-items: center; }
    .profile b { display: block; font-size: 16px; }
    .profile small { font-size: 11px; color: var(--muted); }
    .mypage-nav nav { display: flex; flex-direction: column; font-size: 14px; }
    .mypage-nav nav a { padding: 10px 12px; color: var(--text); border-radius: 10px; }
    .mypage-nav nav a.is-active { background: var(--blue-soft); color: var(--blue-dark); font-weight: 700; }
    .mypage-nav form { padding: 0 12px; }
    .mypage-nav .link-btn { font-size: 13px; }
    .mypage-main { gap: 14px; }
    .mypage-head { padding: 0; }
    .mypage-head .page-title { font-size: 26px; }
    .my-record { padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; align-items: center; }
    .mr-info, .mr-progress { min-width: 0; }
    .mr-actions, .mr-draft { grid-column: 1 / -1; }
    .mr-title-row { display: block; }
    .mr-title { font-size: 18px; margin-right: 8px; }
    .mr-sub { font-size: 12px; }
    .mr-nums { margin-top: 8px; gap: 18px; }
    .mr-nums b { font-size: 20px; }
    .mr-progress { margin: 0; }
    .progress6 span { height: 6px; }
    .mr-actions { margin: 0; font-size: 12px; }
    .mr-actions a { padding: 10px 0; }
    .mr-draft { margin: 0; }
    .mr-draft p { line-height: 1.6; }
    .mr-draft .btn { margin-top: 6px; height: 38px; }
    .fav-head { flex-direction: row; justify-content: space-between; align-items: baseline; padding-top: 16px; }
    .fav-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .account-card { padding: 20px 24px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
    .account-card b { font-size: 16px; }
    .account-card p { font-size: 12px; color: var(--muted); }
    .account-danger button { height: 42px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--coral-dark); font-weight: 700; display: flex; align-items: center; }
}

/* ---------- 11 admin ---------- */
.admin-top { background: var(--surface); padding: 16px; }
.admin-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 12px; text-align: center; }
.admin-kpi { background: var(--bg); border-radius: 12px; padding: 10px 4px; color: var(--text); display: flex; flex-direction: column; }
.admin-kpi b { font-size: 22px; }
.admin-kpi small { font-size: 10px; color: var(--muted); }
.admin-kpi.is-alert { background: var(--coral-soft); }
.admin-kpi.is-alert b, .admin-kpi.is-alert small { color: var(--coral-dark); }
.admin { display: flex; flex-direction: column; gap: 10px; }
.admin-photos { display: flex; flex-direction: column; gap: 10px; }
.admin-photo { padding: 0; overflow: hidden; }
.admin-photo img { width: 100%; height: 220px; object-fit: cover; background: var(--stripe); }
.admin-photo-body { padding: 12px 14px; }
.ap-title { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; }
.ap-title small { color: var(--muted); font-size: 11px; }
.ap-sub { font-size: 11px; color: var(--muted); }
.ap-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ap-actions .btn { height: 46px; }
.admin-lists { display: flex; flex-direction: column; gap: 10px; }
.admin-list .card-title { margin-bottom: 8px; }
.admin-list { min-width: 0; }
.al-row { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.al-text { font-size: 13px; min-width: 0; }
.al-text small { color: var(--muted); font-size: 11px; }
.al-text p { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.7; }
.al-text .mono { font: 11px "IBM Plex Mono", monospace; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.al-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.al-actions .btn { width: 100%; white-space: normal; }
#a-unmatched-brands .al-actions { display: flex; flex-direction: column; }
#a-unmatched-brands .al-actions form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
#a-unmatched-brands .al-actions select { width: 100%; min-width: 0; }
@media (min-width: 960px) {
    .admin { gap: 18px; }
    .admin-head { display: flex !important; justify-content: space-between; align-items: center; }
    .admin-head .page-title { font-size: 28px; }
    .seg-links { display: flex; gap: 4px; font-size: 13px; background: var(--surface); border-radius: 10px; padding: 3px; }
    .seg-links a { padding: 8px 14px; color: var(--text); border-radius: 8px; }
    .seg-links a.is-active { background: var(--text); color: #fff; font-weight: 700; }
    .admin-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .admin-photo { border-radius: 16px; }
    .admin-photo img { height: 180px; }
    .ap-actions .btn { height: 40px; font-size: 13px; }
    .admin-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 2px; min-width: 0; }
    .admin-list { border-radius: 16px; padding: 18px 20px; }
    .al-row { flex-direction: column; gap: 10px; align-items: stretch; min-width: 0; }
    .al-text { flex: 1; }
    .al-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; min-width: 0; }
    .al-actions .btn { width: auto; height: 34px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
    #a-unmatched-brands .al-actions { display: flex; flex-direction: column; }
    #a-unmatched-brands .al-actions .btn { width: 100%; height: auto; min-height: 34px; }
}
@media (min-width: 1200px) {
    .al-row { flex-direction: row; gap: 12px; align-items: flex-start; }
    .al-actions { display: flex; flex-wrap: wrap; }
    .al-actions form { min-width: 0; }
}

/* ---------- 12 about ---------- */
.about { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; }
.about .page-title { font-size: 24px; padding: 0 4px; }
.about .page-sub { color: var(--text-3); line-height: 1.8; margin: 0 0 8px; padding: 0 4px; }
.source-cards { display: flex; flex-direction: column; gap: 8px; }
.source-type { padding: 14px 16px; }
.source-type p { font-size: 13px; line-height: 1.8; margin-top: 8px; }
.source-official { background: #f8f7f4; border: 1px dashed var(--border-2); }
.tag-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--text-3); }
.tag-pill-blue { background: var(--blue-soft); color: var(--blue-dark); }
.tag-pill-white { background: #fff; }
.policy { font-size: 13px; line-height: 1.8; display: flex; flex-direction: column; gap: 16px; }
.policy h2 { font-size: 15px; margin-bottom: 6px; }
.policy ul { list-style: none; margin: 0; padding: 0; }
.policy li::before { content: "・"; }
@media (min-width: 960px) {
    .about { max-width: 880px; padding-top: 44px; gap: 0; }
    .about .page-title { font-size: 34px; padding: 0; }
    .about .page-sub { font-size: 15px; margin-top: 8px; padding: 0; }
    .source-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
    .source-type { border-radius: 16px; padding: 18px; }
    .tag-pill { font-size: 12px; padding: 3px 10px; }
    .source-type p { margin-top: 10px; }
    .policy { margin-top: 14px; padding: 28px 32px; font-size: 14px; line-height: 1.9; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
    .policy h2 { font-size: 17px; }
}

/* ---------- 13 legal (privacy / terms / tokushoho) ---------- */
.policy-legal { display: flex; flex-direction: column; gap: 20px; }
.policy-legal p { margin: 6px 0; }
.legal-placeholder { color: var(--danger, #b3261e); font-weight: 700; }
.legal-updated { color: var(--muted); font-size: 12px; margin-top: 4px; }
.legal-effective { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--text); margin: 4px 0 0; }
@media (min-width: 960px) {
    .policy-legal { display: flex; flex-direction: column; gap: 24px; }
}

.nowrap { white-space: nowrap; }

/* d-only / m-only を付けた flex 要素の表示を戻す */
@media (min-width: 960px) {
    .breakdown-row.d-only, .ss-count .d-only { display: flex !important; }
    .ss-count .d-only { flex-direction: column; }
    .btn.d-only { display: inline-flex !important; }
    .facts > div.d-only { display: flex !important; }
}
.record-wrap { width: 100%; min-width: 0; }
.money-row { grid-template-columns: minmax(0, 1.4fr) minmax(126px, 1fr); }
.timing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 960px) { .timing-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .home-brands:only-child { grid-column: 2; } }
.ss-big { color: var(--text); }
@media (min-width: 960px) { .toggle-row { justify-content: flex-end; } }
.amount-box input { width: 100%; }
@media (min-width: 960px) and (max-width: 1119px) { .record-questions { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1120px) { .record-questions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.stepper { padding: 0 6px; }
.stepper label { flex: 1; }
.stepper button { width: 26px; height: 26px; }
.brand-logo { position: relative; display: inline-grid; place-items: center; flex: none; vertical-align: middle; border-radius: 22%; overflow: hidden; background: var(--stripe); color: #7d786f; font-weight: 700; }
.brand-logo img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.brand-logo-initial { grid-area: 1 / 1; }
.brand-logo:has(img) .brand-logo-initial { visibility: hidden; }
.brand-logo-l { border-radius: 14px; }
