/* The home page launcher loads this file for its "Create it here" button. */
[data-bounty-manual] { margin: 22px 0 8px; width: 100%; justify-content: center; white-space: normal; }
/* Posting form: one clear card with three groups — the work, the budget, the delivery. */
.posting-page .brief-mode-field { margin: 0 0 18px; }
.posting-page .brief-details { border: 1px solid var(--ab-line); border-radius: 16px; padding: 8px 22px 22px; margin: 0 0 18px; min-width: 0; background: var(--ab-panel); }
.posting-page .brief-details legend { padding: 0 8px; font-weight: 700; color: var(--ab-ink); }
.posting-page .brief-group { padding: 18px 0 4px; border-top: 1px solid var(--ab-line); }
.posting-page .brief-group:first-of-type { border-top: 0; }
.posting-page .brief-group h3 { margin: 0 0 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ab-moss, var(--ab-muted)); }
.posting-page .brief-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.posting-page .brief-field[hidden], .posting-page [data-ai-only][hidden] { display: none; }
.posting-page .brief-field label { margin: 0; }
.posting-page .brief-details :is(input:not([type="hidden"]):not([type="checkbox"]), textarea), .posting-page [data-brief-mode] { box-sizing: border-box; width: 100%; background: var(--ab-bg); color: var(--ab-ink); border: 1px solid var(--ab-line); border-radius: 10px; padding: 12px 14px; font: inherit; }
.posting-page .chat-composer-form .brief-details textarea { min-height: 96px; padding: 12px 14px; font-size: 16px; }
.posting-page .brief-details small, .posting-page .brief-group > small { display: block; color: var(--ab-muted); font-size: 13px; line-height: 1.5; }
.posting-page .brief-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.posting-page .brief-deadline { cursor: pointer; min-height: 48px; color-scheme: dark; }
:root[data-theme="light"] .posting-page .brief-deadline { color-scheme: light; }
.posting-page .brief-details .brief-summary { margin: 0 0 6px; color: var(--ab-ink); font-weight: 600; }
.posting-page .brief-ai-options { margin: 0 0 18px; }
/* The description box also has an older id-based style (dark, rounder); match the other fields in both themes. */
.posting-page .brief-details #bounty-composer-input { background: var(--ab-bg); color: var(--ab-ink); border: 1px solid var(--ab-line); border-radius: 10px; padding: 12px 14px; min-height: 96px; font-size: 16px; box-shadow: none; }
.posting-page .brief-details #bounty-composer-input::placeholder, .posting-page .brief-details textarea::placeholder, .posting-page .brief-details input::placeholder { color: var(--ab-muted); }
.posting-page .brief-details .brief-objective { min-height: 64px; }
@media (max-width: 640px) {
  .posting-page .brief-details { padding: 6px 14px 16px; }
  .posting-page .brief-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
/* AI extension help: beside the form on wide screens, below it otherwise. */
.posting-page .posting-ai-help { border: 1px solid var(--ab-line); border-radius: 16px; padding: 18px 20px; margin: 0 0 24px; background: var(--ab-panel); }
.posting-page .posting-ai-help h2 { margin: 0 0 8px; font-size: 17px; line-height: 1.3; }
.posting-page .posting-ai-help p { margin: 0 0 12px; color: var(--ab-muted); font-size: 14px; line-height: 1.5; }
.posting-page .posting-ai-help ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.posting-page .posting-ai-help li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.posting-page .posting-ai-help a { font-weight: 700; color: var(--ab-ink); text-decoration: underline; text-underline-offset: 3px; }
.posting-page .posting-ai-help .posting-ai-badge { font-weight: 600; color: var(--ab-moss, var(--ab-muted)); }
.posting-page .posting-ai-help small { color: var(--ab-muted); font-size: 13px; }
@media (min-width: 1180px) {
  .posting-page main.posting-workspace { max-width: 1180px; }
  .posting-page .conversation-panel { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 40px; align-items: start; }
  .posting-page .conversation-panel > * { grid-column: 1; }
  .posting-page .conversation-panel > .posting-ai-help { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 96px; }
}
/* Draft bookkeeping stays quiet: only problems are shown under the form. */
.posting-page .chat-composer-form [data-brief-status]:not([data-tone="error"]),
.posting-page .chat-composer-form [data-draft-sync-status]:not([data-tone="error"]),
.posting-page .chat-composer-form [data-continue-posting],
.posting-page .chat-composer-form [data-copy-continuation],
.posting-page .chat-composer-form [data-composer-status]:not([data-tone="error"]):not([data-tone="pending"]):not([data-tone="success"]) { display: none !important; }

/* Saved drafts: the account's drafts, openable here from any device. */
.posting-page .saved-drafts { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--ab-line, rgba(127,127,127,.35)); border-radius: 14px; background: var(--ab-panel, transparent); color: var(--ab-ink, inherit); }
.posting-page .saved-drafts summary { cursor: pointer; font-weight: 650; }
.posting-page .saved-drafts-note, .posting-page .saved-drafts-status:not(:empty) { margin: 8px 0 0; font-size: 13px; color: var(--ab-muted, inherit); }
.posting-page .saved-drafts-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.posting-page .saved-draft { padding: 10px 0; border-top: 1px solid var(--ab-line, rgba(127,127,127,.25)); }
.posting-page .saved-draft-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.posting-page .saved-draft-head a { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.posting-page .saved-draft-head a[aria-current] { text-decoration: none; }
.posting-page .saved-draft-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ab-line, rgba(127,127,127,.35)); }
.posting-page .saved-draft-chip[data-needs-action="true"] { font-weight: 650; }
.posting-page .saved-draft small { display: block; margin-top: 4px; font-size: 12px; color: var(--ab-muted, inherit); }
.posting-page .saved-draft-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
.posting-page .saved-draft-feedback:empty { display: none; }
.posting-page .saved-draft-feedback { margin: 6px 0 0; font-size: 13px; }
/* Automated verification is filled in by agents only; it stays collapsed and read-only for people. */
.posting-page .brief-advanced > summary { cursor: pointer; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ab-moss, var(--ab-muted)); }
.posting-page .brief-advanced > p { margin: 0 0 12px; color: var(--ab-muted); font-size: 13px; line-height: 1.5; }
.posting-page .brief-advanced textarea[readonly] { font-family: var(--ab-mono, ui-monospace, monospace); font-size: 13px; }
