/* NAIL. — editorial beauty design system. Hand-written, no build step, mobile first. */

:root {
    --ivory: #f8f6f3;
    --white: #ffffff;
    --ink: #282426;
    --muted: #6b6266;
    --taupe: #d9cdc5;
    --line: #e6ded8;
    --rose: #ad586e;
    --rose-text: #94465a;
    --rose-dark: #8e4155;
    --whatsapp: #15803d;
    --whatsapp-dark: #116a32;
    --radius: 4px;
    --serif: "Noto Serif HK", "Noto Serif TC", "Songti TC", "Source Han Serif TC", "STSong", "PMingLiU", serif;
    --display: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Noto Serif HK", "Songti TC", serif;
    --sans: system-ui, -apple-system, "PingFang HK", "Noto Sans HK", "Microsoft JhengHei", "Heiti TC", sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

[hidden] { display: none !important; }

a { color: var(--rose-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

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

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -48px; background: var(--ink); color: var(--ivory); padding: 8px 12px; z-index: 100; }
.skip-link:focus { top: 8px; color: var(--ivory); }
.eyebrow { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 246, 243, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . fav" "search search search" "nav nav nav"; align-items: center; gap: 8px 12px; padding-top: 10px; }
.logo { grid-area: logo; display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; line-height: 1; }
.logo:hover { color: var(--ink); }
.logo-word { font-family: var(--display); font-size: 1.85rem; font-weight: 700; letter-spacing: .06em; }
.logo-dot { font-family: var(--display); font-size: 1.85rem; font-weight: 700; color: var(--rose); }
.logo-small .logo-word, .logo-small .logo-dot { font-size: 1.4rem; }
.header-tools { grid-area: fav; display: inline-flex; align-items: center; gap: 14px; }
.header-account { color: var(--ink); text-decoration: none; font-size: .9rem; }
.header-account:hover { color: var(--rose-text); }
.header-fav { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-size: .9rem; padding: 6px 4px; }
.header-fav:hover { color: var(--rose-text); }
.fav-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--ink); color: var(--ivory); font-size: .72rem; line-height: 20px; text-align: center; }
.fav-count:empty, .fav-count[data-count="0"] { display: none; }
.header-search { grid-area: search; position: relative; }
.header-search input, .field input, .field select, .field textarea, .hero-search input {
    width: 100%; font: inherit; color: var(--ink); background: var(--white);
    border: 1px solid var(--taupe); border-radius: var(--radius); padding: 10px 12px;
    -webkit-appearance: none; appearance: none;
}
.header-search input { padding-right: 44px; }
.header-search input:focus, .field input:focus, .field select:focus, .field textarea:focus, .hero-search input:focus { outline: none; border-color: var(--ink); }
.header-search button { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.header-nav { grid-area: nav; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; }
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a { flex: none; color: var(--ink); text-decoration: none; padding: 6px 10px; font-size: .92rem; border-bottom: 2px solid transparent; }
.header-nav a:hover { color: var(--rose-text); }
.header-nav a.is-active { border-bottom-color: var(--rose); }
.header-nav .nav-pro { margin-left: auto; color: var(--rose-text); font-weight: 600; }

@media (min-width: 960px) {
    .header-inner { grid-template-columns: auto minmax(240px, 380px) 1fr auto; grid-template-areas: "logo search nav fav"; padding-bottom: 10px; }
    .header-nav { margin: 0; padding: 0; justify-content: flex-end; overflow: visible; }
    .header-nav .nav-pro { margin-left: 8px; }
}

/* Buttons & chips */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 10px 22px;
    border: 1px solid var(--ink); border-radius: var(--radius);
    background: var(--ink); color: var(--ivory);
    font: inherit; font-weight: 600; letter-spacing: .02em; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover { background: #3a3437; color: var(--ivory); }
.button-rose { background: var(--rose); border-color: var(--rose); color: var(--white); }
.button-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: var(--white); }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--taupe); }
.button-ghost:hover { background: var(--white); border-color: var(--ink); color: var(--ink); }
.button-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: var(--white); }
.button-whatsapp:hover { background: var(--whatsapp-dark); border-color: var(--whatsapp-dark); color: var(--white); }
.button-small { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.button[disabled], .button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border: 1px solid var(--taupe); border-radius: var(--radius);
    background: var(--white); color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip-count { color: var(--muted); font-size: .78rem; }

/* Hero */
.hero { padding: 32px 0 12px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } .hero { padding: 56px 0 24px; } }
.hero-title { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.15; margin-bottom: .35em; }
.hero-lead { color: var(--muted); max-width: 30em; font-size: 1.05rem; }
.hero .button-row { margin: 20px 0 16px; }
.hero-mosaic { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .hero-mosaic { aspect-ratio: 5 / 4; } }
.hero-mosaic a { position: relative; overflow: hidden; background: var(--taupe); }
.hero-mosaic a:first-child { grid-row: span 2; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.hero-quote { border-left: 2px solid var(--rose); padding: 4px 0 4px 18px; font-family: var(--serif); font-size: 1.15rem; color: var(--muted); }

/* Sections */
.section { padding-top: 40px; padding-bottom: 8px; }
.section-tight { padding-top: 8px; padding-bottom: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-link { text-decoration: none; font-size: .92rem; white-space: nowrap; }
.section-more { text-align: center; margin-top: 24px; }
.section-subtitle { font-size: 1.15rem; }
.page-head { padding-top: 24px; padding-bottom: 8px; }
.page-head h1 { margin-bottom: .3em; }
.page-intro { color: var(--muted); max-width: 52em; }

/* Design grid: fixed 4:5 cards so nothing shifts while images load */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card { position: relative; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 4 / 5; background: var(--taupe); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-link:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 10px 2px 0; }
.card-title { font-family: var(--sans); font-size: .95rem; font-weight: 600; margin: 0 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { font-size: .8rem; color: var(--muted); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-price { font-size: .85rem; font-weight: 600; color: var(--ink); margin: 2px 0 0; }
.card-ai { position: absolute; left: 8px; top: 8px; background: rgba(40, 36, 38, .8); color: #fff; font-size: .68rem; padding: 2px 6px; letter-spacing: .04em; }
.fav-toggle {
    position: absolute; right: 8px; top: 8px; z-index: 2;
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: rgba(248, 246, 243, .92); color: var(--ink); cursor: pointer;
}
.fav-toggle svg { width: 18px; height: 18px; }
.fav-toggle[aria-pressed="true"] { color: var(--rose); }
.fav-toggle[aria-pressed="true"] path { fill: currentColor; }
.no-js .fav-toggle, .no-js [data-js-only] { display: none; }
.card-select { position: absolute; left: 8px; bottom: 76px; z-index: 2; display: flex; align-items: center; gap: 6px; background: rgba(248, 246, 243, .95); padding: 4px 8px; font-size: .8rem; cursor: pointer; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); background: var(--white); border: 1px solid var(--line); }
.empty-state h2 { color: var(--ink); }

/* Filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 14px; align-items: flex-end; scrollbar-width: thin; }
.filter { flex: none; display: flex; flex-direction: column; gap: 2px; }
.filter-label { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.filter select {
    font: inherit; font-size: .9rem; color: var(--ink);
    background: var(--white); border: 1px solid var(--taupe); border-radius: var(--radius);
    padding: 7px 30px 7px 10px; min-height: 38px; max-width: 160px;
    -webkit-appearance: none; appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px; background-repeat: no-repeat;
}
.filter-reset { flex: none; font-size: .9rem; padding: 8px 4px; white-space: nowrap; }
.js .filter-submit { display: none; }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 8px; }
.page { min-width: 40px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--taupe); background: var(--white); color: var(--ink); text-decoration: none; text-align: center; }
.page-current { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.page-disabled { color: var(--taupe); }
.page-gap { border: 0; background: none; }
@media (max-width: 599px) { .page-number, .page-gap { display: none; } }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 16px 0 0; font-size: .82rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 4px; color: var(--taupe); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rose-text); }

/* Design page */
.design { display: grid; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 900px) { .design { grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 48px; align-items: start; } }
.design-gallery { margin: 0 -16px; }
@media (min-width: 900px) { .design-gallery { margin: 0; position: sticky; top: 90px; } }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; background: var(--taupe); }
.gallery-slide img { width: 100%; max-height: 80vh; object-fit: contain; }
.gallery-hint { text-align: center; font-size: .8rem; margin-top: 8px; }
.design-title { margin-top: 4px; font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.design-facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 16px 0 4px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.design-facts dt { font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.design-facts dd { margin: 0; font-weight: 600; }
.design-price { font-family: var(--serif); font-size: 1.4rem; }
.design-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.design-description { margin-top: 16px; }
.fine-print { font-size: .8rem; color: var(--muted); }
.rights-note { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0; }

.artist-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.artist-card:hover { border-color: var(--ink); color: var(--ink); }
.artist-card strong, .artist-card .muted { display: block; }
.artist-card .muted { font-size: .85rem; }
.artist-card-arrow { margin-left: auto; color: var(--rose); }
.artist-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--taupe); color: var(--ink); font-family: var(--serif); font-weight: 700; }
.artist-avatar-large { width: 72px; height: 72px; font-size: 1.6rem; }
.artist-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0 0 8px; }

.cta-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line);
}
.cta-bar strong, .cta-bar .muted { display: block; line-height: 1.3; }
.cta-bar .muted { font-size: .8rem; }
@media (max-width: 899px) { body:has(.cta-bar) { padding-bottom: 76px; } }
@media (min-width: 900px) { .cta-bar { display: none; } }

