:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #292722; background: #f7f5f2; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, input:focus-visible { outline: 3px solid #d97757; outline-offset: 2px; }
[hidden] { display: none !important; }
.app-shell { min-height: 100dvh; display: flex; justify-content: center; }
.main-panel { display: flex; flex-direction: column; width: 100%; min-height: 100dvh; background: #fffefa; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e7e3dd; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: #d97757; font-size: 20px; }
.brand-name { font-weight: 700; font-size: 18px; }
.topbar-title { color: #74716b; overflow-wrap: anywhere; }
.content { flex: 1; }
.page-view { max-width: 900px; margin: auto; padding: 32px 20px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
h1 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
p { color: #74716b; line-height: 1.55; }
.eyebrow { color: #b85d40; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 30px; color: #74716b; font-size: 12px; }
.section-heading h2 { color: #292722; font-size: 16px; }
.data-card { border: 1px solid #e7e3dd; border-radius: 14px; overflow: hidden; }
.participant-row { padding: 17px; border-bottom: 1px solid #e7e3dd; overflow-wrap: anywhere; }
.participant-row:last-child { border-bottom: 0; }
.member-name { font-weight: 700; }
.member-handle { color: #74716b; font-size: 12px; line-height: 1.5; margin-top: 4px; }
.participant-usage { margin-top: 12px; font-size: 14px; }
.limit-form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.limit-form label { display: grid; gap: 6px; color: #5f5b55; font-size: 13px; }
.limit-form input { width: 180px; max-width: 100%; min-height: 44px; padding: 9px; border: 1px solid #837c73; border-radius: 8px; background: #fff; color: #292722; font-size: 16px; }
.limit-form button { min-height: 44px; }
@media (max-width: 480px) {
  .page-heading { align-items: flex-start; flex-direction: column; }
  .limit-form label, .limit-form input, .limit-form button { width: 100%; }
}
.primary-button, .secondary-button { padding: 10px 14px; border: 1px solid #ddd7d0; border-radius: 9px; background: #fffefa; color: #292722; font-weight: 600; }
.primary-button { background: #292722; border-color: #292722; color: #fff; }
.file-row { padding: 17px; color: #74716b; }
.guest-card { max-width: 500px; margin: 12vh auto; padding: 32px 24px; text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 20px; color: #b85d40; background: #f5e5dd; border-radius: 17px; font-size: 26px; }
.bottom-nav { display: flex; justify-content: center; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #e7e3dd; }
.bottom-nav-item { min-width: 100px; padding: 10px; color: #74716b; border: 0; border-radius: 9px; background: transparent; }
.bottom-nav-item.is-active { color: #b85d40; background: #f5e5dd; font-weight: 700; }
.toast { position: fixed; right: 16px; bottom: 80px; max-width: calc(100% - 32px); padding: 12px 15px; color: white; background: #292722; border-radius: 9px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.is-visible { opacity: 1; }
.chat-messages { display: grid; gap: 12px; margin: 20px 0; }
.chat-message { padding: 14px; border-radius: 12px; background: #f5f3ef; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.user { background: #f5e5dd; }
.chat-form, .chat-form label { display: grid; gap: 8px; }
.chat-form { gap: 14px; }
.chat-form select, .chat-form textarea { width: 100%; padding: 10px; border: 1px solid #837c73; border-radius: 8px; font: inherit; }
.chat-form select:focus-visible, .chat-form textarea:focus-visible { outline: 3px solid #d97757; outline-offset: 2px; }
