/*
 * FreelanceDirectly: shared styles for the app pages and the theme.
 * Order: tokens, base, components, layout (shell), pages, responsive.
 */

/* ------------------------------------------------------------- tokens -- */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--fd-green: #108a00;
	--fd-green-dark: color-mix(in srgb, var(--fd-green) 82%, #000);
	--fd-green-soft: color-mix(in srgb, var(--fd-green) 11%, #fff);
	--fd-green-line: color-mix(in srgb, var(--fd-green) 32%, #fff);
	--fd-ink: #0c110f;
	--fd-text: #141a18;
	--fd-muted: #5d6965;
	--fd-faint: #8a9591;
	--fd-line: #e2e6e3;
	--fd-bg: #f4f5f4;
	--fd-card: #fff;
	--fd-fill: #eef0ee;
	--fd-side: #0a0e0d;
	--fd-amber: #8a5a00;
	--fd-amber-soft: #fff4dc;
	--fd-red: #b3261e;
	--fd-red-soft: #fdecea;
	--fd-radius: 22px;
	--fd-radius-sm: 14px;
	--fd-shadow: 0 1px 2px rgba(12, 17, 15, .04), 0 8px 24px -12px rgba(12, 17, 15, .10);
	--fd-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------- base -- */

.fd-app, .fd-site {
	margin: 0;
	background: var(--fd-bg);
	color: var(--fd-text);
	font-family: var(--fd-font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.fd-app *, .fd-app *::before, .fd-app *::after,
.fd-site *, .fd-site *::before, .fd-site *::after { box-sizing: border-box; }

/* Resets sit inside :where() so they never outrank a component class. */
:where(.fd-app, .fd-site) a { color: inherit; }
:where(.fd-app) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; }
:where(.fd-app) :where(ul, ol) { padding: 0; list-style: none; }
:where(.fd-app, .fd-site) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.fd-app [hidden], .fd-site [hidden] { display: none !important; }

.fd-app :focus-visible, .fd-site :focus-visible {
	outline: 2px solid var(--fd-green);
	outline-offset: 2px;
	border-radius: 6px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fd-icon { flex: none; vertical-align: -3px; }

/* --------------------------------------------------------- typography -- */

.fd-h1 { font-size: 30px; line-height: 1.15; font-weight: 750; letter-spacing: -.025em; margin: 0 0 6px; }
.fd-h1--job { font-size: 26px; margin: 14px 0 12px; }
.fd-h1--xl { font-size: 40px; margin-bottom: 12px; }
.fd-h2 { font-size: 21px; line-height: 1.25; font-weight: 720; letter-spacing: -.02em; margin: 0 0 8px; }
.fd-h3 { font-size: 15px; font-weight: 700; margin: 26px 0 10px; }
.fd-muted { color: var(--fd-muted); }
.fd-lead { color: var(--fd-muted); font-size: 16px; max-width: 620px; margin: 0 auto 16px !important; }
.fd-kicker { display: block; font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--fd-faint); }
.fd-big { font-size: 24px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px !important; }
.fd-big small { font-size: 14px; font-weight: 500; color: var(--fd-muted); letter-spacing: 0; }
.fd-center { text-align: center; }
.fd-note { display: flex; gap: 7px; align-items: flex-start; font-size: 13px; color: var(--fd-muted); margin-top: 12px !important; }
.fd-note .fd-icon { margin-top: 2px; color: var(--fd-green); }
.fd-note a, .fd-muted a, .fd-count a, .fd-auth__foot a, .fd-hint a, .fd-check a { color: var(--fd-green-dark); font-weight: 600; text-underline-offset: 2px; }
.fd-hint { display: block; font-size: 13px; color: var(--fd-muted); }
.fd-rule { border: 0; border-top: 1px solid var(--fd-line); margin: 18px 0; }
.fd-back { margin-bottom: 14px !important; font-size: 14px; }
.fd-back a { color: var(--fd-muted); text-decoration: none; font-weight: 550; }
.fd-back a:hover { color: var(--fd-text); }
.fd-link { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; color: var(--fd-green-dark) !important; text-decoration: none; }
.fd-link:hover { text-decoration: underline; }

.fd-prose { font-size: 15.5px; line-height: 1.7; color: #27302d; overflow-wrap: anywhere; margin-top: 18px; }
.fd-prose p { margin: 0 0 14px; }
.fd-prose p:last-child { margin-bottom: 0; }
.fd-prose ul, .fd-prose ol { margin: 0 0 14px; padding-left: 22px; list-style: revert; }

/* ---------------------------------------------------------- components -- */

.fd-card {
	background: var(--fd-card);
	border: 1px solid var(--fd-line);
	border-radius: var(--fd-radius);
	box-shadow: var(--fd-shadow);
}
.fd-pad { padding: 26px 28px; }

.fd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 22px;
	border: 1px solid transparent; border-radius: 999px;
	font-size: 14.5px; font-weight: 620; line-height: 1; white-space: nowrap;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, transform .05s;
}
.fd-btn:active { transform: translateY(1px); }
.fd-btn[disabled] { opacity: .5; cursor: not-allowed; }
.fd-btn--dark { background: var(--fd-ink); color: #fff !important; }
.fd-btn--dark:hover { background: #232b28; }
.fd-btn--green { background: var(--fd-green); color: #fff !important; }
.fd-btn--green:hover { background: var(--fd-green-dark); }
.fd-btn--ghost { background: #fff; border-color: var(--fd-line); color: var(--fd-text) !important; }
.fd-btn--ghost:hover { border-color: #c5ccc8; background: #fafbfa; }
.fd-btn--light { background: #fff; color: var(--fd-ink) !important; }
.fd-btn--light:hover { background: #eef2ee; }
.fd-btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff !important; }
.fd-btn--outline-light:hover { border-color: rgba(255, 255, 255, .5); }
.fd-btn--sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.fd-btn--block { display: flex; width: 100%; }

.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chip {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 11px; border-radius: 999px; border: 1px solid transparent;
	background: var(--fd-fill); color: #27302d;
	font-size: 12.5px; font-weight: 560; line-height: 1.35; text-decoration: none; white-space: nowrap;
}
.fd-chip--green { background: var(--fd-green-soft); border-color: var(--fd-green-line); color: var(--fd-green-dark); }
.fd-chip--line { background: #fff; border-color: var(--fd-line); }
.fd-chip--dark { background: var(--fd-ink); color: #fff; }
.fd-chip--solid { background: var(--fd-green); color: #fff; font-weight: 650; }
.fd-chip--amber { background: var(--fd-amber-soft); border-color: #f2ddb0; color: var(--fd-amber); }
.fd-chip--lg { padding: 8px 15px; font-size: 14px; }
.fd-chip--lg b { font-weight: 720; }

.fd-avatar {
	position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--fd-green-soft); color: var(--fd-green-dark); font-weight: 700; line-height: 1;
}
.fd-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.fd-dot {
	position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 8px; min-height: 8px; max-width: 14px; max-height: 14px;
	border-radius: 50%; background: #b9c1bd; border: 2px solid #fff;
}
.fd-dot.is-on { background: #18b53c; }

.fd-alert {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	padding: 13px 18px; margin: 0 0 18px; border-radius: var(--fd-radius-sm); border: 1px solid var(--fd-line);
	background: #fff; font-size: 14.5px;
}
.fd-alert > span { flex: 1 1 240px; }
.fd-alert--ok { justify-content: flex-start; background: var(--fd-green-soft); border-color: var(--fd-green-line); color: #0b3d05; }
.fd-alert--ok .fd-icon { color: var(--fd-green); }
.fd-alert--err { background: var(--fd-red-soft); border-color: #f4c7c3; color: #7a1a14; }
.fd-alert--info { background: #f6f8f6; }
.fd-alert form { margin: 0; }

.fd-banner {
	display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 16px 18px 16px 20px; margin-bottom: 30px;
	background: #e9ece9; border: 1px solid var(--fd-line); border-radius: var(--fd-radius);
}
.fd-banner p { flex: 1 1 320px; color: var(--fd-muted); margin: 0; }
.fd-banner strong { color: var(--fd-text); }
.fd-banner form { margin: 0; }
.fd-banner--flush { margin-bottom: 0; }
.fd-banner__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--fd-line); }

.fd-empty { padding: 54px 28px; text-align: center; }
.fd-empty h1, .fd-empty h2 { font-size: 20px; font-weight: 720; letter-spacing: -.015em; margin: 14px 0 6px; }
.fd-empty p { color: var(--fd-muted); max-width: 440px; margin: 0 auto 18px; }
.fd-empty__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--fd-green-soft); color: var(--fd-green-dark); }

.fd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; color: var(--fd-muted); }
.fd-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.fd-meta strong { color: var(--fd-text); }
.fd-meta__who { color: var(--fd-text); font-weight: 600; gap: 8px !important; }

.fd-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.fd-actions--split { justify-content: space-between; }
.fd-actions--split .fd-note { margin-top: 0 !important; }
.fd-actions--end { justify-content: flex-end; }
.fd-actions--center { justify-content: center; }

.fd-meter { height: 6px; border-radius: 999px; background: var(--fd-fill); overflow: hidden; margin-top: 14px; }
.fd-meter i { display: block; height: 100%; border-radius: inherit; background: var(--fd-green); }

.fd-facts { display: grid; gap: 9px; font-size: 14px; }
.fd-facts > div { display: flex; justify-content: space-between; gap: 14px; }
.fd-facts dt { color: var(--fd-muted); }
.fd-facts dd { font-weight: 620; text-align: right; }

.fd-person { display: flex; align-items: center; gap: 12px; margin: 12px 0 16px; }
.fd-person strong { display: block; font-size: 15.5px; }
.fd-person em { font-style: normal; font-size: 13px; color: var(--fd-muted); }

.fd-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; color: var(--fd-muted); font-size: 14px; }

.fd-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px; border-radius: 999px; background: #e9ece9; border: 1px solid var(--fd-line); margin: 26px 0 14px; }
.fd-tab { padding: 10px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--fd-text) !important; text-decoration: none; }
.fd-tab:hover { background: rgba(255, 255, 255, .6); }
.fd-tab.is-active { background: var(--fd-ink); color: #fff !important; }
.fd-count { font-size: 14.5px; font-weight: 550; margin-bottom: 14px !important; }
.fd-filters + .fd-count { margin-top: 24px; }

/* minmax(0, 1fr): a wide child (a long select, a file input) must not push the column past its container. */
.fd-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.fd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.fd-head .fd-muted { max-width: 640px; }
.fd-narrow { max-width: 760px; margin-inline: auto; }
.fd-narrow > * + * { margin-top: 16px; }
.fd-section { margin-top: 56px; }
.fd-section > .fd-h2 { margin-bottom: 20px; }
.fd-two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.fd-two__main, .fd-two__side { display: grid; gap: 16px; }

/* --------------------------------------------------------------- forms -- */

.fd-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fd-field--end { justify-content: flex-end; }
.fd-label { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 620; }
.fd-label__link { font-weight: 550; color: var(--fd-green-dark) !important; }
.fd-optional { font-weight: 450; color: var(--fd-faint); }

.fd-input, .fd-select, .fd-textarea {
	width: 100%; min-height: 46px; padding: 11px 14px;
	background: #fff; border: 1px solid #cfd5d1; border-radius: 12px;
	font-size: 15px; line-height: 1.4;
	transition: border-color .15s, box-shadow .15s;
}
.fd-input::placeholder, .fd-textarea::placeholder { color: #98a29e; }
.fd-input:hover, .fd-select:hover, .fd-textarea:hover { border-color: #aab3ae; }
.fd-input:focus, .fd-select:focus, .fd-textarea:focus {
	outline: none; border-color: var(--fd-green);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-green) 18%, transparent);
}
.fd-input--lg { min-height: 54px; font-size: 17px; }
.fd-textarea { resize: vertical; line-height: 1.55; }
.fd-select {
	appearance: none; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23141a18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 13px center;
}
.fd-file { font-size: 14px; max-width: 100%; min-width: 0; }
.fd-file::file-selector-button {
	margin-right: 12px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--fd-line);
	background: #fff; font: inherit; font-weight: 600; cursor: pointer;
}

.fd-affix { display: flex; align-items: center; background: #fff; border: 1px solid #cfd5d1; border-radius: 12px; }
.fd-affix:focus-within { border-color: var(--fd-green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fd-green) 18%, transparent); }
.fd-affix i { flex: none; white-space: nowrap; font-style: normal; color: var(--fd-muted); padding: 0 12px; font-size: 14.5px; }
.fd-affix i:first-child { padding-right: 0; }
.fd-affix .fd-input { flex: 1 1 auto; width: auto; border: 0; box-shadow: none !important; background: transparent; min-width: 0; padding-left: 8px; }
/* The browser's up/down arrows eat the room the unit label needs. */
.fd-affix input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.fd-affix input[type="number"]::-webkit-inner-spin-button,
.fd-affix input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.fd-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fd-form__row--3 { grid-template-columns: 1.1fr 1fr 1fr; }
.fd-form > .fd-hint { margin-top: -10px; }
.fd-form .fd-actions { margin-top: 4px; }
.fd-form .fd-rule { margin: 4px 0; }
.fd-form .fd-h3 { margin: 0; }
.fd-form .fd-alert { margin: 0; }

.fd-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.fd-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fd-green); flex: none; }
.fd-hp { position: absolute !important; left: -9999px; }
.fd-counter { align-self: flex-end; font-size: 12.5px; color: var(--fd-faint); margin-top: -2px; }
.fd-photo { display: flex; align-items: center; gap: 18px; }

/* Profile form: repeating rows, paired month and year, the save bar. */
.fd-form .fd-h2 { margin: 0 0 2px; }
.fd-pair { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }
.fd-rep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: start; }
.fd-rep__rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; }
.fd-rep__rows:empty { display: none; }
.fd-rep__row { position: relative; padding: 18px 18px 14px; border: 1px solid var(--fd-line); border-radius: 14px; background: #fbfcfb; gap: 14px; }
.fd-rep__remove { justify-self: end; display: inline-flex; align-items: center; gap: 5px; padding: 4px 2px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--fd-muted); cursor: pointer; }
.fd-rep__remove:hover { color: var(--fd-red); }
.fd-workimg { display: flex; align-items: center; gap: 16px; }
.fd-workimg img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--fd-line); flex: none; }
.fd-check strong { display: block; }
.fd-workimg .fd-field { flex: 1 1 200px; }
.fd-savebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 10px 30px rgba(17, 23, 22, .12); }
.fd-savebar .fd-note { margin-top: 0 !important; }

/* Public profile: verified tick, sections, portfolio, timeline rows. */
.fd-verified { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: #1d6ff2; color: #fff; vertical-align: middle; flex: none; }
.fd-verified .fd-icon { width: 12px; height: 12px; stroke-width: 3; }
.fd-pro__head strong .fd-verified { width: 17px; height: 17px; margin-left: 5px; }
.fd-pro__head strong .fd-verified .fd-icon { width: 10px; height: 10px; }
.fd-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--fd-line); }
.fd-sec > .fd-h3 { margin: 0 0 14px; font-size: 17px; }
.fd-items { display: grid; gap: 18px; }
.fd-item strong { display: block; font-size: 15.5px; font-weight: 680; }
.fd-item em { display: block; font-style: normal; font-size: 13.5px; color: var(--fd-muted); margin-top: 2px; }
.fd-item p { font-size: 14.5px; line-height: 1.6; color: #39433f; margin-top: 8px !important; overflow-wrap: anywhere; white-space: pre-line; }
.fd-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.fd-work a, .fd-work__noimg { display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; border: 1px solid var(--fd-line); background: var(--fd-green-soft); }
.fd-work img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fd-work__noimg { display: grid; place-items: center; color: var(--fd-green); }
.fd-work strong { display: block; margin-top: 10px; font-size: 14.5px; font-weight: 680; }
.fd-work p { font-size: 13.5px; line-height: 1.55; color: var(--fd-muted); margin-top: 3px !important; overflow-wrap: anywhere; }
.fd-aside-link { margin-top: 22px !important; font-size: 14px; }
#chat > .fd-muted + .fd-btn { margin-top: 14px; }
.fd-work a { cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.fd-work a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(17, 23, 22, .35); }

/* The viewer a portfolio image opens in. */
.fd-noscroll { overflow: hidden; }
.fd-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 20px 6px; background: rgba(10, 14, 13, .9); }
.fd-lightbox__fig { grid-column: 2; margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.fd-lightbox__fig img { display: block; max-width: 100%; max-height: calc(100vh - 170px); border-radius: 12px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); transition: opacity .15s ease; }
.fd-lightbox__fig img.is-loading { opacity: .35; }
.fd-lightbox figcaption { max-width: 720px; text-align: center; color: #fff; }
.fd-lightbox figcaption strong { display: block; font-size: 16.5px; font-weight: 680; }
.fd-lightbox figcaption span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); overflow-wrap: anywhere; }
.fd-lightbox figcaption em { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.fd-lightbox button { display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; line-height: 1; cursor: pointer; }
.fd-lightbox button:hover { background: rgba(255, 255, 255, .24); }
.fd-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }
.fd-lightbox__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; font-size: 28px !important; }
.fd-lightbox__nav { justify-self: center; width: 48px; height: 48px; font-size: 32px !important; padding-bottom: 4px; }
.fd-lightbox__nav[data-step="-1"] { grid-column: 1; grid-row: 1; }
.fd-lightbox__nav[data-step="1"] { grid-column: 3; grid-row: 1; }
.fd-lightbox__fig { grid-row: 1; }
@media (max-width: 640px) {
	.fd-lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding-inline: 2px; }
	.fd-lightbox__nav { width: 38px; height: 38px; font-size: 26px !important; }
}

