:root { color-scheme: light; --ink: #253336; --muted: #607174; --line: #d6e0dc; --green: #27624f; --bg: #f4f7f5; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.7; }
a { color: var(--green); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, main, footer { max-width: 1160px; margin: auto; padding: 24px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { font-size: 21px; font-weight: 700; text-decoration: none; }
.badge { background: #fff3d4; color: #674400; border: 1px solid #e8ca80; border-radius: 20px; padding: 4px 14px; font-size: 14px; font-weight: 700; }
main { min-height: 70vh; padding-top: 32px; }
h1 { font-size: 28px; margin: 0; } p { margin: 0 0 12px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .18em; margin: 0; }
.heading, .list-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.search { display: flex; align-items: flex-end; gap: 18px; padding: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search .field:first-child { flex: 2; min-width: 200px; } .search .field:nth-child(2) { flex: 1; min-width: 140px; }
label { font-weight: 600; }
input, textarea { width: 100%; padding: 10px 12px; border: 1px solid #99adaa; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #74b9a3; outline-offset: 2px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green); text-decoration: none; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
button:hover, .button:hover { background: #edf4f0; }
.primary { background: var(--green); border-color: var(--green); color: #fff; } .primary:hover { background: #1b4b3b; }
.actions, .form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.list-meta { margin-bottom: 12px; color: var(--muted); } .list-meta p { margin: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 800px; text-align: left; }
th { background: #eef3f0; font-size: 14px; color: var(--muted); }
th, td { padding: 16px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; } .member-name { font-weight: 600; min-width: 140px; }
.small { padding: 6px 14px; } .empty { text-align: center; padding: 48px 24px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.form-panel { padding: 28px; max-width: 850px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.wide { grid-column: 1 / -1; } .form-actions { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }
.required { font-size: 12px; background: #fbe7e4; color: #8c2f25; padding: 2px 7px; border-radius: 4px; margin-left: 8px; }
.notice { padding: 16px 20px; border-radius: 8px; margin-bottom: 20px; } .notice p:last-child { margin-bottom: 0; }
.success { background: #e4f3e9; color: #205137; border: 1px solid #afd3bb; }
.error { background: #fff0ee; color: #8c2f25; border: 1px solid #e4b6b0; }
.field-error { margin: 0; color: #8c2f25; font-size: 14px; } [aria-invalid="true"] { border-color: #a23e32; }
.muted, footer { color: var(--muted); } footer { font-size: 14px; }
@media (max-width: 640px) { .header-inner, main, footer { padding: 18px 16px; } .brand { font-size: 18px; } h1 { font-size: 24px; } .search, .form-panel { padding: 18px; } .search .field { flex-basis: 100% !important; } .form-grid { grid-template-columns: 1fr; } .heading { align-items: flex-start; } .pagination { gap: 10px; flex-wrap: wrap; } }
/* Account navigation and forms share the existing responsive layout. */
.account-nav { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.account-nav form { margin: 0 0 0 auto; }
.auth-panel { max-width: 640px; margin: 24px auto; }
.auth-panel .field { margin-bottom: 18px; }
.field select { width: 100%; padding: 12px; border: 1px solid #bfc9c5; border-radius: 6px; font: inherit; background: white; }
.setup-code { overflow-wrap: anywhere; user-select: all; font-size: 1.1rem; }
.selection-checkbox { width: 22px; height: 22px; cursor: pointer; }
.invite-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
@media (max-width: 600px) { .account-nav { gap: 10px; } .account-nav form { margin-left: 0; } }