/* Profiles */
.profile { display: flex; gap: 16px; align-items: flex-start; padding-top: 20px; padding-bottom: 8px; }
.profile h1 { margin-bottom: .2em; }
.profile-bio { max-width: 44em; white-space: pre-line; }

/* Region & link lists */
.region-columns { display: grid; gap: 24px; }
@media (min-width: 700px) { .region-columns { grid-template-columns: repeat(3, 1fr); } }
.region-columns-wide { padding-bottom: 32px; }
.region-title { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.link-list a { text-decoration: none; color: var(--ink); }
.link-list a:hover { color: var(--rose-text); }
.district-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.district-list a { display: block; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.district-list a:hover { border-color: var(--ink); }
.district-list strong, .district-list .muted { display: block; }
.district-list .muted { font-size: .85rem; }
.inline-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* Tool and guide cards */
.tool-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 20px; background: var(--ivory); color: var(--ink); text-decoration: none; }
.tool-card:hover { background: var(--white); color: var(--ink); }
.tool-number { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--rose); }
.tool-card h3 { font-size: 1.2rem; margin: 0; }
.tool-card p { color: var(--muted); margin: 0; }
.tool-card .tool-link { margin-top: auto; padding-top: 8px; color: var(--rose-text); font-weight: 600; font-size: .92rem; }

