@layer reset, base, layout, components, responsive;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  body, h1, h2, h3, h4, p { margin: 0; }
  button, input, textarea, select { font: inherit; }
  button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
  button { cursor: pointer; }
  a { color: inherit; }
  svg { flex-shrink: 0; }
  button:disabled { cursor: wait; opacity: .65; }
  [hidden] { display: none !important; }
}

@layer base {
  :root {
    color-scheme: light;
    --canvas: #faf7ef;
    --paper: #fff;
    --ink: #19332f;
    --muted: #64716c;
    --forest: #123c33;
    --navy: #182e32;
    --green: #168048;
    --green-dark: #0d6436;
    --lime: #d8ef8c;
    --line: #dfe6dc;
    --soft: #edf3e9;
    --danger: #a8342e;
    --radius: 18px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-synthesis: none;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--canvas); color: var(--ink); line-height: 1.55; font-size: 15px; }
  body:has(dialog[open]) { overflow: hidden; }
  h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.035em; }
  h1 { font-size: clamp(34px, 4.3vw, 58px); font-weight: 750; }
  h2 { font-size: 26px; font-weight: 730; }
  h3 { font-size: 19px; font-weight: 700; }
  h4 { font-size: 16px; }
  button { color: inherit; }
  a { text-decoration: none; }
  p + p { margin-top: 12px; }
  small { font-size: 12px; line-height: 1.5; }
  :focus-visible { outline: 3px solid #337bb7; outline-offset: 4px; }
  ::selection { color: var(--forest); background: var(--lime); }
  input, textarea, select { width: 100%; min-width: 0; border: 1px solid #cdd8cc; border-radius: 9px; background: #fff; color: var(--ink); padding: 12px 13px; min-height: 45px; line-height: 1.4; }
  input::placeholder, textarea::placeholder { color: #7b8780; }
  textarea { resize: vertical; }
  label { display: flex; flex-direction: column; gap: 7px; color: #314a41; font-size: 13px; font-weight: 650; }
  label small { color: var(--muted); font-weight: 400; }
  input:focus, textarea:focus, select:focus { border-color: var(--green); }
  input[type='checkbox'] { width: 19px; height: 19px; min-height: 19px; accent-color: var(--green); }
  .icon { width: 20px; height: 20px; vertical-align: middle; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .skip-link { position: fixed; z-index: 100; top: -80px; left: 16px; background: white; padding: 12px 20px; border-radius: 8px; box-shadow: 0 2px 20px #0002; }
  .skip-link:focus { top: 12px; }
  .muted { color: var(--muted); }
  .fine-print { color: var(--muted); font-size: 12px; line-height: 1.6; }
  .preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
  .eyebrow { font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .13em; }
  .full-width { width: 100%; }
}

@layer layout {
  .page-width, .header-inner, .browse-hero { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
  .demo-strip { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 33px; padding: 6px 20px; background: var(--navy); color: #e9eee8; font-size: 11px; letter-spacing: .01em; }
  .demo-strip strong { color: var(--lime); white-space: nowrap; }
  .demo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
  .site-header { background: #fff; border-bottom: 1px solid var(--line); }
  .header-inner { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
  .wordmark { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--forest); font-size: 23px; font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
  .wordmark .brand-domain { align-self: flex-end; margin: 0 0 6px 2px; color: var(--muted); font-weight: 450; font-size: 10px; letter-spacing: -.02em; }
  .brand-symbol { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 11px 11px 11px 3px; margin-right: 8px; background: var(--green); color: white; }
  .brand-symbol .icon { width: 23px; height: 23px; stroke-width: 2.5px; }
  .header-inner nav { display: flex; align-items: center; gap: 23px; align-self: stretch; }
  .header-inner nav a { position: relative; display: flex; align-items: center; color: #60706a; white-space: nowrap; font-size: 13px; font-weight: 650; }
  .header-inner nav a[aria-current] { color: var(--forest); }
  .header-inner nav a[aria-current]::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--green); }
  .header-inner nav a:hover { color: var(--green); }
  .header-actions { display: flex; align-items: center; gap: 14px; }
  .browse-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 40px; min-height: 422px; padding-block: 52px 46px; }
  .hero-copy { min-width: 0; max-width: 660px; position: relative; z-index: 1; }
  .hero-copy .eyebrow { color: var(--green-dark); display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
  .hero-copy .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
  .hero-copy h1 { font-size: clamp(42px, 4.8vw, 66px); line-height: 1.06; letter-spacing: -.055em; }
  .hero-copy > p:not(.eyebrow) { max-width: 460px; color: #607068; font-size: 15px; margin-top: 19px; line-height: 1.7; }
  .hero-footnote { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6b786f; margin-top: 15px; flex-wrap: wrap; }
  .hero-footnote .icon { width: 14px; height: 14px; }
  .hero-footnote > span { border-left: 1px solid #c9d2c3; padding-left: 10px; margin-left: 4px; }
  .browse-body { padding-bottom: 70px; }
  .category-rail { display: flex; gap: 9px; overflow-x: auto; padding: 0 0 27px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .market-layout { display: grid; grid-template-columns: 219px minmax(0,1fr); gap: 36px; }
  .task-results { min-width: 0; }
  .results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 24px; }
  .results-toolbar .eyebrow { color: var(--muted); margin-bottom: 8px; font-size: 10px; }
  .results-toolbar h2 { font-size: 24px; }
  .results-toolbar h2 > span { display: inline-grid; place-items: center; background: #e7eddf; border-radius: 6px; color: #5c6e4c; font-size: 12px; vertical-align: middle; min-width: 26px; height: 24px; margin-left: 7px; letter-spacing: 0; }
  .task-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .standard-page { padding-block: 54px 78px; min-height: 65vh; }
  .page-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 34px; }
  .page-heading .eyebrow { color: var(--green-dark); margin-bottom: 13px; }
  .page-heading h1 { font-size: clamp(32px, 4vw, 46px); }
  .page-heading p:not(.eyebrow) { color: var(--muted); max-width: 690px; margin-top: 14px; }
  .page-heading > .button { flex-shrink: 0; }
  .my-task-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .site-footer { padding: 30px 48px; text-align: center; border-top: 1px solid var(--line); background: #eff3e9; }
  .site-footer .wordmark { font-size: 19px; }
  .site-footer .wordmark span { margin-left: 2px; font-size: 11px; }
  .site-footer > p { font-size: 12px; color: var(--muted); margin-top: 8px; }
  main:focus, #modal-title:focus { outline: none; }
}

@layer components {
  .button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; border: 1px solid transparent; border-radius: 9px; padding: 11px 17px; font-weight: 680; font-size: 13px; text-align: center; line-height: 1.4; transition: background .15s, border-color .15s, box-shadow .15s; }
  .button.primary { background: var(--green); color: #fff; box-shadow: 0 2px 2px #10351f0d; }
  .button.primary:hover { background: var(--green-dark); }
  .button.secondary { background: #fff; color: var(--forest); border-color: #cedbce; }
  .button.secondary:hover { background: var(--soft); border-color: #adbfaa; }
  .button.danger { background: var(--danger); color: #fff; }
  .button.danger:hover { background: #85251f; }
  .button.small { font-size: 12px; min-height: 38px; padding: 8px 13px; }
  .button .icon { width: 17px; height: 17px; }
  .text-button, .text-link, .back-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; border: 0; color: var(--green-dark); font-size: 13px; font-weight: 650; padding: 7px 0; }
  .text-button:hover, .text-link:hover, .back-button:hover { text-decoration: underline; }
  .danger-text { color: var(--danger); }
  .icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 50%; background: transparent; color: var(--forest); padding: 8px; }
  .icon-button:hover { background: var(--soft); }
  .notification-button { position: relative; }
  .notification-count { position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding-inline: 4px; display: grid; place-items: center; border-radius: 10px; background: var(--green); color: white; font-size: 9px; font-weight: 700; border: 2px solid white; }
  .avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: #e3eddd; color: #42613d; font-size: 12px; font-weight: 750; letter-spacing: -.02em; }
  .avatar-poster { background: #f3dfc6; color: #7f5437; }
  .avatar-helper { background: #dce8f2; color: #395d78; }
  .avatar-helper2 { background: #e5def1; color: #6d5089; }
  .avatar-admin { background: #243b34; color: #e8efc9; }
  .account-button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; text-align: left; padding: 5px 0; font-size: 12px; font-weight: 650; white-space: nowrap; }
  .account-button small { display: block; font-weight: 400; font-size: 10px; color: var(--muted); }
  .search-box { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 15px; background: white; border: 1px solid #d5dfcf; border-radius: 11px; box-shadow: 0 5px 18px #294e1a05; margin-top: 25px; max-width: 560px; }
  .search-box > .icon { color: #70816a; width: 18px; height: 18px; }
  .search-box input { border: 0; padding: 10px 0; background: transparent; flex: 1; font-size: 13px; }
  .search-box input:focus-visible { outline-offset: 0; }
  .search-box .button { white-space: nowrap; }
  .hero-scene { position: relative; min-width: 0; width: 100%; margin: 0; padding: 13px; border: 1px solid #c8d3b9; border-radius: 26px 26px 26px 8px; background: #eaf0d9; box-shadow: 7px 9px 0 #dbe7b5; }
  .hero-scene-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 5px 11px; color: var(--forest); }
  .scene-kicker { font-size: 12px; font-weight: 750; letter-spacing: .01em; }
  .scene-spark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f1ccb7; color: #914a32; transform: rotate(12deg); }
  .scene-spark .icon { width: 18px; height: 18px; }
  .hero-video-frame { position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #d2d9bd; border-radius: 16px; background: #f9edd9; }
  .hero-video, .hero-video-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
  .hero-video-poster { color: var(--forest); font-size: 13px; }
  .hero-video { opacity: 0; pointer-events: none; }
  .has-video-frame .hero-video { opacity: 1; }
  .hero-scene-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 11px 4px 0; color: var(--forest); }
  .hero-scene-caption > span { flex: 1 1 140px; font-family: Georgia, serif; font-style: italic; font-size: 17px; line-height: 1.4; }
  .hero-video-toggle { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--forest); border-radius: 24px; background: var(--forest); color: #f7f9e8; font-size: 11px; font-weight: 650; }
  .hero-video-toggle:hover { background: #245546; }
  .hero-video-toggle .icon { width: 15px; height: 15px; }
  .hero-video-status { margin: 0; color: #6c4536; font-size: 11px; }
  .hero-video-status:not(:empty) { margin: 9px 4px 2px; }
  .category-chip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 15px; background: white; color: #607064; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: 1; min-height: 46px; }
  .category-chip .icon { width: 18px; height: 18px; }
  .category-chip[aria-pressed='true'] { background: var(--forest); color: #fff; border-color: var(--forest); }
  .category-chip:hover:not([aria-pressed='true']) { background: var(--soft); }
  .filter-sidebar details { padding: 0 0 22px; border-bottom: 1px solid var(--line); }
  .filter-sidebar summary { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 5px 0; cursor: pointer; list-style: none; }
  .filter-sidebar summary::-webkit-details-marker { display: none; }
  .filter-sidebar summary .icon { width: 17px; height: 17px; }
  .filter-toggle { display: none; }
  #filter-form { display: flex; flex-direction: column; gap: 19px; padding-top: 23px; }
  #filter-form label { font-size: 12px; }
  #filter-form input, #filter-form select { font-size: 12px; padding: 10px; min-height: 41px; }
  #filter-form .text-button { margin-top: -13px; font-size: 11px; }
  .sidebar-note { margin-top: 24px; padding: 20px 18px; background: #eaf0df; border-radius: 13px; }
  .sidebar-note > .icon { color: #718e53; margin-bottom: 11px; }
  .sidebar-note h3 { font-size: 14px; letter-spacing: -.02em; }
  .sidebar-note p { color: #637555; font-size: 12px; margin-top: 10px; line-height: 1.7; }
  .sidebar-note .text-button { font-size: 12px; margin-top: 9px; }
  .sort-label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; font-weight: 400; }
  .sort-label select { font-size: 11px; padding: 9px; min-height: 36px; width: 131px; background: transparent; }
  .task-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 21px 20px 16px; transition: box-shadow .2s, border-color .2s, transform .2s; position: relative; }
  .task-card:hover, .task-card:focus-within { border-color: #adbf9e; box-shadow: 0 7px 22px #203b1810; transform: translateY(-2px); }
  .card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
  .category-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #eff1e4; color: #6a7b42; }
  .category-icon .icon { width: 26px; height: 26px; }
  .category-0 { background: #f1e9dd; color: #987040; }
  .category-1 { background: #e8edf4; color: #587693; }
  .category-2 { background: #f5e8e3; color: #ac7761; }
  .category-3 { background: #e8efdc; color: #6b873c; }
  .category-4 { background: #eee7f2; color: #87669f; }
  .category-5 { background: #f5eed9; color: #9a8041; }
  .category-6 { background: #e0eeeb; color: #4f897e; }
  .card-budget { text-align: right; }
  .card-budget small { display: block; font-size: 9px; color: #7b887d; }
  .card-budget strong { display: block; font-size: 26px; letter-spacing: -.055em; font-weight: 750; line-height: 1.4; }
  .card-category { color: #829071; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 7px; }
  .task-card h3 { font-size: 17px; line-height: 1.4; letter-spacing: -.025em; }
  .task-card h3 button { font: inherit; text-align: left; background: transparent; padding: 0; border: 0; overflow-wrap: anywhere; }
  .task-card h3 button::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
  .task-card h3 button:focus-visible { outline: none; }
  .task-card:has(h3 button:focus-visible) { outline: 3px solid #337bb7; outline-offset: 3px; }
  .card-description { font-size: 12px; color: #7a857c; margin-top: 9px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .card-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; margin-top: auto; font-size: 11px; color: #66736c; }
  .card-meta > span { display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
  .card-meta .icon { width: 14px; height: 14px; color: #899782; }
  .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; border-top: 1px solid #edf0e9; padding-top: 14px; margin-top: 17px; }
  .badges { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .status { display: inline-block; padding: 4px 8px; background: #edf4e6; color: #4c7534; border-radius: 5px; font-size: 10px; font-weight: 650; line-height: 1.5; text-transform: none; }
  .status-assigned, .status-accepted { background: #e7eef5; color: #426986; }
  .status-completion_requested { background: #fcf0d5; color: #8a6718; }
  .status-completed { background: #e0f0e6; color: #2f7249; }
  .status-disputed { background: #f9e7d9; color: #975826; }
  .status-cancelled, .status-rejected, .status-withdrawn, .status-hidden { background: #f0ece9; color: #7c716a; }
  .offer-count { display: flex; align-items: center; gap: 9px; color: #88927d; font-size: 10px; white-space: nowrap; }
  .offer-count .icon { color: #47653b; width: 15px; height: 15px; }
  .results-note { text-align: center; color: #8a9585; font-size: 11px; margin-top: 26px; }
  .empty-state { grid-column: 1 / -1; padding: 46px 24px; background: white; border: 1px dashed #d5dfce; border-radius: 15px; text-align: center; }
  .empty-state > .icon { width: 33px; height: 33px; color: #90a182; margin-bottom: 16px; }
  .empty-state h3 { font-size: 20px; margin-bottom: 10px; }
  .empty-state p { color: var(--muted); max-width: 460px; margin-inline: auto; font-size: 14px; }
  .empty-state .button { margin-top: 20px; }
  .demo-guide { display: flex; align-items: center; gap: 18px; background: #eaf1df; padding: 22px 25px; border: 1px solid #dce6d0; border-radius: 14px; margin-bottom: 27px; }
  .guide-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--lime); flex-shrink: 0; font-weight: 750; }
  .demo-guide p { font-size: 13px; margin-top: 5px; color: #617153; max-width: 830px; }
  .demo-guide .button { flex-shrink: 0; margin-left: auto; }
  .segmented { display: flex; gap: 5px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
  .segmented button { background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 13px 17px; font-size: 13px; font-weight: 600; color: var(--muted); }
  .segmented button[aria-pressed='true'] { border-bottom-color: var(--green); color: var(--forest); }
  .conversation-list { background: white; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
  .conversation { display: flex; align-items: center; gap: 20px; width: 100%; text-align: left; padding: 25px; background: white; border: 0; border-bottom: 1px solid var(--line); }
  .conversation:last-child { border-bottom: 0; }
  .conversation:hover { background: #f4f7ef; }
  .conversation .avatar { width: 45px; height: 45px; }
  .conversation-copy { min-width: 0; }
  .conversation-copy strong { display: block; font-size: 17px; }
  .conversation-copy > span { font-size: 12px; color: var(--muted); display: block; margin-top: 4px; }
  .conversation-copy small { display: block; color: var(--muted); margin-top: 6px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 650px; }
  .conversation-end { margin-left: auto; flex-shrink: 0; display: grid; justify-items: end; gap: 8px; }
  .conversation-end small { color: var(--muted); font-size: 10px; }
  .help-banner { display: flex; align-items: center; gap: 35px; border-radius: var(--radius); background: var(--forest); color: white; padding: 33px 35px; margin-bottom: 25px; }
  .help-banner > div { max-width: 790px; }
  .help-banner .icon { color: var(--lime); margin-bottom: 14px; }
  .help-banner h2 { margin-bottom: 13px; }
  .help-banner p { color: #c4d4c6; font-size: 14px; }
  .help-banner .button { background: var(--lime); color: var(--forest); flex-shrink: 0; margin-left: auto; }
  .help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .content-panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 30px; }
  .content-panel .eyebrow { color: #7b8d6c; margin-bottom: 12px; }
  .content-panel h2 { font-size: 23px; margin-bottom: 17px; }
  .content-panel p, .steps li { color: var(--muted); font-size: 14px; line-height: 1.8; }
  .steps { margin: 0; padding-left: 21px; }
  .steps li { padding-left: 7px; margin-top: 13px; }
  .steps li::marker { color: var(--green); font-weight: 750; }
  .steps strong { color: var(--ink); }
  .content-panel .text-link { margin-top: 18px; }
  .standard-page > .notice { margin-top: 25px; }
  .stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 38px; }
  .stats-row > div { display: flex; flex-direction: column; border: 1px solid var(--line); background: white; border-radius: 13px; padding: 24px; }
  .stats-row strong { font-size: 36px; line-height: 1.2; letter-spacing: -.04em; }
  .stats-row span { color: var(--muted); margin-top: 7px; font-size: 12px; }
  .admin-section { margin-top: 35px; }
  .admin-section h2 { margin-bottom: 22px; }
  .report-item { display: flex; align-items: center; gap: 25px; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: white; margin-top: 12px; }
  .report-item .eyebrow { font-size: 10px; color: var(--muted); margin-bottom: 8px; }
  .report-item p:not(.eyebrow) { margin-top: 10px; font-size: 14px; }
  .report-item small { color: var(--muted); }
  .report-item .button { margin-left: auto; flex-shrink: 0; }
  .audit-list { list-style: none; padding: 0; margin: 0; }
  .audit-list li { display: flex; gap: 13px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .audit-dot { background: #d3dfc7; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; }
  .audit-list strong { font-size: 13px; }
  .audit-list p { font-size: 13px; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
  .audit-list small { color: #7f8b77; font-size: 10px; }
  dialog { width: min(620px, calc(100% - 40px)); max-height: calc(100dvh - 64px); border: 1px solid #d5dece; padding: 0; border-radius: 20px; color: var(--ink); background: var(--paper); box-shadow: 0 25px 100px #0e211d4d; overscroll-behavior: contain; }
  dialog::backdrop { background: #142d28a3; backdrop-filter: blur(3px); }
  dialog.wide-dialog { width: min(1090px, calc(100% - 48px)); }
  .dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); padding: 25px 30px; background: #fbfcf8; border-radius: 20px 20px 0 0; }
  .dialog-header h2 { font-size: 27px; line-height: 1.3; overflow-wrap: anywhere; }
  .dialog-kicker { margin-top: 10px; color: var(--muted); text-transform: uppercase; font-size: 10px; letter-spacing: .09em; }
  .close-button { flex-shrink: 0; background: #eff3e8; width: 33px; height: 33px; }
  .close-button .icon { width: 17px; height: 17px; }
  .back-button { font-size: 12px; margin-bottom: 8px; padding-top: 0; }
  .dialog-body { padding: 27px 30px 32px; }
  .dialog-body > .muted { font-size: 14px; line-height: 1.7; }
  .stack-form { display: flex; flex-direction: column; gap: 20px; }
  .stack-form > .button { align-self: flex-start; }
  .stack-form .form-error { margin: 0; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .form-error { color: #9b2c29; background: #fcedea; border: 1px solid #eed0c8; border-radius: 9px; padding: 12px 14px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
  .notice { background: #f1f4e9; border: 1px solid #e1e8d6; border-radius: 10px; padding: 15px 17px; color: #667456; font-size: 12px; line-height: 1.7; }
  .notice p { margin-top: 5px; }
  .form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .checkbox-label { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; background: #f5f7f1; padding: 15px; border-radius: 9px; font-size: 12px; }
  .checkbox-label input { margin-top: 2px; }
  .checkbox-label small { display: block; margin-top: 5px; }
  .account-list { display: flex; flex-direction: column; gap: 10px; margin: 23px 0; }
  .account-option { display: flex; align-items: center; gap: 13px; width: 100%; padding: 17px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .account-option:hover { background: #f4f7ee; border-color: #b7c7a7; }
  .account-option > span:not(.avatar):not(.status) { flex: 1; }
  .account-option strong { font-size: 14px; display: block; }
  .account-option small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
  .account-option > .icon { width: 17px; height: 17px; }
  .account-list .form-error { margin-top: 8px; }
  .profile-intro { display: flex; align-items: center; gap: 16px; margin-bottom: 23px; }
  .profile-intro .avatar { width: 68px; height: 68px; font-size: 23px; }
  .profile-intro > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
  .skill-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 20px; }
  .skill-tags > span { padding: 5px 10px; border: 1px solid var(--line); background: #f7f9f3; border-radius: 7px; font-size: 12px; }
  .rating-panel { display: flex; align-items: center; gap: 10px; margin-bottom: 19px; color: #7f7038; }
  .rating-panel strong { font-size: 24px; color: var(--ink); }
  .rating-panel span { font-size: 12px; color: var(--muted); }
  .dialog-body > .notice + h3 { margin-top: 25px; }
  .review-card { border-bottom: 1px solid var(--line); padding: 19px 0; }
  .review-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .review-card strong { font-size: 13px; }
  .review-card span { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #8a7939; }
  .review-card .icon { width: 15px; height: 15px; }
  .review-card p { margin-top: 10px; font-size: 14px; }
  .review-card small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
  .task-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; }
  .task-detail-main { min-width: 0; padding: 25px 30px; }
  .detail-meta { display: flex; gap: 10px 20px; flex-wrap: wrap; font-size: 12px; color: var(--muted); padding-bottom: 4px; }
  .detail-meta span { display: flex; align-items: center; gap: 7px; }
  .detail-meta .icon { width: 15px; height: 15px; color: #809274; }
  .detail-section { padding-block: 25px; border-bottom: 1px solid var(--line); scroll-margin: 20px; }
  .detail-section:last-child { border-bottom: 0; }
  .detail-section > h3, .section-title { margin-bottom: 16px; }
  .detail-section > h3 { display: flex; align-items: center; gap: 8px; }
  .detail-section p.muted { font-size: 13px; }
  .detail-section > .fine-print { margin-top: -4px; margin-bottom: 17px; }
  .task-description { font-size: 14px; line-height: 1.9; color: #4e6156; }
  .location-note { display: flex; align-items: flex-start; gap: 11px; padding: 16px; margin-top: 20px; border-radius: 9px; background: #f3f6ee; font-size: 12px; color: #6b7c5c; }
  .location-note > .icon { width: 17px; height: 17px; margin-top: 2px; }
  .location-note p { margin-top: 4px; overflow-wrap: anywhere; }
  .person { display: inline-flex; align-items: center; gap: 10px; padding: 0; background: transparent; border: 0; text-align: left; min-width: 0; }
  .person strong { display: block; font-size: 13px; }
  .person small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
  .person:hover strong { text-decoration: underline; }
  .spaced-heading { margin-top: 24px; }
  .section-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
  .count-pill { border: 1px solid var(--line); padding: 2px 8px; border-radius: 20px; font-size: 10px; color: var(--muted); }
  .offer-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 12px; }
  .accepted-offer { background: #f5f9ef; border-color: #c5d7b1; }
  .offer-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
  .offer-top > strong { font-size: 24px; letter-spacing: -.04em; text-align: right; white-space: nowrap; }
  .offer-top > strong small { display: block; font-weight: 400; color: var(--muted); font-size: 9px; letter-spacing: .03em; }
  .offer-card > p { font-size: 13px; line-height: 1.8; margin-top: 15px; color: #61705f; }
  .offer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; gap: 13px; }
  .inset-form { display: flex; flex-direction: column; gap: 15px; margin-top: 22px; padding: 22px; background: #f3f7ed; border: 1px solid #dfe7d5; border-radius: 12px; scroll-margin: 20px; }
  .inset-form > .button { align-self: flex-start; }
  .task-summary { padding: 27px 24px; background: #f8faf4; border-left: 1px solid var(--line); border-radius: 0 0 20px 0; }
  .summary-budget small { display: block; font-size: 11px; color: var(--muted); }
  .summary-budget strong { display: block; font-size: 42px; font-weight: 750; letter-spacing: -.055em; margin-top: 3px; line-height: 1.3; }
  .summary-budget > span { display: block; font-size: 10px; color: #829073; margin-top: 5px; margin-bottom: 21px; }
  .next-step { font-size: 12px; color: #6f7c65; line-height: 1.8; margin-top: 19px; }
  .task-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
  .task-actions .text-button { font-size: 11px; }
  .payment-summary { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
  .payment-summary h4 { display: flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: 0; }
  .payment-summary h4 .icon { width: 14px; height: 14px; }
  .payment-summary > p:not(.fine-print) { font-size: 12px; margin-top: 12px; color: #5f7456; }
  .payment-summary small { display: block; font-size: 10px; margin-top: 7px; color: #7f8c76; }
  .payment-summary .fine-print { font-size: 10px; margin-top: 14px; }
  .question { padding: 17px 0; border-bottom: 1px solid #edf0e7; }
  .question:first-child { padding-top: 0; }
  .question > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .question > div > small { font-size: 10px; color: #8a9582; }
  .question p { font-size: 13px; margin-top: 10px; color: #5e7059; }
  .question-list + .stack-form { margin-top: 20px; }
  .message-thread { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
  .message-bubble { align-self: flex-start; max-width: 94%; width: fit-content; background: #f1f4ec; padding: 15px; border-radius: 12px 12px 12px 2px; }
  .message-bubble.own-message { background: #e6f1e5; align-self: flex-end; border-radius: 12px 12px 2px 12px; }
  .message-bubble > div { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
  .message-bubble strong { font-size: 11px; }
  .message-bubble small { font-size: 9px; color: #7c8b71; }
  .message-bubble p { font-size: 13px; margin-top: 7px; line-height: 1.7; }
  .action-task-reference { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 10px; background: #f4f7ee; }
  .action-task-reference strong { font-size: 14px; overflow-wrap: anywhere; }
  .action-task-reference .icon { color: #738b5b; }
  .notification-list { margin-top: 20px; }
  .notification { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .notification-dot { background: #d8dfd1; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; margin-top: 6px; }
  .notification.unread .notification-dot { background: var(--green); }
  .notification p { font-size: 13px; overflow-wrap: anywhere; }
  .notification small { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
  .notification .text-button { font-size: 11px; }
  .initial-loading { min-height: 60vh; display: flex; gap: 13px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
  .spinner { width: 20px; height: 20px; border: 2px solid #cfdac6; border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
  .toast { position: fixed; bottom: 26px; left: 50%; z-index: 20; transform: translate(-50%, 18px); background: var(--forest); color: #f4f8ef; font-size: 13px; border: 1px solid #567559; border-radius: 12px; padding: 15px 22px; box-shadow: 0 9px 30px #15291b33; max-width: min(540px, calc(100vw - 30px)); width: max-content; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s; pointer-events: none; }
  .toast.visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  @keyframes spin { to { transform: rotate(360deg); } }
}

@layer responsive {
  @media (min-width: 1500px) { .browse-hero { min-height: 455px; } }
  @media (max-width: 1240px) {
    .page-width, .header-inner, .browse-hero { width: calc(100% - 64px); }
    .header-inner { gap: 20px; }
    .header-inner nav { gap: 16px; }
    .header-inner nav a { font-size: 12px; }
    .brand-domain { display: none; }
    .header-actions { gap: 9px; }
    .header-post { padding-inline: 13px; font-size: 12px; }
    .account-button > span:not(.avatar) { display: none; }
    .category-chip { padding-inline: 12px; font-size: 11px; }
    .market-layout { grid-template-columns: 195px minmax(0,1fr); gap: 25px; }
    .task-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .my-task-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .browse-hero { gap: 28px; }
  }
  @media (max-width: 960px) {
    .header-inner { flex-wrap: wrap; min-height: 110px; gap: 0 15px; padding-top: 16px; }
    .header-inner nav { order: 3; width: 100%; height: 45px; gap: 28px; overflow-x: auto; }
    .header-inner nav a { font-size: 12px; }
    .header-inner .brand-domain { display: inline; }
    .header-actions { margin-left: auto; }
    .account-button > span:not(.avatar) { display: block; }
    .browse-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 42px; min-height: 390px; gap: 24px; }
    .hero-copy h1 { font-size: 48px; }
    .hero-scene { padding: 10px; box-shadow: 5px 7px 0 #dbe7b5; }
    .hero-footnote > span { display: none; }
    .search-box { gap: 7px; padding-left: 10px; }
    .search-box .button { font-size: 12px; padding-inline: 11px; }
    .search-box .button .icon { display: none; }
    .my-task-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .task-card { padding-inline: 17px; }
    .results-toolbar { align-items: flex-start; }
    .results-toolbar h2 { font-size: 21px; }
    .sort-label { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 10px; }
    .sort-label select { width: 119px; }
    .demo-guide { flex-wrap: wrap; }
    .demo-guide > div { flex: 1; }
    .demo-guide .button { margin-left: 54px; }
    .task-detail-layout { grid-template-columns: minmax(0,1fr) 250px; }
    .task-detail-main { padding-inline: 24px; }
    .task-summary { padding-inline: 20px; }
    .help-banner { padding: 26px; }
    .help-grid { gap: 18px; }
    .content-panel { padding: 25px; }
  }
  @media (max-width: 720px) {
    .page-width, .header-inner, .browse-hero { width: calc(100% - 36px); }
    .demo-strip { font-size: 10px; gap: 7px; padding: 7px 15px; line-height: 1.5; }
    .demo-strip > span:last-child { max-width: 300px; }
    .demo-dot { display: none; }
    .wordmark { font-size: 21px; }
    .brand-symbol { width: 29px; height: 29px; margin-right: 7px; }
    .header-inner .brand-domain { display: none; }
    .header-inner nav { gap: 24px; margin-top: 6px; }
    .header-inner nav a { font-size: 12px; }
    .header-actions { gap: 7px; }
    .account-button > span:not(.avatar) { display: none; }
    .account-button > .avatar { width: 30px; height: 30px; font-size: 10px; }
    .header-actions .notification-button { width: 30px; height: 30px; padding: 5px; }
    .header-post { min-height: 36px; padding: 8px 11px; font-size: 11px; border-radius: 7px; }
    .header-post > .icon { display: none; }
    .browse-hero { display: block; min-height: auto; padding: 37px 0 29px; }
    .hero-copy { max-width: 560px; }
    .hero-copy .eyebrow { font-size: 10px; margin-bottom: 16px; }
    .hero-copy h1 { font-size: clamp(40px, 8.4vw, 56px); }
    .hero-copy > p:not(.eyebrow) { font-size: 14px; max-width: 430px; margin-top: 17px; }
    .hero-scene { max-width: 560px; margin: 27px auto 7px; }
    .hero-scene-heading { padding-bottom: 9px; }
    .hero-scene-caption > span { font-size: 16px; }
    .hero-footnote { font-size: 10px; }
    .hero-footnote > span { display: inline; }
    .search-box { margin-top: 22px; }
    .search-box input { font-size: 13px; }
    .search-box .button { padding: 12px 15px; }
    .category-rail { margin-inline: -18px; padding-inline: 18px; padding-bottom: 21px; margin-bottom: 21px; }
    .category-chip { flex: 0 0 auto; min-height: 40px; padding: 9px 13px; font-size: 11px; }
    .market-layout { display: block; }
    .filter-sidebar { margin-bottom: 25px; }
    .filter-sidebar details { border: 1px solid var(--line); padding: 13px 16px; border-radius: 11px; background: white; }
    .filter-sidebar summary { font-size: 13px; padding: 0; }
    .filter-toggle { display: inline; font-size: 10px; color: var(--muted); margin-left: auto; font-weight: 400; }
    #filter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 18px; }
    #filter-form .text-button { margin-top: 0; }
    .sidebar-note { display: none; }
    .results-toolbar { align-items: center; margin-bottom: 19px; }
    .results-toolbar .eyebrow { font-size: 9px; }
    .results-toolbar h2 { font-size: 21px; }
    .results-toolbar h2 > span { font-size: 10px; min-width: 22px; height: 21px; margin-left: 3px; }
    .sort-label { gap: 3px; }
    .task-grid { gap: 13px; }
    .task-card { padding: 17px 15px 13px; border-radius: 12px; }
    .card-top { margin-bottom: 15px; }
    .category-icon { width: 39px; height: 39px; border-radius: 10px; }
    .category-icon .icon { width: 23px; height: 23px; }
    .card-budget strong { font-size: 23px; }
    .card-budget small { font-size: 8px; }
    .task-card h3 { font-size: 15px; }
    .card-description { font-size: 11px; }
    .card-meta { font-size: 10px; }
    .card-bottom { flex-wrap: wrap; gap: 7px; }
    .card-bottom .status { font-size: 9px; }
    .offer-count { font-size: 9px; margin-left: auto; }
    .card-bottom .offer-count .icon { display: none; }
    .results-note { font-size: 10px; }
    .standard-page { padding-top: 33px; padding-bottom: 50px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 26px; }
    .page-heading h1 { font-size: 34px; }
    .page-heading p:not(.eyebrow) { font-size: 14px; }
    .demo-guide { padding: 18px; gap: 12px; }
    .demo-guide p { font-size: 12px; }
    .demo-guide strong { font-size: 14px; }
    .demo-guide .button { margin-left: 48px; font-size: 12px; }
    .segmented { overflow-x: auto; white-space: nowrap; }
    .segmented button { font-size: 12px; padding-inline: 11px; }
    .conversation { gap: 12px; padding: 19px 16px; align-items: flex-start; }
    .conversation .avatar { width: 33px; height: 33px; font-size: 10px; }
    .conversation-copy { flex: 1; }
    .conversation-copy strong { font-size: 14px; }
    .conversation-copy small { max-width: 100%; font-size: 11px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .conversation-end { max-width: 105px; }
    .conversation-end small { display: none; }
    .conversation-end .status { font-size: 9px; }
    .help-banner { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
    .help-banner .button { margin-left: 0; }
    .help-grid { grid-template-columns: 1fr; gap: 16px; }
    .content-panel { padding: 24px; }
    .stats-row { gap: 10px; }
    .stats-row > div { padding: 17px 13px; }
    .stats-row strong { font-size: 30px; }
    .stats-row span { font-size: 10px; }
    .report-item { flex-direction: column; align-items: flex-start; gap: 15px; padding: 20px; }
    .report-item .button { margin-left: 0; }
    dialog, dialog.wide-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 15px; }
    .dialog-header { padding: 21px 20px; border-radius: 15px 15px 0 0; gap: 10px; }
    .dialog-header h2 { font-size: 23px; }
    .dialog-body { padding: 22px 20px; }
    .task-detail-layout { display: flex; flex-direction: column; }
    .task-summary { order: -1; padding: 22px 20px; border-left: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
    .summary-budget { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
    .summary-budget strong { grid-column: 2; grid-row: 1 / 3; font-size: 34px; margin: 0; }
    .summary-budget > span { margin: 0; grid-column: 1; font-size: 9px; }
    .task-summary > .badges { margin-top: 16px; }
    .next-step { font-size: 12px; margin-top: 14px; }
    .task-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 17px; gap: 8px; }
    .task-actions .button:first-child { grid-column: 1 / -1; }
    .task-actions .button { font-size: 12px; }
    .payment-summary { margin-top: 18px; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 15px; }
    .payment-summary h4 { grid-column: 1 / -1; }
    .payment-summary p, .payment-summary small, .payment-summary .fine-print { margin-top: 0; }
    .payment-summary > p:not(.fine-print) { margin-top: 0; font-size: 10px; }
    .payment-summary .fine-print { grid-column: 1 / -1; }
    .task-detail-main { padding: 21px 20px; }
    .detail-meta { gap: 9px 15px; font-size: 11px; }
    .detail-section { padding-block: 22px; }
    .detail-section h3 { font-size: 18px; }
    .task-description { font-size: 13px; }
    .person .avatar { width: 32px; height: 32px; font-size: 10px; }
    .person strong { font-size: 12px; }
    .offer-card { padding: 16px; }
    .offer-top > strong { font-size: 22px; }
    .inset-form { padding: 18px; }
    .message-bubble { max-width: 98%; }
    .message-bubble > div { flex-wrap: wrap; gap: 3px 15px; }
    .account-option { padding: 14px 12px; gap: 10px; }
    .account-option small { font-size: 10px; }
    .account-option strong { font-size: 13px; }
    .account-option .status { font-size: 9px; }
    .site-footer { padding: 26px 20px; }
    .site-footer .fine-print { max-width: 370px; margin-inline: auto; font-size: 10px; }
    .toast { bottom: 15px; font-size: 12px; padding: 13px 17px; }
    input, textarea, select { font-size: 16px; }
  }
  @media (max-width: 390px) {
    .page-width, .header-inner, .browse-hero { width: calc(100% - 28px); }
    .header-inner { gap: 0 8px; }
    .wordmark { font-size: 18px; }
    .brand-symbol { width: 26px; height: 26px; margin-right: 5px; }
    .header-post { font-size: 10px; padding: 8px; }
    .header-actions { gap: 3px; }
    .header-inner nav { gap: 20px; }
    .hero-copy h1 { font-size: 39px; }
    .hero-footnote > span { display: none; }
    .search-box > .icon { display: none; }
    .task-grid { grid-template-columns: 1fr; }
    .card-bottom { flex-wrap: nowrap; }
    .card-budget strong { font-size: 29px; }
    .task-card h3 { font-size: 18px; }
    .card-description { font-size: 12px; }
    .card-meta { flex-direction: row; flex-wrap: wrap; gap: 13px; font-size: 11px; }
    .card-top { margin-bottom: 14px; }
    .category-rail { margin-inline: -14px; padding-inline: 14px; }
    .form-row { grid-template-columns: 1fr; }
    .summary-budget strong { font-size: 30px; }
    .conversation-end { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }
}
