/* =====================================================================
   Prime Koders v6 — packages, jobs, the job workspace (file explorer)
   and cover images.
   ===================================================================== */

/* ---------- Packages ---------- */
.plan-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-bottom: 22px; }
.plan-current h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; font-size: 1.4rem; }
.plan-usage { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 12px 22px; margin: 0; flex: 1 1 420px; max-width: 640px; }
.plan-usage > div { min-width: 0; }
.plan-usage dt { font-size: 0.78rem; color: var(--muted); }
.plan-usage dd { margin: 2px 0 0; font-weight: 700; color: var(--text-strong); }
.plan-usage progress { width: 100%; }
progress.progress-amber::-webkit-progress-value { background: linear-gradient(90deg, #f59e0b, #f97316); }
progress.progress-amber::-moz-progress-bar { background: linear-gradient(90deg, #f59e0b, #f97316); }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; transition: transform 0.25s var(--ease, ease), box-shadow 0.25s var(--ease, ease), border-color 0.25s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-card.popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-card.current { background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), transparent 60%), var(--surface); }
.plan-ribbon { position: absolute; top: -12px; left: 22px; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; }
.plan-card-head { display: flex; align-items: center; gap: 12px; }
.plan-card-head h3 { margin: 0; font-size: 1.2rem; }
.plan-icon { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); font-size: 1.15rem; }
.plan-mega .plan-icon { background: rgba(245, 158, 11, 0.14); color: #d97706; }
.plan-basic .plan-icon { background: var(--surface-2); color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 2.1rem; line-height: 1; color: var(--text-strong); letter-spacing: -0.02em; }
.plan-price span { color: var(--muted); font-size: 0.9rem; }
.plan-local { margin: -8px 0 0; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; font-size: 0.92rem; }
.plan-features li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.plan-features li i { margin-top: 3px; color: var(--green-text); }
.plan-features li.off { color: var(--subtle); }
.plan-features li.off i { color: var(--subtle); }
.btn-dark { background: var(--text-strong); color: var(--bg); border-color: var(--text-strong); }
.btn-dark:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.disabled-look { opacity: 0.7; cursor: default; pointer-events: none; }
.plan-pay { display: grid; gap: 16px; max-width: 720px; margin: 26px auto 0; scroll-margin-top: 90px; }
.plan-pay-summary h2 { margin: 0 0 6px; font-size: 1.2rem; }
.plan-pay-summary .deposit-total { margin-top: 12px; }

.plan-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.plan-badge.plan-nova { background: rgba(var(--accent-rgb), 0.12); color: var(--accent); }
.plan-badge.plan-mega { background: rgba(245, 158, 11, 0.16); color: var(--amber-text); }
.plan-lock { display: flex; gap: 14px; align-items: flex-start; }
.plan-lock > i { font-size: 1.4rem; color: var(--accent); margin-top: 2px; }
.plan-lock h2, .plan-lock h3 { margin: 0 0 4px; font-size: 1.1rem; }

@media (max-width: 900px) {
    .plan-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .plan-usage { grid-template-columns: 1fr; flex-basis: 100%; }
}
.plan-usage-compact { grid-template-columns: 1fr; max-width: none; gap: 10px; margin-top: 10px; }
.plan-usage-compact > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 10px; }
.plan-usage-compact progress { grid-column: 1 / -1; }

/* ---------- Find work (Upwork-style list) ---------- */
.jobs-hero-row { align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.jobs-hero-row p { max-width: 720px; }
.job-plan-note { margin-bottom: 12px; }
.job-list { padding: 0; overflow: hidden; }
.job-card { padding: 20px 22px; border-bottom: 1px solid var(--border); transition: background 0.2s ease; position: relative; }
.job-card:last-child { border-bottom: 0; }
.job-card:hover { background: var(--hover); }
.job-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.job-card-title { margin: 2px 0 6px; font-size: 1.1rem; line-height: 1.35; }
.job-card-title a { color: var(--text-strong); }
.job-card-title a::after { content: ''; position: absolute; inset: 0; }
.job-card:hover .job-card-title a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.job-card-meta { font-size: 0.84rem; color: var(--muted); margin: 0 0 8px; }
.job-card-meta strong { color: var(--text); font-weight: 600; }
.job-card-text { color: var(--text); margin: 0 0 12px; font-size: 0.93rem; line-height: 1.55; }
.job-card-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 0.82rem; margin-top: 12px; }
.job-client { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.job-card .skill-chips, .job-card .job-card-foot a { position: relative; z-index: 1; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 0.8rem; font-weight: 500; transition: background 0.15s, border-color 0.15s, color 0.15s; }
a.skill-chip:hover { border-color: var(--accent); color: var(--accent); }
.skill-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.skill-chip.match { background: rgba(var(--accent-rgb), 0.08); border-color: rgba(var(--accent-rgb), 0.3); color: var(--accent); }
.skill-filter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; }
.skill-filter .skill-chip { white-space: nowrap; }
.pill-xs { padding: 1px 7px; font-size: 0.68rem; vertical-align: middle; }

/* ---------- One job ---------- */
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-top: 10px; }
.job-main { padding: 26px 28px; }
.job-title-row { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.job-title-row h1 { font-size: 1.55rem; margin: 0; line-height: 1.3; }
.job-posted { margin: 6px 0 18px; font-size: 0.86rem; }
.job-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.job-facts > div { display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; align-items: center; }
.job-facts i { grid-row: span 2; color: var(--muted); font-size: 1rem; }
.job-facts strong { color: var(--text-strong); font-size: 0.95rem; }
.job-facts small { color: var(--muted); font-size: 0.76rem; }
.job-section { padding: 20px 0 4px; border-bottom: 1px solid var(--border); }
.job-section:last-of-type { border-bottom: 0; }
.job-section h2 { font-size: 1.05rem; margin: 0 0 10px; }
.job-description { line-height: 1.65; }
.objective-preview { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.objective-preview li { display: flex; gap: 10px; align-items: baseline; }
.objective-preview li i { color: var(--subtle); }
.objective-preview li.done i { color: var(--green-text); }
.job-owner-actions { margin-top: 18px; }
.job-side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h, 64px) + 16px); }
.job-apply h3, .job-client-card h3 { font-size: 1.02rem; margin: 0 0 10px; }
.job-apply .plan-lock { border: 0; padding: 0; box-shadow: none; flex-direction: column; gap: 6px; }
.job-apply .plan-lock .btn-row { flex-direction: column; align-items: stretch; }
.job-client-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text); }
.job-client-card { overflow: hidden; }
.client-cover { display: block; width: calc(100% + 40px); max-width: none; height: 86px; object-fit: cover; margin: -20px -20px 14px; }
.similar-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 0.9rem; }
.similar-jobs a { font-weight: 600; }

