:root {
    color-scheme: light;
    --community-ink: #28252a;
    --community-muted: #69636a;
    --community-line: #e7e2e6;
    --community-paper: #fff;
    --community-canvas: #faf8fa;
    --community-pink: #b84e72;
    --community-pink-dark: #8f3455;
    --community-pink-soft: #fff1f5;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--community-ink);
    background: var(--community-canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--community-canvas); line-height: 1.7; }
a { color: var(--community-pink-dark); text-underline-offset: .18em; }
a:hover { color: var(--community-ink); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
.community-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; padding: .75rem max(1rem, calc((100vw - 1080px) / 2)); background: var(--community-paper); border-bottom: 1px solid var(--community-line); }
.community-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--community-ink); font-size: 1.05rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.community-brand span { color: var(--community-pink-dark); font-size: .78rem; }
.community-nav { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.community-nav a, .community-nav-button { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .65rem; border: 0; border-radius: 8px; background: transparent; color: var(--community-ink); font-size: .9rem; text-decoration: none; cursor: pointer; }
.community-nav a:hover, .community-nav-button:hover { background: var(--community-pink-soft); }
.community-nav-form { margin: 0; }
.community-page { width: min(1080px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; min-height: 60vh; }
.community-narrow { width: min(700px, 100%); margin: 0 auto; }
.community-breadcrumb { display: flex; gap: .55rem; align-items: center; margin: 0 0 1rem; color: var(--community-muted); font-size: .88rem; }
.community-breadcrumb a { color: var(--community-pink-dark); }
.community-heading { margin: 1.5rem 0; }
.community-heading h1, .community-card h1 { margin: .1rem 0 .4rem; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.3; }
.community-eyebrow { margin: 0 0 .25rem; color: var(--community-pink-dark); font-size: .75rem; font-weight: 750; letter-spacing: .1em; }
.community-card { margin: 0 0 1rem; padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--community-line); border-radius: 14px; background: var(--community-paper); box-shadow: 0 3px 12px rgb(40 37 42 / 3%); }
.community-card h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.community-card h3 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.community-form { display: grid; gap: .55rem; margin: 1rem 0; }
.community-form label { margin-top: .25rem; font-weight: 650; }
.community-form input:not([type=checkbox]), .community-form select, .community-form textarea { width: 100%; min-height: 46px; padding: .65rem .75rem; border: 1px solid #cfc7ce; border-radius: 8px; background: #fff; color: var(--community-ink); }
.community-form textarea { min-height: 96px; resize: vertical; }
.community-form input:focus, .community-form select:focus, .community-form textarea:focus, .community-button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #e8a7bd; outline-offset: 2px; }
.community-checkbox { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.community-checkbox input { width: 20px; height: 20px; }
.community-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1rem; border: 1px solid var(--community-pink); border-radius: 9px; background: var(--community-pink); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.community-button:hover { background: var(--community-pink-dark); border-color: var(--community-pink-dark); color: #fff; }
.community-button--secondary { background: #fff; color: var(--community-pink-dark); }
.community-button--secondary:hover { background: var(--community-pink-soft); color: var(--community-pink-dark); }
.community-button--small { min-height: 44px; padding: .4rem .75rem; font-size: .9rem; }
.community-button--text { border-color: transparent; background: transparent; color: var(--community-muted); }
.community-alert { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid #eac8d3; border-radius: 8px; background: var(--community-pink-soft); }
.community-alert--error { border-color: #d98a8a; background: #fff4f2; color: #762d2d; }
.community-alert p { margin: 0; }
.community-empty { padding: 1rem; border-radius: 8px; background: #f6f3f6; color: var(--community-muted); }
.community-footnote { color: var(--community-muted); font-size: .87rem; }
.community-status-pill { display: inline-block; margin: .25rem 0; padding: .2rem .7rem; border-radius: 99px; background: var(--community-pink-soft); color: var(--community-pink-dark); font-size: .82rem; font-weight: 700; }
.community-list, .community-updates { display: grid; gap: .5rem; margin: .75rem 0; padding: 0; list-style: none; }
.community-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 54px; padding: .45rem .6rem; border: 1px solid var(--community-line); border-radius: 8px; }
.community-list li form { margin: 0; }
.community-add-form { padding-top: .5rem; border-top: 1px solid var(--community-line); }
.community-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.community-actions form { margin: 0; }
.community-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 1rem; align-items: start; }
.community-updates li { padding: .7rem .8rem; border-left: 3px solid #e8a7bd; background: #fbf8fa; }
.community-updates p { margin: .2rem 0; }
.community-announcement-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-updates time { color: var(--community-muted); font-size: .82rem; }
.community-list-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.community-demo-banner { padding: .6rem 1rem; background: #fff2cf; color: #60470b; text-align: center; font-size: .9rem; font-weight: 700; }
.community-footer { display: flex; justify-content: center; gap: 1rem; padding: 1.5rem; border-top: 1px solid var(--community-line); background: var(--community-paper); font-size: .88rem; }
.community-skip-link { position: absolute; left: -10000px; top: auto; }
.community-skip-link:focus { left: 1rem; top: 1rem; z-index: 2; padding: .7rem; background: #fff; }
@media (max-width: 700px) {
    .community-header { align-items: flex-start; flex-direction: column; gap: .25rem; padding: .65rem 1rem; }
    .community-nav { justify-content: flex-start; margin-left: -.45rem; }
    .community-nav a, .community-nav-button { padding-inline: .55rem; font-size: .85rem; }
    .community-page { width: min(100% - 1.25rem, 680px); margin-top: 1rem; }
    .community-dashboard-grid { grid-template-columns: 1fr; }
    .community-footer { flex-wrap: wrap; }
}
