:root{--bg:#f4f7f5;--surface:#fff;--surface-muted:#eef3ef;--text:#10231a;--text-muted:#55635b;--border:#e1e8e3;--border-subtle:#eef3ef;--input-border:#c9d4cc;--input-bg:#fff;--primary:#04773a;--primary-hover:#035c2d;--on-primary:#fff;--brand:#06c755;--on-brand:#fff;--link:#04773a;--link-hover:#035c2d;--avatar-text:#035c2d;--focus:#06c755;--danger-text:#8a3a1e;--danger-bg:#fbeee8;--danger-solid:#a8401e;--danger-solid-hover:#8a3a1e;--on-danger:#fff;--exempt-bg:#eef0f7;--exempt-text:#36406b;--billed-bg:#e3f4e8;--billed-text:#1f5c33;--ending-bg:#fbf1d9;--ending-text:#6b4a00;--error:#b3261e;--shadow:0 1px 2px #10231a0a;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0e1612;--surface:#16211b;--surface-muted:#1d2a23;--text:#e6efe9;--text-muted:#9db0a4;--border:#2a3830;--border-subtle:#213029;--input-border:#3d5045;--input-bg:#111a15;--primary:#06c755;--primary-hover:#2ed576;--on-primary:#06210f;--brand:#06c755;--on-brand:#06210f;--link:#5fd894;--link-hover:#8fe5b4;--avatar-text:#8fe5b4;--focus:#5fd894;--danger-text:#f2a387;--danger-bg:#3a221a;--danger-solid:#e07a55;--danger-solid-hover:#f2a387;--on-danger:#2a120a;--exempt-bg:#252b45;--exempt-text:#c3cbf2;--billed-bg:#1c3a26;--billed-text:#8fe5b4;--ending-bg:#3a2f14;--ending-text:#f0cf7e;--error:#ff8a80;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#0e1612;--surface:#16211b;--surface-muted:#1d2a23;--text:#e6efe9;--text-muted:#9db0a4;--border:#2a3830;--border-subtle:#213029;--input-border:#3d5045;--input-bg:#111a15;--primary:#06c755;--primary-hover:#2ed576;--on-primary:#06210f;--brand:#06c755;--on-brand:#06210f;--link:#5fd894;--link-hover:#8fe5b4;--avatar-text:#8fe5b4;--focus:#5fd894;--danger-text:#f2a387;--danger-bg:#3a221a;--danger-solid:#e07a55;--danger-solid-hover:#f2a387;--on-danger:#2a120a;--exempt-bg:#252b45;--exempt-text:#c3cbf2;--billed-bg:#1c3a26;--billed-text:#8fe5b4;--ending-bg:#3a2f14;--ending-text:#f0cf7e;--error:#ff8a80;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root{font-family:"M PLUS 1p",system-ui,-apple-system,Segoe UI,sans-serif;font-size:15px;line-height:1.6}*,:before,:after{box-sizing:border-box}body{background:var(--bg);min-height:100vh;color:var(--text);-webkit-font-smoothing:antialiased;margin:0}h1,h2,h3{margin:0;line-height:1.3}a{color:var(--link)}a:hover{color:var(--link-hover)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}code{background:var(--surface-muted);border-radius:6px;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}.muted{color:var(--text-muted)}.error{color:var(--error)}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app-header{border-bottom:1px solid var(--border);background:var(--bg)}.app-header-inner{justify-content:space-between;align-items:center;gap:12px;max-width:1120px;margin:0 auto;padding:12px 16px;display:flex}.brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{background:var(--brand);width:36px;height:36px;color:var(--on-brand);border-radius:10px;flex:none;justify-content:center;align-items:center;display:flex}.brand-text{flex-direction:column;min-width:0;line-height:1.3;display:flex}.brand-title{font-size:17px;font-weight:700}.brand-subtitle{color:var(--text-muted);font-size:12px}.app-header-actions{align-items:center;gap:12px;display:flex}.header-account{color:var(--text-muted);overflow-wrap:anywhere;font-size:13px}@media (width<=600px){.brand-subtitle,.header-account{display:none}}.page{flex-direction:column;gap:24px;max-width:1120px;margin:0 auto;padding:32px 16px 64px;display:flex}.page>*,.card-grid>*,.stack>*{min-width:0}.page-narrow{max-width:440px}.page-liff{gap:16px;max-width:560px;padding-top:20px}.page-title-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:20px;display:flex}.page-title{letter-spacing:.02em;font-size:30px;font-weight:800}.page-liff .page-title{font-size:24px}.page-lead{color:var(--text-muted);margin:6px 0 0}.back-link{color:var(--text-muted);align-items:center;gap:6px;font-size:14px;text-decoration:none;display:inline-flex}.back-link:hover{color:var(--link)}.status-message{text-align:center;color:var(--text-muted);margin:24px 0}.status-message.error{color:var(--error)}section,.card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;padding:20px}section>h2,.card-title{margin-bottom:12px;font-size:17px;font-weight:700}.card-flush{padding:0;overflow:hidden}.card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));align-items:start;gap:20px;display:grid}.card-grid>.span-all{grid-column:1/-1}.stack{flex-direction:column;gap:20px;display:flex}.section-note{color:var(--text-muted);margin:0 0 12px;font-size:14px}.liff-warning{background:var(--danger-bg);color:var(--danger-text);border-radius:10px;margin:0;padding:12px 14px;font-size:14px;font-weight:700}.stats{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:16px;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;gap:2px;padding:16px 20px;display:flex}.stat-label{color:var(--text-muted);font-size:13px}.stat-value{font-variant-numeric:tabular-nums;font-size:30px;font-weight:500;line-height:1.2}.stat-unit{color:var(--text-muted);margin-left:4px;font-size:14px}button{min-height:40px;font:inherit;color:var(--text);border:1px solid var(--input-border);cursor:pointer;white-space:nowrap;background:0 0;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-size:14px;font-weight:500;display:inline-flex}button:hover:not(:disabled){background:var(--surface-muted)}button:disabled{opacity:.5;cursor:default}button.btn-primary,a.btn-primary{background:var(--primary);min-height:44px;color:var(--on-primary);border-color:#0000;padding:0 20px;font-size:15px;font-weight:700}button.btn-primary:hover:not(:disabled),a.btn-primary:hover{background:var(--primary-hover)}a.btn-primary{white-space:nowrap;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:6px;text-decoration:none;display:inline-flex}a.btn-primary:hover{color:var(--on-primary)}button.btn-danger{color:var(--danger-text);border-color:var(--border)}button.btn-danger:hover:not(:disabled){background:var(--danger-bg)}button.btn-danger-solid{background:var(--danger-solid);min-height:44px;color:var(--on-danger);border-color:#0000;padding:0 20px;font-weight:700}button.btn-danger-solid:hover:not(:disabled){background:var(--danger-solid-hover)}.modal-backdrop{z-index:100;background:#00000080;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal{border:1px solid var(--border);background:var(--surface);width:min(440px,100%);max-height:calc(100vh - 32px);color:var(--text);border-radius:16px;padding:24px;overflow-y:auto;box-shadow:0 12px 32px #00000040}.modal-title{margin:0 0 12px;font-size:18px}.modal-body p{margin:0 0 8px;line-height:1.6}.modal-field{gap:6px;margin-top:16px;font-size:14px;display:grid}.modal-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:20px;display:flex}button.btn-small{border-radius:8px;min-height:32px;padding:0 10px;font-size:13px}button.btn-block{width:100%}button.icon-button{border-color:var(--border);width:40px;padding:0}button.btn-pill{border-radius:999px}a.btn-link{border:1px solid var(--border);min-height:36px;color:var(--text);white-space:nowrap;border-radius:8px;align-items:center;padding:0 14px;font-size:13px;text-decoration:none;display:inline-flex}a.btn-link:hover{background:var(--surface-muted);color:var(--text)}label{color:var(--text-muted);flex-direction:column;gap:6px;font-size:13px;font-weight:500;display:flex}label.checkbox-label{color:var(--text);cursor:pointer;flex-direction:row;align-items:center;gap:10px;font-size:15px}label.checkbox-label input[type=checkbox]{width:20px;height:20px;min-height:0;accent-color:var(--primary)}.field{flex-direction:column;gap:6px;display:flex;position:relative}.field-label-row{align-items:center;gap:2px;display:flex}.field-help{display:flex}button.field-help-button{width:24px;min-height:24px;color:var(--text-muted);border:none;border-radius:999px;padding:0}button.field-help-button[aria-expanded=true]{color:var(--primary)}.field-help-panel{z-index:10;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:10px;padding:10px 12px;font-size:13px;font-weight:400;position:absolute;top:24px;left:0;right:0;box-shadow:0 6px 20px #00000024}.field-help-panel ul{margin:0;padding-left:1.2em}.field-help-panel li+li{margin-top:4px}.field-help-panel ul+a{margin-top:8px;display:inline-block}input,select{width:100%;min-height:44px;font:inherit;color:var(--text);background:var(--input-bg);border:1px solid var(--input-border);border-radius:10px;padding:0 14px;font-size:15px}input::placeholder{color:var(--text-muted);opacity:.8}input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:0;border-color:#0000}.stacked-form{flex-direction:column;gap:16px;display:flex}form.inline-form,div.inline-form{align-items:stretch;gap:8px;display:flex}.inline-form>input{flex:1;min-width:0}.inline-form>button{flex:none}.form-actions{justify-content:flex-end;gap:8px;display:flex}.toolbar-group{flex-wrap:wrap;flex:auto;align-items:center;gap:12px;display:flex}.toolbar{border-bottom:1px solid var(--border-subtle);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.search-field{border:1px solid var(--border);background:var(--bg);min-height:40px;color:var(--text-muted);border-radius:10px;flex-direction:row;flex:0 320px;align-items:center;gap:8px;padding:0 12px;display:flex}.search-field:focus-within{outline:2px solid var(--focus)}.search-field input{background:0 0;border:none;outline:none;min-height:38px;padding:0;font-size:14px}.table-scroll{position:relative;overflow-x:auto}.table-footer{border-top:1px solid var(--border-subtle);min-height:56px;color:var(--text-muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:10px 20px;font-size:13px;display:flex}.empty-row{text-align:center;color:var(--text-muted);padding:32px 20px}.customer-cell{align-items:center;gap:12px;display:flex}.customer-cell a{color:var(--text);font-weight:700;text-decoration:none}.customer-cell a:hover{color:var(--link);text-decoration:underline}.avatar{background:var(--surface-muted);width:36px;height:36px;color:var(--avatar-text);border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:700;display:flex}.row-actions{gap:6px;display:inline-flex}a.icon-link{border:1px solid var(--border);width:36px;height:36px;color:var(--text);border-radius:8px;justify-content:center;align-items:center;display:inline-flex}a.icon-link:hover{background:var(--surface-muted);color:var(--link)}.pager{align-items:center;gap:8px;display:flex}.pager button.icon-button{border-radius:8px;width:36px;min-height:36px}.pager-status{text-align:center;font-variant-numeric:tabular-nums;min-width:48px;color:var(--text)}table{border-collapse:collapse;width:100%}th{text-align:left;letter-spacing:.04em;color:var(--text-muted);padding:10px 12px;font-size:12px;font-weight:500}td{text-align:left;border-top:1px solid var(--border-subtle);vertical-align:middle;padding:12px;font-size:14px}th:first-child,td:first-child{padding-left:20px}th:last-child,td:last-child{padding-right:20px}section table th:first-child,section table td:first-child{padding-left:0}section table th:last-child,section table td:last-child{padding-right:0}section.card-flush table th:first-child,section.card-flush table td:first-child{padding-left:20px}section.card-flush table th:last-child,section.card-flush table td:last-child{padding-right:20px}td.numeric{font-variant-numeric:tabular-nums;color:var(--text-muted)}td.actions,th.actions{white-space:nowrap;text-align:left;width:1%}.badge{background:var(--surface-muted);color:var(--text-muted);border-radius:999px;padding:2px 10px;font-size:12px;font-weight:700;display:inline-block}.badge-exempt{background:var(--exempt-bg);color:var(--exempt-text)}.badge-billed{background:var(--billed-bg);color:var(--billed-text)}.badge-ending{background:var(--ending-bg);color:var(--ending-text)}.badge-unpaid{background:var(--danger-solid);color:var(--on-danger)}.badge-owner{background:var(--billed-bg);color:var(--billed-text);margin-left:8px}.billing-status{flex-wrap:wrap;align-items:center;gap:6px;display:inline-flex}.status-note{color:var(--text-muted);font-weight:400}.detail-heading{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.detail-heading .avatar{width:48px;height:48px;font-size:20px}.detail-badges{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.info-list{grid-template-columns:max-content 1fr;gap:6px 16px;margin:0 0 16px;font-size:14px;display:grid}.info-list dt{color:var(--text-muted)}.info-list dd{overflow-wrap:anywhere;margin:0}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.section-head h2{font-size:17px;font-weight:700}.count{color:var(--text-muted);margin-left:6px;font-size:13px;font-weight:500}.empty-note{color:var(--text-muted);margin:4px 0 12px;font-size:14px}ul.notification-list{margin:0;padding:0;list-style:none}li.notification-item{border-top:1px solid var(--border-subtle);gap:16px;padding:12px 0;display:flex}li.notification-item:first-child{border-top:none;padding-top:0}.notification-time{width:92px;color:var(--text-muted);font-variant-numeric:tabular-nums;flex:none;font-size:13px}.notification-body{flex-direction:column;gap:6px;min-width:0;display:flex}.notification-subject{overflow-wrap:anywhere;margin:0;font-weight:700}.notification-meta{flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:13px;display:flex}@media (width<=600px){li.notification-item{flex-direction:column;gap:4px}}ul.keyword-list{flex-wrap:wrap;gap:8px;margin:0 0 12px;padding:0;list-style:none;display:flex}li.keyword-item{background:var(--surface-muted);border:1px solid var(--border);border-radius:999px;align-items:center;gap:4px;padding:4px 4px 4px 14px;font-size:14px;font-weight:500;display:inline-flex}li.keyword-item.readonly{padding:4px 14px}li.keyword-item button{min-height:28px;color:var(--danger-text);border:none;border-radius:999px;padding:0 10px;font-size:12px}li.keyword-item button:hover:not(:disabled){background:var(--danger-bg)}ul.member-list{margin:0 0 12px;padding:0;list-style:none}li.member-item{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:10px 0;display:flex}li.member-item:last-child{border-bottom:none}.member-name{font-weight:700}.member-joined{color:var(--text-muted);font-size:13px;display:block}.section-note.invite-result{color:var(--text);margin:12px 0 0}.login-card{margin-top:24px;padding:28px 24px}.login-card .page-title{margin-bottom:4px;font-size:24px}.login-card form{margin-top:20px}
