:root {
  --bg: #f5f5f7;
  --surface: #fff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #0071e3;
  --accent-hover: #0062c4;
  --accent-soft: #edf5ff;
  --danger: #c7372f;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; background: none; border: 0; transition: background 140ms, color 140ms, box-shadow 140ms; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #82b6f3; outline-offset: 3px; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.035em; line-height: 1.2; }
select { appearance: none; }
::selection { background: #cde4ff; }
[hidden] { display: none !important; }
.app-shell { display: flex; min-height: 100dvh; max-width: 1600px; margin: auto; }
.sidebar { width: 216px; position: fixed; left: max(0px, calc((100vw - 1600px) / 2)); top: 0; bottom: 0; padding: 30px 16px 24px; border-right: 1px solid var(--line); background: #fafafa; display: flex; flex-direction: column; z-index: 10; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; width: max-content; margin: 0 14px 38px; font-size: 28px; font-weight: 700; letter-spacing: -1.5px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand-dot { color: var(--accent); }
.heading-dot { display: none; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 14px; text-align: left; color: #515154; font-size: 14px; border-radius: 10px; min-height: 46px; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { background: #ededf0; }
.nav-item.active { background: #e7f0ff; color: #0066cc; font-weight: 600; }
.nav-count { margin-left: auto; font-size: 11px; padding: 1px 6px; background: #e9e9ed; border-radius: 5px; color: var(--muted); }
.nav-count:empty { display: none; }
.sidebar-bottom { margin-top: auto; padding: 24px 14px 0; }
.help-button { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; min-height: 40px; padding: 0; }
.help-button:hover { color: var(--ink); }
.help-button svg { width: 17px; height: 17px; }
.demo-pill { color: var(--muted); font-size: 11px; margin-top: 16px; }
.main-content { width: calc(100% - 216px); margin-left: 216px; padding: 0 44px; display: flex; flex-direction: column; min-height: 100dvh; }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.header-title { font-size: 16px; font-weight: 600; }
.mobile-brand { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.city-picker { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.city-picker svg { width: 16px; height: 16px; }
.city-picker > span:last-child svg { width: 12px; }
.city-picker select { padding: 10px 0; background: transparent; border: 0; color: var(--ink); font-size: 13px; font-weight: 500; max-width: 160px; cursor: pointer; }
.icon-button { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); }
.icon-button:hover { background: #f0f0f3; }
.icon-button svg { width: 19px; height: 19px; }
.notification-button { position: relative; }
.notification-button i { display: none; position: absolute; width: 6px; height: 6px; right: 9px; top: 8px; border-radius: 50%; background: var(--accent); }
.notification-button.has-unread i { display: block; }
.profile-button { display: flex; align-items: center; gap: 8px; padding: 0; min-height: 42px; font-size: 13px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e9e9ee; color: #515154; font-size: 13px; }
.profile-button:hover { color: var(--accent); }
.header-admin { font-size: 12px !important; min-height: 38px !important; padding: 8px 12px !important; }
#page-content { flex: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.button svg { width: 18px; height: 18px; }
.button-dark, .button-create { background: var(--accent); color: #fff; }
.button-dark:hover, .button-create:hover { background: var(--accent-hover); }
.button-dark:active, .button-create:active { background: #0055ad; }
.button-soft { background: #fff; color: var(--ink); border: 1px solid #d8d8de; }
.button-soft:hover { background: #f0f0f3; border-color: #c5c5cc; }
.button-delete { color: var(--danger); background: #fff; border: 1px solid #eed3d0; }
.button-delete:hover { background: #fff1f0; }
.full-width { width: 100%; }
.text-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; color: var(--accent); font-size: 13px; font-weight: 500; min-height: 36px; padding: 2px 0; }
.text-button:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.tasks-section { padding-top: 34px; padding-bottom: 28px; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-header h1, .inner-page h1 { font-size: 34px; }
.section-header h1 { display: flex; align-items: center; gap: 12px; }
.section-header h1 > span { font-size: 12px; font-weight: 500; color: #515154; background: #e9e9ee; border-radius: 7px; padding: 4px 7px; letter-spacing: 0; white-space: nowrap; }
.section-header p, .inner-page > p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.task-toolbar { display: flex; align-items: center; gap: 14px; }
.search-field { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #dcdce2; border-radius: 11px; background: #fff; }
.search-field svg { color: #8e8e93; width: 18px; height: 18px; }
.search-field input { border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 14px; line-height: 22px; color: var(--ink); }
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #0071e317; }
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: #8a8a90; }
.sort-select { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sort-select select { background: transparent; border: 0; font-size: 13px; color: #515154; padding: 12px 0; cursor: pointer; }
.sort-select svg { width: 12px; height: 12px; }
.categories { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 18px 0 22px; }
.categories button { display: inline-flex; align-items: center; gap: 7px; border-radius: 9px; padding: 9px 12px; min-height: 40px; font-size: 13px; color: #515154; }
.categories button svg { width: 16px; height: 16px; }
.categories button:hover { background: #e9e9ee; }
.categories button.active { background: #e5efff; color: #0066cc; font-weight: 600; }
.saved-entry { margin-left: auto; }
.saved-entry .text-button { color: #515154; }
.saved-entry .text-button:hover { color: var(--accent); }
.saved-entry svg { width: 17px; height: 17px; }
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.task-card { position: relative; border: 1px solid var(--line); border-radius: 16px; background: #fff; min-width: 0; transition: border-color 140ms, box-shadow 140ms; }
.task-card:hover { border-color: #c7c7ce; box-shadow: 0 4px 16px #00000006; }
.card-open { display: block; width: 100%; text-align: left; padding: 20px; border-radius: 16px; }
.task-save { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #86868b; z-index: 2; }
.task-save:hover { background: #f2f2f7; color: var(--ink); }
.task-save.saved { color: var(--accent); background: var(--accent-soft); }
.task-save svg { width: 18px; height: 18px; }
.category-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #515154; line-height: 1.4; }
.category-badge svg { width: 16px; height: 16px; color: var(--accent); }
.task-card .category-badge { padding-right: 38px; min-height: 26px; }
.task-body h3 { font-size: 18px; font-weight: 650; line-height: 1.35; min-height: 48px; margin: 15px 0 9px; }
.task-meta { display: flex; align-items: flex-start; gap: 5px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.task-meta svg { width: 14px; height: 14px; margin-top: 2px; }
.task-excerpt { margin-top: 12px; color: #6e6e73; font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.task-details { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin: 15px 0; }
.task-details svg { width: 14px; height: 14px; }
.task-bottom { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 15px; border-top: 1px solid #efeff3; gap: 12px; }
.task-bottom > strong { font-size: 28px; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.task-bottom > strong > span { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.card-arrow { color: var(--accent); font-size: 22px; line-height: 1; }
.task-deadline { margin-top: 12px; color: var(--muted); font-size: 11px; }
.empty-state { padding: 38px 26px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.empty-state > svg, .empty-symbol { width: 44px; height: 44px; color: #8e8e93; margin: 0 auto 16px; }
.empty-symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #f2f2f7; }
.empty-symbol svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 21px; }
.empty-state p { color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 430px; margin: 10px auto 0; }
.empty-state > .button { margin-top: 20px; }
.empty-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.feed-empty { padding: 38px 24px; }
.empty-state.compact { padding: 28px 20px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 28px; font-size: 12px; color: #86868b; border-top: 1px solid var(--line); }
.page-footer button { color: var(--muted); padding: 0; font-size: 12px; min-height: 32px; }
.page-footer button:hover { color: var(--accent); }
.mobile-nav { display: none; }
.inner-page { padding: 34px 0 30px; }
.inner-page > .eyebrow { display: none; }
.inner-page > h1 { margin-bottom: 12px; }
.inner-page .section-header { margin-bottom: 20px; }
.subheading { font-size: 20px; margin: 30px 0 18px; }
.tabs, .role-switch { display: inline-flex; align-items: center; padding: 4px; border-radius: 10px; background: #e9e9ee; gap: 2px; }
.role-switch { margin: 6px 0 22px; }
.tabs { margin: 0 0 22px; }
.tabs button, .role-switch button { padding: 8px 16px; font-size: 13px; font-weight: 500; color: #6e6e73; border-radius: 7px; min-height: 34px; }
.tabs button.active, .role-switch button.selected { background: #fff; color: var(--ink); box-shadow: 0 1px 3px #00000012; }
.attention-panel { margin-top: 24px; background: #fff; padding: 20px; border: 1px solid #cedff5; border-radius: 14px; }
.attention-panel > strong { font-size: 14px; }
.attention-panel button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.attention-panel button:last-child { border-bottom: 0; padding-bottom: 0; }
.attention-panel b { display: block; font-size: 14px; font-weight: 600; }
.attention-panel small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.attention-panel svg { color: var(--accent); width: 18px; }
.my-tasks { display: flex; flex-direction: column; gap: 10px; }
.my-task { width: 100%; display: flex; gap: 16px; align-items: center; text-align: left; padding: 18px 20px; border: 1px solid var(--line); background: #fff; border-radius: 14px; }
.my-task:hover { border-color: #c7c7ce; }
.my-task-art { display: none; }
.my-task-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.my-task-copy > strong { font-size: 15px; font-weight: 600; line-height: 1.5; }
.my-task-copy > small { font-size: 12px; color: var(--muted); }
.my-task-reward { display: flex; align-items: center; gap: 6px; font-size: 23px; font-weight: 600; white-space: nowrap; }
.my-task-reward small { font-size: 11px; font-weight: 400; color: var(--muted); }
.my-task-reward svg { color: var(--accent); width: 16px; margin-left: 8px; }
.status-badge { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; border-radius: 6px; background: #f2f2f7; color: #6e6e73; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.status-badge.open, .status-badge.taken, .status-badge.submitted { background: #edf5ff; color: #0066cc; }
.status-badge.pending, .status-badge.revision, .status-badge.disputed { background: #fff6e8; color: #8a5b16; }
.status-badge.rejected, .status-badge.cancelled { background: #fff0ee; color: #ad4037; }
.status-badge.completed { background: #eef8f1; color: #297144; }
.demo-notice, .form-guarantee, .waiting-note, .rejection-note, .modal-guarantee { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; margin: 20px 0; border-radius: 11px; background: #f2f2f7; color: #6e6e73; font-size: 13px; line-height: 1.6; }
.demo-notice svg, .form-guarantee svg, .waiting-note svg, .modal-guarantee svg { width: 18px; height: 18px; margin-top: 2px; }
.form-guarantee small, .modal-guarantee small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.modal-guarantee strong { color: #515154; font-size: 13px; font-weight: 600; }
.waiting-note { background: var(--accent-soft); color: #3b5b7e; }
.rejection-note { display: block; background: #fff5ed; color: #855a35; }
.rejection-note strong { font-size: 13px; }
.rejection-note p { margin: 6px 0; }
.wallet-page { max-width: 820px; }
.currency-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 18px; }
.currency-picker > button { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; min-height: 78px; }
.currency-picker > button.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: #f4f9ff; }
.token-logo { width: 42px; height: 42px; flex-shrink: 0; }
.currency-picker strong { font-size: 16px; display: block; }
.currency-picker small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.currency-picker button > svg:last-child:not(.token-logo) { width: 18px; height: 18px; margin-left: auto; color: var(--accent); }
.personal-wallet { padding: 28px; border: 1px solid var(--line); background: #fff; border-radius: 18px; }
.wallet-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.network-label, .receive-network { background: #f5f5f7; border-radius: 7px; padding: 5px 9px; color: var(--ink); font-size: 11px; }
.wallet-connect-copy { margin: 30px 0 24px; max-width: 440px; }
.wallet-connect-copy > .token-logo { width: 48px; height: 48px; margin-bottom: 16px; }
.wallet-connect-copy h2 { font-size: 24px; letter-spacing: -.7px; }
.wallet-connect-copy p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.wallet-main-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-main-actions .button { min-height: 48px; }
.wallet-manual { display: block; margin-top: 20px; font-size: 13px; }
.token-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 30px; font-variant-numeric: tabular-nums; }
.token-balance strong { font-size: clamp(32px, 6vw, 48px); letter-spacing: -1.7px; overflow-wrap: anywhere; }
.token-balance > span { color: var(--muted); font-size: 18px; }
.balance-caption { color: var(--muted); font-size: 12px; margin: 8px 0 26px; line-height: 1.6; }
.connected-wallet { display: flex; align-items: center; gap: 12px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.connected-wallet > span { display: flex; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; background: #f5f5f7; }
.connected-wallet > span svg { width: 20px; height: 20px; }
.connected-wallet > div { flex: 1; min-width: 0; }
.connected-wallet strong { display: block; font-size: 13px; }
.connected-wallet code { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.connected-wallet .text-button { font-size: 12px; }
.wallet-link-state { display: flex; align-items: center; gap: 14px; justify-content: space-between; margin-top: 14px; }
.wallet-link-state small { color: var(--muted); line-height: 1.5; font-size: 11px; }
.wallet-link-state .text-button, .wallet-disconnect { font-size: 12px; }
.wallet-disconnect { margin-top: 16px; color: var(--muted); }
.wallet-footnote { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 16px 4px 24px; }
.wallet-account-note { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 22px 2px; }
.wallet-account-note > svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--muted); }
.wallet-account-note p { flex: 1; font-size: 13px; line-height: 1.5; color: var(--muted); }
.wallet-account-note .text-button { font-size: 13px; }
.task-wallet-details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.task-wallet-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 20px 22px; font-size: 14px; }
.task-wallet-details summary::-webkit-details-marker { display: none; }
.task-wallet-details summary > span { flex: 1; }
.task-wallet-details summary small { display: inline-block; margin-left: 4px; padding: 3px 6px; background: #f5f5f7; border-radius: 5px; font-size: 10px; color: var(--muted); }
.task-wallet-details summary strong { font-size: 14px; white-space: nowrap; }
.task-wallet-details summary > svg { width: 18px; height: 18px; color: var(--muted); }
.task-wallet-details[open] summary > svg { transform: rotate(180deg); }
.task-wallet-content { padding: 0 22px 22px; }
.task-wallet-content > p { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.task-wallet-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.task-wallet-totals span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.task-wallet-totals strong { font-size: 22px; display: block; }
.task-wallet-totals small { font-size: 12px; font-weight: 400; color: var(--muted); }
.receive-heading { display: flex; align-items: center; gap: 12px; padding-right: 24px; margin-bottom: 14px; }
.receive-heading h2 { font-size: 27px; margin: 0; }
.receive-modal > p { font-size: 14px; }
.receive-qr { width: 224px; margin: 20px auto; }
.receive-qr svg { display: block; width: 100%; height: auto; }
.receive-modal label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.receive-modal textarea { margin-top: 7px; font-family: ui-monospace, monospace; font-size: 12px; resize: none; overflow-wrap: anywhere; }
.receive-modal .receive-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 18px; }
@media (max-width: 600px) {
  .currency-picker { gap: 10px; margin-top: 22px; }
  .currency-picker > button { padding: 13px 12px; gap: 9px; min-height: 70px; }
  .currency-picker .token-logo { width: 34px; height: 34px; }
  .currency-picker small { font-size: 11px; }
  .personal-wallet { padding: 22px; }
  .wallet-main-actions { display: grid; grid-template-columns: 1fr; }
  .wallet-main-actions .button { width: 100%; }
  .wallet-connect-copy h2 { font-size: 22px; }
  .task-wallet-details summary { padding: 18px 16px; font-size: 12px; }
  .task-wallet-details summary strong { font-size: 12px; }
  .task-wallet-content { padding: 0 16px 20px; }
  .task-wallet-totals { grid-template-columns: 1fr; }
}
.wallet-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 18px; }
.balance-card, .escrow-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; }
.balance-card { display: flex; flex-direction: column; align-items: flex-start; }
.balance-card h2 { font-size: 48px; margin: 18px 0 12px; }
.balance-card h2 small { font-size: 17px; font-weight: 500; color: var(--muted); }
.network-pill { font-size: 12px; color: var(--muted); }
.balance-card .button { margin-top: 24px; }
.escrow-card > svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: 17px; }
.escrow-card h3 { font-size: 20px; }
.escrow-card p { font-size: 14px; color: var(--muted); margin: 12px 0 20px; line-height: 1.65; }
.escrow-card > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.escrow-card .text-button { margin-top: 16px; }
.transaction-list { background: #fff; border: 1px solid var(--line); padding: 0 20px; border-radius: 14px; }
.transaction-list > div { display: flex; align-items: center; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.transaction-list > div:last-child { border-bottom: 0; }
.transaction-list > div > span:nth-child(2) { flex: 1; min-width: 0; }
.transaction-list strong { display: block; font-size: 13px; font-weight: 600; }
.transaction-list small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.6; }
.transaction-list b { font-size: 14px; white-space: nowrap; font-weight: 600; }
.transaction-list b.positive { color: #247140; }
.transaction-icon, .small-task-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #f2f2f7; color: #515154; flex-shrink: 0; }
.payout-settings { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin: 24px 0; }
.payout-settings > div { flex: 1; min-width: 0; }
.payout-settings h3 { font-size: 17px; }
.payout-settings p { font-size: 13px; margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.payout-settings small { display: block; font-size: 12px; margin-top: 7px; color: var(--muted); line-height: 1.6; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; margin: 26px 0; }
.account-summary { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.account-avatar { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #eaf2fc; color: #276baa; font-size: 26px; }
.account-summary h2 { font-size: 23px; margin-bottom: 12px; overflow-wrap: anywhere; }
.account-identity { display: flex; flex-direction: column; align-items: center; }
.account-identity p { margin-top: 10px; color: var(--muted); font-size: 13px; }
.account-entry { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.login-card { max-width: 550px; margin: auto; }
.account-links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.account-links button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px; color: #515154; border-radius: 8px; font-size: 13px; }
.account-links button:hover { background: #f2f2f7; color: var(--accent); }
.account-links svg { width: 17px; height: 17px; }
.demo-reset-link { display: block; color: var(--muted); font-size: 12px; margin-top: 22px; }
.account-form { padding: 28px !important; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.progress-hero { display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 30px; background: #fff; margin: 28px 0 20px; }
.progress-emblem { width: 112px; height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 24px; background: #edf5ff; color: var(--accent); }
.progress-emblem > span { font-size: 48px; line-height: 1; }
.progress-emblem small { font-size: 10px; font-weight: 600; }
.progress-hero h2 { font-size: 26px; }
.progress-hero p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.xp-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); gap: 16px; margin-top: 22px; }
.xp-track { height: 5px; border-radius: 4px; background: #e9e9ee; margin-top: 9px; overflow: hidden; }
.xp-track span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.progress-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.progress-stats > div { text-align: center; padding: 24px 15px; border-right: 1px solid var(--line); }
.progress-stats > div:last-child { border: 0; }
.progress-stats strong { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.04em; }
.progress-stats strong small { font-size: 12px; font-weight: 500; color: var(--muted); }
.progress-stats > div > span { color: var(--muted); font-size: 12px; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.achievement { background: #fff; border: 1px solid var(--line); padding: 22px 16px; border-radius: 14px; text-align: center; }
.achievement > span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #f2f2f7; color: #9b9ba1; margin-bottom: 14px; }
.achievement.unlocked > span { color: var(--accent); background: var(--accent-soft); }
.achievement h3 { font-size: 15px; }
.achievement p, .achievement > small { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.journey-steps { padding: 24px; margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.journey-steps h2 { font-size: 20px; }
.journey-steps > div { display: flex; align-items: center; gap: 14px; margin: 22px 0; }
.journey-steps > div > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f2f2f7; color: var(--muted); font-size: 11px; }
.journey-steps > div > span.done { background: var(--accent-soft); color: var(--accent); }
.journey-steps strong { font-size: 14px; font-weight: 600; }
.journey-steps small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.city-preview { margin-top: 24px; border-top: 1px solid var(--line); }
.city-preview summary { color: var(--muted); font-size: 13px; cursor: pointer; padding: 18px 0; }
.city-preview summary:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 20px 0; gap: 22px; }
.hero h2 { font-size: 26px; }
.hero-copy > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 12px 0 18px; }
.hero-eyebrow { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.hero-world { position: relative; height: 230px; min-width: 0; }
.hero-world canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.hero-world canvas:active { cursor: grabbing; }
.world-ring { display: none; }
.world-hint { display: block; text-align: center; color: var(--muted); font-size: 11px; }
.city-fallback { position: absolute; inset: 0; }
.modal { border: 0; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border-radius: 20px; padding: 0; background: #fff; color: var(--ink); box-shadow: 0 24px 80px #00000024; overflow: auto; }
.modal::backdrop { background: #00000038; backdrop-filter: blur(4px); }
#modal-content { position: relative; }
.modal-close { position: absolute; right: 16px; top: 16px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; background: #f2f2f7; border: 0; }
.modal-close:hover { background: #e5e5ea; }
.modal-close svg { width: 17px; height: 17px; }
.modal-task-visual { padding: 28px 30px 0; min-height: 56px; background: #fff; }
.modal-task-visual > svg { display: none; }
.task-modal-content { padding: 20px 30px 30px; }
.task-modal h2 { font-size: 28px; margin: 18px 0 12px; }
.task-modal h3 { font-size: 17px; margin: 24px 0 10px; }
.task-modal p, .form-modal > p, .story-modal > p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.modal-address { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 7px; }
.modal-address svg { width: 16px; height: 16px; margin-top: 2px; }
.status-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-summary { display: flex; gap: 22px; flex-wrap: wrap; padding: 20px 0; margin: 17px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.task-summary > div { flex: 1; min-width: 100px; }
.task-summary small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.task-summary strong { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.task-summary strong span { font-size: 11px; color: var(--muted); font-weight: 400; }
.requirements { list-style: none; margin: 0; padding: 0; }
.requirements li { display: flex; align-items: flex-start; gap: 9px; color: #515154; font-size: 14px; margin: 10px 0; line-height: 1.6; }
.requirements svg { color: var(--accent); width: 16px; height: 16px; margin-top: 3px; }
.task-management, .admin-actions, .form-submit-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.task-chat { margin-top: 26px; padding-top: 5px; border-top: 1px solid var(--line); }
.message-list { max-height: 340px; overflow-y: auto; }
.message { padding: 13px 15px; background: #f2f2f7; border-radius: 12px; margin: 10px 20px 10px 0; }
.message.own { margin: 10px 0 10px 20px; background: #edf5ff; }
.message strong { font-size: 12px; font-weight: 600; }
.message p { margin: 5px 0; color: #515154; overflow-wrap: anywhere; white-space: pre-wrap; }
.message small { font-size: 11px; color: var(--muted); }
.pre-dispute-history { margin-top: 24px; }
.pre-dispute-history > summary { font-size: 13px; color: var(--muted); cursor: pointer; padding: 14px 0; }
.pre-dispute-history .task-chat { margin-top: 0; }
.dispute-dialog { width: min(780px, calc(100vw - 24px)); }
.dispute-room { height: min(820px, calc(100dvh - 48px)); display: flex; flex-direction: column; }
.dispute-header { padding: 16px 28px 12px; flex-shrink: 0; border-bottom: 1px solid var(--line); }
.dispute-header > .text-button { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.dispute-header > .text-button svg { width: 14px; height: 14px; transform: rotate(180deg); }
.case-status { float: right; margin: 2px 34px 0 10px; padding: 4px 7px; border-radius: 6px; background: #fff6e8; color: #8a5b16; font-size: 10px; }
.case-status.closed { background: #f5f5f7; color: var(--muted); }
.dispute-header h2 { font-size: 23px; letter-spacing: -.7px; margin: 8px 0 3px; }
.dispute-header > p { font-size: 13px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.dispute-participants { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.dispute-participants > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.dispute-participants strong { font-size: 12px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-role { padding: 3px 6px; border-radius: 5px; font-size: 10px; font-weight: 500; background: #f2f2f7; color: #616168; white-space: nowrap; }
.chat-role.executor { background: #edf5ff; color: #0063c7; }
.chat-role.admin { background: #fff6e8; color: #8a5b16; }
.dispute-body { padding: 0 28px; display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dispute-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.dispute-tabs button { min-height: 48px; padding: 13px 0; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; }
.dispute-tabs button.active { color: var(--accent); border-color: var(--accent); }
.dispute-body > [data-case-panel] { flex: 1; min-height: 0; }
.dispute-body > [data-case-panel="chat"] { display: flex; flex-direction: column; }
.dispute-body > [data-case-panel][hidden] { display: none; }
.case-context { display: flex; gap: 10px; align-items: center; padding: 13px 0; flex-shrink: 0; }
.case-context > svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--muted); }
.case-context > span { flex: 1; font-size: 11px; line-height: 1.5; }
.case-context small { display: block; font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 2px; font-weight: 400; }
.case-context > strong { font-size: 17px; text-align: right; }
.case-network { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.case-network[hidden] { display: none; }
.case-network .text-button { font-size: 11px; flex-shrink: 0; }
.case-thread { flex: 1; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 3px 12px; scrollbar-width: thin; }
.case-system { padding: 12px 14px; background: #f8f8fa; border: 1px solid var(--line); border-radius: 11px; margin: 0 0 16px; }
.case-system strong { font-size: 11px; font-weight: 600; }
.case-system p { margin: 5px 0; font-size: 12px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.case-system time { font-size: 10px; color: var(--muted); }
.case-chat-empty { text-align: center; padding: 16px 0; color: var(--muted); }
.case-chat-empty strong { font-size: 13px; font-weight: 500; }
.case-chat-empty p { font-size: 11px; margin-top: 6px; line-height: 1.6; }
.case-load { display: block; margin: 0 auto 14px; font-size: 11px; }
.case-load[hidden] { display: none; }
.dispute-message { max-width: 88%; width: fit-content; padding: 12px 14px; border: 1px solid #ededf1; border-radius: 13px 13px 13px 4px; margin: 0 0 10px; background: #f7f7f9; }
.dispute-message.own { margin-left: auto; border-color: #dceaff; background: #edf5ff; border-radius: 13px 13px 4px 13px; }
.dispute-message-author { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dispute-message-author strong { font-size: 11px; overflow-wrap: anywhere; }
.dispute-message-author .chat-role { font-size: 9px; padding: 2px 5px; }
.dispute-message p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; margin: 7px 0; }
.dispute-message time { display: block; font-size: 9px; color: var(--muted); }
.case-composer { flex-shrink: 0; padding: 11px 0 10px; border-top: 1px solid var(--line); }
.case-composer label { display: block; font-size: 11px; font-weight: 500; margin-bottom: 7px; }
.case-composer textarea { width: 100%; flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d2d2d7; border-radius: 10px; background: white; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; min-height: 48px; max-height: 120px; resize: vertical; }
.case-input-row { display: flex; gap: 9px; align-items: flex-end; }
.case-input-row .button { padding: 0; min-height: 48px; width: 48px; flex: 0 0 48px; border-radius: 10px; }
.case-input-row .button svg { width: 20px; height: 20px; }
.case-composer textarea:focus { border-color: var(--accent); outline: 2px solid #0071e31a; }
.case-compose-actions { display: flex; justify-content: flex-end; margin-top: 5px; }
.case-compose-actions > small { font-size: 10px; color: var(--muted); }
.case-compose-actions .button { min-height: 40px; padding: 9px 15px; font-size: 12px; }
.case-closed { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 12px 0 20px; }
.case-decision { margin: 18px 0 0; padding: 15px; background: #f4f9ff; border: 1px solid #dceaff; border-radius: 11px; }
.case-decision[hidden] { display: none; }
.case-decision strong { font-size: 12px; }
.case-decision p { font-size: 13px; margin: 7px 0; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.case-decision small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.case-evidence { overflow-y: auto; height: 100%; padding: 6px 3px 22px; overscroll-behavior: contain; }
.case-evidence h3 { font-size: 15px; margin: 18px 0 9px; }
.case-evidence p, .case-evidence li { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.case-evidence ul { padding-left: 18px; }
.case-evidence summary { font-size: 12px; color: var(--muted); cursor: pointer; padding: 16px 0; }
.case-evidence-message { border-top: 1px solid var(--line); padding: 12px 0; }
.case-evidence-message strong { font-size: 12px; }
.case-evidence-message small { font-size: 10px; color: var(--muted); }
.case-admin-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0 12px; flex-shrink: 0; }
.case-admin-actions[hidden] { display: none; }
.case-admin-actions p { max-width: 240px; font-size: 11px; color: var(--muted); line-height: 1.5; }
.case-admin-actions .button { min-height: 42px; padding: 9px 16px; font-size: 12px; }
@media (max-width: 600px) {
  .dispute-header { padding: 15px 20px 12px; }
  .dispute-header h2 { font-size: 22px; }
  .dispute-header > p { font-size: 12px; }
  .dispute-body { padding: 0 18px; }
  .dispute-participants { gap: 6px; margin-top: 12px; }
  .dispute-participants strong { font-size: 11px; }
  .case-composer textarea { font-size: 16px; }
  .case-context > strong { font-size: 16px; }
  .dispute-message { max-width: 95%; }
  .case-admin-actions p { font-size: 10px; }
}
@media (max-width: 600px) and (max-height: 620px) {
  .dispute-header > p, .dispute-participants { display: none; }
  .dispute-header h2 { margin-top: 5px; font-size: 19px; }
  .case-context { padding: 8px 0; }
  .case-context > span small { display: none; }
  .case-admin-actions p { display: none; }
  .case-admin-actions { justify-content: flex-end; padding: 8px 0; }
  .case-admin-actions .button { min-height: 34px; }
  .case-thread { min-height: 70px; }
}
.task-timeline { padding-top: 18px; margin-top: 24px; border-top: 1px solid var(--line); }
.task-timeline summary { font-size: 13px; cursor: pointer; min-height: 38px; color: var(--muted); }
.task-timeline strong { font-size: 13px; font-weight: 600; }
.task-timeline small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.notification-item { display: flex; text-align: left; align-items: center; justify-content: space-between; width: 100%; border-bottom: 1px solid var(--line); padding: 16px 0; gap: 14px; }
.notification-item strong { display: block; font-size: 14px; font-weight: 600; }
.notification-item small { display: block; font-size: 12px; color: var(--muted); white-space: pre-line; line-height: 1.6; margin-top: 6px; }
.notification-item.unread { border-left: 3px solid var(--accent); padding-left: 12px; }
.notification-item svg { color: var(--accent); width: 18px; }
.form-modal { padding: 44px 30px 30px; }
.form-modal h2, .story-modal h2, .celebration h2 { font-size: 28px; margin-bottom: 12px; }
.form-modal label, .task-chat label, #review-form label { display: block; font-size: 13px; font-weight: 500; margin: 18px 0 8px; color: #515154; }
.form-modal input:not([type=file]), .form-modal select, .form-modal textarea, .task-chat textarea, #review-form textarea, #review-form select { display: block; width: 100%; background: #fff; border: 1px solid #d2d2d7; border-radius: 9px; padding: 11px 12px; color: var(--ink); margin-top: 7px; font-size: 15px; line-height: 1.5; }
.form-modal select, #review-form select { appearance: auto; }
.form-modal input:disabled { background: #f5f5f7; color: var(--muted); }
.form-modal textarea, .task-chat textarea, #review-form textarea { resize: vertical; min-height: 86px; }
.form-modal input::placeholder, .form-modal textarea::placeholder, .task-chat textarea::placeholder { color: #8e8e93; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 9px; }
.form-error { font-size: 13px; color: var(--danger); margin: 12px 0; line-height: 1.5; }
.form-error:empty { display: none; }
.form-submit-row .button { flex: 1; }
.upload-zone { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px 18px; border: 1px dashed #bdbdc5; border-radius: 12px; background: #fafafa; text-align: center; cursor: pointer; }
.upload-zone svg { color: var(--accent); width: 26px; height: 26px; }
.upload-zone strong { font-size: 14px; font-weight: 500; }
.upload-zone span { font-size: 12px; color: var(--muted); }
.upload-zone input { max-width: 100%; font-size: 12px; margin-top: 8px; }
.photo-previews, .result-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 15px 0; }
.photo-previews > div { position: relative; min-width: 0; }
.photo-previews img, .result-photos img { width: 100%; height: 110px; object-fit: cover; border-radius: 9px; display: block; }
.photo-previews > div button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 6px #00000018; }
.photo-previews > div button svg { width: 15px; height: 15px; }
.story-modal, .celebration { padding: 44px 32px 32px; text-align: center; }
.story-modal > p { max-width: 450px; margin: 10px auto 20px; }
.story-modal > p > small { font-size: 12px; }
.story-modal .demo-notice { text-align: left; }
.story-orb, .celebration-orb { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 16px; background: #edf5ff; color: var(--accent); margin: 8px auto 24px; }
.story-orb svg { width: 30px; height: 30px; }
.celebration-orb { font-size: 36px; }
.celebration p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 22px; }
.story-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
.story-dots button { width: 26px; height: 4px; padding: 0; border-radius: 3px; background: #e5e5ea; }
.story-dots button.active { background: var(--accent); }
.load-more { display: flex; width: max-content; margin: 24px auto 0; }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 12px); background: #1d1d1f; color: #fff; border-radius: 11px; padding: 14px 20px; box-shadow: 0 5px 22px #00000015; max-width: min(520px, calc(100vw - 32px)); width: max-content; font-size: 13px; line-height: 1.5; opacity: 0; pointer-events: none; z-index: 40; transition: opacity 160ms, transform 160ms; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.map-layout { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.city-map { position: relative; height: 400px; overflow: hidden; background: #f0f0f4; border-radius: 16px; border: 1px solid var(--line); }
.map-disclaimer { position: absolute; left: 16px; top: 16px; font-size: 11px; color: var(--muted); z-index: 2; }
.map-river { position: absolute; height: 150%; width: 70px; background: #d9eafd; left: 42%; top: -20%; transform: rotate(25deg); }
.map-road { position: absolute; height: 10px; width: 140%; background: #fff; top: 36%; left: -20%; transform: rotate(-20deg); }
.road-b { top: 65%; }
.road-c { top: 15%; transform: rotate(55deg); }
.map-block { position: absolute; width: 12%; height: 17%; background: #e1e1e8; border-radius: 5px; }
.map-pin { position: absolute; padding: 8px 12px; border-radius: 8px; background: #fff; box-shadow: 0 2px 8px #0000000d; color: var(--accent); font-size: 17px; font-weight: 600; }
.map-pin small { font-size: 9px; }
.map-city { position: absolute; left: 16px; bottom: 16px; font-size: 13px; color: var(--muted); }
.map-task-list { display: flex; flex-direction: column; gap: 10px; }
.map-task-list button { display: flex; align-items: center; gap: 10px; padding: 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.map-task-list button > span:nth-child(2) { flex: 1; min-width: 0; }
.map-task-list strong { display: block; font-size: 12px; }
.map-task-list small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
@media (max-width: 1200px) {
  .main-content { padding: 0 30px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { width: 190px; padding-left: 12px; padding-right: 12px; }
  .main-content { width: calc(100% - 190px); margin-left: 190px; padding: 0 24px; }
  .brand { font-size: 25px; margin-left: 12px; }
  .nav-item { font-size: 13px; padding: 12px; }
  .task-grid { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-content { margin: 0; width: 100%; padding: 0 20px 84px; }
  .topbar { height: 74px; position: sticky; top: 0; z-index: 5; background: #f5f5f7ee; backdrop-filter: blur(18px); gap: 12px; }
  .header-title { display: none; }
  .mobile-brand { display: flex; align-items: center; gap: 7px; font-size: 24px; font-weight: 700; letter-spacing: -1.2px; }
  .mobile-brand img { width: 29px; height: 29px; border-radius: 8px; }
  .mobile-brand > span { color: var(--ink); }
  .mobile-brand .brand-dot { color: var(--accent); }
  .header-actions { gap: 9px; }
  .city-picker > span:first-child { display: none; }
  .city-picker select { font-size: 12px; max-width: 134px; }
  .profile-button { display: none; }
  .header-admin { display: none !important; }
  .notification-button { width: 34px; height: 34px; border: 0; background: transparent; }
  .tasks-section { padding-top: 27px; padding-bottom: 24px; }
  .section-header { gap: 12px; margin-bottom: 20px; align-items: flex-start; }
  .section-header h1, .inner-page h1 { font-size: 28px; }
  .section-header h1 { gap: 8px; flex-wrap: wrap; row-gap: 5px; }
  .section-header h1 > span { font-size: 11px; padding: 3px 6px; }
  .section-header p { font-size: 13px; max-width: 260px; }
  .section-header .button-create { width: 44px; min-width: 44px; height: 44px; padding: 0; font-size: 0; gap: 0; }
  .section-header .button-create svg { width: 21px; height: 21px; }
  .tasks-section .section-header .button-create { display: none; }
  .task-toolbar { flex-wrap: wrap; gap: 8px; }
  .search-field { flex-basis: 100%; padding: 10px 12px; }
  .search-field input { font-size: 16px; }
  .sort-select { margin-left: auto; }
  .sort-select select { font-size: 12px; padding: 6px 0; }
  .categories { gap: 4px; margin: 14px 0 20px; }
  .categories button { font-size: 12px; min-height: 38px; padding: 8px 10px; }
  .categories > button svg { display: none; }
  .saved-entry { margin-left: 0; }
  .saved-entry .text-button { font-size: 12px; min-height: 32px; }
  .saved-entry .saved-label { display: inline; }
  .task-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-open { padding: 20px; }
  .task-body h3 { font-size: 18px; min-height: 0; }
  .task-excerpt { min-height: 0; }
  .feed-empty { padding: 30px 20px; }
  .empty-state h3 { font-size: 20px; }
  .empty-state p { font-size: 13px; }
  .empty-actions { gap: 14px; margin-top: 22px; }
  .empty-actions .button { width: 100%; }
  .page-footer { padding: 18px 0; font-size: 11px; }
  .page-footer button { font-size: 11px; }
  .mobile-nav { display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 12; align-items: center; justify-content: space-around; background: #ffffffef; border: 1px solid #e1e1e8; box-shadow: 0 5px 25px #0000000a; backdrop-filter: blur(18px); border-radius: 18px; padding: 7px; max-width: 560px; margin: auto; }
  .mobile-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1; padding: 5px 2px; min-height: 48px; color: #86868b; font-size: 9.5px; font-weight: 500; }
  .mobile-nav > button > span:last-child { white-space: nowrap; }
  .mobile-nav > button svg { width: 21px; height: 21px; }
  .mobile-nav > button.active { color: var(--accent); }
  .mobile-nav .mobile-create { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; margin: 0 8px; padding: 0; background: var(--accent); color: #fff; border-radius: 12px; }
  .mobile-nav .mobile-create:hover { background: var(--accent-hover); }
  .inner-page { padding-top: 27px; }
  .inner-page > .section-header .button:not(.button-create) { padding: 11px 12px; font-size: 12px; }
  .wallet-grid { grid-template-columns: 1fr; gap: 16px; }
  .balance-card, .escrow-card { padding: 24px; }
  .balance-card h2 { font-size: 44px; }
  .transaction-list { padding: 0 14px; }
  .transaction-list > div { gap: 10px; }
  .transaction-icon { width: 30px; height: 30px; }
  .transaction-list b { font-size: 12px; }
  .payout-settings { padding: 20px; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .payout-settings > div { flex-basis: calc(100% - 50px); }
  .payout-settings .button { width: 100%; }
  .account-summary, .account-form { padding: 24px !important; }
  .account-identity { flex-direction: row; gap: 16px; text-align: left; }
  .account-identity .account-avatar { width: 56px; height: 56px; margin: 0; font-size: 23px; flex-shrink: 0; }
  .account-identity h2 { font-size: 21px; margin-bottom: 7px; }
  .account-identity p { margin-top: 7px; }
  .role-switch button { min-height: 38px; }
  .my-task { padding: 16px; gap: 12px; }
  .my-task-copy > strong { font-size: 14px; }
  .my-task-copy > small { font-size: 11px; }
  .my-task-reward { font-size: 20px; flex-wrap: wrap; gap: 3px; max-width: 78px; }
  .my-task-reward svg { display: none; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { white-space: nowrap; padding: 8px 12px; font-size: 12px; }
  .form-modal { padding: 44px 22px 26px; }
  .form-modal h2, .story-modal h2, .celebration h2, .task-modal h2 { font-size: 25px; }
  .form-modal input:not([type=file]), .form-modal select, .form-modal textarea, .task-chat textarea, #review-form textarea, #review-form select { font-size: 16px; }
  .form-row { gap: 12px; }
  .form-submit-row { flex-direction: column-reverse; }
  .form-submit-row .button, .admin-actions .button, .task-management .button { flex: 1; min-width: 0; }
  .modal { max-height: calc(100dvh - 32px); width: calc(100vw - 24px); border-radius: 18px; }
  .modal-task-visual { padding: 26px 22px 0; }
  .task-modal-content { padding: 16px 22px 26px; }
  .task-summary { gap: 14px; }
  .task-summary > div { min-width: 90px; }
  .task-summary strong { font-size: 15px; }
  .story-modal, .celebration { padding: 44px 24px 28px; }
  .story-modal > .button { width: 100%; }
  .story-orb { width: 58px; height: 58px; }
  .photo-previews, .result-photos { grid-template-columns: repeat(2, 1fr); }
  .photo-previews img, .result-photos img { height: 125px; }
  .progress-hero { grid-template-columns: 70px 1fr; gap: 18px; padding: 20px; }
  .progress-emblem { width: 70px; height: 78px; border-radius: 16px; }
  .progress-emblem > span { font-size: 34px; }
  .progress-emblem small { font-size: 8px; }
  .progress-hero h2 { font-size: 21px; }
  .progress-hero p { font-size: 12px; }
  .progress-hero .eyebrow { font-size: 9px; }
  .xp-label { font-size: 10px; }
  .progress-stats strong { font-size: 25px; }
  .progress-stats > div { padding: 20px 8px; }
  .progress-stats > div > span { font-size: 10px; }
  .achievement-grid { gap: 8px; }
  .achievement { padding: 18px 10px; }
  .achievement h3 { font-size: 12px; }
  .achievement p, .achievement > small { font-size: 10px; }
  .journey-steps { padding: 22px; }
  .hero { grid-template-columns: 1fr; }
  .hero h2 { font-size: 23px; }
  .hero-world { height: 230px; }
  .map-layout { grid-template-columns: 1fr; }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 370px) {
  .main-content { padding-left: 16px; padding-right: 16px; }
  .mobile-brand { font-size: 22px; }
  .city-picker select { max-width: 118px; font-size: 11px; }
  .categories button { padding: 8px; font-size: 11px; }
  .categories { gap: 2px; }
  .section-header h1 { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
