:root {
  --ink: #202623;
  --muted: #717772;
  --accent: #df321e;
  --line: #eceee9;
  --paper: #fffefb;
  --surface: #f5f6f1;
  --glass: rgba(255, 254, 251, .84);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft Yahei', sans-serif;
  color: var(--ink);
  background: #eeefeb;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button { color: inherit; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .4; cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.shell { max-width: 480px; margin: auto; min-height: 100dvh; background: var(--paper); }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 78px; padding: 0 20px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.wordmark { padding: 0; font-size: 28px; font-weight: 750; letter-spacing: -1.5px; }
.wordmark::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--accent); }
.city-label { font-size: 12px; color: var(--muted); letter-spacing: .2px; }
.publish-header { display: flex; align-items: center; gap: 5px; padding: 10px 15px; border-radius: 24px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }
.publish-header .icon { width: 15px; height: 15px; }
.main { padding: 0 18px 112px; }
.feed { padding-top: 0; }
.activity-tabs { display: flex; gap: 28px; margin: 0 0 19px; }
.activity-tabs button { position: relative; padding: 8px 0 14px; font-size: 23px; letter-spacing: -.5px; color: var(--muted); }
.activity-tabs .active { color: var(--ink); font-weight: 650; }
.activity-tabs .active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 22px; height: 3px; border-radius: 4px; background: var(--accent); }
.search-box { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; margin-bottom: 18px; border: 1px solid #edf0e9; border-radius: 16px; background: var(--surface); color: var(--muted); }
.search-box input { width: 100%; min-width: 0; border: 0; background: none; outline: 0; font-size: 14px; color: var(--ink); }
.search-box input::placeholder { color: #858c85; }
.search-box .icon { width: 18px; height: 18px; }
.search-box > span { display: none; }
.location-tools { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.browse-switch { display: flex; gap: 12px; white-space: nowrap; }
.browse-switch button { padding: 4px 0; color: var(--muted); font-size: 13px; }
.browse-switch .active { color: var(--ink); font-weight: 650; }
.scope-picker { display: flex; align-items: center; gap: 4px; border-left: 1px solid #dfe3dc; padding: 0 0 0 12px; max-width: 145px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope-picker .icon { width: 13px; height: 13px; }
.my-building { margin-left: auto; display: flex; gap: 3px; align-items: center; padding: 5px 0; font-size: 11px; white-space: nowrap; color: var(--muted); }
.my-building .icon { width: 13px; height: 13px; }
.filter-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 2px; }
.filters { display: flex; gap: 16px; align-items: center; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { min-height: 38px; padding: 5px 0; font-size: 12px; white-space: nowrap; color: var(--muted); }
.filter.active { color: var(--accent); font-weight: 650; }
.filter-line select { flex-shrink: 0; background: none; border: 0; font-size: 10px; color: var(--muted); max-width: 74px; padding: 2px 0; }
.list-label { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 17px; font-size: 11px; color: var(--muted); }
.today-toggle { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.today-toggle input { margin: 0; width: 14px; height: 14px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; align-items: start; }
.meal-card { display: block; width: 100%; min-width: 0; padding: 0; text-align: left; }
.meal-cover { position: relative; aspect-ratio: .96; overflow: hidden; border-radius: 18px; background: var(--surface); }
.meal-cover img, .detail-photo img, .dish-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(1.08) saturate(1.2); }
.cover-location { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 9px; border-radius: 12px; font-size: 10px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255, 254, 251, .9); border: 1px solid #ffffffb3; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.photo-caption { position: absolute; right: 9px; top: 9px; padding: 3px 6px; border-radius: 8px; font-size: 8px; color: #fff; background: #0006; }
.text-cover { padding: 22px 16px 48px; border: 1px solid #e8ebe3; }
.menu-label { color: var(--muted); font-size: 10px; }
.cover-menu-icon { display: block; margin-bottom: 12px; color: var(--accent); }
.cover-menu-icon .icon { width: 24px; height: 24px; }
.text-cover p { font-size: 17px; line-height: 1.65; font-weight: 550; margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body { padding: 12px 1px 0; }
.meal-time { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.meal-time b { font-weight: 550; color: var(--ink); margin-left: 4px; }
.card-body h3 { font-size: 15px; line-height: 1.55; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.role-tags { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 7px; min-height: 20px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 10px; margin-top: 10px; }
.card-host { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 11px; }
.host-avatar { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 21px; height: 21px; border-radius: 50%; background: #edf0e8; color: #596654; font-size: 10px; }
.seat-note { color: var(--muted); white-space: nowrap; font-size: 10px; }
.seat-note.joined { color: var(--accent); }
.site-footer { text-align: center; padding: 32px 0 0; font-size: 10px; color: #969d94; }
.glass-defs { position: fixed; width: 0; height: 0; pointer-events: none; }
.mobile-nav {
  position: fixed; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(448px, calc(100% - 28px)); padding: 7px; border-radius: 38px; z-index: 30;
  background: linear-gradient(135deg, #ffffff70, #ffffff35 48%, #ffffff52);
  border: 1px solid #ffffffb3;
  box-shadow: 0 8px 28px #1d2b191f, 0 1px 4px #1d2b1912, inset 0 1px 1px #fffffff2, inset 0 -1px 2px #ffffff80;
  backdrop-filter: blur(8px) saturate(1.45) brightness(1.12);
  -webkit-backdrop-filter: blur(8px) saturate(1.45) brightness(1.12);
  isolation: isolate; touch-action: none; user-select: none; -webkit-user-select: none;
}
.nav-items { display: flex; position: relative; }
.nav-lens {
  position: absolute; top: 0; bottom: 0; left: calc(var(--nav-index) * 25%); width: 25%; border-radius: 29px;
  background: linear-gradient(150deg, #ffffff9c, #ffffff38 52%, #ffffff66);
  border: 1px solid #ffffffc7;
  box-shadow: 0 2px 8px #26332212, inset 0 1px 2px #fff, inset 0 -1px 2px #ffffffb3;
  transition: left .36s cubic-bezier(.2,.8,.2,1), transform .22s ease, box-shadow .22s ease; pointer-events: none;
}
.mobile-nav.pressed .nav-lens { transition: none; transform: scale(1.045,1.08); box-shadow: 0 4px 16px #26332220, inset 0 1px 3px #fff; }
.mobile-nav.pressed { cursor: grabbing; }
.mobile-nav button { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 0; min-height: 58px; border-radius: 29px; font-size: 10px; font-weight: 500; color: #424d3e; text-shadow: 0 1px 3px #ffffffeb, 0 0 8px #ffffffb3; }
.mobile-nav .icon { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px #ffffff99); }
.mobile-nav .active { color: var(--accent); }
@supports (backdrop-filter: url("#nav-refraction")) {
  .mobile-nav { backdrop-filter: url("#nav-refraction") blur(5px) saturate(1.4) brightness(1.12); }
}
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 12px 20px; border-radius: 24px; color: #fff; background: var(--accent); font-size: 13px; font-weight: 600; }
.primary:hover, .publish-header:hover { background: #d83120; }
.primary .icon { width: 16px; height: 16px; }
.secondary { min-height: 42px; background: transparent; border: 1px solid #dfe4d9; border-radius: 22px; padding: 10px 17px; font-size: 12px; }
.secondary:hover { background: var(--surface); }
.danger { color: #bd3125; }
.empty { grid-column: 1/-1; text-align: center; padding: 65px 12px; }
.empty h3 { font-size: 18px; font-weight: 600; }
.empty p { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 12px; }
.empty button { margin-top: 24px; }
.page-heading { padding: 15px 0 25px; }
.page-heading h1 { font-size: 25px; font-weight: 650; letter-spacing: -.5px; }
.page-heading p { font-size: 12px; color: var(--muted); margin-top: 10px; }
.page-tabs, .square-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); }
.page-tabs button, .square-tabs button { padding: 12px 0 15px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.page-tabs .active, .square-tabs .active { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.my-list { display: grid; }
.activity-section { padding-top: 27px; }
.activity-section > h2 { font-size: 12px; font-weight: 500; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.activity-section > h2 small { font-size: 10px; }
.page-tabs small { font-size: 11px; margin-left: 5px; color: var(--muted); font-weight: 400; }
.my-meal { display: flex; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.activity-date { width: 67px; flex-shrink: 0; padding-top: 2px; }
.activity-date b { font-size: 12px; font-weight: 600; line-height: 1.6; display: block; }
.activity-date span { display: block; font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.activity-copy { min-width: 0; flex: 1; }
.my-meal-top { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; }
.my-meal-top h3 { font-size: 15px; line-height: 1.6; flex: 1; min-width: 130px; }
.my-meal-top h3 button { padding: 0; text-align: left; font-weight: 600; }
.activity-status { font-size: 10px; color: var(--muted); white-space: nowrap; }
.activity-status.confirmed { color: var(--accent); }
.activity-place { font-size: 12px; margin-top: 9px; line-height: 1.6; }
.activity-people { font-size: 10px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.activity-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.activity-actions button { font-size: 11px; min-height: 36px; padding: 5px 0; color: var(--muted); }
.activity-actions .group-link { display: flex; gap: 7px; align-items: center; color: var(--ink); font-weight: 500; }
.activity-actions .icon { width: 14px; height: 14px; }
.status { font-size: 10px; white-space: nowrap; padding: 5px 8px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); }
.my-meal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f1f2ee; color: #596254; flex-shrink: 0; font-size: 15px; }
.profile-panel { padding: 25px 0 0; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-top .avatar { width: 58px; height: 58px; font-size: 22px; background: transparent; border: 1px solid #dce1d9; }
.profile-identity { flex: 1; min-width: 0; }
.profile-top h1 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.profile-top p { font-size: 11px; color: var(--muted); margin-top: 7px; line-height: 1.7; }
.edit-profile { min-height: 44px; padding: 0 4px; color: var(--muted); font-size: 12px; }
.profile-stats { display: flex; padding: 29px 0 27px; margin: 14px 0 0; border-bottom: 1px solid var(--line); }
.profile-stats button { flex: 1; padding: 0; text-align: center; }
.profile-stats button + button { border-left: 1px solid var(--line); }
.profile-stats b { display: block; font-size: 25px; line-height: 1.2; font-weight: 500; letter-spacing: -.8px; }
.profile-stats small { display: block; font-size: 11px; color: var(--muted); margin-top: 10px; }
.profile-menu { margin-top: 30px; }
.profile-section-heading { display: flex; align-items: center; justify-content: space-between; }
.profile-section-heading h2 { font-size: 17px; font-weight: 600; }
.profile-section-heading button { display: flex; gap: 5px; align-items: center; font-size: 11px; min-height: 36px; color: var(--muted); padding: 0; }
.profile-section-heading .icon, .profile-row .icon { width: 14px; height: 14px; color: var(--muted); }
.menu-preview { display: flex; width: 100%; text-align: left; flex-direction: column; gap: 13px; padding: 17px 0 24px; }
.menu-preview span { font-size: 14px; }
.menu-preview small { font-size: 11px; color: var(--muted); }
.profile-menu-empty { font-size: 12px; color: var(--muted); padding: 17px 0 23px; }
.profile-row { display: flex; width: 100%; align-items: center; text-align: left; gap: 12px; min-height: 64px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.profile-row > span { font-size: 14px; white-space: nowrap; }
.profile-row > small { font-size: 11px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin-left: auto; }
.profile-row > .icon { margin-left: auto; }
.profile-row > small + .icon { margin-left: 0; }
.profile-links { margin-top: 19px; }
.skill-entry { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; padding: 24px 0; border-bottom: 1px solid var(--line); }
.skill-entry b { font-size: 17px; font-weight: 600; }
.skill-entry small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.local-tools { margin-top: 32px; color: var(--muted); }
.local-tools summary { cursor: pointer; font-size: 11px; padding: 10px 0; }
.local-tools > div { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 12px; }
.local-tools button { font-size: 11px; padding: 5px 0; }
.local-tools p { font-size: 10px; line-height: 1.9; margin-top: 10px; }
.demo-notice { font-size: 11px; color: var(--muted); line-height: 1.9; padding: 22px 0 0; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: center; padding: 24px; background: #1c271b66; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal { width: min(560px, 100%); max-height: 92dvh; overflow: auto; position: relative; border-radius: 26px; background: var(--paper); box-shadow: 0 24px 80px #14220a2b; }
.modal.small { max-width: 440px; }
.modal.wide { max-width: 600px; }
.modal-close { position: absolute; right: 16px; top: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #ffffffcf; border: 1px solid #fff; box-shadow: 0 2px 8px #172c0b0d; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #525c4c; border-radius: 50%; font-size: 22px; z-index: 4; }
.modal-heading { padding: 30px 24px 14px; }
.modal-heading h2 { font-size: 23px; font-weight: 650; padding-right: 30px; letter-spacing: -.4px; }
.modal-heading p { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
.form-content { padding: 12px 24px 30px; }
.detail-photo { height: 260px; position: relative; }
.detail-photo > span { position: absolute; left: 18px; bottom: 15px; color: #fff; background: #0006; padding: 5px 8px; font-size: 10px; border-radius: 9px; }
.detail-content { padding: 26px 24px; }
.detail-title-row { display: flex; justify-content: space-between; gap: 14px; }
.detail-title-row h2 { font-size: 24px; line-height: 1.5; font-weight: 650; letter-spacing: -.5px; }
.detail-sub { font-size: 13px; color: var(--muted); line-height: 1.8; margin-top: 9px; }
.detail-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 23px 0; }
.detail-meta span { display: flex; align-items: center; gap: 6px; }
.detail-meta .icon { width: 16px; height: 16px; }
.prep-count { display: flex; align-items: baseline; gap: 6px; border-bottom: 1px solid var(--line); padding-bottom: 20px; font-size: 12px; color: var(--muted); }
.prep-count b { font-size: 28px; color: var(--ink); font-weight: 550; }
.prep-count > span:last-child { margin-left: auto; color: var(--accent); }
.detail-desc { font-size: 14px; color: #515a4d; line-height: 1.9; padding: 19px 0 10px; }
.detail-content h3 { font-size: 16px; margin: 24px 0 8px; }
.slot { display: flex; gap: 11px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.slot-copy { flex: 1; min-width: 0; }
.slot strong { font-size: 14px; font-weight: 600; }
.slot p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 6px; overflow-wrap: anywhere; }
.detail-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.detail-bottom small { font-size: 10px; color: var(--muted); }
.detail-content > p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 8px 0; }
.plain-note { font-size: 12px; line-height: 1.9; color: var(--muted); margin: 15px 0; overflow-wrap: anywhere; }
.full { grid-column: 1/-1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; }
.field { display: block; font-size: 13px; color: #515a4d; }
.field input, .field textarea, .field select { display: block; width: 100%; min-width: 0; margin-top: 9px; border: 1px solid #e5e9df; border-radius: 14px; padding: 13px 14px; min-height: 47px; font-size: 13px; color: var(--ink); background: #f8f9f5; }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.8; }
.field small { display: block; font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.form-divider { margin: 28px 0 18px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.need-list { display: grid; gap: 20px; }
.need-row { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 15px; }
.role-checks { display: flex; gap: 17px; flex-wrap: wrap; font-size: 13px; color: #515a4d; }
.role-checks label { display: flex; align-items: center; gap: 6px; }
.role-checks input, .member-actions input { margin: 0; }
.check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.8; margin: 22px 0; }
.check-row input { margin-top: 3px; }
.venue-fields .field { margin-top: 18px; }
.venue-fields .field:first-child { margin-top: 0; }
.form-error { font-size: 13px; line-height: 1.8; color: #bd3125; margin: 14px 0; min-height: 1em; }
.form-error:empty { display: none; }
.profile-panel .primary[type=submit] { margin-top: 20px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-footer small { font-size: 11px; line-height: 1.7; color: var(--muted); }
.form-footer .primary { white-space: nowrap; }
.dorm-list, .start-options { display: grid; }
.dorm-option { display: flex; align-items: center; gap: 15px; padding: 20px 0; border-bottom: 1px solid var(--line); text-align: left; }
.dorm-option b { min-width: 72px; font-size: 13px; font-weight: 600; }
.dorm-option span { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.7; }
.dorm-option .icon { width: 15px; }
.district-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.district-options button { padding: 12px 3px; }
.start-options > button { text-align: left; padding: 24px 0; border-bottom: 1px solid var(--line); }
.start-options b { display: block; font-size: 22px; font-weight: 600; }
.start-options span { display: block; font-size: 12px; color: var(--muted); margin-top: 9px; }
.guide-step { display: flex; gap: 14px; font-size: 13px; line-height: 1.8; margin: 22px 0; }
.guide-step b { display: block; font-size: 14px; margin-bottom: 6px; }
.guide-step p { color: var(--muted); }
.guide-number { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; background: var(--surface); border-radius: 50%; font-size: 12px; }
.name-link { font-size: inherit; font-weight: inherit; padding: 0; text-decoration: underline; text-decoration-color: #d4d9ce; text-underline-offset: 4px; }
.host-profile, .linked-activity { display: flex; align-items: center; gap: 9px; padding: 12px 0; font-size: 12px; color: var(--muted); }
.host-profile .icon, .linked-activity .icon { width: 14px; height: 14px; }
.linked-activity { color: var(--accent); text-align: left; }
.square-tabs { justify-content: space-between; gap: 12px; }
.square-scope { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 3px; font-size: 12px; color: var(--muted); }
.square-scope label { display: flex; align-items: center; gap: 7px; }
.square-scope input { margin: 0; }
.square-scope button { font-size: 12px; color: var(--muted); padding: 5px 0; }
.square-scope .active { color: var(--accent); }
.square-post { padding: 25px 0; border-bottom: 1px solid var(--line); }
.post-author { display: flex; align-items: center; gap: 11px; }
.post-author strong { font-size: 13px; font-weight: 600; }
.post-author p { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.post-time { margin-left: auto; font-size: 10px; color: var(--muted); white-space: nowrap; text-align: right; }
.post-time small { display: block; font-size: 9px; margin-top: 5px; }
.post-body { display: block; width: 100%; text-align: left; padding: 0; margin: 17px 0 12px; font-size: 15px; line-height: 1.9; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post-body.full { display: block; overflow: visible; }
.post-topic { font-size: 11px; color: var(--muted); }
.post-reply-preview { display: block; width: 100%; text-align: left; font-size: 12px; color: var(--muted); line-height: 1.8; padding: 10px 13px; background: var(--surface); margin-top: 14px; border-radius: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-reply-preview b { font-weight: 500; color: #515a4d; }
.post-actions { display: flex; align-items: center; gap: 28px; margin-top: 19px; }
.post-actions button { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); padding: 0; }
.post-actions .icon { width: 18px; height: 18px; }
.post-actions .liked { color: var(--accent); }
.post-actions .remove-post { margin-left: auto; font-size: 10px; }
.post-content-field { margin-top: 20px; }
.post-content-field textarea { min-height: 180px; }
.post-location { font-size: 11px; line-height: 1.8; color: var(--muted); margin-top: 12px; }
.post-detail .square-post { padding-top: 6px; }
.post-detail h3 { font-size: 16px; margin: 26px 0 14px; }
.post-comment { padding: 17px 0; border-bottom: 1px solid var(--line); }
.post-comment > div { display: flex; justify-content: space-between; font-size: 12px; gap: 15px; }
.post-comment b { font-weight: 500; }
.post-comment span { font-size: 10px; color: var(--muted); }
.post-comment p { font-size: 13px; line-height: 1.9; color: #515a4d; margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.no-comments { font-size: 12px; color: var(--muted); padding: 10px 0; }
.post-detail #comment-form { margin-top: 25px; }
.group-modal, .menu-modal, .skills-modal { display: flex; flex-direction: column; height: min(840px,94dvh); max-width: 480px; overflow: hidden; }
.skills-modal { height: auto; max-height: 94dvh; min-height: 360px; }
.group-heading { padding: 28px 22px 17px; flex-shrink: 0; }
.group-heading h2 { font-size: 20px; line-height: 1.6; padding-right: 35px; font-weight: 650; }
.group-heading > p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.group-progress { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 15px; }
.group-progress b { font-weight: 500; color: var(--accent); }
.group-tabs { display: flex; justify-content: space-around; border-bottom: 1px solid var(--line); flex-shrink: 0; padding: 0 16px; }
.group-tabs button { padding: 15px 6px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.group-tabs .active { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.group-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 22px 26px; overscroll-behavior: contain; }
.chat-list { padding-top: 8px; }
.system-message { text-align: center; font-size: 11px; color: #858d7e; line-height: 1.9; max-width: 92%; margin: 19px auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.diet-message { color: #5c6c52; border-left: 2px solid #99ac87; padding: 9px 12px; text-align: left; }
.chat-message { display: flex; gap: 10px; margin: 23px 0; align-items: flex-start; }
.chat-message > div { min-width: 0; max-width: 80%; }
.chat-message small { font-size: 10px; color: var(--muted); }
.chat-message p { background: #f3f4ef; border-radius: 4px 16px 16px 16px; padding: 11px 14px; line-height: 1.8; font-size: 13px; margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.self { flex-direction: row-reverse; }
.chat-message.self small { display: block; text-align: right; }
.chat-message.self p { background: #eeefe9; border-radius: 16px 4px 16px 16px; }
.chat-composer, .group-toolbar, .order-checkout, .menu-footer { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line); flex-shrink: 0; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.chat-composer { align-items: flex-end; flex-wrap: wrap; }
.chat-composer label { flex: 1; min-width: 0; }
.chat-composer textarea { display: block; width: 100%; min-height: 42px; max-height: 100px; resize: vertical; padding: 11px 13px; border: 1px solid #e5e9df; border-radius: 20px; background: #f5f6f1; font-size: 12px; line-height: 1.7; }
.chat-composer .primary { padding: 11px 17px; }
.chat-composer .form-error { width: 100%; display: none; }
.chat-composer .form-error:not(:empty) { display: block; margin: 0; }
.group-toolbar { padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
.group-toolbar > span { font-size: 11px; color: var(--muted); flex: 1; }
.group-toolbar .primary, .group-toolbar .secondary { padding: 10px 15px; font-size: 12px; }
.toolbar-text { font-size: 10px; color: var(--muted); margin-left: auto; padding: 5px 0; white-space: nowrap; }
.member-heading { font-size: 12px; color: var(--muted); margin: 26px 0 4px; }
.my-role-form { padding: 17px 0; border-bottom: 1px solid var(--line); }
.my-role-form h3 { font-size: 15px; margin-bottom: 20px; }
.my-role-form .secondary { margin-top: 20px; }
.my-role-form .form-error { min-height: 0; margin: 0; }
.member-row { display: flex; align-items: center; gap: 11px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.member-copy { flex: 1; min-width: 0; }
.member-copy strong { font-size: 14px; font-weight: 550; }
.member-copy small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 7px; }
.member-copy p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 7px; overflow-wrap: anywhere; }
.member-copy .diet-copy { color: #5c6c52; }
.member-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 11px; }
.member-actions label { display: flex; gap: 5px; align-items: center; }
.member-actions button { font-size: 10px; color: var(--muted); padding: 0; }
.member-mark { font-size: 10px; color: var(--muted); white-space: nowrap; }
.plan-summary { padding: 18px 0; }
.plan-summary h3 { font-size: 16px; margin-bottom: 18px; }
.plan-summary p, .commitment-row p { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 9px 0; overflow-wrap: anywhere; }
.commitment-row { padding: 20px 0; border-bottom: 1px solid var(--line); }
.commitment-row b { font-size: 13px; font-weight: 550; }
.lock-members { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lock-members p { font-size: 13px; margin-bottom: 14px; }
.lock-members span { float: right; color: var(--muted); font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.menu-modal .skills-modal { height: auto; max-height: 94dvh; min-height: 360px; }
.group-heading { border-bottom: 1px solid var(--line); }
.menu-layout { display: flex; flex: 1; min-height: 0; }
.menu-categories { display: flex; flex-direction: column; width: 78px; flex-shrink: 0; background: var(--surface); padding: 10px 0; }
.menu-categories button { font-size: 12px; text-align: center; padding: 19px 8px; color: var(--muted); position: relative; }
.menu-categories .active { background: var(--paper); color: var(--ink); font-weight: 600; }
.menu-categories .active::before { content: ''; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px; border-radius: 4px; background: var(--accent); }
.menu-dishes { flex: 1; min-width: 0; overflow-y: auto; padding: 5px 16px 25px; }
.dish-row { display: flex; gap: 13px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dish-thumb { position: relative; flex-shrink: 0; width: 78px; height: 85px; border-radius: 13px; overflow: hidden; background: #f0f3e9; }
.dish-thumb small { position: absolute; right: 4px; bottom: 4px; background: #0006; color: #fff; font-size: 8px; padding: 2px 4px; border-radius: 5px; }
.dish-letter { display: flex; justify-content: center; align-items: center; color: #718565; font-size: 30px; }
.dish-copy { flex: 1; min-width: 0; }
.dish-copy h3 { font-size: 15px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.dish-copy p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 7px; overflow-wrap: anywhere; }
.dish-copy > small { font-size: 9px; color: #8d9586; display: block; margin-top: 6px; }
.menu-footer { justify-content: flex-end; padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
.skills-tools { display: flex; gap: 12px; padding: 8px 22px 22px; border-bottom: 1px solid var(--line); }
.skills-body { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 22px 30px; }
.skill-category { font-size: 14px; font-weight: 600; margin: 26px 0 8px; }
.skill-row { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.skill-row > div { flex: 1; min-width: 0; }
.skill-row strong { font-size: 15px; font-weight: 550; }
.skill-row p { font-size: 11px; color: var(--muted); line-height: 1.8; margin: 8px 0; overflow-wrap: anywhere; }
.skill-row button { font-size: 11px; color: var(--muted); margin: 8px 17px 0 0; padding: 0; }
.skill-row label { display: flex; align-items: center; gap: 5px; font-size: 10px; white-space: nowrap; color: var(--muted); }
.removed-dishes { font-size: 12px; color: var(--muted); margin-top: 30px; }
.removed-dishes div { display: flex; justify-content: space-between; margin: 18px 0; }
.removed-dishes button { font-size: 12px; color: var(--muted); }
.dish-editor .field + .field { margin-top: 20px; }
.order-intro { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 12px 0 18px; }
.order-intro label { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.order-intro input { margin: 0; }
.cook-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 0 12px; white-space: nowrap; }
.cook-tabs button { font-size: 13px; color: var(--muted); padding: 7px 0; }
.cook-tabs .active { color: var(--ink); font-weight: 600; }
.group-menu { margin: 0 -22px; }
.group-menu .menu-categories { width: 68px; }
.group-menu .menu-dishes { padding: 0 16px 10px; }
.group-menu .dish-thumb { width: 68px; height: 77px; }
.group-menu .dish-copy h3 { font-size: 14px; }
.dish-stepper { display: flex; gap: 11px; align-items: center; justify-content: flex-end; margin-top: 15px; font-size: 12px; }
.dish-stepper button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid #e7d4cb; color: var(--accent); border-radius: 50%; padding: 0; font-size: 20px; }
.dish-stepper button:last-child { background: var(--accent); color: #fff; border-color: var(--accent); }
.order-cart { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.order-cart h3 { font-size: 15px; font-weight: 600; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 18px 0; font-size: 12px; border-bottom: 1px solid var(--line); }
.cart-line > span { flex: 1; min-width: 0; }
.cart-line small { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; }
.cart-line b { font-weight: 550; white-space: nowrap; }
.cart-line button { font-size: 10px; color: var(--muted); }
.order-cart .field { margin-top: 20px; }
.order-cart textarea { min-height: 75px; }
.order-total-row { padding: 19px 0; border-bottom: 1px solid var(--line); }
.order-total-row > div { display: flex; justify-content: space-between; font-size: 13px; gap: 12px; }
.order-total-row b, .order-total-row strong { font-weight: 550; }
.order-total-row strong { white-space: nowrap; }
.order-total-row small { display: block; font-size: 10px; color: var(--muted); margin-top: 7px; }
.order-total-row p { font-size: 11px; color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; margin-top: 9px; }
.order-checkout { justify-content: space-between; font-size: 13px; }
.locked-orders { font-size: 12px; color: var(--muted); margin: 17px 0; }
#toast { position: fixed; bottom: 106px; left: 50%; transform: translate(-50%,8px); z-index: 200; max-width: 90%; padding: 13px 20px; border-radius: 23px; background: #26321fed; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: .15s; }
#toast.visible { opacity: 1; transform: translate(-50%,0); }
@media (min-width: 600px) {
  .shell { margin-top: 20px; border-radius: 28px 28px 0 0; box-shadow: 0 0 0 1px #e3e7dc; }
  .meal-cover { aspect-ratio: 1; }
  .modal-backdrop { padding: 24px; }
}
@media (max-width: 600px) {
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal, .modal.small, .modal.wide { width: 100%; max-width: none; max-height: 95dvh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .group-modal, .menu-modal { height: 95dvh; padding-bottom: 0; }
  .skills-modal { height: auto; max-height: 95dvh; padding-bottom: 0; }
}
@media (max-width: 370px) {
  .main { padding-left: 14px; padding-right: 14px; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 8px; }
  .city-label { font-size: 10px; }
  .location-tools { gap: 8px; }
  .browse-switch { gap: 9px; }
  .scope-picker { padding-left: 8px; max-width: 110px; }
  .my-building { font-size: 10px; }
  .card-body h3 { font-size: 14px; }
  .text-cover p { font-size: 15px; }
  .group-toolbar { gap: 6px; padding-left: 16px; padding-right: 16px; }
  .group-toolbar .primary, .group-toolbar .secondary { font-size: 11px; padding: 10px 12px; }
  .need-row { grid-template-columns: 95px minmax(0,1fr); }
}
@media (prefers-reduced-transparency: reduce) {
  .mobile-nav, .nav-lens, .modal, .chat-composer, .group-toolbar, .order-checkout, .menu-footer, .cover-location { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .modal-backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (prefers-contrast: more) { .mobile-nav { background: #fffefbe8; border-color: #596254; } .nav-lens { border-color: #596254; } .mobile-nav button { color: #202623; text-shadow: none; } .mobile-nav .active { color: #b82010; } }
@media (prefers-reduced-motion: reduce) { .mobile-nav.pressed .nav-lens { transform: none; } }

.activity-date .date-end { font-size: 10px; margin-top: 2px; }

.menu-modal.menu-empty { height: auto; min-height: 280px; }
.menu-empty .menu-layout { flex: none; padding: 8px 6px 32px; min-height: 100px; }
#profile-form .field + .field { margin-top: 22px; }

.sync-strip{font-size:12px;color:#79746f;display:flex;gap:12px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.sync-strip button{color:#df321e}.confirmation-box{background:#fff8f2;border-bottom:1px solid #ece2d8;padding:14px 20px;font-size:13px;line-height:1.5}.confirmation-box p{margin:6px 0}.confirmation-box button{margin:8px 8px 0 0}.notice-row{padding:16px 0;border-bottom:1px solid #eee;line-height:1.6}.notice-row button{text-align:left}.notice-row small{display:block;color:#888}.button-row{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.admin-form{display:grid;gap:10px}.site-header .brand{flex-wrap:wrap;gap:8px}.site-header .toolbar-text{font-size:12px}

.school-filter{display:flex;gap:12px;align-items:center;color:#888;font-size:12px;margin-bottom:14px}.school-filter input{flex:1;padding:10px;border:1px solid #eee;border-radius:12px;background:#fff}

.card-footer{flex-wrap:wrap;gap:8px}.seat-note{flex-basis:100%;font-size:11px}.group-modal{overflow:auto}.group-body{min-height:100px}

.confirmation-box{max-height:44dvh;overflow-y:auto;flex-shrink:0}@media(max-width:600px){.site-header{height:auto;min-height:78px;padding-top:12px;padding-bottom:12px;gap:12px}.brand{max-width:calc(100% - 70px)}}