/* ---------- Posting, proposals, my work ---------- */
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.12); color: var(--accent); font-size: 0.82rem; font-weight: 800; flex: 0 0 26px; }
textarea.mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; }
.posted-jobs, .proposal-list { display: grid; gap: 14px; }
.posted-job { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; transition: box-shadow 0.2s, transform 0.2s; }
.posted-job:hover { box-shadow: var(--shadow); }
.posted-job-main { flex: 1 1 380px; min-width: 0; }
.posted-job-head { gap: 10px; }
.posted-job-head h3 { font-size: 1.05rem; }
.posted-job-progress { display: grid; grid-template-columns: auto minmax(100px, 220px) auto; gap: 6px 12px; align-items: center; font-size: 0.85rem; }
.posted-job-progress progress { margin: 0; }
.posted-job-actions .side-count { margin-left: 4px; background: #fff; color: var(--accent); }
.proposal { display: grid; gap: 10px; }
.proposal.hired { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.proposal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.proposal-who { display: flex; gap: 12px; align-items: center; color: var(--text); min-width: 0; }
.proposal-who:hover strong { color: var(--accent); }
.proposal-bid { text-align: right; flex: 0 0 auto; }
.proposal-bid strong { font-size: 1.2rem; color: var(--text-strong); }
.proposal-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.84rem; }
.proposal-letter summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.proposal-letter .prose { margin-top: 8px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 0.92rem; line-height: 1.6; }
.proposal-actions form { margin: 0; }
.danger-zone { border-color: rgba(239, 68, 68, 0.25); }
.danger-zone .flex-between { gap: 14px; flex-wrap: wrap; }
.work-list { display: grid; }
.work-row { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.work-row:last-child { border-bottom: 0; }
.work-progress progress { width: 100%; margin: 0 0 2px; }

/* ---------- Workspace (GitHub-style) ---------- */
.ws-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.ws-title { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.ws-title h1 { font-size: 1.35rem; margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ws-title h1 a { color: var(--text-strong); }
.ws-repo-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.ws-person { display: inline-flex; align-items: center; gap: 5px; margin-right: 10px; }
.ws-progress { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 18px; margin-bottom: 14px; }
.ws-progress-text strong { font-size: 1.15rem; color: var(--text-strong); margin-right: 6px; }
.ws-progress progress { margin: 0; width: 100%; }
.ws-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tabs a { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 0.9rem; white-space: nowrap; border-radius: 8px 8px 0 0; transition: color 0.15s, background 0.15s; }
.ws-tabs a:hover { color: var(--text-strong); background: var(--hover); }
.ws-tabs a.active { color: var(--text-strong); }
.ws-tabs a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s ease; }
.ws-tabs a.active::after { transform: scaleX(1); }
.ws-count { padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 0.74rem; line-height: 1.6; }
.ws-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.ws-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 1rem; min-width: 0; word-break: break-all; }
.ws-crumbs a { color: var(--accent); font-weight: 600; }
.ws-crumbs a:hover { text-decoration: underline; }
.ws-crumbs .sep { color: var(--subtle); padding: 0 2px; }
.ws-crumbs strong { color: var(--text-strong); }
.ws-bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-bar-actions form { margin: 0; }
.dropdown-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; border-radius: 8px; }
.dropdown-btn:hover { background: var(--hover); }
.ws-finder { position: relative; }
.ws-finder > i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--subtle); font-size: 0.82rem; pointer-events: none; }
.ws-finder input { width: 220px; padding: 7px 10px 7px 30px; font-size: 0.86rem; min-height: 34px; }
.ws-finder-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: min(440px, 86vw); max-height: 360px; overflow: auto; padding: 6px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.ws-finder-list a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: 0.86rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.ws-finder-list a:hover, .ws-finder-list a.active { background: rgba(var(--accent-rgb), 0.1); color: var(--accent); }
.ws-finder-none { padding: 8px 10px; color: var(--muted); font-size: 0.86rem; }
.ws-box { border: 1px solid var(--border-strong); border-radius: var(--radius-sm, 10px); background: var(--surface); margin-bottom: 16px; overflow: hidden; }
.ws-box-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 0.88rem; }
details.ws-box > summary.ws-box-head { cursor: pointer; list-style: none; }
details.ws-box > summary::-webkit-details-marker { display: none; }
details.ws-box:not([open]) > summary.ws-box-head { border-bottom: 0; }
.ws-commit { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ws-tree { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.ws-tree td { padding: 8px 16px; border-bottom: 1px solid var(--border); }
.ws-tree tr:last-child td { border-bottom: 0; }
.ws-tree tr { transition: background 0.12s; }
.ws-tree tr:hover { background: var(--hover); }
.ws-name a { color: var(--text); display: inline-flex; gap: 10px; align-items: center; word-break: break-all; }
.ws-name a:hover { color: var(--accent); text-decoration: underline; }
.ws-folder { color: #54aeff; }
.ws-file-icon { color: var(--muted); width: 16px; text-align: center; }
.ws-msg { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-when { text-align: right; white-space: nowrap; width: 1%; }
.ws-empty { padding: 36px 16px; }
.ws-folder-delete { margin: -6px 0 14px; text-align: right; }
.ws-readme-body { padding: 18px 22px; line-height: 1.65; }
.ws-readme-body h2, .ws-readme-body h3, .ws-readme-body h4 { margin: 18px 0 8px; }
.ws-readme-body h2 { padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.ws-readme-body pre { padding: 12px 14px; border-radius: 8px; background: var(--surface-2); overflow-x: auto; font-size: 0.85rem; }
.ws-readme-body code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); font-size: 0.86em; }
.ws-readme-body pre code { padding: 0; background: none; }
.ws-upload-form { padding: 16px; }
.ws-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius-sm, 10px); text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; margin-bottom: 14px; }
.ws-drop i { font-size: 1.8rem; color: var(--accent); }
.ws-drop.dragging, .ws-drop:hover { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.05); }
.ws-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ws-drop-names { color: var(--accent); font-weight: 600; }
.ws-file-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.ws-file-bar form { margin: 0; display: inline; }
.ws-file-bar .btn-row { gap: 4px; }
.ws-new-path { justify-content: flex-start; flex-wrap: nowrap; }
.ws-new-path input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; padding: 6px 10px; min-height: 34px; }
.code-view { overflow: auto; max-height: 75vh; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 0.82rem; line-height: 1.6; background: var(--surface); }
.code-view table { border-collapse: collapse; min-width: 100%; }
.code-view td { padding: 0; vertical-align: top; }
.code-view .ln { position: sticky; left: 0; width: 1%; min-width: 50px; padding: 0 12px 0 16px; text-align: right; user-select: none; background: var(--surface); border-right: 1px solid var(--border); }
.code-view .ln a { color: var(--subtle); }
.code-view .ln a:hover { color: var(--text-strong); }
.code-view .lc { padding: 0 16px; white-space: pre; color: var(--text); tab-size: 4; }
.code-view tr:first-child td { padding-top: 10px; }
.code-view tr:last-child td { padding-bottom: 10px; }
.code-view tr.hl td { background: rgba(245, 158, 11, 0.16); }
.code-view tr.hl .ln a { color: var(--amber-text); font-weight: 700; }
.tk-k { color: #cf222e; font-weight: 600; }
.tk-s { color: #0a3069; }
.tk-c { color: #6e7781; font-style: italic; }
.tk-n { color: #0550ae; }
.tk-v { color: #953800; }
[data-theme="dark"] .tk-k { color: #ff7b72; }
[data-theme="dark"] .tk-s { color: #a5d6ff; }
[data-theme="dark"] .tk-c { color: #8b949e; }
[data-theme="dark"] .tk-n { color: #79c0ff; }
[data-theme="dark"] .tk-v { color: #ffa657; }
.ws-image { padding: 20px; text-align: center; background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 20px 20px; }
.ws-image img { max-width: 100%; max-height: 70vh; }
.ws-version-note { margin: 12px 16px; }
.code-editor { display: block; width: 100%; min-height: 480px; height: 62vh; padding: 14px 16px; border: 0; border-radius: 0; resize: vertical; background: var(--input-bg); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; line-height: 1.6; tab-size: 4; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.code-editor:focus { outline: none; box-shadow: inset 0 0 0 2px rgba(var(--accent-rgb), 0.35); }
.ws-commit-box { padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface-2); }
.ws-commit-box label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 6px; }
.ws-commits { list-style: none; margin: 0; padding: 0; }
.ws-commits li { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.ws-commits li:last-child { border-bottom: 0; }
.ws-commit-text { flex: 1; min-width: 0; }
.ws-commit-text strong { font-size: 0.9rem; word-break: break-word; }
.ws-commit-text code { font-size: 0.8rem; word-break: break-all; }
.ws-commit-day { background: var(--surface-2); color: var(--muted); font-size: 0.82rem; font-weight: 600; padding: 7px 16px !important; }
.ws-commit-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--subtle); flex: 0 0 10px; }
.ws-action { display: inline-block; padding: 0 6px; border-radius: 4px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; background: var(--surface-3); }
.ws-added, .ws-commit-dot.ws-added { background: rgba(34, 197, 94, 0.18); color: var(--green-text); }
.ws-edited, .ws-commit-dot.ws-edited { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }
.ws-uploaded, .ws-commit-dot.ws-uploaded { background: rgba(6, 182, 212, 0.15); color: var(--cyan-text); }
.ws-deleted, .ws-commit-dot.ws-deleted { background: rgba(239, 68, 68, 0.15); color: var(--red-text); }
.objectives { list-style: none; margin: 0; padding: 0; counter-reset: obj; }
.objective { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--border); transition: background 0.3s; scroll-margin-top: 120px; }
.objective:last-child { border-bottom: 0; }
.objective:target { background: rgba(var(--accent-rgb), 0.06); }
.objective-check { font-size: 1.35rem; color: var(--subtle); line-height: 1; padding-top: 2px; }
.objective-done .objective-check { color: var(--amber-text); }
.objective-approved .objective-check { color: var(--green-text); animation: obj-pop 0.4s ease; }
.objective-approved .objective-body strong { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(var(--accent-rgb), 0.5); }
.objective-note { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--border-strong); background: var(--surface-2); font-size: 0.85rem; border-radius: 0 6px 6px 0; }
.objective-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.objective-actions form { margin: 0; }
.objective-done-form { display: flex; gap: 6px; align-items: center; }
.objective-done-form input { width: 210px; padding: 6px 10px; min-height: 34px; font-size: 0.85rem; }
.ws-add-body { display: flex; gap: 10px; padding: 14px 16px; align-items: flex-start; }
.ws-add-body textarea { flex: 1; min-height: 44px; }
.ws-finish { margin-top: 4px; }
.ws-finish h3 { margin: 0 0 4px; }
.ws-timeline { list-style: none; margin: 0; padding: 12px 16px; }
.ws-timeline li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 8px 0; position: relative; font-size: 0.9rem; }
.ws-timeline li::before { content: ''; position: absolute; left: 16px; top: 34px; bottom: -8px; width: 2px; background: var(--border); }
.ws-timeline li:last-child::before { display: none; }
.ws-tl-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; position: relative; z-index: 1; }
@keyframes obj-pop { 0% { transform: scale(0.6); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

@media (max-width: 1100px) {
    .job-layout { grid-template-columns: 1fr; }
    .job-side { position: static; }
}
@media (max-width: 760px) {
    .job-main { padding: 18px; }
    .job-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .job-card { padding: 16px; }
    .proposal-head { flex-direction: column; }
    .proposal-bid { text-align: left; }
    .work-row { grid-template-columns: 1fr; }
    .posted-job-progress { grid-template-columns: 1fr; }
    .ws-msg { display: none; }
    .ws-tree td { padding: 9px 12px; }
    .ws-finder input { width: 100%; }
    .ws-finder { flex: 1 1 100%; }
    .ws-bar-actions { width: 100%; }
    .ws-progress { grid-template-columns: 1fr; gap: 6px; }
    .objective { grid-template-columns: 26px minmax(0, 1fr); }
    .objective-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .objective-done-form { flex-wrap: wrap; width: 100%; }
    .objective-done-form input { flex: 1 1 160px; width: auto; }
    .code-editor { min-height: 360px; font-size: 0.8rem; }
    .code-view { font-size: 0.76rem; }
    .ws-commit { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    .job-card, .plan-card, .posted-job, .ws-tabs a::after, .objective-approved .objective-check { transition: none; animation: none; }
}
.table-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 4px; }
.table-actions form { margin: 0; }
.job-crumbs { margin-top: 16px; }
.job-client-stats { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.job-client-stats i { width: 16px; }
.job-facts { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .job-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-title p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ws-person { margin-right: 0; }
.ws-budget { white-space: nowrap; }
@media (max-width: 760px) { .ws-budget { white-space: normal; flex-basis: 100%; } }

/* ---------- Cover images & profile photos ---------- */
.media-card h2 { margin-bottom: 4px; }
.media-preview { position: relative; margin: 12px 0 16px; padding-bottom: 8px; }
.media-cover { position: relative; aspect-ratio: 3 / 1; border-radius: var(--radius-sm, 10px); overflow: hidden; background: linear-gradient(120deg, #0f1410 0%, var(--accent) 60%, var(--accent-2) 100%); }
.media-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-cover.empty::after { content: 'No cover yet'; position: absolute; right: 12px; bottom: 10px; color: rgba(255, 255, 255, 0.85); font-size: 0.8rem; font-weight: 600; }
.media-avatar { position: relative; margin: -42px 0 0 16px; border: 4px solid var(--surface); box-shadow: var(--shadow); background: var(--surface); object-fit: cover; }
.media-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 0 16px; }
.media-form { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.media-form .form-hint { flex: 1 1 220px; margin: 0; }
.file-btn { position: relative; overflow: hidden; cursor: pointer; }
.file-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.file-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pulse-once { animation: pulse-once 0.9s ease 2; }
@keyframes pulse-once { 0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); } 50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); } }
.profile-cover.has-image { background: var(--surface-2); }
.profile-cover.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-user.has-cover { flex-wrap: wrap; align-items: flex-end; }
.sidebar-cover { flex: 0 0 100%; height: 58px; margin-bottom: -26px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.sidebar-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-user.has-cover > img.avatar { position: relative; margin-left: 10px; border: 3px solid var(--surface); }
.sidebar-user.has-cover > div:not(.sidebar-cover) { padding-top: 30px; padding-bottom: 2px; min-width: 0; }
.dev-card.has-cover { padding-top: 0; overflow: hidden; }
.dev-card-cover { align-self: stretch; height: 72px; margin: 0 -18px; overflow: hidden; background: linear-gradient(120deg, #0f1410, var(--accent)); }
.dev-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dev-card.has-cover .dev-card-top { margin-top: -36px; }
.dev-card.has-cover .dev-card-top .avatar { border: 3px solid var(--surface); }
.app-sheet-cover { height: 84px; margin: -4px -4px 0; border-radius: 14px; overflow: hidden; }
.app-sheet-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .pulse-once { animation: none; } }
.app-sheet-user.has-cover { margin-top: -30px; align-items: flex-end; }
.app-sheet-user.has-cover .avatar { border: 3px solid var(--surface); width: 56px; height: 56px; }
.app-sheet-user.has-cover .flex-1 { padding-bottom: 4px; }
.app-sheet-photo { display: inline-flex; position: relative; flex: 0 0 auto; }
.app-sheet-user.has-cover .flex-1, .app-sheet-user.has-cover .wallet-chip { margin-top: 34px; }
.app-sheet-user.has-cover .app-sheet-photo { margin-left: 8px; }
