:root{
    --ink:#1E2A33;
    --paper:#F6F4EF;
    --paper-dark:#E9E5DA;
    --gold:#C9A24B;
    --gold-dark:#A8813A;
    --teal:#35606B;
    --rust:#B33A2E;
    --rust-dark:#93302A;
    --line: rgba(30,42,51,0.14);
    --shadow: 0 6px 16px rgba(30,42,51,0.16);
  }
  *{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:'IBM Plex Sans', sans-serif;
    line-height:1.5;
  }
  h1,h2,h3,.display{
    font-family:'Fraunces', serif;
    font-weight:600;
    margin:0;
    letter-spacing:-0.01em;
  }
  a{color:inherit;}
  img{max-width:100%; display:block;}
  .wrap{max-width:1140px; margin:0 auto; padding:0 28px;}

  @media (prefers-reduced-motion: reduce){
    *{animation:none !important; transition:none !important;}
  }

  /* ---------- NAV ---------- */
  header.site{
    position:sticky; top:0; z-index:50;
    background:var(--paper);
    border-bottom:1px solid var(--line);
  }
  .nav{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 28px;
    max-width:1140px; margin:0 auto;
  }
  .brand{
    display:flex; align-items:center; gap:10px;
    font-family:'Fraunces', serif; font-weight:700; font-size:1.35rem;
    white-space:nowrap; flex:0 0 auto;
  }
  .brand .pin{
    width:11px; height:11px; border-radius:50%;
    background:var(--rust);
    box-shadow: 0 0 0 3px rgba(179,58,46,0.18);
  }
  /* Nav items are sized by their text; without this, flex shrinks them below their
     natural width, which wraps the wordmark and clips the language switcher. */
  .nav-links{display:flex; gap:24px; font-size:0.95rem; flex:0 1 auto;}
  .nav-links a{text-decoration:none; opacity:0.8; white-space:nowrap;}
  .nav-links a:hover{opacity:1;}
  .nav-cta{
    background:var(--ink); color:var(--paper);
    border:none; padding:10px 16px; border-radius:3px;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.9rem; font-weight:600;
    cursor:pointer; white-space:nowrap; flex:0 0 auto;
    max-width:190px; overflow:hidden; text-overflow:ellipsis;
  }
  /* The bar needs ~985px to hold the wordmark, links, language switcher, Messages
     and the account button at their natural size. Below that the links go first,
     rather than letting the header overflow and scroll the page sideways. */
  @media (max-width:1000px){ .nav-links{display:none;} }

  .nav-right{ display:flex; align-items:center; gap:12px; flex:0 0 auto; }
  .lang-switch{
    display:flex; border:1px solid var(--line); border-radius:20px; overflow:hidden;
    flex:0 0 auto;
  }
  .lang-switch button{
    background:none; border:none; padding:7px 11px;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.82rem; font-weight:600;
    color:var(--ink); opacity:0.55; cursor:pointer;
    flex:0 0 auto; white-space:nowrap;
  }
  .lang-switch button.active{ opacity:1; background:var(--paper-dark); }
  .lang-switch button + button{ border-left:1px solid var(--line); }

  .nav-outline-btn{
    position:relative;
    background:none; border:1px solid var(--ink); color:var(--ink);
    padding:9px 14px; border-radius:3px;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.9rem; font-weight:600;
    cursor:pointer; white-space:nowrap; flex:0 0 auto;
  }
  .nav-outline-btn:hover{ background:var(--ink); color:var(--paper); }
  .msg-badge{
    position:absolute; top:-7px; right:-7px;
    background:var(--rust); color:#fff;
    font-size:0.68rem; font-weight:700;
    min-width:18px; height:18px; border-radius:9px;
    display:flex; align-items:center; justify-content:center;
    padding:0 4px; line-height:1;
  }
  .msg-badge[hidden]{ display:none; }

  .nav-report-btn{
    width:36px; height:36px; border-radius:50%; flex:0 0 auto;
    background:none; border:1px solid var(--ink); color:var(--ink);
    font-size:1rem; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
  }
  .nav-report-btn:hover{ background:var(--rust); border-color:var(--rust); color:#fff; }

  /* ---------- PAGE HEAD ---------- */
  .page-head{
    background:var(--teal);
    padding:32px 32px 28px;
    border-radius:8px;
    margin:24px 0 20px;
  }
  .page-head h1{ font-size:1.9rem; color:#fff; }
  .page-head .page-sub{ color:#D9E4E6; font-size:0.92rem; margin-top:6px; }

  /* ---------- ACTIVE FILTER CHIPS ---------- */
  .filter-chips{
    display:flex; gap:8px; flex-wrap:wrap; margin:14px 0 4px;
  }
  .filter-chips:empty{ margin:0; }
  .filter-chip{
    display:inline-flex; align-items:center; gap:7px;
    background:var(--paper-dark); border:none; border-radius:16px;
    padding:6px 8px 6px 14px; font-size:0.84rem; font-family:'IBM Plex Sans', sans-serif;
    color:var(--ink); cursor:pointer;
  }
  .filter-chip-x{
    width:18px; height:18px; border-radius:50%; background:var(--ink); color:var(--paper);
    font-size:0.68rem; display:flex; align-items:center; justify-content:center;
  }

  /* ---------- BROWSE LAYOUT (sidebar + table) ---------- */
  .browse-layout{
    display:flex; gap:32px; align-items:flex-start; padding:18px 0 70px;
  }
  .sidebar{
    width:240px; flex:0 0 auto;
    background:var(--paper-dark); border-radius:8px; padding:20px;
    position:sticky; top:88px;
  }
  .sidebar-group{ margin-bottom:20px; }
  .sidebar-group:last-child{ margin-bottom:0; }
  .sidebar-label{
    display:block; font-size:0.72rem; font-weight:700; text-transform:uppercase;
    letter-spacing:0.04em; color:#6b6a63; margin-bottom:8px;
  }
  .search-input, .sidebar-select{
    width:100%;
    border:1px solid var(--line);
    background:#fff;
    padding:10px 12px;
    border-radius:4px;
    font-size:0.9rem;
    font-family:'IBM Plex Sans', sans-serif;
    color:var(--ink);
  }
  .search-input{ border-radius:20px; padding:10px 16px; }
  .search-input:focus, .sidebar-select:focus{ outline:2px solid var(--teal); outline-offset:1px; }

  .listings-main{ flex:1; min-width:0; }

  .trow{
    display:grid;
    grid-template-columns: 1.8fr 3fr 0.9fr 1.1fr;
    gap:12px;
    align-items:center;
    padding:14px 12px;
  }
  .theadrow{
    font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.04em;
    color:#6b6a63; border-bottom:1px solid var(--line); padding-bottom:12px;
  }
  #grid .trow{ border-bottom:1px solid var(--line); }
  #grid .trow:nth-child(even){ background:var(--paper-dark); border-radius:4px; }

  .who{ display:flex; align-items:flex-start; gap:12px; }
  .avatar{
    width:44px; height:44px; border-radius:50%;
    background:var(--teal); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces',serif; font-weight:600; font-size:1rem;
    flex:0 0 auto; margin-top:1px;
  }
  .avatar-img{ object-fit:cover; }
  .who-text{ min-width:0; }
  .who-name{ font-family:'Fraunces', serif; font-weight:600; font-size:1rem; }
  .who-since{ font-size:0.74rem; color:#6b6a63; margin-top:3px; }
  /* A very new account is the signal worth noticing, so it isn't left as a plain date. */
  .who-since.is-new-account{ color:var(--rust); font-weight:600; }
  .col-desc{ font-size:0.88rem; color:#454440; line-height:1.4; }

  .rate{ font-weight:600; font-size:0.9rem; }
  .rate span{ font-weight:400; color:#6b6a63; font-size:0.78rem; }
  .stars{ color:var(--gold-dark); font-size:0.82rem; }
  .who-text .stars{ margin-top:3px; }
  .row-actions{ display:flex; align-items:center; gap:6px; justify-content:flex-end; }
  .msg-btn{
    background:none; border:1px solid var(--ink); color:var(--ink);
    padding:7px 13px; border-radius:3px; font-size:0.82rem; font-weight:600;
    cursor:pointer; font-family:'IBM Plex Sans', sans-serif; white-space:nowrap;
  }
  .msg-btn:hover{ background:var(--ink); color:var(--paper); }
  .card-report-btn{
    background:none; border:1px solid var(--line); color:#6b6a63;
    width:32px; height:32px; border-radius:50%; cursor:pointer; flex:0 0 auto;
    font-size:0.85rem; display:flex; align-items:center; justify-content:center;
  }
  .card-report-btn:hover{ color:var(--rust); border-color:var(--rust); }

  .empty{
    text-align:center; padding:60px 20px; color:#6b6a63;
    display:none;
  }

  .new-tag{ color:var(--rust); font-weight:600; }
  .active-badge{
    display:flex; align-items:center; gap:5px;
    font-size:0.76rem; color:var(--teal); font-weight:600; margin-top:4px;
  }
  .active-badge::before{
    content:""; width:7px; height:7px; border-radius:50%; background:var(--teal);
  }
  .active-text{ color:var(--teal); font-weight:600; }

  @media (max-width:900px){
    .browse-layout{ flex-direction:column; }
    .sidebar{ width:100%; position:static; }
    .trow{ grid-template-columns: 1.6fr 2.2fr 0.7fr 1fr; }
    .row-actions{ justify-content:flex-start; }
  }
  @media (max-width:620px){
    .trow{ grid-template-columns: 1fr; row-gap:8px; }
    .theadrow{ display:none; }
    .col-desc, .rate{ padding-left:56px; }
    .row-actions{ padding-left:56px; }
  }

  /* ---------- POST-A-JOB MODAL ---------- */
  .modal-overlay{
    position:fixed; inset:0; background:rgba(30,42,51,0.55);
    display:flex; align-items:center; justify-content:center;
    z-index:200; padding:20px;
  }
  .modal-overlay[hidden]{ display:none; }

  /* Opened from inside the Messages thread, so it has to sit above it. Without this
     they share a z-index and the later one in the document (Messages) covers it,
     which made the confirmation look like it only appeared after closing the chat. */
  #serviceCheckModal{ z-index:260; }
  .modal{
    background:#fff; border-radius:6px; padding:30px;
    max-width:420px; width:100%; position:relative;
    box-shadow:0 24px 60px rgba(0,0,0,0.32);
  }
  .modal h3{ font-size:1.3rem; margin-bottom:6px; }
  .modal .modal-sub{ font-size:0.88rem; color:#6b6a63; margin-bottom:8px; }
  .modal label{ display:block; font-size:0.83rem; font-weight:600; margin:14px 0 6px; }
  .modal input, .modal select, .modal textarea{
    width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:3px;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem; color:var(--ink); background:#fff;
    resize:vertical;
  }
  .modal button[type="submit"]{
    margin-top:22px; width:100%; background:var(--rust); color:#fff; border:none;
    padding:13px; border-radius:3px; font-weight:600; cursor:pointer;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem;
  }
  .modal button[type="submit"]:hover{ background:var(--rust-dark); }
  .word-count{
    font-size:0.78rem; color:#6b6a63; text-align:right; margin-top:4px;
  }
  .word-count.limit-reached{ color:var(--rust); font-weight:600; }
  .modal-close{
    position:absolute; top:14px; right:16px; background:none; border:none;
    font-size:1.5rem; line-height:1; cursor:pointer; color:var(--ink); opacity:0.6;
  }
  .modal-close:hover{ opacity:1; }
  .post-modal{
    max-width:560px;
    max-height:88vh;
    overflow-y:auto;
  }
  .photo-preview-list{
    display:flex; flex-wrap:wrap; gap:10px; margin-top:10px;
  }
  .photo-preview-item{
    position:relative; width:64px; height:64px;
  }
  .photo-preview-item img{
    width:64px; height:64px; border-radius:8px; object-fit:cover;
    border:1px solid var(--line);
  }
  .photo-preview-remove{
    position:absolute; top:-6px; right:-6px;
    width:20px; height:20px; border-radius:50%;
    background:var(--ink); color:#fff; border:2px solid var(--paper);
    font-size:0.8rem; line-height:1; cursor:pointer; padding:0;
    display:flex; align-items:center; justify-content:center;
  }
  .photo-preview-remove:hover{ background:var(--rust); }
  .auth-error{
    color:var(--rust); font-size:0.85rem; margin-top:10px;
  }
  .auth-toggle{
    margin-top:16px; font-size:0.85rem; text-align:center;
  }
  .auth-toggle a{
    color:var(--ink); text-decoration:underline; cursor:pointer;
  }

  /* ---------- PROVIDER DETAIL MODAL ---------- */
  .detail-modal{ max-width:460px; }
  .detail-header{
    display:flex; gap:14px; align-items:center; margin-bottom:16px;
  }
  .detail-avatar{
    width:64px; height:64px; border-radius:50%; object-fit:cover;
    background:var(--teal); color:#fff;
    display:flex; align-items:center; justify-content:center;
    font-family:'Fraunces',serif; font-weight:600; font-size:1.3rem;
    flex:0 0 auto;
  }
  .detail-name{ font-family:'Fraunces', serif; font-weight:600; font-size:1.2rem; }
  .detail-role{ font-size:0.9rem; color:var(--teal); font-weight:500; margin-top:2px; }
  .detail-rows{
    display:flex; flex-direction:column; gap:8px;
    margin:16px 0; padding:14px 16px;
    background:var(--paper-dark); border-radius:4px;
    font-size:0.9rem;
  }
  .detail-rows .row{ display:flex; justify-content:space-between; gap:12px; }
  .detail-rows .row span:first-child{ color:#6b6a63; }
  .detail-rows .row span:last-child{ font-weight:600; text-align:right; }
  .detail-desc{ font-size:0.92rem; color:#454440; line-height:1.5; margin-bottom:18px; }
  .detail-send-btn{
    margin-top:6px; width:100%; background:var(--rust); color:#fff; border:none;
    padding:13px; border-radius:3px; font-weight:600; cursor:pointer;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem;
  }
  .detail-send-btn:hover{ background:var(--rust-dark); }
  .detail-report-link{
    display:block; margin-top:12px; text-align:center;
    background:none; border:none; color:#6b6a63; text-decoration:underline;
    font-size:0.8rem; cursor:pointer; font-family:'IBM Plex Sans', sans-serif; width:100%;
  }
  .detail-report-link:hover{ color:var(--rust); }

  .detail-gallery{
    display:flex; gap:8px; overflow-x:auto; margin-bottom:14px; padding-bottom:2px;
  }
  .gallery-thumb{
    width:76px; height:76px; border-radius:6px; object-fit:cover;
    flex:0 0 auto; border:1px solid var(--line);
  }
  .detail-reviews{ margin-bottom:18px; }
  .detail-reviews-heading{ font-size:1rem; margin-bottom:10px; }
  .review-item{
    padding:12px 0; border-top:1px dashed var(--line);
  }
  .review-item:first-of-type{ border-top:none; }
  .review-stars{ color:var(--gold-dark); font-size:0.85rem; margin-bottom:4px; }
  .review-text{ font-size:0.9rem; color:#454440; line-height:1.5; margin-bottom:4px; }
  .review-author{ font-size:0.78rem; color:#6b6a63; }

  .admin-reports-list{
    max-height:60vh; overflow-y:auto;
    display:flex; flex-direction:column; gap:12px; margin-top:14px;
  }
  .admin-report-item{
    border:1px solid var(--line); border-radius:4px; padding:12px 14px; font-size:0.88rem;
  }
  .admin-report-meta{
    font-size:0.76rem; color:#6b6a63; margin-bottom:6px;
    display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  }
  .admin-report-reason{
    display:inline-block; background:var(--paper-dark); color:var(--ink);
    font-weight:600; font-size:0.68rem; padding:2px 9px; border-radius:10px;
    text-transform:uppercase; letter-spacing:0.02em; margin-left:6px;
  }
  .admin-report-text{ margin-bottom:10px; line-height:1.45; }
  .admin-report-dismiss{
    background:none; border:1px solid var(--ink); color:var(--ink);
    padding:5px 12px; border-radius:3px; font-size:0.78rem; font-weight:600;
    cursor:pointer; font-family:'IBM Plex Sans', sans-serif;
  }
  .admin-report-dismiss:hover{ background:var(--ink); color:var(--paper); }

  /* ---------- ANALYTICS DASHBOARD ---------- */
  .analytics-modal{
    max-width:760px;
    max-height:88vh;
    overflow-y:auto;
  }
  .analytics-listing-select{ margin-bottom:18px; }
  .stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
    gap:12px;
    margin:16px 0 22px;
  }
  .stat-card{
    background:var(--paper-dark);
    border-radius:4px;
    padding:14px 16px;
  }
  .stat-value{
    font-family:'Fraunces', serif; font-weight:600; font-size:1.5rem; color:var(--ink);
  }
  .stat-label{ font-size:0.82rem; font-weight:600; margin-top:2px; }
  .stat-sub{ font-size:0.74rem; color:#6b6a63; margin-top:3px; }
  .analytics-chart-heading{ font-size:1.05rem; margin-bottom:10px; }
  .analytics-chart-wrap{ margin:12px 0 6px; }
  .analytics-chart-legend{
    display:flex; gap:18px; flex-wrap:wrap;
    font-size:0.8rem; margin-top:10px; color:#454440;
  }
  .legend-dot{
    display:inline-block; width:9px; height:9px; border-radius:50%; margin-right:6px;
  }
  .analytics-empty{
    text-align:center; color:#6b6a63; padding:30px 10px; font-size:0.9rem;
  }
  .analytics-footnote{
    font-size:0.76rem; color:#6b6a63; margin-top:18px; text-align:center; line-height:1.5;
  }

  /* ---------- COOKIE CONSENT ---------- */
  .cookie-banner{
    position:fixed; left:0; right:0; bottom:0; z-index:300;
    background:var(--ink); color:var(--paper);
    box-shadow:0 -8px 24px rgba(0,0,0,0.25);
  }
  .cookie-banner-inner{
    max-width:1140px; margin:0 auto; padding:18px 28px;
    display:flex; align-items:center; gap:24px; flex-wrap:wrap;
  }
  .cookie-text{ flex:1; min-width:240px; font-size:0.88rem; line-height:1.5; margin:0; color:#E3E9E7; }
  .cookie-actions{ display:flex; gap:10px; flex-wrap:wrap; flex:0 0 auto; }
  .cookie-btn{
    font-family:'IBM Plex Sans', sans-serif; font-size:0.85rem; font-weight:600;
    padding:9px 16px; border-radius:3px; cursor:pointer; white-space:nowrap;
  }
  .cookie-btn-outline{
    background:none; border:1px solid rgba(255,255,255,0.5); color:var(--paper);
  }
  .cookie-btn-outline:hover{ border-color:#fff; }
  .cookie-btn-solid{
    background:var(--gold); border:none; color:var(--ink);
  }
  .cookie-btn-solid:hover{ background:#D4B565; }

  .cookie-pref-row{
    display:flex; align-items:center; justify-content:space-between; gap:16px;
    padding:14px 0; border-bottom:1px solid var(--line);
  }
  .cookie-pref-row:last-of-type{ border-bottom:none; }
  .cookie-pref-name{ font-weight:600; font-size:0.92rem; }
  .cookie-pref-desc{ font-size:0.82rem; color:#6b6a63; margin-top:2px; max-width:320px; }

  .switch{ position:relative; display:inline-block; width:42px; height:24px; flex:0 0 auto; }
  .switch input{ opacity:0; width:0; height:0; }
  .slider{
    position:absolute; inset:0; background-color:#ccc; transition:.2s; border-radius:24px; cursor:pointer;
  }
  .slider:before{
    position:absolute; content:""; height:18px; width:18px; left:3px; bottom:3px;
    background-color:#fff; transition:.2s; border-radius:50%;
  }
  .switch input:checked + .slider{ background-color:var(--teal); }
  .switch input:checked + .slider:before{ transform:translateX(18px); }
  .switch input:disabled + .slider{ opacity:0.6; cursor:not-allowed; }

  .cookie-save-btn{
    margin-top:18px; width:100%; background:var(--rust); color:#fff; border:none;
    padding:13px; border-radius:3px; font-weight:600; cursor:pointer;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem;
  }
  .cookie-save-btn:hover{ background:var(--rust-dark); }

  /* ---------- MESSAGES MODAL (in-site chat) ---------- */
  .messages-modal{
    max-width:1120px;
    max-height:85vh;
    display:flex; flex-direction:column;
    overflow:hidden;
  }
  #messagesBody{
    flex:1; min-height:0;
    display:flex; flex-direction:column;
  }
  .messages-empty{ text-align:center; color:#6b6a63; padding:40px 10px; font-size:0.9rem; }

  .conversations-list{
    flex:1; min-height:0;
    max-height:60vh; overflow-y:auto; margin-top:14px;
    display:flex; flex-direction:column;
  }
  .convo-item{
    display:flex; align-items:center; gap:10px;
    padding:12px 4px; border-bottom:1px solid var(--line);
    cursor:pointer; text-align:left; background:none; border-left:none; border-right:none; border-top:none;
    width:100%; font-family:'IBM Plex Sans', sans-serif;
  }
  .convo-item:hover{ background:var(--paper-dark); }
  .convo-text{ flex:1; min-width:0; }
  .convo-name{ font-weight:600; font-size:0.92rem; color:var(--ink); }
  .convo-preview{
    font-size:0.82rem; color:#6b6a63; margin-top:2px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .convo-dot{
    width:9px; height:9px; border-radius:50%; background:var(--rust); flex:0 0 auto;
  }

  .thread-header{
    display:flex; align-items:center; gap:10px; margin:14px 0 12px; flex:0 0 auto;
  }
  .thread-back{
    background:none; border:none; font-size:1.2rem; cursor:pointer;
    color:var(--ink); padding:2px 6px 2px 0; line-height:1;
  }
  .thread-name{ font-family:'Fraunces', serif; font-weight:600; font-size:1.05rem; flex:1; }
  .thread-report-link{
    background:none; border:none; color:#6b6a63; text-decoration:underline;
    font-size:0.78rem; cursor:pointer; font-family:'IBM Plex Sans', sans-serif; flex:0 0 auto;
  }
  .thread-report-link:hover{ color:var(--rust); }

  /* Safety guidance is most needed mid-conversation, when people are arranging
     to meet — so it sits inside the thread rather than only in the footer. */
  .thread-safety-link{
    display:flex; align-items:center; gap:7px; width:100%;
    background:var(--paper-dark); border:none; border-radius:5px;
    padding:9px 12px; margin-bottom:12px;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.8rem; font-weight:600;
    color:var(--teal); cursor:pointer; text-align:left;
  }
  .thread-safety-link::before{ content:"🛡"; font-size:0.9rem; }
  .thread-safety-link:hover{ background:#dcd7c9; }

  .thread-messages{
    flex:1; min-height:0;
    max-height:55vh; overflow-y:auto;
    display:flex; flex-direction:column; gap:8px;
    margin-bottom:14px; padding:4px 2px;
  }
  .bubble{
    max-width:min(76%, 480px); padding:9px 13px; border-radius:15px;
    font-size:0.88rem; line-height:1.4;
  }
  .bubble.mine{
    align-self:flex-end; background:var(--ink); color:var(--paper);
    border-bottom-right-radius:4px;
  }
  .bubble.theirs{
    align-self:flex-start; background:var(--paper-dark); color:var(--ink);
    border-bottom-left-radius:4px;
  }

  .thread-input-row{ display:flex; gap:8px; align-items:center; flex:0 0 auto; }
  .thread-input-row textarea{
    flex:1; border:1px solid var(--line); border-radius:16px;
    padding:9px 14px; font-family:'IBM Plex Sans', sans-serif;
    font-size:0.88rem; resize:none;
  }
  .thread-send-btn{
    background:var(--rust); color:#fff; border:none !important; border-radius:50% !important;
    width:30px !important; height:30px !important; cursor:pointer; flex:0 0 auto;
    font-size:0.8rem !important; padding:0 !important; margin-top:0 !important;
    display:flex !important; align-items:center; justify-content:center;
  }
  .thread-send-btn:hover{ background:var(--rust-dark); }

  .rate-service-btn{
    align-self:flex-start; margin-bottom:10px;
    background:var(--paper-dark); border:1px solid var(--line); color:var(--ink);
    padding:7px 14px; border-radius:20px; font-size:0.8rem; font-weight:600; cursor:pointer;
    font-family:'IBM Plex Sans', sans-serif;
  }
  .rate-service-btn:hover{ background:var(--gold); border-color:var(--gold); }

  .order-pending-note{
    font-size:0.82rem; color:#6b6a63; margin-bottom:10px; font-style:italic;
  }
  .order-confirmed-note{
    font-size:0.82rem; color:var(--teal); font-weight:600; margin-bottom:10px;
  }

  .service-check-actions{ display:flex; gap:10px; margin-top:22px; }
  .service-check-actions button{
    flex:1; padding:12px; border-radius:3px; font-weight:600; cursor:pointer;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.9rem;
  }
  .btn-secondary{ background:none; border:1px solid var(--ink); color:var(--ink); }
  .btn-secondary:hover{ background:var(--ink); color:var(--paper); }
  .btn-primary{ background:var(--rust); border:none; color:#fff; }
  .btn-primary:hover{ background:var(--rust-dark); }

  .star-picker{ display:flex; gap:8px; margin:22px 0; justify-content:center; }
  .star-btn{
    background:none; border:none; font-size:2.1rem; line-height:1;
    color:#cfd3d6; cursor:pointer; padding:0;
  }
  .star-btn.filled{ color:var(--gold-dark); }

  button:disabled{ opacity:0.5; cursor:not-allowed; }
  .canton-hint{ font-size:0.8rem; color:#6b6a63; margin-top:4px; }
  .canton-checklist{
    max-height:170px; overflow-y:auto;
    border:1px solid var(--line); border-radius:4px;
    padding:8px 12px; margin-top:8px;
    display:flex; flex-direction:column; gap:7px;
  }
  .canton-checklist label{
    display:flex; align-items:center; gap:9px;
    font-size:0.9rem; font-weight:400; margin:0; cursor:pointer;
  }
  .canton-checklist input[type="checkbox"]{
    width:auto; margin:0; cursor:pointer;
  }

  /* ---------- HOW IT WORKS ---------- */
  .how{ background:var(--paper-dark); padding:64px 0; }
  .how h2{ font-size:1.7rem; margin-bottom:36px; max-width:20ch;}
  .steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
  @media (max-width:760px){ .steps{grid-template-columns:1fr;} }
  .step{ position:relative; padding-left:44px; }
  .step .num{
    position:absolute; left:0; top:0;
    font-family:'Fraunces', serif; font-weight:700; font-size:1.3rem;
    color:var(--rust);
  }
  .step h3{ font-size:1.08rem; margin-bottom:8px; }
  .step p{ font-size:0.92rem; color:#454440; margin:0; }

  /* ---------- POST CTA ---------- */
  .post-cta{ padding:64px 0; }
  .post-box{
    background:var(--ink); color:var(--paper);
    border-radius:6px; padding:48px;
    display:flex; justify-content:space-between; align-items:center; gap:24px;
    flex-wrap:wrap;
  }
  .post-box h2{ color:#fff; font-size:1.6rem; max-width:22ch;}
  .post-box p{ color:#B7C0C4; margin-top:8px; max-width:38ch; font-size:0.95rem;}
  .post-box button{
    background:var(--gold); color:var(--ink); border:none;
    padding:14px 26px; border-radius:3px; font-weight:600; cursor:pointer;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem;
  }
  .post-box button:hover{ background:#D4B565; }

  /* ---------- FOOTER ---------- */
  footer{
    border-top:1px solid var(--line);
    padding:32px 0; font-size:0.85rem; color:#6b6a63;
    display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  }
  .footer-faq-link{
    color:#6b6a63; text-decoration:underline; cursor:pointer;
  }
  .footer-faq-link:hover{ color:var(--ink); }

  /* ---------- FAQ / SAFETY MODAL ---------- */
  .faq-modal{
    max-width:640px; max-height:88vh; overflow-y:auto;
  }
  .faq-item{
    border-bottom:1px solid var(--line);
    padding:14px 0;
  }
  .faq-item:last-of-type{ border-bottom:none; }
  .faq-item summary{
    font-weight:600; font-size:0.95rem; cursor:pointer;
    list-style:none;
  }
  .faq-item summary::-webkit-details-marker{ display:none; }
  .faq-item summary::before{
    content:"+"; display:inline-block; width:1.2em; color:var(--rust); font-weight:700;
  }
  .faq-item[open] summary::before{ content:"–"; }
  .faq-item p{
    margin:10px 0 0; font-size:0.9rem; color:#454440; line-height:1.55;
  }

  /* focus visibility */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .chip:focus-visible{
    outline:2px solid var(--teal); outline-offset:2px;
  }

  .photo-edit-hint{ color:var(--teal); font-weight:600; }
  .delete-listing-btn{
    background:none; border:1px solid var(--rust); color:var(--rust);
    padding:11px 18px; border-radius:3px; width:100%; margin-top:10px;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.9rem; font-weight:600;
    cursor:pointer;
  }
  .delete-listing-btn:hover{ background:var(--rust); color:#fff; }
  .delete-listing-btn[hidden]{ display:none; }

  /* ---------- MODERATION ---------- */
  .mod-btn{
    background:none; border:1px solid var(--rust); color:var(--rust);
    padding:6px 11px; border-radius:3px; font-size:0.78rem; font-weight:600;
    cursor:pointer; font-family:'IBM Plex Sans', sans-serif; white-space:nowrap;
  }
  .mod-btn:hover{ background:var(--rust); color:#fff; }
  .mod-restore{ border-color:var(--teal); color:var(--teal); }

  .stats-btn{
    background:none; border:1px solid var(--teal); color:var(--teal);
    padding:6px 11px; border-radius:3px; font-size:0.78rem; font-weight:600;
    cursor:pointer; font-family:'IBM Plex Sans', sans-serif; white-space:nowrap;
    flex:0 0 auto;
  }
  .stats-btn:hover{ background:var(--teal); color:#fff; }

  /* Resolved reports stay listed rather than disappearing — a repeat offender's
     history is the whole reason for resolving instead of deleting. */
  .review-item.is-removed{ opacity:0.55; }
  .review-since{ color:#6b6a63; font-weight:400; }
  .admin-actions{
    margin-top:16px; padding-top:14px; border-top:1px dashed var(--line);
    display:flex; gap:8px; flex-wrap:wrap;
  }
  .admin-signals{
    background:rgba(201,162,75,0.12); border:1px solid var(--gold);
    border-radius:6px; padding:14px 16px; margin-bottom:18px;
  }
  .admin-signals-head{
    font-size:0.74rem; font-weight:700; text-transform:uppercase;
    letter-spacing:0.04em; color:var(--gold-dark); margin-bottom:8px;
  }
  .admin-signals-list{ margin:0; padding-left:18px; }
  .admin-signals-list li{ font-size:0.88rem; line-height:1.5; margin-bottom:4px; }
  .admin-signals-note{
    margin-top:10px; font-size:0.78rem; color:#6b6a63; line-height:1.45;
  }

  .admin-report-item.is-resolved{ opacity:0.55; }
  .admin-report-resolved{
    display:inline-block; font-size:0.74rem; font-weight:700;
    text-transform:uppercase; letter-spacing:0.04em; color:var(--teal);
  }
  .mod-restore:hover{ background:var(--teal); color:#fff; }

  .trow-removed{ opacity:0.62; }
  .removed-badge{
    display:inline-flex; align-items:center; gap:5px;
    font-size:0.74rem; font-weight:700; text-transform:uppercase; letter-spacing:0.03em;
    color:var(--rust); margin-top:4px;
  }
  .removed-badge::before{ content:"⛔"; font-size:0.8rem; }

  /* Dormant: hidden from the public, but nobody did anything wrong — so this
     reads as a status, not the takedown red. */
  .trow-dormant{ opacity:0.62; }
  .dormant-badge{
    display:inline-flex; align-items:center; gap:5px;
    font-size:0.74rem; font-weight:700; text-transform:uppercase; letter-spacing:0.03em;
    color:var(--gold-dark); margin-top:4px;
  }
  .dormant-badge::before{ content:"🕑"; font-size:0.8rem; }

  /* ---------- Individual or registered business ---------- */
  .poster-type-choice{ display:flex; flex-wrap:wrap; gap:6px 20px; margin-top:6px; }
  .poster-type-option{
    display:flex; align-items:center; gap:8px; margin:0;
    font-size:0.92rem; font-weight:500; text-transform:none; letter-spacing:normal;
    cursor:pointer;
  }
  .poster-type-option input{ width:16px; height:16px; margin:0; flex:0 0 auto; accent-color:var(--teal); cursor:pointer; }
  .uid-feedback{ margin-top:6px; font-size:0.84rem; line-height:1.45; }
  .uid-feedback.is-ok{ color:var(--teal); }
  .uid-feedback.is-error{ color:var(--rust-dark); }
  .uid-feedback a, .uid-link{ color:var(--teal); font-weight:600; }
  /* A status, not a verdict: neutral ink rather than the green of "verified" */
  .business-badge{
    display:inline-flex; align-items:center; gap:5px; margin-top:4px;
    font-size:0.74rem; font-weight:700; text-transform:uppercase; letter-spacing:0.03em;
    color:var(--ink);
  }
  .business-badge::before{ content:"🏢"; font-size:0.8rem; }
  .self-declared{ font-size:0.78rem; color:#6b6a63; }

  /* One line under the hero heading naming the services people actually search for */
  .page-tagline{
    margin:8px 0 0; max-width:62ch;
    font-size:0.98rem; line-height:1.5; color:rgba(246,244,239,0.88);
    text-wrap:pretty;
  }

  /* "Forgot your password?" sits right under the password box, where people look for it */
  .auth-forgot{ margin-top:8px; text-align:right; font-size:0.85rem; }
  .auth-forgot a{ color:var(--teal); font-weight:500; }

  /* ---------- FAQ page (generated per language by tools/build-deploy.mjs) ---------- */
  .faq-page .faq-intro{ font-size:1.02rem; line-height:1.6; color:#454440; max-width:62ch; }
  .faq-page .faq-group{ border-top:1px solid var(--line); }
  .faq-page .faq-item summary{ font-size:1rem; line-height:1.45; }
  .faq-page .faq-item p{ font-size:0.95rem; max-width:68ch; }
  .faq-cta{ margin-top:36px; }
  .faq-cta a{
    display:inline-block; background:var(--rust); color:#fff; text-decoration:none;
    padding:12px 22px; border-radius:3px; font-weight:600;
  }
  .faq-cta a:hover{ background:var(--rust-dark); }

  .danger-btn{
    background:var(--rust); color:#fff; border:none;
    padding:12px 18px; border-radius:3px; width:100%;
    font-family:'IBM Plex Sans', sans-serif; font-size:0.95rem; font-weight:600;
    cursor:pointer; margin-top:16px;
  }
  .danger-btn:hover{ background:var(--rust-dark); }
  .danger-btn:disabled{ opacity:0.6; cursor:default; }

  .own-listing-note{
    margin-top:18px; padding:14px 16px; border-radius:6px;
    background:var(--paper-dark); color:#454440;
    font-size:0.88rem; line-height:1.5;
  }
  /* Two notes in a row read as one block rather than two separate panels */
  .own-listing-note + .own-listing-note{ margin-top:8px; }
  /* Something actually happened to their listings — worth more than a grey panel */
  .own-listing-note.was-dormant{
    background:#FBF1E4; color:#6B4A1F;
    border-left:3px solid var(--gold-dark);
  }

  /* ---------- ACCOUNT MENU ---------- */
  .account-wrap{ position:relative; }
  .account-menu{
    position:absolute; top:calc(100% + 8px); right:0; z-index:120;
    min-width:220px;
    background:#fff; border:1px solid var(--line); border-radius:6px;
    box-shadow: var(--shadow);
    padding:6px;
  }
  .account-menu[hidden]{ display:none; }
  .account-menu-head{
    padding:10px 12px 12px; border-bottom:1px solid var(--line); margin-bottom:6px;
  }
  .account-menu-name{ font-weight:600; font-size:0.92rem; }
  .account-menu-email{
    font-size:0.78rem; color:#6b6a63; margin-top:2px;
    overflow:hidden; text-overflow:ellipsis;
  }
  .account-menu-item{
    display:block; width:100%; text-align:left;
    background:none; border:none; border-radius:4px;
    padding:9px 12px; font-size:0.88rem;
    font-family:'IBM Plex Sans', sans-serif; color:var(--ink);
    cursor:pointer;
  }
  .account-menu-item:hover{ background:var(--paper-dark); }
  .account-menu-signout{ color:var(--rust); }

  .profile-readonly{
    padding:10px 12px; border:1px solid var(--line); border-radius:4px;
    background:var(--paper-dark); font-size:0.9rem; color:#454440;
  }
  .profile-meta{ font-size:0.82rem; color:#6b6a63; margin-top:14px; }
  /* The label is the hit target, so the whole row is clickable, not just the box */
  .profile-check{
    display:flex; align-items:flex-start; gap:10px;
    margin-top:18px; font-size:0.92rem; line-height:1.45; cursor:pointer;
  }
  .profile-check input{
    width:16px; height:16px; margin:2px 0 0; flex:0 0 auto;
    accent-color:var(--teal); cursor:pointer;
  }
  .profile-status{
    margin-top:14px; padding:10px 12px; border-radius:4px;
    font-size:0.85rem; background:var(--paper-dark); color:var(--ink);
  }
  .profile-status[hidden]{ display:none; }
  .profile-status.is-error{ background:rgba(179,58,46,0.10); color:var(--rust-dark); }

  /* ---------- LEGAL PAGES (privacy.html) ---------- */
  .legal-page{ padding:40px 0 80px; max-width:760px; }
  .legal-back{
    display:inline-block; font-size:0.88rem; color:var(--teal); font-weight:600;
    text-decoration:none; margin-bottom:20px;
  }
  .legal-back:hover{ text-decoration:underline; }
  .legal-page h1{ font-size:2rem; }
  .legal-updated{ color:#6b6a63; font-size:0.85rem; margin-top:8px; }
  .legal-page h2{
    font-size:1.15rem; margin-top:36px; margin-bottom:10px;
  }
  .legal-page p{ font-size:0.95rem; line-height:1.65; margin:0 0 14px; }
  .legal-page ul{ margin:0 0 14px; padding-left:22px; }
  .legal-page li{ font-size:0.95rem; line-height:1.6; margin-bottom:8px; }

  /* ---------- MOBILE ADAPTATIONS ---------- */
  @media (max-width:700px){
    .post-cta{ padding:44px 0; }
    .post-box{
      padding:28px 22px; flex-direction:column; align-items:flex-start; text-align:left; gap:14px;
    }
    .post-box button{ width:100%; }

    .how{ padding:44px 0; }

    footer{ flex-direction:column; align-items:center; text-align:center; gap:6px; padding:24px 0; }

    .nav{ flex-wrap:wrap; row-gap:10px; padding:14px 16px; }
    .nav-right{ width:100%; justify-content:flex-end; gap:8px; }
  }

  @media (max-width:480px){
    .nav{ padding:12px 14px; }
    .brand{ font-size:1.1rem; gap:8px; }
    .lang-switch button{ padding:6px 8px; font-size:0.72rem; }
    .nav-outline-btn, .nav-cta{ padding:7px 10px; font-size:0.78rem; }

    .modal{ padding:20px; }
    .post-modal, .messages-modal{ max-height:92vh; }
    .canton-checklist{ max-height:140px; }

    .thread-messages{ max-height:45vh; }
    .conversations-list{ max-height:50vh; }

    .cookie-banner-inner{ padding:14px 16px; gap:12px; }
    .cookie-actions{ width:100%; }
    .cookie-btn{ flex:1 1 auto; text-align:center; }
  }
