/* TagAlong web presentation. Palette shared with ios/App/Theme.swift. */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --paper: #faf7f2; --surface: #fff; --input: #fff; --ink: #292623;
  --muted: #6d675f; --accent: #c83c2d; --accent-fill: #ce3c2e;
  --line: #e4ded5; --brand: #4b3828; --brand-bg: #d8c3a5;
  --soft: #f1ece5; --glass: #faf7f2e8; --accent-soft: #c83c2d0d;
  background: var(--paper); color: var(--ink);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191817; --surface: #252320; --input: #2c2a27; --ink: #f5f1ea;
  --muted: #b7b1a8; --accent: #ff7e69; --accent-fill: #ce3c2e;
  --line: #49443f; --brand: #d8cbb7; --brand-bg: #3a3632;
  --soft: #302d29; --glass: #252320e8; --accent-soft: #ff7e6912;
}
body { background: var(--paper); font-size: 15px; line-height: 1.5; }
button, a, input, textarea, select { touch-action: manipulation; }
button { transition: background .16s, color .16s, border-color .16s; }
button:disabled { opacity: .5; }
input, textarea, select { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 300; padding: 12px 20px; border-radius: 12px; color: #fff; background: var(--accent-fill); }
.skip-link:focus { top: 12px; }
.shell { max-width: 780px; min-height: 100dvh; margin: 0 auto; background: var(--paper); border-radius: 0; box-shadow: none; }
.site-header { height: 90px; padding: 0 24px; gap: 20px; }
.wordmark, .sidebar-brand { display: flex; align-items: center; gap: 9px; color: var(--brand); text-align: left; }
.wordmark { font-size: 25px; letter-spacing: -.8px; flex-shrink: 0; }
.wordmark::after { display: none; }
.wordmark small, .sidebar-brand small, .login-brand small { display: block; font-size: 10px; letter-spacing: 1px; line-height: 1; margin-top: 2px; font-weight: 500; }
.brand-face { display: block; width: 44px; height: 44px; background: var(--brand); mask: url('/assets/brand/icon/logo-face-light.svg') center / contain no-repeat; -webkit-mask: url('/assets/brand/icon/logo-face-light.svg') center / contain no-repeat; flex-shrink: 0; }
.header-city { display: none; gap: 7px; align-items: center; font-size: 13px; color: var(--muted); }
.header-city .icon { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.icon-button { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); flex-shrink: 0; }
.icon-button:hover { background: var(--soft); }
.notice-button { position: relative; }
.unread-dot, .filter-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.unread-dot { position: absolute; right: 9px; top: 9px; border: 2px solid var(--paper); width: 9px; height: 9px; }
.account-button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 24px; font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.publish-header { min-height: 42px; padding: 10px 17px; background: var(--accent-fill); font-size: 13px; gap: 6px; white-space: nowrap; }
.publish-header .icon { width: 18px; height: 18px; }
.primary { background: var(--accent-fill); min-height: 46px; font-size: 14px; border-radius: 14px; }
.primary:hover, .publish-header:hover { background: #b73529; }
.secondary { border-color: var(--line); font-size: 13px; }
.main { padding: 0 24px 106px; }
.desktop-heading { display: none; }
.search-box { height: 50px; border: 1px solid var(--line); background: var(--surface); border-radius: 30px; padding: 0 18px; margin: 4px 0 8px; gap: 10px; }
.search-box input { font-size: 15px; }
.search-box:focus-within { border-color: var(--accent); }
.location-tools { border: 0; padding: 6px 0 15px; gap: 12px; display: flex; align-items: center; }
.scope-picker { max-width: calc(100% - 86px); display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; font-size: 14px; font-weight: 550; border: 0; background: transparent; border-radius: 0; }
.scope-picker .icon { width: 16px; height: 16px; }
.filter-button { margin-left: auto; min-height: 40px; display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.filter-button .icon { width: 17px; height: 17px; }
.filter-button.selected { color: var(--accent); }
.feed-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 23px; }
.activity-tabs, .square-tabs, .page-tabs { padding: 4px; border: 0; border-radius: 12px; background: var(--soft); gap: 3px; }
.activity-tabs { display: flex; flex: 1; margin: 0; }
.activity-tabs button, .square-tabs button, .page-tabs button { flex: 1; min-height: 38px; padding: 7px 16px; border: 0; border-radius: 9px; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.activity-tabs .active, .square-tabs .active, .page-tabs .active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 4px #2926230a; }
.activity-tabs .active::after { display: none; }
.result-count { display: none; color: var(--muted); font-size: 12px; }
.active-filters { margin: -5px 0 20px; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.active-filters span { overflow-wrap: anywhere; }
.active-filters button { white-space: nowrap; color: var(--accent); padding: 0; }
.cards { gap: 25px 16px; }
.meal-card { border-radius: 14px; }
.meal-cover { aspect-ratio: 1.25; border-radius: 12px; background: var(--soft); }
.meal-cover img, .detail-photo img, .dish-thumb img { filter: none; }
.photo-caption { font-size: 10px; top: 9px; right: 9px; background: #29262385; border-radius: 6px; }
.text-cover { padding: 17px; border: 0; color: var(--brand); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.cover-menu-icon { color: var(--brand); margin-bottom: 5px; }
.party-cover-title { font-size: clamp(20px,3vw,26px); line-height: 1.35; font-weight: 650; letter-spacing: -.5px; }
.text-cover .menu-label { color: var(--muted); margin-top: 8px; font-size: 10px; }
.joined-badge { position: absolute; bottom: 9px; left: 9px; background: var(--glass); color: var(--accent); border-radius: 8px; padding: 4px 8px; font-size: 11px; }
.card-body { padding: 11px 1px 0; }
.card-body h3 { font-size: 15px; line-height: 1.5; margin-bottom: 7px; }
.meal-time, .card-location { display: flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); line-height: 1.6; margin: 3px 0 0; }
.meal-time .icon, .card-location .icon { width: 13px; height: 13px; }
.card-location { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.card-location .icon { margin-right: 4px; }
.role-tags { font-size: 11px; margin-top: 7px; }
.card-footer { margin-top: 10px; gap: 8px; }
.host-avatar { background: var(--soft); color: var(--brand); }
.seat-note { color: var(--accent); flex-basis: auto; font-size: 11px; }
.seat-note span { color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: center; padding: 74px 20px 88px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; min-height: 350px; }
.empty-symbol { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 24px; background: var(--soft); color: var(--brand); margin-bottom: 24px; }
.empty-symbol .icon { width: 28px; height: 28px; }
.empty h3 { font-size: 20px; line-height: 1.5; letter-spacing: -.3px; }
.empty p { margin-top: 9px; font-size: 14px; }
.empty button { margin-top: 25px; }
.square-scope { padding: 14px 2px 17px; min-height: 48px; }
.square-scope button { margin-left: auto; min-height: 30px; }
.post-list { display: grid; gap: 16px; }
.square-post { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.avatar { background: var(--soft); color: var(--brand); width: 40px; height: 40px; }
.post-author strong { font-size: 14px; }
.post-author p, .post-time { font-size: 11px; }
.post-body { font-size: 16px; line-height: 1.8; margin: 19px 0 13px; }
.post-topic { color: var(--accent); font-size: 12px; }
.post-reply-preview { background: var(--soft); }
.post-actions { margin-top: 15px; }
.post-actions button { min-height: 32px; font-size: 12px; }
.post-actions .liked .icon { fill: currentColor; }
.post-detail .square-post { padding: 18px; }
.post-comment p, .post-reply-preview b { color: var(--ink); }
.page-heading { padding-top: 12px; }
.page-heading h1 { font-size: 24px; }
.my-meal { background: var(--surface); padding: 22px; border: 1px solid var(--line); border-radius: 16px; margin-top: 14px; }
.activity-date b, .activity-place { font-size: 13px; }
.activity-people { font-size: 12px; }
.activity-actions button { font-size: 13px; }
.profile-panel { padding-top: 16px; }
.profile-top { background: var(--surface); padding: 24px; border-radius: 18px 18px 0 0; }
.profile-top .avatar { background: var(--brand-bg); border: 0; color: var(--brand); }
.profile-top p { font-size: 13px; }
.profile-stats { margin-top: 0; background: var(--surface); padding: 18px 0 26px; border: 0; border-radius: 0 0 18px 18px; }
.profile-stats small { font-size: 12px; }
.profile-menu, .profile-links { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 22px; margin-top: 18px; }
.profile-section-heading { padding-top: 10px; }
.profile-row:last-child { border: 0; }
.profile-row > small { font-size: 12px; }
.guest-panel { margin: 20px auto; max-width: 620px; padding: 56px 24px; border: 1px solid var(--line); background: var(--surface); border-radius: 20px; }
.guest-mark { background: var(--soft); border-radius: 26px; padding: 12px; }
.guest-mark .brand-face { width: 58px; height: 58px; }
.guest-panel h1 { font-size: 25px; }
.site-footer { color: var(--muted); padding: 38px 0 15px; font-size: 11px; display: flex; justify-content: space-between; gap: 16px; }
.mobile-nav .sidebar-brand, .sidebar-bottom { display: none; }
.mobile-nav { background: var(--glass); border-color: var(--line); box-shadow: 0 4px 28px #29262312; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav-lens { background: var(--surface); border-color: var(--line); box-shadow: 0 1px 7px #2926230c; }
.mobile-nav button { color: var(--muted); text-shadow: none; font-size: 11px; gap: 4px; }
.mobile-nav .icon { filter: none; width: 23px; height: 23px; }
.mobile-nav .active { color: var(--accent); }
.mobile-nav.pressed .nav-lens { box-shadow: 0 2px 10px #29262312; }
.modal-backdrop { background: #19181760; }
.modal { background: var(--paper); box-shadow: 0 24px 100px #0003; }
.modal-close { background: var(--surface); color: var(--muted); border-color: var(--line); box-shadow: none; width: 36px; height: 36px; }
.modal-heading p { font-size: 13px; }
.field, .field input, .field textarea, .field select { color: var(--ink); }
.field { font-size: 13px; }
.field input, .field textarea, .field select, .chat-composer textarea, .school-filter input, .admin-form > select { background: var(--input); border-color: var(--line); border-radius: 12px; font-size: 15px; }
.field + .field { margin-top: 18px; }
#feed-filter-form .field input, #feed-filter-form .field select { min-height: 48px; }
.login-modal .login-heading { padding: 32px 28px 8px; text-align: left; }
.login-brand { display: flex; align-items: center; gap: 11px; font-size: 28px; font-weight: 750; color: var(--brand); line-height: 1.2; margin: 8px 0 30px; }
.login-brand .brand-face { width: 54px; height: 54px; }
.login-brand small { font-size: 12px; margin-top: 5px; }
.login-modal h2 { font-size: 30px; line-height: 1.35; letter-spacing: -.8px; }
.login-content { text-align: left; padding: 20px 28px 25px; }
.login-content form { border: 1px solid var(--line); background: var(--surface); padding: 20px; border-radius: 18px; }
.login-content form + form, .login-options { margin-top: 16px; }
.login-content .primary { width: 100%; margin-top: 20px; }
.login-content .login-note { margin-top: 12px; font-size: 12px; }
.login-content .field input { background: var(--paper); }
.appearance-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.appearance-option { display: grid; gap: 10px; font-size: 13px; border-radius: 12px; padding: 8px; border: 1px solid var(--line); }
.appearance-option[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.theme-preview { height: 90px; border-radius: 7px; padding: 14px 8px; display: flex; gap: 6px; align-items: flex-end; background: #faf7f2; border: 1px solid #e4ded5; }
.theme-preview i { background: #d8c3a5; width: 50%; height: 42px; border-radius: 5px; }
.theme-preview i + i { height: 54px; }
.theme-dark { background: #191817; border-color: #49443f; }
.theme-dark i { background: #49443f; }
.theme-system { background: linear-gradient(90deg,#faf7f2 50%,#191817 50%); }
.theme-system i + i { background: #49443f; }
.form-error, .danger { color: var(--accent); }
.role-checks, .member-copy .diet-copy, .diet-message, .system-message, .toolbar-text { color: var(--muted); }
.secondary, .text-cover, .profile-top .avatar, .chat-composer textarea, .notice-row, .confirmation-box, .dish-stepper button { border-color: var(--line); }
.chat-message p, .chat-message.self p, .confirmation-box, .dish-thumb { background: var(--soft); }
.confirmation-box { color: var(--ink); }
.dish-letter { color: var(--brand); }
.notice-row small, .dish-copy > small { color: var(--muted); }
.sync-strip { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.sync-strip button { color: var(--accent); }
#toast { background: var(--ink); color: var(--paper); box-shadow: 0 3px 20px #0002; }
@media (min-width: 1000px) {
  .shell { max-width: 1340px; padding-left: 248px; margin: 0 auto; }
  .mobile-nav { top: 0; bottom: 0; left: max(0px,calc((100vw - 1340px)/2)); width: 248px; padding: 38px 24px; transform: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: var(--paper); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; touch-action: auto; }
  .mobile-nav .sidebar-brand { display: flex; padding: 0 10px; gap: 10px; font-size: 27px; font-weight: 750; color: var(--brand); min-height: 54px; flex-direction: row; align-items: center; }
  .sidebar-brand small { font-size: 11px; margin-top: 4px; }
  .nav-items { display: grid; gap: 9px; margin-top: 50px; }
  .nav-lens { display: none; }
  .nav-items button { min-height: 52px; padding: 12px 18px; border-radius: 14px; font-size: 15px; flex-direction: row; gap: 15px; text-align: left; }
  .nav-items button:hover { background: var(--soft); }
  .nav-items .active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
  .sidebar-bottom { display: block; position: absolute; bottom: 38px; left: 34px; right: 24px; }
  .sidebar-bottom p { color: var(--muted); font-size: 13px; line-height: 1.9; }
  .mobile-nav .sidebar-bottom button { flex-direction: row; padding: 12px 0; gap: 10px; font-size: 13px; min-height: 44px; margin-top: 28px; }
  .sidebar-bottom > small { display: block; font-size: 10px; color: var(--muted); margin-top: 12px; }
  .site-header { height: 104px; padding: 0 46px; }
  .site-header .wordmark, .site-header [data-action="appearance"] { display: none; }
  .header-city { display: flex; }
  .header-actions { gap: 12px; }
  .main { padding: 22px 46px 24px; }
  .desktop-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
  .desktop-heading h1 { font-size: 30px; line-height: 1.4; letter-spacing: -.9px; font-weight: 650; }
  .desktop-heading p { font-size: 14px; color: var(--muted); margin-top: 10px; }
  .city-pill { display: none; }
  .search-box { height: 54px; margin-top: 0; }
  .feed-controls { margin: 6px 0 26px; }
  .activity-tabs { flex: 0 1 330px; }
  .result-count { display: block; }
  .location-tools { padding: 4px 2px 12px; }
  .cards { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 22px; }
  .meal-cover { aspect-ratio: 1.25; }
  .meal-card:hover .meal-cover img { transform: scale(1.025); }
  .meal-cover img { transition: transform .25s; }
  .empty { min-height: 375px; padding: 74px 20px; }
  .square-feed, .profile-panel, .my-list, .page-tabs { max-width: 740px; margin-left: auto; margin-right: auto; }
  .square-tabs { max-width: 740px; }
  .square-post { padding: 26px; }
  .post-author .avatar { width: 44px; height: 44px; }
  .post-body { font-size: 16px; }
  .page-heading { display: none; }
  .profile-panel { padding-top: 0; }
  .guest-panel { margin-top: 0; }
  .site-footer { margin-top: 18px; }
  #toast { bottom: 35px; }
}
@media (max-width: 599px) {
  .shell { width: 100%; }
  .site-header { min-height: 86px; height: 86px; padding: 8px 18px; gap: 12px; }
  .wordmark { font-size: 23px; gap: 7px; }
  .wordmark .brand-face { width: 36px; height: 36px; }
  .wordmark small { font-size: 9px; }
  .header-actions { gap: 4px; }
  .account-button { display: none; }
  .publish-header { width: 38px; height: 38px; min-height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .publish-header span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .main { padding-left: 18px; padding-right: 18px; }
  .cards { gap: 25px 12px; }
  .card-footer { gap: 6px; }
  .card-host { display: none; }
  .card-body h3 { font-size: 15px; }
  .meal-time, .card-location { font-size: 11px; }
  .role-tags { display: none; }
  .party-cover-title { font-size: 22px; }
  .text-cover { padding: 14px; }
  .text-cover .menu-label { display: none; }
  .cover-menu-icon .icon { width: 20px; height: 20px; }
  .empty { border: 0; background: transparent; padding: 68px 8px 62px; min-height: 345px; }
  .square-tabs button, .page-tabs button { font-size: 13px; padding: 8px; }
  .square-post { padding: 18px; }
  .post-body { font-size: 15px; }
  .profile-top { padding: 20px 18px; }
  .profile-top h1 { font-size: 22px; }
  .profile-top p { font-size: 11px; }
  .guest-panel { margin: 15px 0; padding: 45px 20px; }
  .guest-panel h1 { font-size: 23px; }
  .my-meal { padding: 18px 14px; gap: 12px; }
  .activity-date { width: 62px; }
  .site-footer { flex-direction: column; align-items: center; gap: 4px; }
  .login-modal .login-heading { padding-top: 34px; }
  .login-content { padding-bottom: 30px; }
  .login-brand { margin-bottom: 24px; }
  .login-modal h2 { font-size: 29px; }
  .field input, .field textarea, .field select { font-size: 16px; }
}
@media (prefers-reduced-transparency: reduce) {
  .mobile-nav, .nav-lens, .modal, .chat-composer, .group-toolbar, .order-checkout, .menu-footer { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .mobile-nav, .nav-lens { border-color: var(--ink); }
  .mobile-nav button { color: var(--ink); }
  .mobile-nav .active { color: var(--accent); }
}
