:root {
  --ink: #111a44;
  --muted: #5f6d8c;
  --paper: #f5f7ff;
  --white: #fff;
  --line: #dce4f4;
  --brand: #3e63dd;
  --violet: #6d5ce7;
  --accent: #ff7a45;
  /* 兼容现有scoped CSS一个发布周期；新样式只使用语义名称。 */
  --green: var(--brand);
  --green-2: var(--violet);
  --lime: var(--accent);
  --cream: #edf1ff;
  --orange: #ff7a45;
  --shadow: 0 22px 60px rgba(62, 76, 158, .13);
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

/* Author-level component display rules must never override the HTML hidden
   contract. JavaScript uses this attribute for errors, invitation results and
   progressive disclosure throughout the application. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand { font-family: "Manrope", "DM Sans", sans-serif; }
h1 { font-size: clamp(2.5rem, 5vw, 5.7rem); letter-spacing: -.055em; line-height: .98; }
h2 { font-size: clamp(1.8rem, 3.3vw, 3.25rem); letter-spacing: -.04em; line-height: 1.05; }
h3 { letter-spacing: -.025em; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-shell > main { flex: 1; }
.section-pad { padding: 82px max(5vw, calc((100vw - 1420px) / 2)); }
.topbar { height: 78px; padding: 0 max(5vw, calc((100vw - 1420px) / 2)); display: flex; align-items: center; gap: 38px; position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 255, .9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(62,99,221,.1); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.04em; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: transparent; }
.brand-mark, .td-brand__mark { overflow: hidden; }
.brand-mark svg, .td-brand__mark svg,
.brand-mark img, .td-brand__mark img { display: block; width: 100%; height: 100%; }
.brand.light { color: white; }
.brand.light .brand-mark { background: transparent; }
.main-nav { display: flex; gap: 28px; font-size: .92rem; font-weight: 600; }
.main-nav a, .footer-links a { transition: color .2s; }
.main-nav a:hover, .footer-links a:hover { color: var(--green-2); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.language { font-size: .8rem; font-weight: 800; letter-spacing: .07em; }
.user-chip { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; color: var(--muted); }
.user-chip-link:hover, .account-link:hover { color: var(--green); }
.account-link { font-size: .78rem; font-weight: 700; }
.button { border: 1px solid var(--line); border-radius: 14px; padding: 12px 20px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: white; color: var(--ink); cursor: pointer; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,76,158,.14); }
.button.primary { background: var(--lime); border-color: var(--lime); }
.button.dark { background: var(--ink); border-color: var(--ink); color: white; }
.button.ghost { background: transparent; }
.button.compact { padding: 9px 15px; font-size: .82rem; }
.button.wide { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; }
.text-link { font-weight: 700; display: inline-flex; gap: 9px; align-items: center; }
.text-link span { color: var(--green-2); }
.eyebrow { display: block; color: var(--green); font-size: .72rem; letter-spacing: .14em; font-weight: 800; margin-bottom: 20px; }

.hero { min-height: 720px; display: grid; grid-template-columns: 1.03fr .97fr; gap: 5vw; align-items: center; overflow: hidden; }
.hero-copy h1 { max-width: 770px; margin-bottom: 28px; }
.hero-copy > p { font-size: 1.13rem; line-height: 1.7; color: var(--muted); max-width: 660px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.trust-row span::first-letter { color: var(--green); }
.hero-board { min-height: 520px; border-radius: 36px 36px 36px 10px; background: var(--ink); position: relative; display: grid; place-items: center; box-shadow: var(--shadow); }
.board-glow { position: absolute; inset: 8% 13%; background: radial-gradient(circle, rgba(88,174,246,.32), transparent 62%); filter: blur(20px); }
.board-main { position: relative; width: 72%; padding: 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 24px 24px 24px 7px; background: rgba(255,255,255,.09); backdrop-filter: blur(18px); color: white; }
.board-header { color: rgba(255,255,255,.68); font-size: .65rem; letter-spacing: .13em; font-weight: 800; display: flex; gap: 8px; align-items: center; }
.pulse { width: 8px; height: 8px; background: #45b875; border-radius: 50%; box-shadow: 0 0 0 6px rgba(69,184,117,.13); }
.channel-line { display: flex; gap: 16px; align-items: center; margin: 34px 0; }
.channel-line div { display: grid; gap: 5px; }
.channel-line small { color: rgba(255,255,255,.55); font-size: .65rem; }
.channel-line strong { font-family: "Manrope"; font-size: 1.2rem; }
.channel-icon { width: 45px; height: 45px; border-radius: 14px; background: var(--lime); color: var(--ink); display: grid; place-items: center; }
.progress { height: 6px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.12); }
.progress span { height: 100%; display: block; background: var(--lime); border-radius: inherit; }
.board-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 24px; }
.board-stats div { display: grid; gap: 5px; }
.board-stats small { color: rgba(255,255,255,.45); font-size: .57rem; letter-spacing: .08em; }
.board-stats strong { font-size: .85rem; }
.board-stats .accent { color: var(--lime); }
.floating-card { position: absolute; z-index: 2; padding: 16px 19px; display: grid; border-radius: 18px; background: white; box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.floating-card span, .floating-card small { color: var(--muted); font-size: .65rem; }
.floating-card strong { font: 800 1.5rem "Manrope"; }
.floating-card.one { top: 12%; left: 2%; transform: rotate(-5deg); }
.floating-card.two { bottom: 12%; right: 2%; transform: rotate(4deg); }
.metric-strip { padding: 32px max(5vw, calc((100vw - 1420px) / 2)); display: grid; grid-template-columns: repeat(4,1fr); background: white; border-block: 1px solid var(--line); }
.metric-strip div { padding: 14px 28px; display: grid; border-right: 1px solid var(--line); }
.metric-strip div:last-child { border: 0; }
.metric-strip strong { font: 800 1.7rem "Manrope"; }
.metric-strip span { color: var(--muted); font-size: .74rem; }

.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; max-width: 750px; }
.section-heading.slim { margin-bottom: 24px; }
.section-heading.slim h2 { font-size: 1.75rem; }
.section-heading p { color: var(--muted); }
.workspace-body > .section-heading h1 { line-height: 1.08; margin-bottom: 18px; }
.work-section { background: white; }
.task-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.task-grid.two-col { grid-template-columns: repeat(2,1fr); }
.task-card { padding: 27px; border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; background: white; min-height: 340px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.task-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #9bacec; }
.task-card-top { display: flex; gap: 8px; flex-wrap: wrap; }
.tag, .status { display: inline-flex; width: fit-content; border-radius: 999px; padding: 6px 10px; background: #edf1fb; color: #465678; font-size: .64rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tag.internal { background: #efedff; color: #5849c6; }
.task-card h3 { font-size: 1.25rem; line-height: 1.25; margin: 24px 0 13px; }
.task-card h3 a:hover { color: var(--green); }
.task-card > p { color: var(--muted); font-size: .86rem; line-height: 1.65; }
.task-meta { display: flex; gap: 17px; flex-wrap: wrap; color: var(--muted); font-size: .72rem; margin-top: auto; }
.task-meta.large { font-size: .83rem; margin-top: 30px; }
.task-card-bottom { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.task-card-bottom div { display: grid; }
.task-card-bottom small { color: var(--muted); }
.task-card-bottom strong { font: 800 1.5rem "Manrope"; }
.arrow-link { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
.task-details-link, .task-details-link:visited { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 999px; color: #fff !important; background: var(--ink); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.task-details-link:hover { color: var(--lime); transform: translateY(-1px); }
.how-section { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.steps article { padding: 42px; background: var(--paper); min-height: 275px; }
.steps article > span { color: var(--green-2); font-size: .75rem; font-weight: 800; }
.steps h3 { font-size: 1.2rem; margin-top: 55px; }
.steps p { color: var(--muted); line-height: 1.65; font-size: .88rem; }

.compact-hero { padding-bottom: 58px; background: var(--cream); }
.compact-hero h1 { max-width: 1000px; font-size: clamp(2.5rem, 4.8vw, 5rem); }
.compact-hero > p { max-width: 680px; color: var(--muted); line-height: 1.65; }
.search-bar { max-width: 780px; margin-top: 32px; padding: 7px; border-radius: 16px; background: white; display: flex; box-shadow: 0 12px 40px rgba(62,76,158,.11); }
.search-bar input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; outline: 0; background: transparent; }
.marketplace-layout { display: grid; grid-template-columns: 230px 1fr; gap: 52px; }
.filters { display: flex; flex-direction: column; gap: 5px; }
.filter-title { font-size: .72rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 10px; }
.filters > a { padding: 11px 14px; border-radius: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.filters > a.active, .filters > a:hover { color: var(--ink); background: white; font-weight: 700; }
.filter-note { padding: 20px; background: var(--ink); color: white; border-radius: 18px 18px 18px 5px; margin-top: 25px; }
.filter-note p { color: rgba(255,255,255,.63); font-size: .73rem; line-height: 1.6; margin: 8px 0 0; }
.results-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: .8rem; }
.results-header span { color: var(--muted); }

.detail-hero { display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: center; background: var(--cream); }
.detail-hero h1 { font-size: clamp(2.4rem, 4vw, 4.5rem); max-width: 940px; margin-top: 25px; }
.detail-hero > div > p { color: var(--muted); max-width: 800px; line-height: 1.7; font-size: 1.03rem; }
.detail-hero > div > .safe-rich-content { color: var(--muted); max-width: 800px; font-size: 1.03rem; }
.safe-rich-content .ql-indent-1 { margin-left: 1.5em; }
.safe-rich-content .ql-indent-2 { margin-left: 3em; }
.safe-rich-content .ql-indent-3 { margin-left: 4.5em; }
.safe-rich-content .ql-indent-4 { margin-left: 6em; }
.claim-panel { padding: 32px; background: white; border-radius: 24px 24px 24px 7px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.claim-panel > span { color: var(--muted); font-size: .75rem; }
.claim-panel > strong { font: 800 2.6rem "Manrope"; }
.slot-count { padding: 15px 0; border-block: 1px solid var(--line); font-size: .82rem; }
.claim-panel small { color: var(--muted); line-height: 1.5; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prose-card { padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.prose-card h2 { font-size: 1.8rem; }
.prose-card li { color: var(--muted); line-height: 1.65; margin: 12px 0; }

.workspace-head { padding-top: 62px; padding-bottom: 52px; display: flex; align-items: end; justify-content: space-between; gap: 30px; background: var(--cream); }
.workspace-head h1 { font-size: clamp(2.3rem, 4vw, 4.2rem); max-width: 940px; }
.workspace-head p { color: var(--muted); }
.workspace-body { padding-top: 40px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 26px; }
.stat-grid article { padding: 24px; min-height: 150px; background: white; border: 1px solid var(--line); border-radius: 18px 18px 18px 5px; display: grid; align-content: space-between; }
.stat-grid small { color: var(--muted); font-size: .64rem; letter-spacing: .08em; font-weight: 700; }
.stat-grid strong { font: 800 2rem "Manrope"; }
.stat-grid span { color: var(--muted); font-size: .7rem; }
.three-stats { grid-template-columns: repeat(3,1fr); }
.table-card { background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.table-head { padding: 24px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.table-head h2 { font-size: 1.25rem; margin-bottom: 5px; }
.table-head p { color: var(--muted); font-size: .75rem; margin: 0; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 18px 28px; text-align: left; border-bottom: 1px solid var(--line); font-size: .78rem; }
th { color: var(--muted); font-size: .64rem; letter-spacing: .07em; }
td:first-child { min-width: 330px; }
td strong, td small { display: block; }
td small { color: var(--muted); margin-top: 5px; }
.table-actions { text-align: right; white-space: nowrap; }
.table-actions button, .table-actions a { border: 0; background: transparent; color: var(--green); cursor: pointer; font-weight: 800; }
.table-actions > * + * { margin-left: 12px; }
.status.published { background: #e8f6df; color: #397220; }
.status.pendingreview, .status.fundingrequired { background: #fff1d6; color: #926018; }
.status.disputed { background: #fde4e0; color: #9c3328; }
.verification-badge { display: flex; gap: 13px; align-items: center; padding: 17px 20px; border-radius: 16px; background: white; }
.verification-badge > span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); border-radius: 50%; }
.verification-badge div { display: grid; }
.verification-badge small { color: var(--muted); }
.match-list { display: grid; gap: 10px; }
.match-list article { padding: 20px; display: grid; grid-template-columns: 70px 1fr auto; gap: 22px; align-items: center; border: 1px solid var(--line); background: white; border-radius: 16px; }
.match-score { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-content: center; text-align: center; }
.match-score strong { font: 800 1.25rem "Manrope"; }
.match-score small { color: var(--lime); font-size: .5rem; }
.match-copy h3 { margin: 8px 0 5px; }
.match-copy p, .match-reward small { color: var(--muted); font-size: .7rem; margin: 0; }
.match-reward { display: grid; text-align: right; }
.match-reward strong { font: 800 1.35rem "Manrope"; }

.form-page { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.form-intro { position: sticky; top: 130px; }
.form-intro h1 { font-size: clamp(2.3rem, 4vw, 4.5rem); }
.form-intro p { color: var(--muted); line-height: 1.7; }
.form-card { padding: 35px; display: grid; gap: 20px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
[data-agency-task-page] .form-card { min-width: 0; }
[data-agency-contract-page],
[data-agency-contract-page] .form-card,
[data-agency-contract-page] .field-row,
[data-agency-contract-page] .field-row > * { min-width: 0; }
[data-agency-contract-page] .form-card :is(h2, p, pre, code) { overflow-wrap: anywhere; }
[data-agency-task-page] .form-card small { min-width: 0; overflow-wrap: anywhere; }
[data-agency-task-page] [data-agency-assignments] { min-width: 0; }
[data-agency-task-page] .agency-execution-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
[data-agency-task-page] .agency-execution-list li { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; overflow-wrap: anywhere; }
[data-agency-task-page] .agency-execution-list p { margin: 0 0 5px; }
.form-card label, .login-card label { display: grid; gap: 8px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.form-card input, .form-card textarea, .form-card select, .login-card input { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #f9faff; padding: 13px 14px; outline: none; color: var(--ink); }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus, .login-card input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(62,99,221,.13); }
.td-password-input { position: relative; width: 100%; }
.td-password-input > input { padding-right: 3rem; }
.td-password-input__toggle { position: absolute; top: 50%; right: .55rem; display: grid; width: 2.1rem; height: 2.1rem; padding: 0; border: 0; border-radius: .55rem; place-items: center; color: var(--muted); background: transparent; transform: translateY(-50%); cursor: pointer; }
.td-password-input__toggle:hover { color: var(--ink); background: rgba(16, 38, 31, .07); }
.td-password-input__toggle:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.td-password-input__icon { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.td-password-input__icon[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row.three { grid-template-columns: repeat(3,1fr); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.form-page.campaign-form-page { grid-template-columns: minmax(210px,.42fr) minmax(0,1.58fr); gap: clamp(34px,4vw,58px); }
.campaign-form-page .form-intro h1 { font-size: clamp(2.15rem,3.4vw,3.8rem); }
.campaign-form-card { min-width: 0; }
.campaign-fieldset { min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.campaign-fieldset > legend { padding: 0 9px; color: var(--ink); font-size: .82rem; font-weight: 800; }
.campaign-fieldset .form-hint { margin: 0 0 14px; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.campaign-primary-language { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--paper); }
.campaign-primary-language small { font-weight: 500; line-height: 1.5; }
.campaign-primary-note { margin: 14px 0 0; padding: 11px 13px; border-radius: 10px; color: var(--muted); background: var(--paper); font-size: .72rem; }
.campaign-language-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 0; border-bottom: 1px solid var(--line); }
.campaign-language-tabs button { min-width: max-content; min-height: 42px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; padding: 9px 14px; border: 1px solid transparent; border-bottom-color: var(--line); border-radius: 10px 10px 0 0; color: var(--muted); background: transparent; cursor: pointer; font-weight: 800; }
.campaign-language-tabs button small { padding: 3px 6px; border-radius: 999px; color: var(--green); background: #e7ecff; font-size: .57rem; }
.campaign-language-tabs button:hover { color: var(--ink); background: #f5f7ff; }
.campaign-language-tabs button:focus-visible { outline: 3px solid rgba(62,99,221,.2); outline-offset: -3px; }
.campaign-language-tabs button.is-active { border-color: var(--line); border-bottom-color: white; color: var(--ink); background: white; }
.campaign-language-panel { display: grid; gap: 18px; padding: 22px 2px 6px; }
.campaign-language-panel[hidden] { display: none; }
.campaign-language-empty { min-height: 140px; }
.campaign-general-assets { margin-top: 22px; }
.campaign-location-pickers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.campaign-multi-select { position: relative; min-width: 0; }
.campaign-multi-select > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #f9faff; cursor: pointer; list-style: none; font-size: .72rem; font-weight: 700; }
.campaign-multi-select > summary::-webkit-details-marker { display: none; }
.campaign-multi-select[open] > summary { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(62,99,221,.13); }
.campaign-multi-select.is-disabled > summary { color: var(--muted); background: #edf1fb; }
.campaign-multi-select__menu { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; width: max(100%,280px); max-height: 340px; overflow: auto; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.campaign-multi-select__menu > p { margin: 8px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.campaign-multi-select__group { padding: 11px 9px 5px; color: var(--muted); font-size: .63rem; letter-spacing: .05em; text-transform: uppercase; }
.campaign-multi-select__option { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; padding: 9px 10px; border-radius: 8px; color: var(--ink) !important; cursor: pointer; font-size: .7rem !important; }
.campaign-multi-select__option:hover { background: var(--paper); }
.campaign-multi-select__option.is-any { color: var(--green) !important; font-weight: 800 !important; }
.campaign-multi-select__option input { width: 17px !important; height: 17px; flex: 0 0 auto; accent-color: var(--green); }
.campaign-location-review { margin-top: 16px; display: grid; gap: 10px; padding: 15px; border-radius: 12px; background: #f5f8f3; }
.campaign-location-review > strong { font-size: .72rem; }
.campaign-location-review .tag { max-width: 100%; white-space: normal; line-height: 1.4; }
.campaign-installments { display: grid; gap: 14px; }
.campaign-installment { display: grid; gap: 16px; }
.campaign-installment__names, .campaign-installment__money, .campaign-installment__dates { display: grid; gap: 14px; }
.campaign-installment__names, .campaign-installment__money { grid-template-columns: repeat(2,minmax(0,1fr)); }
.campaign-installment__dates { grid-template-columns: repeat(3,minmax(0,1fr)); }
.alert { padding: 13px 15px; border-radius: 10px; font-size: .78rem; }
.alert.error { color: #8c291f; background: #fde7e4; }
.alert.success { color: #245f42; background: #e5f5e9; }
.alert.warning { display: grid; gap: 6px; color: #76520e; background: #fff2d5; }
.alert.warning a { width: fit-content; color: #5f430d; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.account-grid { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: 22px; align-items: start; }
.account-card { box-shadow: none; align-content: start; }
.account-card h2 { font-size: 1.35rem; overflow-wrap: anywhere; }
.card-heading { position: relative; }
.card-heading .eyebrow { margin-bottom: 8px; }
.account-security-panel { padding: 0; gap: 0; overflow: hidden; box-shadow: none; }
.account-security-panel > .card-heading { padding: 25px 26px 20px; }
.account-security-panel > .card-heading h2 { font-size: 1.35rem; }
.account-security-panel > .card-heading p { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.account-security-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 22px 26px; border-top: 1px solid var(--line); }
.account-security-summary { min-width: 0; display: flex; align-items: center; gap: 14px; }
.account-security-summary > div { min-width: 0; }
.account-security-summary h3 { margin: 0 0 5px; font-size: .92rem; }
.account-security-summary p { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.account-security-summary p strong { color: var(--ink); font-weight: 750; overflow-wrap: anywhere; }
.account-security-summary p span { color: var(--muted); }
.account-security-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; }
.account-security-icon.is-verified { color: #256947; background: #ddf5e5; }
.account-security-icon.is-pending { color: #8a621a; background: #fff1d6; }
.account-security-toggle { min-width: 108px; justify-content: center; white-space: nowrap; }
.account-security-editor { grid-column: 1 / -1; padding: 20px 0 4px 48px; border-top: 1px dashed var(--line); }
.account-security-editor[hidden] { display: none; }
.account-security-editor > form, .account-security-editor-grid form { display: grid; align-content: start; gap: 13px; }
.account-security-editor-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(210px,.75fr); gap: 18px; align-items: end; }
.account-security-editor .alert { margin-top: 14px; }
.account-security-editor .password-policy-help { margin: -3px 0 1px; }
.integrity-receipt-wrap { padding-top: 0; }
.integrity-receipt-panel {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  gap: 28px;
  align-items: start;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg,#f8fbf5 0%,#fff 72%);
}
.integrity-receipt-panel h2 { margin: 5px 0 8px; font-size: clamp(1.2rem,2vw,1.65rem); }
.integrity-receipt-panel p { margin: 0; color: var(--muted); }
.integrity-receipt-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.integrity-receipt-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.integrity-receipt-list li > span { display: grid; min-width: 0; gap: 2px; }
.integrity-receipt-list strong,
.integrity-receipt-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.integrity-receipt-list small { color: var(--muted); }
.integrity-verify-page { max-width: 1240px; margin: 0 auto; }
.integrity-verify-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.integrity-facts { display: grid; gap: 0; margin: 16px 0 0; }
.integrity-facts > div { display: grid; grid-template-columns: minmax(130px,.4fr) minmax(0,1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.integrity-facts dt { color: var(--muted); font-weight: 700; }
.integrity-facts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.integrity-facts code { font-size: .78rem; }

.incident-details { min-width: 15rem; }
.incident-details > summary { color: var(--ink); cursor: pointer; font-weight: 700; }
.incident-details dl { display: grid; gap: .35rem .75rem; grid-template-columns: max-content minmax(12rem,1fr); margin: .85rem 0; }
.incident-details dt { color: var(--muted); font-size: .68rem; font-weight: 800; }
.incident-details dd { max-width: 34rem; margin: 0; overflow-wrap: anywhere; }
.incident-resolution-form { display: grid; gap: .65rem; margin-top: .75rem; }
.incident-resolution-form .checkbox-line { align-items: center; display: flex; gap: .5rem; }
.incident-resolution-form .checkbox-line input { min-height: auto; width: auto; }
.td-home-cta-note { flex-basis: 100%; max-width: 520px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.verification-status { display: inline-flex; width: fit-content; margin-top: 9px; padding: 5px 9px; border-radius: 999px; font-size: .66rem; font-weight: 800; }
.verification-status.verified { color: #2f6d48; background: #e6f5e9; }
.verification-status.pending { color: #8a621a; background: #fff1d6; }
.workspace-head-actions { display: grid; justify-items: end; gap: 14px; }
.action-row { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.workspace-tabs a { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: .78rem; font-weight: 700; }
.workspace-tabs a:hover { border-color: var(--green-2); color: var(--green); }
.workspace-tabs a.is-active, .workspace-tabs a[aria-current="page"] { border-color: var(--ink); color: white; background: var(--ink); }
.workspace-section { margin-top: 64px; scroll-margin-top: 100px; }
.four-stats { grid-template-columns: repeat(4,1fr); }
.score-breakdown { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.score-breakdown span { padding: 4px 7px; border-radius: 7px; color: var(--muted); background: var(--paper); font-size: .62rem; }
.talent-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.talent-meta span { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.talent-profile-form fieldset { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.talent-profile-form legend { padding: 0 8px; font-weight: 800; font-size: .78rem; }
.field-help { color: var(--muted); font-size: .7rem; margin: 0 0 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.choice-item { padding: 12px; display: grid; grid-template-columns: 1fr minmax(120px,.7fr); gap: 10px; align-items: center; border-radius: 10px; background: var(--paper); }
.choice-item select { padding: 9px 10px; }
.check-line { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 9px !important; color: var(--ink) !important; }
.check-line input { width: 17px !important; height: 17px; flex: 0 0 auto; accent-color: var(--green); }
.profile-progress { width: 170px; margin-top: 25px; padding: 20px; display: grid; border-radius: 18px; background: var(--ink); color: white; }
.profile-progress strong { font: 800 2rem "Manrope"; color: var(--lime); }
.profile-progress span { color: rgba(255,255,255,.6); font-size: .7rem; }
.talent-public-hero { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; background: var(--cream); }
.talent-public-identity { min-width: 0; display: grid; gap: 18px; }
.talent-public-heading { display: grid; gap: 8px; }
.talent-public-hero h1 { margin: 0; font-size: clamp(2.7rem,5vw,5rem); line-height: 1.04; }
.talent-public-hero h2 { margin: 0; color: var(--green); font-size: 1.4rem; line-height: 1.3; }
.talent-public-hero p { max-width: 780px; margin: 0; color: var(--muted); line-height: 1.7; }
.profile-score { width: 180px; height: 180px; display: grid; place-content: center; text-align: center; border-radius: 50%; color: white; background: var(--ink); }
.profile-score strong { font: 800 3rem "Manrope"; color: var(--lime); }
.profile-score span, .profile-score small { color: rgba(255,255,255,.65); }
.password-policy-help { margin: -4px 0 2px; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.alert { white-space: pre-line; }
.talent-public-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

.admin-shell { background: #eef0eb; min-height: calc(100vh - 78px); }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }
.admin-title h1 { font-size: clamp(2.2rem, 4vw, 4.5rem); max-width: 880px; }
.admin-title p { color: var(--muted); }
.admin-columns { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.admin-list article { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.admin-list article > div:first-child { min-width: 0; flex: 1; }
.admin-list h3 { font-size: .9rem; margin: 10px 0 4px; }
.admin-list p { color: var(--muted); font-size: .7rem; margin: 0; }
.agency-certification-review .admin-list article { flex-wrap: wrap; align-items: flex-start; }
.agency-certification-review .admin-list article > div:first-child { overflow-wrap: anywhere; }
.agency-certification-review__meta { display: grid; justify-items: start; gap: 6px; margin-top: 12px; line-height: 1.45; }
.agency-certification-review__meta small { color: var(--muted); font-size: .7rem; }
.agency-certification-review__meta a { font-size: .72rem; font-weight: 800; }
.agency-certification-review .table-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; white-space: normal; }
.agency-certification-review .table-actions > * + * { margin-left: 0; }
.queue-details { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.queue-details summary { color: var(--green); cursor: pointer; font-size: .72rem; font-weight: 800; }
.queue-details label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.queue-details input, .queue-details select, .queue-details textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #f9faff; color: var(--ink); }
.queue-details textarea { resize: vertical; line-height: 1.45; }
.queue-details button { margin-top: 9px; }
.audit-list { max-height: 520px; overflow: auto; }
.audit-list article { display: flex; gap: 13px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.audit-dot { width: 8px; height: 8px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--green-2); }
.audit-list strong { font-size: .72rem; }
.audit-list p, .audit-list small { color: var(--muted); font-size: .62rem; margin: 4px 0; }

.login-page { min-height: 100vh; display: grid; grid-template-columns: .9fr 1.1fr; }
.login-story { padding: 6vw; color: white; background: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.login-story h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
.login-story p { color: rgba(255,255,255,.65); max-width: 600px; line-height: 1.7; }
.login-story .eyebrow { color: var(--lime); }
.login-story > small { color: rgba(255,255,255,.4); }
.login-form-wrap { padding: 7vw; display: grid; place-items: center; background: white; }
.login-card { width: min(430px, 100%); display: grid; gap: 20px; }
.login-card h2 { font-size: 2rem; }
.demo-accounts { padding: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; background: var(--paper); border-radius: 14px; }
.demo-accounts strong, .demo-accounts small { width: 100%; font-size: .69rem; }
.demo-accounts button { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 7px 11px; cursor: pointer; font-size: .68rem; }
.legal-copy { color: var(--muted); font-size: .67rem; line-height: 1.5; text-align: center; }

.empty-state { min-height: 65vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 50px 20px; }
.empty-state h1 { font-size: clamp(2.2rem, 5vw, 5rem); }
.empty-state p { max-width: 580px; color: var(--muted); line-height: 1.6; }
.empty-state.inset { min-height: 350px; border: 1px dashed #bdc7c1; border-radius: 20px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); font-size: 2rem; margin-bottom: 25px; }
.site-footer { padding: 38px max(5vw, calc((100vw - 1420px) / 2)); background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; }
.site-footer > div:first-child { display: grid; gap: 4px; }
.site-footer span { color: rgba(255,255,255,.5); font-size: .72rem; }
.footer-links { display: flex; gap: 22px; color: rgba(255,255,255,.7); font-size: .75rem; }
.toast { position: fixed; z-index: 100; right: 25px; bottom: 25px; max-width: 390px; padding: 15px 19px; border-radius: 12px; color: white; background: var(--ink); box-shadow: var(--shadow); animation: toast-in .25s ease-out; }
.toast.error { background: #8c291f; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

@media (max-width: 1050px) {
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-board { min-height: 470px; }
  .task-grid, .task-grid.two-col { grid-template-columns: repeat(2,1fr); }
  .detail-hero { grid-template-columns: 1fr; gap: 40px; }
  .claim-panel { width: min(500px,100%); }
  .form-page { grid-template-columns: 1fr; }
  .form-page.campaign-form-page { grid-template-columns: minmax(0,1fr); }
  .form-intro { position: static; }
  .admin-columns { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section-pad { padding: 56px 22px; }
  .agency-certification-review .table-actions { width: 100%; justify-content: flex-start; }
  .topbar { height: 68px; padding: 0 18px; }
  .campaign-form-card { padding: 22px 16px; }
  .campaign-fieldset { padding: 18px 14px; }
  .campaign-location-pickers { grid-template-columns: 1fr; }
  .campaign-multi-select__menu { position: static; width: 100%; margin-top: 7px; box-shadow: none; }
  .campaign-installment__names, .campaign-installment__money, .campaign-installment__dates { grid-template-columns: 1fr; }
  .account-security-panel > .card-heading { padding: 22px 18px 17px; }
  .account-security-item { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 20px 18px; }
  .account-security-toggle { width: 100%; }
  .account-security-editor { padding: 18px 0 2px; }
  .account-security-editor-grid { grid-template-columns: minmax(0,1fr); }
  .brand { font-size: 1rem; }
  .nav-actions .user-chip, .nav-actions .account-link, .nav-actions .button.ghost { display: none; }
  .hero { min-height: 0; padding-top: 70px; }
  .hero-board { min-height: 380px; }
  .board-main { width: 84%; padding: 22px; }
  .floating-card { display: none; }
  .board-stats { grid-template-columns: 1fr 1fr; }
  .metric-strip { grid-template-columns: 1fr 1fr; padding-inline: 10px; }
  .metric-strip div:nth-child(2) { border-right: 0; }
  .task-grid, .task-grid.two-col, .steps, .detail-grid, .stat-grid, .three-stats, .four-stats, .talent-public-grid { grid-template-columns: 1fr; }
  .marketplace-layout { grid-template-columns: 1fr; gap: 26px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-title, .filter-note { grid-column: 1 / -1; }
  .workspace-head, .admin-title { align-items: start; flex-direction: column; }
  .match-list article { grid-template-columns: 58px 1fr; }
  .match-reward { grid-column: 2; text-align: left; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .choice-item { grid-template-columns: 1fr; }
  .workspace-head-actions { justify-items: start; }
  .action-row { justify-content: flex-start; }
  .talent-public-hero { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .site-footer { align-items: start; flex-direction: column; gap: 24px; }
}

/* Assignment and dispute workspaces */
.workflow-hero { padding: 54px max(4vw, calc((100vw - 1380px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: center; background: linear-gradient(135deg, #f5f2e9, #eef4ef); border-bottom: 1px solid var(--line); }
.workflow-hero h1 { max-width: 920px; margin: 14px 0; font-size: clamp(2rem, 4vw, 3.8rem); }
.workflow-hero > div > p { max-width: 800px; color: var(--muted); line-height: 1.65; }
.workflow-hero > div > .safe-rich-content { max-width: 800px; color: var(--muted); }
.workflow-breadcrumb { display: flex; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .72rem; }
.workflow-breadcrumb a { color: var(--green); font-weight: 700; }
.workflow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 18px; margin-top: 24px; color: var(--muted); font-size: .76rem; }
.workflow-deadline-card { min-height: 180px; padding: 28px; display: grid; align-content: center; gap: 10px; border-radius: 22px 22px 22px 7px; color: white; background: var(--ink); box-shadow: var(--shadow); }
.workflow-deadline-card small { color: var(--lime); font-weight: 800; letter-spacing: .08em; }
.workflow-deadline-card strong { font: 800 1.5rem "Manrope"; }
.workflow-deadline-card span { color: rgba(255,255,255,.62); font-size: .7rem; line-height: 1.5; }
.dispute-hero { background: linear-gradient(135deg, #f7eee8, #f5f2e9); }
.workflow-page { width: min(1380px, 92%); margin: 0 auto; padding: 38px 0 80px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.workflow-main, .workflow-sidebar { min-width: 0; display: grid; gap: 20px; }
.workflow-sidebar { position: sticky; top: 96px; }
.workflow-card { min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; background: white; }
.workflow-card h2 { margin-bottom: 8px; font-size: 1.35rem; }
.workflow-card h3 { font-size: 1rem; }
.workflow-card > p, .action-card > p { color: var(--muted); line-height: 1.6; font-size: .8rem; }
.workflow-card-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 20px; }
.workflow-card-head .eyebrow { margin-bottom: 6px; }
.workflow-timeline { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; }
.workflow-timeline li { position: relative; min-width: 0; padding: 0 10px 0 0; display: grid; grid-template-columns: 1fr; grid-template-rows: 3.6rem 16px minmax(2.1rem, auto); row-gap: 6px; }
.workflow-timeline li::before { content: ""; position: absolute; top: calc(3.6rem + 7px); left: 8px; right: 0; height: 2px; background: var(--line); }
.workflow-timeline li:last-child::before { display: none; }
.workflow-timeline li > span { position: relative; z-index: 1; grid-row: 2; width: 16px; height: 16px; border: 3px solid white; border-radius: 50%; background: #c8d0cb; box-shadow: 0 0 0 1px var(--line); }
.workflow-timeline li.is-complete > span { background: var(--green-2); }
.workflow-timeline li.is-current > span { background: var(--lime); box-shadow: 0 0 0 2px var(--green); }
.workflow-timeline strong { grid-row: 1; align-self: end; min-width: 0; font-size: .72rem; line-height: 1.25; }
.workflow-timeline small { grid-row: 3; min-width: 0; color: var(--muted); font-size: .62rem; overflow-wrap: anywhere; }
.dispute-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workflow-form { display: grid; gap: 15px; }
.workflow-form label { display: grid; gap: 7px; color: var(--muted); font-size: .7rem; font-weight: 700; }
.workflow-form input, .workflow-form textarea, .workflow-form select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9faff; color: var(--ink); font: inherit; }
.workflow-form textarea { resize: vertical; line-height: 1.5; }
.workflow-form input:focus, .workflow-form textarea:focus, .workflow-form select:focus { border-color: var(--green-2); outline: 0; box-shadow: 0 0 0 3px rgba(62,99,221,.13); }

/* Local Quill 2.0.3 integration for task descriptions. Keep these selectors
   scoped so the editor does not restyle the operational forms around it. */
.campaign-rich-text-editor { display: grid; gap: 8px; min-width: 0; }
.campaign-rich-text-editor > label { font-weight: 750; line-height: 1.35; }
.campaign-rich-text-editor__toolbar.ql-toolbar.ql-snow { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; padding: 7px 9px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; background: #f7f9f5; }
.campaign-rich-text-editor__toolbar .ql-formats { margin-right: 8px; }
.campaign-rich-text-editor__toolbar button.ql-emoji,
.campaign-rich-text-editor__toolbar button.ql-symbol { width: 28px; height: 24px; padding: 0; border: 0; border-radius: 6px; color: var(--ink); background: transparent; font: 700 .93rem/1 "DM Sans", system-ui, sans-serif; cursor: pointer; }
.campaign-rich-text-editor__toolbar button.ql-emoji:hover,
.campaign-rich-text-editor__toolbar button.ql-symbol:hover,
.campaign-rich-text-editor__toolbar button.ql-emoji:focus-visible,
.campaign-rich-text-editor__toolbar button.ql-symbol:focus-visible { background: #e8edff; outline: 2px solid rgba(62,99,221,.3); outline-offset: 1px; }
.campaign-rich-text-editor__surface.ql-container.ql-snow { min-height: 220px; border: 1px solid var(--line); border-radius: 0 0 12px 12px; background: #f9faff; color: var(--ink); font: inherit; }
.campaign-rich-text-editor__surface .ql-editor { min-height: 220px; padding: 13px 14px; line-height: 1.58; }
.campaign-rich-text-editor__surface .ql-editor.ql-blank::before { color: #83908a; font-style: normal; }
.campaign-rich-text-editor__surface.ql-container.ql-snow:focus-within { border-color: var(--green-2); box-shadow: 0 2px 0 0 var(--green-2), 0 0 0 3px rgba(62,99,221,.13); }
.campaign-rich-text-editor__help { color: var(--muted); line-height: 1.45; }

@media (max-width: 520px) {
  .campaign-rich-text-editor__toolbar.ql-toolbar.ql-snow { gap: 1px; padding: 6px; }
  .campaign-rich-text-editor__toolbar .ql-formats { margin-right: 3px; }
  .campaign-rich-text-editor__surface.ql-container.ql-snow,
  .campaign-rich-text-editor__surface .ql-editor { min-height: 184px; }
}
.compact-form { margin-top: 16px; }
.delivery-list, .evidence-list, .review-decision-list { display: grid; gap: 12px; }
.delivery-list > article, .evidence-list > article, .review-decision-list > article { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f9faff; }
.delivery-list header, .evidence-list header, .review-decision-list header { display: flex; justify-content: space-between; gap: 15px; align-items: center; }
.delivery-list time, .evidence-list time, .review-decision-list time { color: var(--muted); font-size: .65rem; }
.delivery-list p, .evidence-list p, .review-decision-list p { color: var(--muted); font-size: .78rem; line-height: 1.55; white-space: pre-wrap; }
.delivery-links { display: grid; gap: 5px; }
.delivery-links a, .evidence-list a { color: var(--green); font-size: .72rem; overflow-wrap: anywhere; }
.file-list { margin-top: 18px; border-top: 1px solid var(--line); }
.file-list > div, .evidence-file { padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.file-list span, .evidence-file span { min-width: 0; display: grid; gap: 3px; }
.file-list strong, .evidence-file strong { font-size: .72rem; overflow-wrap: anywhere; }
.file-list small, .evidence-file small { color: var(--muted); font-size: .62rem; }
.file-list a, .evidence-file a { color: var(--green); font-size: .7rem; font-weight: 800; }
.assignment-message-thread { display: grid; gap: 12px; max-height: 560px; overflow-y: auto; padding: 4px 3px 4px 0; }
.assignment-message { width: min(86%, 680px); padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px 16px 16px 5px; background: #f9faff; }
.assignment-message.is-own { justify-self: end; border-radius: 16px 16px 5px 16px; border-color: color-mix(in srgb, var(--green) 25%, var(--line)); background: color-mix(in srgb, var(--green) 5%, white); }
.assignment-message header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.assignment-message header strong { font-size: .74rem; }
.assignment-message header time { margin-left: auto; color: var(--muted); font-size: .62rem; }
.assignment-message > p { margin: 0; color: var(--ink); font-size: .78rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-attachments { display: grid; gap: 7px; margin-top: 11px; }
.message-attachments > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 11px; border-radius: 10px; background: white; }
.message-attachments strong { overflow-wrap: anywhere; font-size: .68rem; }
.message-attachments small { grid-column: 1; color: var(--muted); font-size: .6rem; }
.message-attachments a, .message-attachments em { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--green); font-size: .65rem; font-style: normal; font-weight: 800; }
.assignment-message-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.action-card { box-shadow: 0 14px 42px rgba(62,76,158,.11); }
.empty-state.compact { min-height: 150px; padding: 20px; }
.ruling-card { border-color: #bad0bf; background: #f3f8f3; }
.ruling-allocation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.ruling-allocation > div { padding: 18px; display: grid; gap: 5px; border-radius: 12px; background: white; }
.ruling-allocation small { color: var(--muted); font-size: .65rem; }
.ruling-allocation strong { font: 800 1.3rem "Manrope"; }

@media (max-width: 1200px) {
  .workflow-hero { grid-template-columns: 1fr; }
  .workflow-deadline-card { min-height: auto; }
  .workflow-page { grid-template-columns: 1fr; }
  .workflow-sidebar { position: static; }
}

@media (max-width: 720px) {
  .integrity-receipt-panel, .integrity-verify-grid { grid-template-columns: 1fr; }
  .integrity-receipt-panel { padding: 20px 18px; }
  .integrity-receipt-list li { align-items: flex-start; }
  .integrity-facts > div { grid-template-columns: 1fr; gap: 5px; }
  .workflow-hero { padding: 34px 20px; }
  .workflow-page { width: auto; padding: 20px 14px 90px; }
  .workflow-card { padding: 20px; }
  .workflow-timeline, .dispute-timeline { grid-template-columns: 1fr; gap: 15px; }
  .workflow-timeline li { grid-template-columns: 16px 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 5px; }
  .workflow-timeline li::before { top: 8px; bottom: -15px; left: 7px; right: auto; width: 2px; height: auto; }
  .workflow-timeline li > span { grid-column: 1; grid-row: 1 / 3; }
  .workflow-timeline strong { grid-column: 2; grid-row: 1; align-self: auto; }
  .workflow-timeline small { grid-column: 2; grid-row: 2; align-self: auto; }
  .ruling-allocation { grid-template-columns: 1fr; }
  .assignment-message { width: 100%; }
  .assignment-message header { flex-wrap: wrap; }
  .assignment-message header time { width: 100%; margin-left: 0; }
}
