:root {
  --bg: #f6f7f9; --panel: #fff; --text: #1d2330; --muted: #6b7280; --line: #e3e6eb;
  --accent: #1f4fd1; --accent-weak: #e8eefc; --danger: #c62828; --ok: #2e7d32;
  font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; background: #111827; color: #fff; }
.brand { font-weight: 700; } .brand span { font-weight: 400; opacity: .7; margin-left: 6px; }
.user-area { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: var(--accent-weak); color: var(--accent); }
.badge.admin { background: #fde68a; color: #7c4a03; }
.app { max-width: 1100px; margin: 24px auto; padding: 0 16px; }
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.panel h2 { font-size: 16px; margin: 0 0 12px; }
.orglist button { display: block; width: 100%; text-align: left; margin-bottom: 4px; }
.orglist button.active { background: var(--accent-weak); border-color: var(--accent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { border: none; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 8px 12px; }
.tabs button.active { border-bottom-color: var(--accent); color: var(--accent); font-weight: 600; }
button { font: inherit; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
button.danger { color: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
form.inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; }
.muted { color: var(--muted); }
.copy { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; background: var(--bg); padding: 8px; border-radius: 6px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: #111827; color: #fff; padding: 10px 16px; border-radius: 8px; max-width: 420px; }
.toast.error { background: var(--danger); }
.center { text-align: center; padding: 60px 0; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
aside form.inline input { flex: 1; min-width: 0; }
.account-page { max-width: 640px; margin: 0 auto; }
.profile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; flex: none; overflow: hidden; background: var(--accent-weak); color: var(--accent); font-size: 28px; font-weight: 600; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { display: grid; gap: 2px; flex: 1; min-width: 160px; overflow-wrap: anywhere; }
h3 { font-size: 14px; margin: 16px 0 8px; }
.small { font-size: 12px; }
.license { border-top: 1px solid var(--line); padding: 12px 0; }
.license:first-of-type { border-top: none; padding-top: 4px; }
.license-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 6px; }
.meter { margin: 8px 0; font-size: 14px; }
.meter-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.meter-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.meter-bar.warn span { background: #d97706; }
.meter-bar.full span { background: var(--danger); }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }
.stat { display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; min-width: 140px; }
.stat strong { font-size: 20px; font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; font-size: 13px; margin: 4px 0; }
.copy-row { display: flex; gap: 8px; align-items: stretch; margin: 4px 0 8px; }
.copy-row .copy { flex: 1; min-width: 0; }
.copy-button { white-space: nowrap; }
.copy-button.done { color: var(--ok); border-color: var(--ok); }
.invite-form { display: grid; gap: 8px; }
.seat-picks { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; display: grid; gap: 6px; }
.seat-picks legend { font-size: 13px; color: var(--muted); padding: 0 4px; }
.seat-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.invite-result { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; margin-bottom: 12px; background: var(--accent-weak); }
.product-link { margin-left: auto; font-size: 13px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.product-link:hover { text-decoration: underline; }
