/* Limegoat Jobs — styles */
:root {
  --bg: #f3f1ea;
  --panel: #ffffff;
  --ink: #1e2319;
  --ink-2: #3b4034;
  --muted: #76746a;
  --faint: #a3a094;
  --line: #e3dfd3;
  --line-2: #efece4;
  --lime: #8cc63f;
  --lime-ink: #4a7a14;
  --lime-deep: #3c6510;
  --lime-soft: #eef6df;
  --lime-wash: #f6faee;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn-soft: #fff6dc;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(30, 35, 25, .05), 0 4px 16px rgba(30, 35, 25, .04);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--lime-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 .8em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--line-2); padding: 1px 5px; border-radius: 4px; }
pre { font-family: var(--mono); font-size: 13px; background: #f7f6f2; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; overflow: auto; }
pre code { background: none; padding: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Top bar ---------- */
.topbar { background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .goat { width: 31px; height: 30px; flex: none; color: #111; display: block; }
.brand-stack { flex-direction: column; gap: 12px; }
.brand-stack .goat { width: 66px; height: 64px; }
.brand span.light { font-weight: 500; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); padding: 7px 11px; border-radius: 8px; font-weight: 550; font-size: 14px; }
.nav a:hover { background: var(--line-2); text-decoration: none; }
.nav a.on { background: var(--lime-soft); color: var(--lime-deep); }
.topbar-search { flex: 1; max-width: 380px; margin-left: auto; position: relative; }
.topbar-search input[type=search] { width: 100%; height: 36px; border: 1px solid var(--line); background: #faf9f6; border-radius: 9px; padding: 0 12px 0 34px; font: inherit; font-size: 14px; color: var(--ink); }
.topbar-search input[type=search]:focus { outline: none; border-color: var(--lime); background: #fff; box-shadow: 0 0 0 3px var(--lime-soft); }
.topbar-search svg { position: absolute; left: 11px; top: 10px; color: var(--faint); }
.topbar-search kbd { position: absolute; right: 9px; top: 8px; font: 11px var(--font); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: #fff; }
.menu { position: relative; }
.menu > button { border: 0; background: none; padding: 0; cursor: pointer; display: flex; }
.menu-panel { display: none; position: absolute; right: 0; top: 44px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.12); min-width: 210px; padding: 6px; }
.menu.open .menu-panel { display: block; }
.menu-panel a, .menu-panel button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; color: var(--ink-2); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--line-2); text-decoration: none; }
.menu-panel .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }

/* ---------- Layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }
.wrap-narrow { max-width: 860px; }
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; }
.sheet + .sheet { margin-top: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lime-ink); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px var(--font); cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: #faf9f5; text-decoration: none; border-color: #d6d1c3; }
.btn-primary { background: var(--lime-ink); border-color: var(--lime-ink); color: #fff; }
.btn-primary:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: #f3c7c2; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { border: 0; background: none; padding: 0; color: var(--lime-ink); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.inline { display: inline; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink-2); }
.field { margin-bottom: 18px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #d9d5c8; border-radius: 9px; padding: 9px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
textarea { min-height: 90px; resize: vertical; }
input.title-input { font-size: 22px; font-weight: 650; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0 10px; }
input.title-input:focus { box-shadow: none; border-color: var(--lime); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--lime-ink); }
.people-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.people-picker label { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 5px; font-weight: 500; margin: 0; cursor: pointer; background: #fff; }
.people-picker label:has(input:checked) { border-color: var(--lime); background: var(--lime-wash); }
.people-picker input { accent-color: var(--lime-ink); }

/* ---------- Flash ---------- */
.flash { max-width: 1180px; margin: 16px auto 0; padding: 0 20px; }
.flash div { padding: 11px 14px; border-radius: 10px; background: var(--lime-soft); color: var(--lime-deep); font-weight: 550; font-size: 14px; border: 1px solid #d7eab8; }
.flash div.error { background: var(--danger-soft); color: var(--danger); border-color: #f3c7c2; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); border: 1px solid #f1e0a6; font-size: 14px; }

/* ---------- Avatars, chips ---------- */
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex: none; letter-spacing: .02em; }
.avatar-lg { width: 40px; height: 40px; font-size: 14px; }
.avatar-sm { width: 22px; height: 22px; font-size: 9px; }
.avatars { display: flex; gap: 3px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--lime-soft); color: var(--lime-deep); font-size: 12px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.chip-grey { background: var(--line-2); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--line-2); color: var(--muted); font-size: 12px; font-weight: 650; }

/* ---------- Home: job cards ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .filter { position: relative; flex: 1; max-width: 340px; }
.toolbar .filter input[type=search] { padding-left: 34px; height: 38px; }
.toolbar .filter svg { position: absolute; left: 11px; top: 11px; color: var(--faint); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg a { padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg a.on { background: var(--lime-soft); color: var(--lime-deep); }
.seg a:hover { text-decoration: none; background: var(--line-2); }
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.job-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 150px; }
.job-card .top { display: flex; align-items: flex-start; gap: 10px; }
.job-card .top .name { flex: 1; }
.job-card .latest { font-size: 13px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .latest b { color: var(--ink-2); font-weight: 600; }
.job-card:hover { text-decoration: none; border-color: #cfd9bd; box-shadow: 0 2px 4px rgba(30,35,25,.06), 0 10px 24px rgba(30,35,25,.07); transform: translateY(-1px); }
.job-card .name { font-weight: 650; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.job-card .desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .foot { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line-2); }
.job-card .foot .stat { display: inline-flex; align-items: center; gap: 4px; }
.job-card .foot .when { margin-left: auto; }
.job-new-card { border-style: dashed; background: transparent; box-shadow: none; align-items: center; justify-content: center; color: var(--lime-ink); font-weight: 650; }
.job-new-card .plus { width: 40px; height: 40px; border-radius: 50%; background: var(--lime-soft); display: grid; place-items: center; font-size: 24px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 12px; }
.section-title h2 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }

/* ---------- Jobs: boxes / list toggle ---------- */
.view-toggle button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font: 600 13px var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; }
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button:hover { background: var(--line-2); }
.jobs-area[data-view="boxes"] .view-toggle [data-set-view="boxes"],
.jobs-area[data-view="list"] .view-toggle [data-set-view="list"] { background: var(--lime-soft); color: var(--lime-deep); }
.jobs-area[data-view="list"] .jobs-grid,
.jobs-area[data-view="boxes"] .jobs-list { display: none; }
.job-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 84px 168px 92px; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line-2); color: var(--ink); }
.job-row:first-child { border-top: 0; }
a.job-row:hover { background: var(--lime-wash); text-decoration: none; }
.job-row-head { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding-top: 10px; padding-bottom: 10px; background: #fbfaf7; }
.job-row-head a { color: var(--muted); }
.job-row-head a.on { color: var(--lime-deep); }
.jr-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jr-name { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-latest { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-latest b { color: var(--ink-2); font-weight: 600; }
.jr-stats { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.jr-stats .stat { display: inline-flex; align-items: center; gap: 4px; min-width: 34px; }
.jr-stats .stat.zero { opacity: .45; }
.jr-when { font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.jobs-list.no-numbers .job-row { grid-template-columns: minmax(0, 1fr) 84px 168px 92px; }
.jobs-list.no-numbers .jr-num { display: none; }

/* ---------- Lists (archived, threads) ---------- */
.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line-2); color: var(--ink); }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: var(--lime-wash); text-decoration: none; }
.list-row .main { flex: 1; min-width: 0; }
.list-row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .right { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; }
.list-empty { padding: 28px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 18px; align-items: center; font-size: 14px; color: var(--muted); }

/* ---------- Job page ---------- */
.job-head { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.job-head h1 { font-size: 28px; margin: 6px 0 6px; }
.job-head .desc { color: var(--muted); max-width: 720px; }
.job-head .actions { display: flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 2px; margin: 22px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--lime); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line-2); gap: 10px; }
.panel-head h2 { font-size: 15px; margin: 0; display: flex; gap: 8px; align-items: center; }
.panel-body { padding: 14px 18px; }
.panel + .panel { margin-top: 18px; }
.panel-foot { padding: 10px 18px; border-top: 1px solid var(--line-2); font-size: 13px; }

.thread-row { display: flex; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-2); color: var(--ink); align-items: flex-start; }
.thread-row:first-child { border-top: 0; }
a.thread-row:hover { background: var(--lime-wash); text-decoration: none; }
.thread-row .main { flex: 1; min-width: 0; }
.thread-row .title { font-weight: 620; line-height: 1.35; }
.thread-row .excerpt { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.thread-row .kind { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 700; }

/* ---------- Files grid ---------- */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.files-grid.compact { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.file-tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; color: var(--ink); }
.file-tile:hover { border-color: #cfd9bd; text-decoration: none; }
.file-tile .thumb { aspect-ratio: 4 / 3; background: #f5f3ee; display: grid; place-items: center; overflow: hidden; }
.file-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-tile .info { padding: 7px 9px 8px; font-size: 12px; }
.file-tile .fname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-tile .fmeta { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext { width: 46px; height: 56px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: grid; place-items: end center; padding-bottom: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--lime-ink); position: relative; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ext::before { content: ""; position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; background: #f5f3ee; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ext.pdf { color: #c2410c; } .ext.zip { color: #7c5e10; } .ext.psd, .ext.ai, .ext.eps { color: #1e5aa8; }
.attachments { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.attachments .file-tile { width: 170px; }
.file-pending .thumb { background: repeating-linear-gradient(45deg, #f5f3ee, #f5f3ee 8px, #efece4 8px, #efece4 16px); }

/* ---------- Thread / comments ---------- */
.post { display: flex; gap: 14px; }
.post .body { flex: 1; min-width: 0; }
.post-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.post-meta strong { color: var(--ink); font-weight: 650; }
.rich { font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; color: var(--ink-2); }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { padding-left: 1.4em; margin: 0 0 .8em; }
.rich li { margin: .15em 0; }
.rich blockquote { margin: 0 0 .8em; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); color: var(--muted); }
.rich h2, .rich h3, .rich h1 { font-size: 17px; margin: 1em 0 .4em; }
.rich table { border-collapse: collapse; margin-bottom: .8em; }
.rich td, .rich th { border: 1px solid var(--line); padding: 4px 8px; }
.rich div { min-height: 1em; }
.comments { margin-top: 26px; border-top: 1px solid var(--line); }
.comment { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: 80px; }
.comment:target { background: linear-gradient(90deg, var(--lime-wash), transparent); margin: 0 -16px; padding: 20px 16px; border-radius: 10px; }
.comment .body { flex: 1; min-width: 0; }
.comment .tools { margin-left: auto; display: flex; gap: 10px; font-size: 12.5px; opacity: 0; transition: opacity .15s; }
.comment:hover .tools, .post:hover .tools { opacity: 1; }
.via { font-size: 11px; background: var(--line-2); color: var(--muted); padding: 1px 6px; border-radius: 5px; }
.composer { margin-top: 24px; display: flex; gap: 14px; }
.composer .body { flex: 1; min-width: 0; }
.composer-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.notify-line { font-size: 13px; color: var(--muted); }
.notify-line details summary { cursor: pointer; display: inline; color: var(--lime-ink); }
.notify-line .people-picker { margin-top: 8px; }
.following-box { font-size: 13.5px; }
.following-box .avatars { margin: 8px 0 10px; flex-wrap: wrap; gap: 4px; }
.following-box .avatars .avatar { margin-left: 0; }

/* Trix */
trix-toolbar .trix-button-group { border-color: var(--line); border-radius: 8px; margin-bottom: 8px; }
trix-toolbar .trix-button { border-bottom: 0; }
trix-toolbar .trix-button-group--file-tools { display: none; }
trix-editor { border: 1px solid #d9d5c8; border-radius: 10px; padding: 12px 14px; min-height: 140px; background: #fff; font-size: 15px; line-height: 1.6; }
trix-editor:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
trix-editor.compact { min-height: 90px; }

/* Uploader */
.uploader { margin-top: 10px; }
.drop { border: 1.5px dashed #d3cebf; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; background: #fcfbf8; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--lime); background: var(--lime-wash); color: var(--lime-deep); }
.drop input { display: none; }
.uploads { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.upl { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13px; }
.upl .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.upl .bar { width: 120px; height: 5px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.upl .bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .2s; }
.upl.done .bar { display: none; }
.upl.err { border-color: #f3c7c2; background: var(--danger-soft); color: var(--danger); }
.upl button { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 16px; line-height: 1; }

/* ---------- To-dos ---------- */
.todolist { scroll-margin-top: 80px; }
.todolist + .todolist { margin-top: 18px; }
.todo { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; }
.todo input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lime-ink); cursor: pointer; flex: none; }
.todo .text { flex: 1; min-width: 0; }
.todo .text a { color: var(--ink); }
.todo.done .text a { color: var(--faint); text-decoration: line-through; }
.todo .tmeta { display: inline-flex; gap: 8px; margin-left: 6px; font-size: 12.5px; color: var(--muted); align-items: center; }
.due { font-size: 12px; font-weight: 600; color: var(--lime-deep); background: var(--lime-soft); border-radius: 5px; padding: 0 6px; }
.due.late { color: var(--danger); background: var(--danger-soft); }
.progress { height: 6px; background: var(--line-2); border-radius: 6px; overflow: hidden; width: 120px; }
.progress i { display: block; height: 100%; background: var(--lime); }
.add-todo { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.add-todo input[type=text], .add-todo select, .add-todo input[type=date] { height: 36px; padding: 5px 10px; font-size: 14px; }
.add-todo input[type=text] { flex: 1; min-width: 200px; }
.add-todo select, .add-todo input[type=date] { width: auto; }
.add-todo .btn { height: 36px; }
details.reveal > summary { list-style: none; cursor: pointer; }
details.reveal > summary::-webkit-details-marker { display: none; }
.done-toggle { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- Activity ---------- */
.day { margin-bottom: 26px; }
.day-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.event { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); color: var(--ink); }
.event:first-child { border-top: 0; }
a.event:hover { background: var(--lime-wash); text-decoration: none; }
.event .main { flex: 1; min-width: 0; }
.event .line { font-size: 14px; }
.event .line strong { font-weight: 650; }
.event .job { font-size: 12px; color: var(--lime-ink); font-weight: 650; }
.event .ex { font-size: 13.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event .time { font-size: 12.5px; color: var(--faint); white-space: nowrap; }

/* ---------- Search ---------- */
.search-big { display: flex; gap: 10px; margin-bottom: 18px; }
.search-big input { height: 46px; font-size: 17px; }
.result-type { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--faint); width: 64px; flex: none; padding-top: 3px; }
mark { background: #fbf0b8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.auth-card .brand { justify-content: center; margin-bottom: 22px; font-size: 18px; }
.auth-card .brand-stack { align-items: center; }
.auth-card h1 { font-size: 21px; text-align: center; margin-bottom: 20px; }
.auth-card .btn { width: 100%; justify-content: center; height: 42px; }

/* ---------- Misc ---------- */
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat-tile .v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-tile .l { font-size: 13px; color: var(--muted); }
.copy-box { display: flex; gap: 8px; }
.copy-box input { font-family: var(--mono); font-size: 13px; background: #faf9f6; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.table tr:last-child td { border-bottom: 0; }
.tag { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--line-2); color: var(--muted); }
.tag.admin { background: var(--lime-soft); color: var(--lime-deep); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state h3 { color: var(--ink); }
.prototype-banner { background: #1e2319; color: #dfe9cc; font-size: 13px; text-align: center; padding: 7px 12px; }
.prototype-banner b { color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 70px minmax(0, 1fr) 150px 80px; }
  .jobs-list.no-numbers .job-row { grid-template-columns: minmax(0, 1fr) 150px 80px; }
  .job-row .jr-people { display: none; }
  .nav { display: none; }
  .topbar-search kbd { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 18px 14px 60px; }
  .topbar-inner { padding: 0 14px; gap: 12px; }
  .brand span.light { display: none; }
  .sheet { padding: 20px 18px; border-radius: 10px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-head h1 { font-size: 23px; }
  .thread-row .side { display: none; }
  .comment .tools { opacity: 1; }
  .post > .avatar, .comment > .avatar, .composer > .avatar { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .add-todo select, .add-todo input[type=date] { flex: 1; }
  .list-row .right { display: none; }
  .job-row, .jobs-list.no-numbers .job-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .job-row .jr-num, .job-row .jr-people, .job-row .jr-stats { display: none; }
  .job-row-head { display: none; }
  .view-toggle span { display: none; }
  .toolbar .filter { flex: 1 1 100%; max-width: none; }
  .files-grid { grid-template-columns: repeat(2, 1fr); }
  .attachments .file-tile { width: calc(50% - 5px); }
}

/* ---------- Claude ---------- */
.avatar-claude { background: #1e2319; color: #c6e88f; }
.avatar-claude svg { display: block; }
.via-ai { background: #1e2319; color: #c6e88f; font-weight: 700; letter-spacing: .04em; }
.comment-claude { background: #f7f9f1; margin: 8px -16px; padding: 18px 16px; border-radius: 12px; border-bottom: 0; }
.comment-claude + .comment { border-top: 1px solid var(--line-2); }
.claude-pending .rich { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-ink); opacity: .3; animation: lj-dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes lj-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.claude-panel { border-color: #d9e6c3; background: linear-gradient(180deg, #fbfdf7, #fff); }
.claude-title { display: flex; align-items: center; gap: 7px; font-weight: 700; margin-bottom: 10px; }
.claude-title svg { color: var(--lime-ink); }
.claude-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.claude-steps { display: flex; gap: 6px; align-items: center; }
.claude-steps select { width: auto; height: 30px; padding: 2px 8px; font-size: 13px; border-radius: 8px; }
.claude-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border: 1px solid var(--line); border-radius: 14px; padding: 0; box-shadow: 0 24px 64px rgba(20, 24, 16, .25); color: var(--ink); }
.claude-dialog::backdrop { background: rgba(30, 35, 25, .35); }
.claude-dialog[open] { display: flex; flex-direction: column; }
.cd-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.cd-head h2 { margin: 0; font-size: 17px; flex: 1; }
.cd-mark { width: 28px; height: 28px; border-radius: 8px; background: #1e2319; color: #c6e88f; display: grid; place-items: center; }
.cd-close { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.cd-close:hover { background: var(--line-2); }
.cd-body { padding: 18px 20px; overflow: auto; flex: 1; }
.cd-foot { display: flex; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.cd-foot:empty { display: none; }
.cd-wait { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 14px 0; }
.cd-error { color: var(--danger); background: var(--danger-soft); border: 1px solid #f3c7c2; padding: 12px 14px; border-radius: 10px; }
.cd-todos .row-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) 150px 140px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.cd-todos .row-item input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--lime-ink); }
.cd-todos input[type=text], .cd-todos select, .cd-todos input[type=date] { height: 34px; padding: 5px 9px; font-size: 14px; }
.cd-todos .list-pick { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.cd-todos .list-pick select { width: auto; }
.cd-todos .list-pick input { flex: 1; min-width: 200px; }
@media (max-width: 640px) {
  .cd-todos .row-item { grid-template-columns: 22px minmax(0, 1fr); }
  .cd-todos .row-item select, .cd-todos .row-item input[type=date] { grid-column: 2; }
  .comment-claude { margin: 8px -10px; padding: 16px 10px; }
}

/* File preview (lightbox) */
html.lb-lock { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(18, 20, 15, .94); }
.lb-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: rgba(0, 0, 0, .35); }
.lb-title { flex: 1; min-width: 0; }
.lb-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-meta { font-size: 12.5px; color: rgba(255, 255, 255, .65); margin-top: 2px; }
.lb-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lb-actions .btn[hidden], .lb-nav[hidden] { display: none; }
.lb-close { width: 36px; height: 36px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255, 255, 255, .22); }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; padding: 16px 72px 24px; }
.lb-content { flex: 1; min-width: 0; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-content img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.lb-content img.lb-placeholder { width: min(100%, 900px); height: auto; filter: blur(1px); opacity: .85; }
.lb-content iframe { width: min(1100px, 100%); height: 100%; border: 0; border-radius: 6px; background: #fff; }
.lb-content video { max-width: 100%; max-height: 100%; border-radius: 6px; background: #000; }
.lb-content audio { width: min(520px, 100%); }
.lb-wait .dots i { background: #fff; }
.lb-nopreview { background: #fff; color: var(--ink); border-radius: 14px; padding: 28px 36px; text-align: center; max-width: 420px; }
.lb-nopreview .ext { margin: 0 auto 14px; }
.lb-nopreview p { margin: 6px 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 640px) {
  .lb-bar { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .lb-actions { width: 100%; }
  .lb-actions .btn { flex: 1; justify-content: center; }
  .lb-close { order: 3; flex: 0 0 36px; }
  .lb-stage { padding: 10px 8px 72px; }
  .lb-nav { top: auto; bottom: 10px; transform: none; width: 56px; height: 48px; font-size: 32px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}
