:root{color-scheme:light;--ink:#203b30;--muted:#687b71;--green:#296a4e;--border:#dfe7df;--space:24px}*{box-sizing:border-box}body{margin:0;background:#f4f6f1;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;line-height:1.6;-webkit-text-size-adjust:100%}main{width:100%;max-width:1080px;margin:auto;padding:28px 24px 48px}header{display:flex;justify-content:space-between;align-items:center;gap:16px}.brand{font-size:15px;font-weight:800;letter-spacing:-.025em;overflow-wrap:anywhere}.brand b{color:var(--green);margin-right:6px}header button{flex-shrink:0}.art{height:190px;border-radius:20px;overflow:hidden;margin:24px 0}.art img{width:100%;height:100%;object-fit:cover;display:block}.card{min-width:0;background:white;border:1px solid var(--border);border-radius:20px;padding:var(--space);margin-bottom:20px;box-shadow:0 3px 16px #203b3004}.narrow{width:100%;max-width:480px;margin:0 auto}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}.grid>.card{margin:0}.ledger-card{grid-column:1/-1}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:24px;line-height:1.4;letter-spacing:-.04em;margin:0 0 12px}h2{font-size:18px;line-height:1.4;letter-spacing:-.02em;margin:0 0 16px}h3{font-size:15px;margin:24px 0 12px}p{margin:0 0 20px}.muted,footer{font-size:14px;color:var(--muted);line-height:1.75}.tabs{display:flex;gap:8px;margin:24px 0}.tabs button{flex:1}.tabs .active,.primary{background:var(--green);color:white;border-color:var(--green)}button{min-height:44px;max-width:100%;cursor:pointer;border:1px solid #cfded2;background:white;color:#355946;border-radius:10px;padding:10px 16px;font:inherit;font-size:14px;font-weight:700;line-height:1.45;overflow-wrap:anywhere;touch-action:manipulation}button:hover{filter:brightness(.97)}button:disabled{opacity:.5;cursor:not-allowed}.primary{width:100%;margin-top:24px}.ghost{background:transparent}label{display:block;font-size:14px;font-weight:650;margin:20px 0 10px}input,select,textarea{display:block;width:100%;min-width:0;max-width:100%;min-height:46px;border:1px solid #cbd8cd;border-radius:10px;padding:11px 12px;font:inherit;font-size:16px;background:white;color:var(--ink);line-height:1.5}input[type=date],input[type=month],input[type=datetime-local],input[type=time]{appearance:none;-webkit-appearance:none;min-height:48px}input::-webkit-date-and-time-value{text-align:left;min-height:24px}input[type=checkbox]{display:inline-block;width:20px;min-width:20px;height:20px;min-height:20px;margin:0;accent-color:var(--green);flex-shrink:0}select{padding-right:32px;text-overflow:ellipsis}textarea{min-height:100px;resize:vertical}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.table-wrap:focus-visible{outline:3px solid #8ec6a6;outline-offset:3px}.field-note{font-size:12px;color:var(--muted);margin:8px 0 20px;line-height:1.6}#authHint{margin:14px 0 0}#authForm>.primary{margin-top:28px}.line{padding:16px 0;border-top:1px solid #edf1ec;line-height:1.75;overflow-wrap:anywhere}.line:last-child{padding-bottom:0}.line strong{color:var(--ink)}.line button{margin:12px 8px 0 0}.line select{margin:12px 0 0;max-width:280px}.line label{display:flex;gap:12px;align-items:center;margin:0;padding:4px 0;font-weight:500}.line .danger{color:#a4473e}.button-group{display:flex;flex-wrap:wrap;gap:10px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.section-heading h2{margin-bottom:8px}.section-heading p{margin:0}.section-heading>button{flex-shrink:0}.month-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:24px}.month-filter>label{width:100%;margin:0}.month-filter>input,.month-filter>div{width:210px;max-width:100%}.month-filter>div label{margin:0 0 10px}.balance-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 28px}.balance-summary>div{min-width:0;border:1px solid #e3ebe1;background:#f7f9f5;border-radius:12px;padding:16px}.balance-summary dt{font-size:13px;color:var(--muted);margin-bottom:8px}.balance-summary dd{font-size:20px;font-weight:750;line-height:1.4;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}.balance-summary>div:last-child{background:#eaf3ec;border-color:#d2e6d6}.balance-summary>div:last-child dd{color:var(--green)}.table-wrap{min-width:0;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:20px 0;border:1px solid var(--border);border-radius:12px}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}caption{text-align:left;font-size:15px;font-weight:700;padding:16px;background:white;color:var(--ink)}th,td{padding:14px 16px;border-bottom:1px solid #e6ece4;white-space:nowrap;line-height:1.6}th{background:#f6f8f3;font-weight:650;font-size:13px;color:#5a6f60}tbody tr:last-child td{border-bottom:0}tfoot td{border-top:1px solid var(--border);border-bottom:0;font-weight:700;background:#f6f8f3}.expense-wrap{margin-bottom:0}.expense-table{table-layout:fixed}.expense-table th:first-child,.expense-table td:first-child{width:76px}.expense-table th:last-child,.expense-table td:last-child{width:145px;text-align:right;font-variant-numeric:tabular-nums}.expense-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}.expense-table .empty-state{text-align:center!important;width:auto!important;white-space:normal;padding:32px 16px;color:var(--muted)}.expense-table tfoot td:first-child{width:auto}#notice:not(:empty){padding:14px 18px;background:#fff3db;border:1px solid #f1e3c7;border-radius:12px;margin-bottom:20px;line-height:1.6;font-size:14px;overflow-wrap:anywhere}footer{margin-top:36px;text-align:center;font-size:12px}.terms{margin-top:28px;padding:22px;background:#f6f9f3;border:1px solid #dce7d8;border-radius:14px}.terms h2{font-size:16px;margin:0 0 16px}.terms ul{padding-left:20px;margin:0;line-height:1.85;font-size:14px}.terms li+li{margin-top:12px}.terms-agree{display:flex;align-items:flex-start;gap:12px;line-height:1.65;margin:24px 0 0}.terms-agree input{margin-top:3px}dialog{border:1px solid var(--border);border-radius:20px;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 40px);overflow-y:auto;color:var(--ink);padding:24px;box-shadow:0 16px 80px #11271d33}dialog::backdrop{background:#11271d99;backdrop-filter:blur(3px)}#directoryDialog{max-width:860px}#directoryDialog>.muted{margin-bottom:0}.dialog-actions{display:flex;gap:12px;margin-top:28px}.dialog-actions button{flex:1;margin:0}.dialog-actions .primary{width:auto;margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
@media(max-width:760px){:root{--space:22px}.grid{grid-template-columns:minmax(0,1fr);gap:16px}.art{height:150px}.balance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.line select{max-width:100%}}
@media(max-width:480px){:root{--space:20px}main{padding:20px 16px 36px}.brand{font-size:12px;line-height:1.5;max-width:210px}.art{height:128px;border-radius:16px;margin:20px 0}.card{border-radius:16px}h1{font-size:22px}header button{padding:9px 12px;font-size:12px}.section-heading{gap:12px;flex-wrap:wrap;margin-bottom:20px}.section-heading>button{width:100%}.month-filter>input,.month-filter>div{width:100%}.month-filter>button{width:100%}.balance-summary{gap:10px;margin-bottom:24px}.balance-summary>div{padding:14px 12px}.balance-summary dd{font-size:18px}.balance-summary dt{font-size:12px}.expense-table th,.expense-table td{padding:12px 10px;font-size:13px}.expense-table th:first-child,.expense-table td:first-child{width:56px}.expense-table th:last-child,.expense-table td:last-child{width:104px}.expense-table caption{font-size:14px;padding:14px 12px}.terms{padding:18px}dialog{padding:20px;border-radius:16px}.button-group>button{flex:1 1 140px}}

#eventAdd{margin-bottom:16px}

.expense-table td:last-child{white-space:normal;overflow-wrap:anywhere}

/* Keep related choices aligned, including long names on small screens. */
.attendance-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}
.request-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.role-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;margin-top:16px}
.line .attendance-actions button,.line .request-actions button,.line .role-actions button{width:100%;margin:0;padding:10px 12px}
.line .role-actions select{width:100%;max-width:none;margin:0}
.role-actions button{white-space:nowrap}
.line .dues-check{display:flex;align-items:flex-start;gap:12px;min-height:44px;padding:10px 0}
.dues-check input{margin-top:3px}.dues-check span{min-width:0;overflow-wrap:anywhere}

.event-management{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.line .event-management button{width:100%;margin:0}

#eventDeleteDialog .danger{color:#a4473e;border-color:#dfb8b2}

/* Account settings and inline validation */
input[readonly]{background:#edf1f5;color:#536176;cursor:default;border-color:#d4dce5}
.form-error{color:#b42318;line-height:1.65;overflow-wrap:anywhere}
.form-error:empty{display:none}
#resetPasswordOpen{margin-top:16px}
#resetIssueCode{font-family:ui-monospace,monospace;font-size:14px}
.role-actions{flex-wrap:wrap;gap:10px}
.role-actions button{white-space:normal}
@media(max-width:600px){.role-actions{display:grid;grid-template-columns:1fr 1fr}.role-actions select{grid-column:1/-1}.role-actions button{width:100%;margin:0}}
.role-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.role-actions select{grid-column:1/-1}