.fd-langs { display: grid; gap: 7px; font-size: 14px; margin-top: 10px; }
.fd-langs span { color: var(--fd-muted); }
.fd-side-card > .fd-kicker { margin-bottom: 12px; }

.fd-filters { padding: 20px; display: grid; gap: 16px; margin-top: 18px; }
.fd-filters__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fd-filters--match .fd-filters__row { grid-template-columns: 220px 220px 1fr; }
.fd-filters--match .fd-filters__row--cat { grid-template-columns: 240px 200px 200px 1fr; }
.fd-filters--match .fd-field--end { align-items: flex-end; }
.fd-search { display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 50px; border-radius: 16px; background: var(--fd-bg); border: 1px solid var(--fd-line); color: var(--fd-muted); }
.fd-search:focus-within { border-color: var(--fd-green); background: #fff; }
.fd-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 15.5px; color: var(--fd-text); }

/* ----------------------------------------------------------- job card -- */

.fd-job { display: grid; grid-template-columns: minmax(0, 1fr) 230px; }
.fd-job__body { padding: 24px 26px; min-width: 0; }
.fd-job__title { font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.015em; margin: 12px 0 8px !important; }
.fd-job__title a { text-decoration: none; }
.fd-job__title a:hover { color: var(--fd-green-dark); }
.fd-job__excerpt { color: var(--fd-muted); margin-top: 12px !important; overflow-wrap: anywhere; }
.fd-job__aside { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 18px; padding: 24px 26px; border-left: 1px solid var(--fd-line); text-align: right; }
.fd-job__budget strong { display: block; font-size: 17px; font-weight: 720; letter-spacing: -.01em; margin-top: 4px; }
.fd-job.is-closed .fd-job__title, .fd-job.is-closed .fd-job__excerpt { opacity: .62; }
.fd-job__aside--actions { justify-content: center; align-items: stretch; gap: 8px; }
.fd-job__aside--actions .fd-btn { width: 100%; }
.fd-job__aside--actions form { margin: 0; }
.fd-job--mine .fd-meter { max-width: 320px; }