.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }
.guide-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; background: var(--ivory); color: var(--ink); text-decoration: none; }
.guide-list a strong { font-family: var(--serif); font-size: 1.1rem; }
.guide-list a span { color: var(--muted); font-size: .9rem; }
.guide-list a:hover { background: var(--white); }

.pro-band { background: var(--ink); color: var(--ivory); margin-top: 48px; padding: 48px 0; }
.pro-band h2 { color: var(--ivory); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
.pro-band p { color: #cfc6c0; max-width: 36em; }
.pro-band .eyebrow { color: var(--taupe); }
.pro-band .button { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.pro-band .button:hover { background: var(--white); }
.pro-band .button-ghost { background: transparent; color: var(--ivory); border-color: #6b6266; }
.pro-band .button-ghost:hover { border-color: var(--ivory); background: transparent; color: var(--ivory); }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); padding: 24px 20px; }
@media (min-width: 700px) { .form-card { padding: 32px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field legend { font-size: .88rem; font-weight: 600; }
.field small { color: var(--muted); font-weight: 400; }
.field textarea { min-height: 110px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.option-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.option-chips label { position: relative; }
.option-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option-chips span { display: inline-block; padding: 6px 12px; border: 1px solid var(--taupe); background: var(--white); font-size: .9rem; cursor: pointer; }
.option-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.option-chips input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rose); flex: none; }
.field-error, .form-errors { color: #a1162d; font-size: .85rem; }
.form-errors { background: #fbeef0; border: 1px solid #efc6cd; padding: 12px 16px; margin-bottom: 16px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-section-title { font-size: 1.1rem; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.form-section-title:first-child { border-top: 0; padding-top: 0; }
.notice { background: var(--white); border-left: 3px solid var(--rose); padding: 12px 16px; margin: 16px 0; }

/* Request card */
.request-card { background: var(--white); border: 1px solid var(--line); max-width: 640px; }
.request-card-head { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.request-card-refs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); }
.request-card-refs.single { grid-template-columns: 1fr; }
.request-card-refs a, .request-card-refs figure { margin: 0; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--taupe); }
.request-card-refs img { width: 100%; height: 100%; object-fit: cover; }
.request-card-body { padding: 18px 20px 22px; }
.request-card dl { display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; margin: 0; }
.request-card dt { color: var(--muted); font-size: .85rem; }
.request-card dd { margin: 0; font-weight: 600; }
.request-card-notes { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); white-space: pre-line; }
.request-card-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; }
.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .picker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.picker-grid .card-body { display: none; }
.picker-grid .card-select { bottom: 8px; }

/* Caption tool */
.result-block { background: var(--white); border: 1px solid var(--line); padding: 16px; margin-top: 12px; }
.result-block pre { white-space: pre-wrap; font-family: var(--sans); margin: 0 0 10px; }
.result-block h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; color: var(--muted); }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefits li { background: var(--ivory); padding: 18px 20px; }
.benefits strong { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 4px; }
.benefits span { color: var(--muted); font-size: .92rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: 12px; border-top: 2px solid var(--ink); }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--display); font-size: 1.6rem; color: var(--rose); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.prose { max-width: 720px; padding-top: 16px; padding-bottom: 40px; }
.prose h2 { margin-top: 1.8em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.4em; }
.prose img { margin: 1em 0; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.2em 0; padding-left: 16px; border-left: 2px solid var(--rose); color: var(--muted); }

.error-page { text-align: center; padding-top: 64px; padding-bottom: 64px; }

/* Footer */
.site-footer { margin-top: 56px; padding: 40px 0 28px; background: var(--white); border-top: 1px solid var(--line); font-size: .9rem; }
main:has(> .pro-band:last-child) + .site-footer { margin-top: 0; }
.footer-inner { display: grid; gap: 24px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr repeat(3, 1fr); } }
.footer-tagline { color: var(--muted); margin-top: 8px; max-width: 22em; }
.footer-col h2 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--rose-text); }
.footer-legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-legal p { margin: 0 0 4px; }

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

/* Homepage intent input */
.intent-form { margin: 20px 0 8px; }
.intent-form textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--white); border: 1px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; resize: vertical; min-height: 84px; }
.intent-form textarea:focus { outline: 2px solid var(--rose); outline-offset: 1px; }
.intent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.intent-photo { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 16px; border: 1px dashed var(--taupe); background: var(--white); cursor: pointer; font-size: .92rem; }
.intent-photo:hover { border-color: var(--ink); }
.intent-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.intent-consent { margin-top: 10px; }
.intent-examples { margin-top: 10px; }
.intent-examples .chip { cursor: pointer; font: inherit; font-size: .88rem; }
.intent-continue { margin: 8px 0 0; }
.intent-continue a { text-decoration: none; }