/* -------------------------------------------------------- freelancers -- */

.fd-pro { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.fd-pro__head { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.fd-pro__head > span:last-child { min-width: 0; }
.fd-pro__head strong { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.fd-pro__head em { display: block; font-style: normal; font-size: 13.5px; color: var(--fd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-pro__head:hover strong { color: var(--fd-green-dark); }
.fd-pro__about { font-size: 14px; color: #39433f; overflow-wrap: anywhere; }
.fd-pro__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--fd-line); }

.fd-profile { display: flex; gap: 22px; align-items: center; }
.fd-profile .fd-h1 { margin: 0 0 2px; }
.fd-profile__title { font-size: 16px; color: var(--fd-muted); margin-bottom: 10px !important; }
.fd-report { font-size: 14px; color: var(--fd-muted); }
.fd-report summary { cursor: pointer; display: inline-flex; gap: 7px; align-items: center; padding: 4px 6px; list-style: none; color: var(--fd-red); font-weight: 600; }
.fd-report summary:hover { text-decoration: underline; }
.fd-report--sent { display: flex; gap: 7px; align-items: center; padding: 4px 6px; margin: 0; }
.fd-report summary::-webkit-details-marker { display: none; }
.fd-report[open] summary { margin-bottom: 10px; }
.fd-report form { display: grid; gap: 12px; justify-items: start; }
.fd-report .fd-field { width: 100%; }


/* --------------------------------------------------------------- packs -- */

.fd-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 16px; margin-top: 30px; }
.fd-pack { display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--fd-line); border-radius: var(--fd-radius); box-shadow: var(--fd-shadow); }
.fd-pack__top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 44px; }
.fd-pack__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--fd-green-soft); color: var(--fd-green-dark); }
.fd-pack__name { font-size: 17px; font-weight: 600; margin: 18px 0 2px !important; }
.fd-pack__price { display: flex; align-items: baseline; gap: 6px; }
.fd-pack__price b { font-size: 36px; font-weight: 780; letter-spacing: -.03em; line-height: 1.1; }
.fd-pack__price span { font-size: 13.5px; color: var(--fd-muted); }
.fd-pack__per { font-size: 13px; font-weight: 600; color: var(--fd-green-dark); margin: 4px 0 18px !important; }
.fd-ticks { display: grid; gap: 10px; margin-top: 20px !important; padding: 0; list-style: none; font-size: 13.5px; color: #39433f; }
.fd-ticks li { display: flex; gap: 9px; align-items: flex-start; }
.fd-ticks .fd-icon { color: var(--fd-green); margin-top: 2px; }
.fd-pack.is-highlight {
	color: #fff; border-color: transparent;
	background: radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--fd-green) 78%, #fff 6%), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--fd-green) 55%, #000), color-mix(in srgb, var(--fd-green) 30%, #000));
}
.fd-pack.is-highlight .fd-pack__icon { background: #fff; }
.fd-pack.is-highlight .fd-pack__price span, .fd-pack.is-highlight .fd-ticks { color: rgba(255, 255, 255, .88); }
.fd-pack.is-highlight .fd-pack__per { color: #d6f5d0; }
.fd-pack.is-highlight .fd-ticks .fd-icon { color: #fff; }

.fd-paynote { margin-top: 16px; padding: 16px 22px; text-align: center; font-size: 14px; color: var(--fd-muted); box-shadow: none; }
.fd-paynote strong { color: var(--fd-text); }
.fd-paynote .fd-icon { margin-right: 8px; color: var(--fd-green); }

.fd-tablewrap { overflow-x: auto; }
.fd-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fd-table th, .fd-table td { padding: 14px 20px; border-bottom: 1px solid var(--fd-line); text-align: center; }
.fd-table tbody tr:last-child th, .fd-table tbody tr:last-child td { border-bottom: 0; }
.fd-table thead th { font-weight: 700; background: #f8f9f8; }
.fd-table thead th small { display: block; font-weight: 500; color: var(--fd-muted); font-size: 13px; }
.fd-table th[scope="row"], .fd-table thead th:first-child { text-align: left; font-weight: 550; }
.fd-table .is-highlight { background: var(--fd-green-soft); }
.fd-table .fd-icon { color: var(--fd-green); }
.fd-table--left th, .fd-table--left td { text-align: left; }
.fd-table .fd-num { text-align: right; font-variant-numeric: tabular-nums; }
.fd-plus { color: var(--fd-green-dark); font-weight: 650; }
.fd-minus { color: var(--fd-text); font-weight: 650; }
.fd-dash { color: #b3bbb7; }

.fd-faq { display: grid; gap: 10px; }
.fd-faq__item { background: #fff; border: 1px solid var(--fd-line); border-radius: 18px; }
.fd-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 640; cursor: pointer; list-style: none; }
.fd-faq__item summary::-webkit-details-marker { display: none; }
.fd-faq__item summary .fd-icon { transition: transform .2s; color: var(--fd-muted); }
.fd-faq__item[open] summary .fd-icon { transform: rotate(180deg); }
.fd-faq__item p { padding: 0 22px 20px; margin: 0; color: var(--fd-muted); }

.fd-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(10, 14, 13, .62); backdrop-filter: blur(3px); overflow-y: auto; }
.fd-modal__box { position: relative; width: min(460px, 100%); padding: 30px; background: #fff; border-radius: var(--fd-radius); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.fd-modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--fd-line); background: #fff; cursor: pointer; }
/* The "are you sure?" window (opening a chat, not interested, closing a job). */
.fd-confirm { z-index: 130; }
.fd-confirm .fd-modal__box { width: min(440px, 100%); animation: fd-confirm-in .16s ease-out; }
.fd-confirm__icon { margin-bottom: 18px; }
.fd-confirm__icon.is-warn { background: var(--fd-amber-soft); color: var(--fd-amber); }
.fd-confirm__text { margin: 0 0 24px !important; color: var(--fd-muted); font-size: 15px; line-height: 1.55; }
.fd-confirm__actions { display: flex; justify-content: flex-end; gap: 10px; }
.fd-confirm__actions .fd-btn:disabled { opacity: .6; cursor: default; }
@keyframes fd-confirm-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .fd-confirm .fd-modal__box { animation: none; } }
@media (max-width: 480px) {
	.fd-confirm .fd-modal__box { padding: 24px; }
	.fd-confirm__actions { flex-direction: column-reverse; }
	.fd-confirm__actions .fd-btn { width: 100%; }
}
.fd-buy__summary { font-size: 16px; margin: 4px 0 20px !important; }
.fd-buy__summary span { color: var(--fd-muted); }
.fd-buy__status { min-height: 22px; font-size: 14px; font-weight: 600; margin-top: 8px !important; }
.fd-buy__status.is-err { color: var(--fd-red); }
#fd-paypal-buttons { min-height: 110px; }

/* ---------------------------------------------------------------- auth -- */

.fd-bare { min-height: 100vh; display: flex; flex-direction: column; }
.fd-bare__top { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; }
.fd-bare__main { flex: 1; display: grid; place-items: start center; padding: 26px 18px 60px; }
.fd-auth { width: min(440px, 100%); padding: 34px; display: grid; gap: 16px; }
.fd-auth .fd-h1 { margin: 0; font-size: 28px; }
.fd-auth .fd-muted { margin-top: -10px; }
.fd-auth .fd-alert { margin: 0; }
.fd-auth__foot { font-size: 14px; color: var(--fd-muted); text-align: center; }
.fd-auth__foot + .fd-auth__foot { margin-top: -8px; }
.fd-or { display: flex; align-items: center; gap: 12px; color: var(--fd-faint); font-size: 13px; }
.fd-or::before, .fd-or::after { content: ""; flex: 1; height: 1px; background: var(--fd-line); }
.fd-google { min-height: 48px; }

/* ---------------------------------------------------------------- logo -- */

.fd-logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fd-ink) !important; }
.fd-logo__text { font-size: 19px; font-weight: 560; letter-spacing: -.035em; }
.fd-logo__text b { font-weight: 800; color: var(--fd-green); }
.fd-logo--light { color: #fff !important; }
.fd-logo--light .fd-logo__text b { color: color-mix(in srgb, var(--fd-green) 62%, #fff); }

/* --------------------------------------------------------------- shell -- */

.fd-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: var(--fd-side); }

.fd-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px; color: #c8d0cc; overflow-y: auto; }
.fd-side__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 22px; }
.fd-side__close { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }

.fd-nav { display: grid; gap: 4px; }
.fd-nav__label { font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: #77827e; padding: 18px 12px 8px; }
.fd-nav__label:first-child { padding-top: 4px; }
.fd-nav__item { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: #c8d0cc !important; font-size: 15px; font-weight: 520; text-decoration: none; transition: background-color .15s, color .15s; }
.fd-nav__item span { flex: 1; }
.fd-nav__item:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.fd-nav__item.is-active { background: #fff; color: var(--fd-ink) !important; font-weight: 650; }
.fd-badge { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--fd-green); color: #fff; font-size: 12px; font-weight: 700; }

.fd-side__foot { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.fd-side__wallet, .fd-side__user, .fd-side__guest { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); border-radius: 18px; }
.fd-side__wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; color: #fff; font-size: 14.5px; }
.fd-side__wallet span { display: inline-flex; align-items: center; gap: 8px; }
.fd-side__wallet .fd-icon { color: color-mix(in srgb, var(--fd-green) 60%, #fff); }
.fd-side__wallet a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none; }
.fd-side__wallet a:hover { background: rgba(255, 255, 255, .18); }
.fd-side__user { display: flex; align-items: center; gap: 11px; padding: 10px 12px; }
.fd-side__user > span:nth-child(2) { flex: 1; min-width: 0; }
.fd-side__user strong { display: block; color: #fff; font-size: 14.5px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-side__user em { font-style: normal; font-size: 12.5px; color: #8b9692; }
.fd-side__user a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #a9b3ae !important; }
.fd-side__user a:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.fd-side__guest { padding: 16px; display: grid; gap: 9px; }
.fd-side__guest p { font-size: 13.5px; color: #a9b3ae; margin-bottom: 4px; }
.fd-scrim { display: none; }

.fd-main { min-width: 0; display: flex; flex-direction: column; background: var(--fd-bg); border-radius: 26px 0 0 26px; margin: 10px 0; overflow: clip; }
.fd-top { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 12px 34px; background: #fff; border-bottom: 1px solid var(--fd-line); }
.fd-top__menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.fd-crumbs { display: flex; gap: 10px; font-size: 14.5px; color: var(--fd-muted); margin: 0; }
.fd-crumbs i { font-style: normal; color: #b3bbb7; }
.fd-crumbs strong { color: var(--fd-text); font-weight: 650; }
.fd-top__right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fd-content { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 34px 70px; }

/* ---------------------------------------------------------------- chat -- */

.fd-content--full { max-width: none; padding: 0; display: flex; min-height: 0; }
.fd-content--full > .fd-alert { margin: 14px; }
.fd-view-messages .fd-main { height: calc(100vh - 20px); }
.fd-chat { flex: 1; display: grid; grid-template-columns: 350px minmax(0, 1fr); min-height: 0; background: #fff; }
.fd-chat__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--fd-line); overflow-y: auto; }
.fd-chat__heading { font-size: 22px; font-weight: 750; letter-spacing: -.02em; padding: 24px 22px 14px; position: sticky; top: 0; background: #fff; z-index: 1; }
.fd-chat__none { padding: 6px 22px 22px; color: var(--fd-muted); font-size: 14.5px; display: grid; gap: 14px; justify-items: start; }
.fd-chatrow { display: flex; gap: 12px; padding: 14px 22px; text-decoration: none; border-top: 1px solid #f0f2f0; }
.fd-chatrow:hover { background: #f8f9f8; }
.fd-chatrow.is-active { background: var(--fd-green-soft); }
.fd-chatrow.is-active .fd-avatar { background: #fff; }
.fd-chatrow__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.fd-chatrow__top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fd-chatrow__top strong { font-size: 15px; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-chatrow__top time { flex: none; font-size: 12px; color: var(--fd-faint); }
.fd-chatrow em { font-style: normal; font-size: 12.5px; color: var(--fd-green-dark); font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-chatrow__preview { font-size: 13.5px; color: var(--fd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-chatrow.is-unread .fd-chatrow__top strong, .fd-chatrow.is-unread .fd-chatrow__preview { font-weight: 720; color: var(--fd-text); }
.fd-chatrow.is-unread .fd-chatrow__top strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--fd-green); }

.fd-chat__thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--fd-bg); }
.fd-chat__placeholder { margin: auto; text-align: center; color: var(--fd-muted); display: grid; gap: 12px; justify-items: center; padding: 30px; }
.fd-thread__head { display: flex; align-items: center; gap: 13px; padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--fd-line); }
.fd-thread__back { display: none; font-size: 22px; text-decoration: none; padding: 4px 8px 4px 0; }
.fd-thread__who { min-width: 0; }
.fd-thread__who strong { display: block; font-size: 16px; font-weight: 680; }
.fd-thread__who strong a { text-decoration: none; }
.fd-thread__who strong a:hover { text-decoration: underline; }
.fd-thread__who em { display: block; font-style: normal; font-size: 13px; color: var(--fd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-thread__who em a { color: var(--fd-green-dark); font-weight: 560; text-decoration: none; }
.fd-thread__status { display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: var(--fd-green-soft); border-bottom: 1px solid var(--fd-green-line); font-size: 13.5px; color: #0b3d05; }
.fd-thread__status .fd-icon { color: var(--fd-green); flex: none; }
.fd-thread__decline { margin-left: auto; flex: none; }
.fd-warn { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; background: #fff8e6; border: 1px solid #f0dca6; border-radius: 12px; font-size: 13.5px; line-height: 1.5; color: #4d3b05; }
.fd-warn .fd-icon { flex: none; margin-top: 2px; color: #a67c00; }
.fd-thread__closed { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 16px 24px 20px; background: #fff; border-top: 1px solid var(--fd-line); font-size: 14px; color: var(--fd-muted); }.fd-thread__body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.fd-thread__hint { margin: auto; color: var(--fd-muted); }
.fd-msg { max-width: min(640px, 82%); align-self: flex-start; }
.fd-msg p { padding: 11px 16px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--fd-line); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.fd-msg time { display: block; font-size: 11.5px; color: var(--fd-faint); margin: 3px 8px 0; }
.fd-msg.is-mine { align-self: flex-end; }
.fd-msg.is-mine p { background: var(--fd-green); border-color: transparent; color: #fff; border-radius: 18px 18px 6px 18px; }
.fd-msg.is-mine time { text-align: right; }
.fd-msg.is-system { align-self: center; max-width: 560px; text-align: center; }
.fd-msg.is-system p { background: transparent; border: 1px dashed #c5ccc8; border-radius: 12px; font-size: 13px; color: var(--fd-muted); padding: 8px 14px; }
.fd-msg.is-system time { text-align: center; }
.fd-msg.is-sending { opacity: .6; }
/* The client's automatic first message: same bubble, with a label and a dashed edge so it is not taken for a personal reply. */
.fd-msg__tag { display: block; margin: 0 8px 4px; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--fd-muted); }
.fd-msg.is-mine .fd-msg__tag { text-align: right; }
.fd-msg.is-auto p { border-style: dashed; border-color: #b9c2bd; background: #fbfcfb; }
.fd-msg.is-auto.is-mine p { background: var(--fd-green-soft); border-color: var(--fd-green-line); color: var(--fd-text); }
/* Under a message: the time, and for the other person's messages a quiet Report link. */
.fd-msg__foot { display: flex; align-items: center; gap: 10px; margin: 3px 8px 0; }
.fd-msg__foot time { margin: 0; }
.fd-msg.is-mine .fd-msg__foot { justify-content: flex-end; }
.fd-msg.is-system .fd-msg__foot { justify-content: center; }
.fd-msg__report { padding: 0; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--fd-faint); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.fd-msg__report:hover, .fd-msg__report:focus-visible { color: var(--fd-red); }
.fd-msg__report:disabled { text-decoration: none; cursor: default; color: var(--fd-faint); }
/* The warning under a message that carries a link. */
.fd-msg__warn { display: flex; align-items: flex-start; gap: 6px; margin: 5px 8px 0; font-size: 12px; line-height: 1.4; color: var(--fd-amber); }
.fd-msg__warn .fd-icon { flex: none; margin-top: 2px; }
/* A picture sent in the chat. */
.fd-msg__image { display: block; max-width: min(340px, 100%); border-radius: 16px 16px 16px 6px; overflow: hidden; border: 1px solid var(--fd-line); background: #fff; }
.fd-msg.is-mine .fd-msg__image { margin-left: auto; border-radius: 16px 16px 6px 16px; }
.fd-msg__image img { display: block; width: 100%; height: auto; }
.fd-composer__attach { flex: none; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid #cfd5d1; background: #fff; color: var(--fd-muted); cursor: pointer; }
.fd-composer__attach:hover { border-color: var(--fd-green); color: var(--fd-green-dark); }
.fd-composer__attach:disabled { opacity: .5; cursor: default; }
/* The window for reporting one chat message. */
.fd-msgreport { z-index: 130; }
.fd-msgreport .fd-modal__box { width: min(460px, 100%); }
.fd-msgreport .fd-confirm__text { margin-bottom: 0 !important; }
.fd-msgreport__error { margin: 0 !important; color: var(--fd-red); font-size: 13.5px; font-weight: 600; }
.fd-msgreport .fd-label em { font-style: normal; font-weight: 400; color: var(--fd-muted); }
.fd-composer { display: flex; align-items: flex-end; gap: 10px; padding: 14px 24px 18px; background: #fff; border-top: 1px solid var(--fd-line); }
.fd-composer textarea { flex: 1; min-height: 46px; max-height: 180px; padding: 12px 16px; border: 1px solid #cfd5d1; border-radius: 22px; resize: none; line-height: 1.45; background: var(--fd-bg); }
.fd-composer textarea:focus { outline: none; border-color: var(--fd-green); background: #fff; }
.fd-composer__error { padding: 0 24px 12px; background: #fff; color: var(--fd-red); font-size: 13.5px; font-weight: 600; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1180px) {
	.fd-two { grid-template-columns: minmax(0, 1fr); }
	.fd-filters__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fd-filters--match .fd-filters__row { grid-template-columns: 1fr 1fr; }
	.fd-filters--match .fd-field--end { grid-column: 1 / -1; align-items: stretch; }
}

@media (max-width: 940px) {
	.fd-shell { display: block; background: var(--fd-bg); }
	.fd-side { position: fixed; z-index: 70; inset: 0 auto 0 0; width: min(300px, 86vw); background: var(--fd-side); transform: translateX(-102%); transition: transform .22s ease; }
	.fd-side__close { display: block; }
	.fd-menu-open .fd-side { transform: none; }
	.fd-menu-open .fd-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 13, .55); }
	.fd-main { margin: 0; border-radius: 0; min-height: 100vh; }
	.fd-view-messages .fd-main { height: 100dvh; }
	.fd-top { padding: 10px 16px; position: sticky; top: 0; z-index: 20; }
	.fd-top__menu { display: block; }
	.fd-crumbs span, .fd-crumbs i { display: none; }
	.fd-content { padding: 22px 16px 60px; }
	.fd-chat { grid-template-columns: minmax(0, 1fr); }
	.fd-chat.has-thread .fd-chat__list { display: none; }
	.fd-chat:not(.has-thread) .fd-chat__thread { display: none; }
	.fd-thread__back { display: block; }
	.fd-thread__head, .fd-thread__status { padding-inline: 16px; }
	.fd-thread__body { padding: 16px; }
	.fd-composer { padding: 10px 12px 14px; }
	.fd-composer .fd-btn span { display: none; }
	.fd-composer .fd-btn { padding: 0 16px; }
}

@media (max-width: 680px) {
	.fd-h1 { font-size: 25px; }
	.fd-h1--xl { font-size: 31px; }
	.fd-pad { padding: 20px; }
	.fd-job { grid-template-columns: minmax(0, 1fr); }
	.fd-job__body { padding: 20px; }
	.fd-job__aside { flex-direction: row; align-items: center; border-left: 0; border-top: 1px solid var(--fd-line); padding: 16px 20px; text-align: left; }
	.fd-job__aside--actions { flex-direction: row; flex-wrap: wrap; }
	.fd-job__aside--actions .fd-btn { width: auto; }
	.fd-form__row, .fd-form__row--3, .fd-filters__row, .fd-filters--match .fd-filters__row { grid-template-columns: minmax(0, 1fr); }
	.fd-grid { grid-template-columns: minmax(0, 1fr); }
	.fd-profile, .fd-photo { flex-direction: column; align-items: flex-start; }
	.fd-photo .fd-field { width: 100%; }
	.fd-workimg { flex-wrap: wrap; }
	/* Chat header: the client's "Not interested" button gets its own line, so the name keeps its room. */
	.fd-thread__head { flex-wrap: wrap; }
	.fd-thread__who { flex: 1 1 0; }
	.fd-thread__decline { flex: 1 0 100%; display: flex; justify-content: flex-end; margin-left: 0; }
	.fd-tabs { display: flex; }
	.fd-tab { flex: 1; text-align: center; padding-inline: 10px; }
	.fd-auth { padding: 24px; }
	.fd-top__right .fd-btn--ghost { display: none; }
	.fd-table th, .fd-table td { padding: 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.fd-app *, .fd-site * { transition: none !important; scroll-behavior: auto !important; }
}