/* Nail plan */
.plan-head { padding-top: 24px; padding-bottom: 8px; }
.plan-head h1 { margin-bottom: .2em; }
.plan-steps { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 14px 0 0; padding: 0; font-size: .85rem; color: var(--muted); counter-reset: step; }
.plan-steps li { counter-increment: step; display: flex; align-items: center; gap: 6px; }
.plan-steps li::before { content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--taupe); border-radius: 50%; font-size: .72rem; }
.plan-steps li.is-done::before { background: var(--taupe); border-color: var(--taupe); color: var(--ink); content: "✓"; }
.plan-steps li.is-current { color: var(--ink); font-weight: 600; }
.plan-steps li.is-current::before { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.plan-guest { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.plan-grid { display: grid; gap: 16px; padding-bottom: 32px; }
@media (min-width: 1000px) { .plan-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .plan-side { position: sticky; top: 90px; } }
.plan-main, .plan-side { display: grid; gap: 16px; min-width: 0; }
.plan-card { background: var(--white); border: 1px solid var(--line); padding: 18px 16px; min-width: 0; }
@media (min-width: 700px) { .plan-card { padding: 22px 24px; } }
.plan-card h2 { font-size: 1.2rem; margin-bottom: .6em; }
.plan-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-card-head h2 { margin-bottom: .4em; }
.link-button { border: 0; background: none; padding: 0; font: inherit; font-size: .88rem; color: var(--rose-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.pref-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 4px 5px 10px; border: 1px solid var(--ink); background: var(--ivory); font-size: .92rem; }
.pref-chip button { border: 0; background: none; width: 26px; height: 26px; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.pref-chip button:hover { color: var(--ink); }
.pref-chip.is-pending { border-style: dashed; border-color: var(--rose); }
.pref-chip.is-excluded { border-color: var(--taupe); color: var(--muted); }
.pref-type { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.pref-source { font-size: .68rem; color: var(--white); background: var(--rose); padding: 1px 5px; }
.pref-pending { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.pref-pickers { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.plan-fields { margin-bottom: 12px; }
.budget-row { display: flex; align-items: center; gap: 8px; }
.budget-row input { min-width: 0; }
.refine-row { display: flex; gap: 8px; margin-bottom: 10px; }
.refine-row input { flex: 1; min-width: 0; font: inherit; border: 1px solid var(--taupe); padding: 10px 12px; border-radius: var(--radius); background: var(--white); }
.refine-row input:focus { outline: none; border-color: var(--ink); }
.plan-card .chips .chip { cursor: pointer; font: inherit; font-size: .88rem; }
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.board-item { margin: 0; border: 1px solid var(--line); background: var(--ivory); }
.board-item.is-selected { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.board-media { position: relative; aspect-ratio: 4 / 5; background: var(--taupe); overflow: hidden; }
.board-media img { width: 100%; height: 100%; object-fit: cover; }
.board-concept { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding: 12px; background: var(--ink); color: var(--ivory); font-family: var(--serif); }
.board-badge { position: absolute; right: 6px; top: 6px; background: var(--rose); color: var(--white); font-size: .72rem; padding: 2px 6px; }
.board-item figcaption { display: grid; gap: 4px; padding: 8px; font-size: .85rem; }
.board-item figcaption input { width: 100%; font: inherit; font-size: .8rem; border: 1px solid var(--line); padding: 5px 6px; background: var(--white); }
.board-actions { display: flex; gap: 12px; }
.upload-row { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.concept { position: relative; padding: 16px; background: var(--ivory); border: 1px solid var(--line); }
.concept .card-ai { position: static; display: inline-block; margin-bottom: 8px; }
.concept h3 { font-size: 1.15rem; }
.concept-versions { margin-top: 12px; font-size: .88rem; }
.concept-versions ul { margin: 8px 0 0; padding-left: 18px; }
.plan-results .grid { gap: 20px 12px; }
.rec { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rec-reasons { margin: 0; font-size: .78rem; color: var(--muted); }
.plan-next .button { width: 100%; }
.plan-danger { padding: 12px 16px; }
.plan-danger .link-button { color: var(--muted); }


/* ---- Artist services & verification ---- */
.section-subheading { font-size: 1.15rem; margin: 0 0 .75rem; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 640px; }
.service-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.service-list small { display: block; font-size: .8rem; }
.service-list strong { white-space: nowrap; }
.small { font-size: .8rem; }
.badge-verified { display: inline-block; vertical-align: middle; margin-left: .4rem; padding: .15rem .55rem; border-radius: 999px; background: #f5e6ea; color: var(--rose-text); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }

/* ---- Plan marketplace: matches, quotes, booking ---- */
.match-list, .quote-list { display: grid; gap: 12px; margin: 12px 0; }
.match, .quote, .booking-card { border: 1px solid var(--line); padding: 12px; background: var(--ivory); }
.match.is-selected { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
.match header, .quote header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.match-score { font-size: .85rem; color: var(--rose-text); font-weight: 600; }
.match-works { display: flex; gap: 6px; margin: 8px 0; }
.match-works img { width: 64px; height: 80px; object-fit: cover; display: block; }
.match-reasons { margin: 0 0 8px; padding-left: 1.1em; font-size: .85rem; color: var(--muted); }
.match-explain { font-size: .85rem; margin: 8px 0 12px; }
.match-explain summary { cursor: pointer; color: var(--rose-text); }
.match-explain ul { padding-left: 1.1em; margin: 6px 0; }
.request-form { margin-top: 8px; }
.quote-price { font-size: 1.1rem; font-weight: 700; }
.quote dl { margin: 6px 0; font-size: .85rem; }
.quote dl div { display: flex; gap: 8px; }
.quote dt { color: var(--muted); min-width: 4em; }
.quote dd { margin: 0; }
.quote-message { font-size: .9rem; margin: 6px 0 10px; white-space: pre-line; }
.invite-status { list-style: none; padding: 0; margin: 8px 0 12px; font-size: .85rem; }
.invite-status li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.next-options { padding-left: 1.1em; margin: 8px 0 12px; }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; background: var(--line); }
.status-confirmed, .status-completed { background: #dcf3e3; color: #14532d; }
.status-requested { background: #fdf0d5; color: #7a4a00; }
.booking-card p { margin: 0 0 8px; }

/* ---- My NAIL ---- */
.my-highlight { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 14px 16px; background: #f5e6ea; border: 1px solid var(--line); }
.my-list { list-style: none; padding: 0; margin: 0; }
.my-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.my-plan { margin-bottom: 8px; }
.my-past { margin-top: 12px; }
.my-past summary { cursor: pointer; color: var(--rose-text); }
.my-past-row { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.diary-entry { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.diary-entry img { width: 72px; height: 90px; object-fit: cover; flex: none; }
.diary-body { display: grid; gap: 4px; min-width: 0; }
.diary-body p { margin: 0; }
.diary-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.tag-pick { margin-bottom: 8px; }
.chip-check { cursor: pointer; }
.chip-check input { margin: 0 4px 0 0; }
.welcome-strip { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); display: grid; gap: 6px; }
.welcome-strip a { color: var(--rose-text); }
.welcome-for-you { display: flex; gap: 6px; }
.welcome-for-you img { width: 56px; height: 70px; object-fit: cover; display: block; }
.concept-image { margin: 10px 0; }
.concept-image img { width: 100%; max-width: 320px; height: auto; display: block; }
.concept-image figcaption { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ---- Plan guide (first-time help + next step) ---- */
.plan-guide-wrap { margin-top: 14px; display: grid; gap: 8px; }
.plan-next-step { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0; padding: 10px 14px; background: #f5e6ea; border: 1px solid var(--line); }
.plan-next-label { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--rose-text); }
.plan-next-step a { color: var(--rose-text); font-weight: 600; margin-left: auto; }
.plan-guide { border: 1px solid var(--line); background: var(--white); padding: 10px 14px; }
.plan-guide summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.plan-guide-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: guide; }
.plan-guide-steps li { counter-increment: guide; display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; font-size: .88rem; color: var(--muted); }
.plan-guide-steps li::before { content: counter(guide); grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--taupe); font-size: .75rem; color: var(--ink); }
.plan-guide-steps li strong { color: var(--ink); }
.plan-guide-steps li.is-done::before { content: "✓"; background: var(--taupe); border-color: var(--taupe); }
.plan-guide-steps li.is-current::before { background: var(--rose); border-color: var(--rose); color: var(--white); }
.plan-guide-steps li.is-current strong { color: var(--rose-text); }
.plan-guide-foot { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.plan-guide-foot a { color: var(--rose-text); }
@media (min-width: 760px) { .tool-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tool-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.intent-help { margin: 8px 0 0; font-size: .85rem; }
.intent-help a { color: var(--rose-text); }

/* ---- Last-minute slots (臨時空檔) ---- */
.flash-list { margin-bottom: 18px; }
.flash-list h2 small { font-size: .78rem; font-weight: 400; margin-left: 6px; }
.flash { border: 1px solid var(--rose); background: #fbf1f4; padding: 12px; margin-top: 10px; }
.flash header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; }
.flash-time { font-weight: 600; color: var(--rose-text); }
.flash-price { margin: 6px 0; font-size: 1.05rem; font-weight: 700; }
.flash-price small { font-weight: 400; }
.flash p { margin: 4px 0; }
.flash-optin { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; }
.flash-optin p { margin: 0 0 8px; }

/* ---- Homepage banner carousel (admin-managed; 1920×480 desktop, 1080×540 mobile) ---- */
.banner-carousel { position: relative; margin-top: 16px; }
.banner-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); background: var(--line); }
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 1; scroll-snap-align: start; }
@media (max-width: 640px) { .banner-mobile-tall .banner-slide { aspect-ratio: 2 / 1; } }
.banner-slide a, .banner-slide picture { display: block; height: 100%; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-ad { position: absolute; top: 8px; left: 8px; padding: 2px 6px; border-radius: 3px; background: rgb(0 0 0 / .55); color: #fff; font-size: .7rem; letter-spacing: .04em; pointer-events: none; }
.banner-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .85); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgb(0 0 0 / .15); }
.banner-prev { left: 26px; }
.banner-next { right: 26px; }
@media (max-width: 640px) { .banner-nav { display: none; } }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.banner-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgb(255 255 255 / .6); cursor: pointer; transition: width .2s; }
.banner-dots button[aria-current="true"] { width: 18px; background: #fff; }
