/* Jobs list, Properties, Team, Account and What's new (design round roll out). Loads after money.css and job.css so it
   can restyle their first build classes for these screens; the shared pieces (section head, who chip, job row, ds-card,
   buttons, fields, sheets) are in design.css and are used as they are. */

/* ---------------------------------------------------------------- the screen frame */
.ls-page { padding-top: 16px; }
.ls-narrow { max-width: 720px; }
.ls-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; }
.ls-title { margin: 0; font: 600 28px/34px var(--font); letter-spacing: -.005em; overflow-wrap: anywhere; }
.ls-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
@media (max-width: 1023px) {
  .ls-head-bare { display: none; }
  .ls-head { margin-bottom: 16px; }
}
@media (min-width: 1024px) { .ls-page { padding-top: 32px; } }
.ls-line { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--steel); }
.ls-line.ls-body { font-size: 15px; line-height: 22px; color: var(--ink); margin: 0 0 12px; }
.ls-roles { margin: -8px 0 var(--sec-gap); }
.ls-fold { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0 0 var(--sec-gap); }
.ls-wrap { white-space: normal; }
.ls-panel { padding: 16px; }
@media (min-width: 1024px) { .ls-panel { padding: 20px; } }
.ls-panel .field:last-child { margin-bottom: 0; }
.ls-panel .btn { margin-top: 16px; }
.ls-panel .field + .btn, .ls-panel .check + .btn { margin-top: 20px; }
.ls-panel .row-fields { margin-bottom: 16px; }
.ls-check { align-items: center; min-height: 44px; margin: 0 0 4px; font-size: 15px; line-height: 22px; }
.ls-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 480px) { .ls-buttons .btn { flex: 1 1 100%; } }
.ls-back { display: none; align-items: center; min-height: 44px; margin: -12px 0 4px; font-weight: 500; }
@media (min-width: 1024px) { .ls-back.h-desk { display: inline-flex; } }
.ls-note { margin: 0 0 var(--sec-gap); font-size: 14px; line-height: 20px; color: var(--steel); }

/* The sheet's one primary button sits at its foot. */
.ls-foot { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 12px 0 0;
  background: var(--white); border-top: 1px solid var(--concrete); }
.ls-foot .btn { width: 100%; }
@media (min-width: 640px) { .ls-foot { flex-direction: row-reverse; } .ls-foot .btn { width: auto; flex: 1 1 0; } }
.sheet .field .help { font-size: 14px; }

/* Rows in cards: keep a 56 px floor and a link target a full 44 px high. */
.ds-card > .jrows > .jrow { min-height: 64px; }
button.jrow { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; font: inherit; }
button.jrow:hover { background: var(--mist); }
.set-row { align-items: center; }
/* Account's Profile photo row (Nov 6): the photo in a 40 px circle, above the name fields */
.set-photo-rows { margin: 0 0 16px; }
.set-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.set-delete .jrow-1 { color: var(--stop); }

/* ---------------------------------------------------------------- Jobs list */
.jobs-page { padding-top: 16px; }
.jl-bar { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; margin: 0 0 var(--sec-gap); }
.jl-picks { margin: 0; min-width: 0; padding-bottom: 0; }
.jl-picks .pick { flex: none; }
.jl-toggle { position: relative; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--concrete); border-radius: var(--r-ctl); background: var(--white); color: var(--ink); cursor: pointer;
  transition: background var(--t-fast) var(--ease); }
.jl-toggle:hover, .jl-bar.open .jl-toggle { background: var(--mist); }
.jl-toggle.on { border-color: var(--ink); }
.jl-dot { display: none; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.jl-toggle.on .jl-dot { display: block; }
.jl-tools { display: none; grid-column: 1 / -1; gap: 8px; }
.jl-bar.open .jl-tools { display: grid; }
@media (min-width: 480px) { .jl-bar.open .jl-tools { grid-template-columns: 1fr 1fr; } }
.jl-prop[hidden] + .jl-search { grid-column: 1 / -1; }
@media (min-width: 1280px) {
  .jl-bar { display: flex; gap: 16px; }
  .jl-picks { flex: 1; }
  .jl-toggle { display: none; }
  .jl-bar .jl-tools, .jl-bar.open .jl-tools { display: flex; gap: 8px; flex: none; }
  .jl-prop { flex: 0 0 200px; }
  .jl-search { flex: 0 0 220px; }
}

.jl-card .jrow::before, .prow::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: transparent; }

.jobs-list .skeleton { padding: 0; }
.jobs-list .skeleton .sk-row { height: 84px; margin: 0 0 8px; border-radius: var(--r-card); }
.jobs-list .empty-line { padding: 8px 0 0; }
.jobs-list .empty-line p { margin: 0; }
.jobs-list > .ds-sec:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Properties */
.prow { align-items: center; }
.prow .jrow-3 { font-weight: 500; }
.prow .jrow-3.quiet { color: var(--steel); font-weight: 400; }
.prow-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.prow-amt { font: 700 24px/26px var(--num); letter-spacing: .005em; }
.prow-cap { font-size: 14px; line-height: 18px; color: var(--steel); }
.prow-side .who { margin-top: 6px; }

.ls-phead { display: flex; flex-direction: column; gap: 16px; margin: 0 0 var(--sec-gap); }
.ls-phead-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (min-width: 640px) { .ls-phead { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
@media (max-width: 639px) { .ls-phead .btn { width: 100%; min-height: 48px; } }
.ls-two { display: grid; gap: 0; }
.ls-col { min-width: 0; }
@media (min-width: 1100px) { .ls-two { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 40px; align-items: start; } }
.unit-row .jrow-2, .ls-col .jrow-2 { white-space: normal; }
.ls-cap { font-size: 14px; line-height: 20px; color: var(--steel); }
.ls-hero { margin-top: 4px; font: 700 44px/44px var(--num); letter-spacing: .005em; }
.ls-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--concrete); }
.ls-bar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; gap: 12px; align-items: center; font-size: 14px; line-height: 20px; }
.ls-bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-bar-track { height: 8px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.ls-bar-track i { display: block; height: 100%; border-radius: 4px; background: var(--ink); }
.ls-bar-val { font: 700 16px/20px var(--num); letter-spacing: .02em; }

/* ---------------------------------------------------------------- Team */
.person .jrow-main { min-width: 0; }
.ls-row-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 2px; }
.ls-row-actions .link { min-height: 44px; padding: 0; font-size: 14px; }
.person { align-items: flex-start; }

/* ---------------------------------------------------------------- What's new */
.feed .ds-sec { margin-bottom: 24px; }
.frow { align-items: center; }
.frow-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.frow-dot.on { background: var(--ink); }
.frow .jrow-1 { white-space: normal; font-weight: 500; }
.frow .jrow-1.new { font-weight: 700; }
.frow-time { flex: none; align-self: flex-start; padding-top: 1px; font: 700 16px/22px var(--num); letter-spacing: .02em; color: var(--steel); }
.jobs-page > .ls-title { margin-bottom: 20px; }

.ds-card + .ls-fold { margin-top: 16px; }
@media (min-width: 360px) { .ls-panel .row-fields { grid-template-columns: 1fr 1fr; } }

/* ================================================================ look v2 (SPEC 7.17, 7.18): Properties, a property, Team,
   Account, What's new and More. The roots are .v2.v-lists; their old classes take the v2 look: section heads as the
   label and the ink rule, rows on hairlines (no cards, rule 1), statuses as a dot and a word, 8 px buttons, orange only
   for Order a repair here (rule 3). */
.v2.v-lists { padding: 8px var(--v-gut) calc(var(--v-tabs) + 32px); max-width: var(--v-content); }
@media (min-width: 1024px) { .v2.v-lists { padding: 28px 48px 80px; } }
.v2.v-lists.ls-narrow, .v2.v-lists.more { max-width: 720px; }
.v2.v-lists .ls-title, .v2.v-lists .more-title { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.3px; }
.v2.v-lists .ls-head, .v2.v-lists .ls-phead { align-items: flex-start; gap: 12px; }
.v2.v-lists .ls-phead-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.v2.v-lists .ls-back { color: var(--v-mute); font-weight: 500; text-decoration: none; }

/* sections: the label, the ink rule */
.v2.v-lists .ds-sec { margin-top: var(--v-sec); }
.v2.v-lists .sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--v-ink); }
.v2.v-lists .sec-h h2 { margin: 0; padding: 0; font: 600 15px/20px var(--v-sans); letter-spacing: 0; text-transform: none; color: var(--v-ink); }
.v2.v-lists .sec-h h2::after, .v2.v-lists .sec-h::after { display: none; }
.v2.v-lists .sec-side { padding: 0; font-size: 14px; color: var(--v-mute); }

/* rows on hairlines */
.v2.v-lists .ds-card, .v2.v-lists .ls-panel, .v2.v-lists .ls-hero { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
.v2.v-lists .rows .row, .v2.v-lists .jrows .jrow { min-height: 56px; padding: 14px 0 15px; border: 0; border-bottom: 1px solid var(--v-hair); border-radius: 0; background: none; color: var(--v-ink); }
.v2.v-lists .rows .row:hover, .v2.v-lists .jrows .jrow:hover { background: none; }
.v2.v-lists .row-1, .v2.v-lists .jrow-1 { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--v-ink); }
.v2.v-lists .row-2, .v2.v-lists .jrow-2, .v2.v-lists .ls-line, .v2.v-lists .ls-note, .v2.v-lists .more-sub { font-size: 14px; line-height: 20px; color: var(--v-mute); }
.v2.v-lists .row-ic { color: var(--v-mute); }
.v2.v-lists .unit-wrap { border-bottom: 1px solid var(--v-hair); }
.v2.v-lists .unit-wrap > .jrow { border-bottom: 0; }
.v2.v-lists .unit-insp { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 6px; }

/* buttons, links, fields, chips */
.v2.v-lists .btn, .v2.v-lists .ls-foot .btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--v-r-ctl); background: var(--v-white); color: var(--v-ink);
  box-shadow: inset 0 0 0 1px var(--v-hair-2); font-size: 15px; font-weight: 600; }
.v2.v-lists .btn:hover { background: var(--v-white); box-shadow: inset 0 0 0 1px var(--v-field); }
.v2.v-lists .btn-primary { background: var(--v-orange); color: var(--v-on-orange); box-shadow: none; }
.v2.v-lists .btn-ink { background: var(--v-ink); color: var(--v-white); box-shadow: none; }
html.kbd .v2.v-lists .btn-primary:focus-visible { box-shadow: inset 0 0 0 2px var(--v-white); }
.v2.v-lists .link { color: var(--v-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2.v-lists .input, .v2.v-lists .select, .v2.v-lists .textarea { min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--v-r-ctl); background: var(--v-white);
  box-shadow: inset 0 0 0 1px var(--v-field); font-size: 16px; color: var(--v-ink); }
.v2.v-lists .input:focus, .v2.v-lists .select:focus { box-shadow: inset 0 0 0 2px var(--v-ink); }
.v2.v-lists .chip { border: 0; border-radius: var(--v-r-ctl); background: none; box-shadow: none; color: var(--v-mute); font-weight: 600; }
.v2.v-lists .chip-now { color: var(--v-ink); }
.v2.v-lists .avatar { background: var(--v-fill); box-shadow: inset 0 0 0 1px var(--v-hair); color: var(--v-ink-2); }
.v2.v-lists .more-tel { font: 600 20px/26px var(--v-sans); }
/* review fixes (Codex S8): one column to 1279; a unit's inspection link beside its row; old figures in Avenir Demi;
   unread counts as plain words */
.v2.v-lists .ls-two { display: block; }
@media (min-width: 1280px) { .v2.v-lists .ls-two { display: grid; grid-template-columns: minmax(0, 1fr) var(--v-side); gap: 56px; align-items: start; } }
.v2.v-lists .unit-wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.v2.v-lists .unit-wrap > .jrow { flex: 1 1 240px; }
.v2.v-lists .unit-wrap > .unit-insp { margin: 0 0 8px; }
.v2.v-lists .prow-amt, .v2.v-lists .frow-time { font: 600 16px/22px var(--v-sans); letter-spacing: 0; }
.v2.v-lists .frow-time { font-weight: 500; color: var(--v-mute); }
.v2.v-lists .chip { min-height: 0; padding: 0; font-size: 14px; color: var(--v-mute); }
.v2.v-lists .chip::before { display: none; }
/* review fixes (Opus S8): focus rings drawn outside flush rows are not cut by the card; the property head wraps as a
   whole so its two buttons stay one row; Delete my sign in is the red link (7.18); notes under a method are words, not
   amber (rule 4); the spend is the one big figure (rule 5); panels start below the rule like the row sections; the
   access note is a real text box; unread rows are bolder with the dot in the gutter; the back link stays mute; an
   editable unit row underlines its title on hover */
.v2.v-lists .ds-card, .v2.v-lists .ls-panel { overflow: visible; }
.v2.v-lists .ls-phead { flex-wrap: wrap; }
.v2.v-lists .ls-phead-acts { flex: none; flex-wrap: nowrap; }
@media (max-width: 639px) { .v2.v-lists .ls-phead-acts { flex: 1 1 100%; flex-wrap: wrap; } }
.v2.v-lists .set-delete .jrow-1 { color: var(--v-red); }
.v2.v-lists .jrow-3.wait { color: var(--v-ink-2); }
.v2.v-lists .ls-hero { margin-top: 4px; font: inherit; }
.v2.v-lists .ls-bar-val { font: 600 14px/20px var(--v-sans); letter-spacing: 0; }
.v2.v-lists .avatar-l { font: 600 22px/1 var(--v-sans); }
.v2.v-lists .ls-panel { padding-top: 16px; }
.v2.v-lists .textarea { min-height: 100px; padding: 12px 14px; }
.v2.v-lists .textarea:focus { box-shadow: inset 0 0 0 2px var(--v-ink); }
.v2.v-lists .frow { position: relative; }
.v2.v-lists .frow-dot { position: absolute; left: -14px; top: 22px; }
.v2.v-lists .frow .jrow-1 { font-weight: 500; }
.v2.v-lists .frow .jrow-1.new { font-weight: 700; }
.v2.v-lists .frow .jrow-2 { white-space: normal; }
.v2.v-lists .link.ls-back { color: var(--v-mute); font-weight: 500; text-decoration: none; }
.v2.v-lists .unit-row:hover .jrow-1 { text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
/* old whoChip pills inside any v2 view (not only the lists): a dot and an ink word (rule 4); kept here because base.css
   holds only v- classes */
.v2 .who { display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--v-ink); white-space: nowrap; }
.v2 .who::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--v-field); animation: none; box-shadow: none; }
.v2 .who > i, .v2 .who > .dot { display: none; }
.v2 .who-go::before { background: var(--v-green); }
.v2 .who-stop::before { background: var(--v-red); }
.v2 .who-wait::before, .v2 .who-live::before { background: var(--v-amber); }
.v2 .who-you::before { background: var(--v-orange); }

/* Show more under a long jobs list (Codex full review PF1) */
.v2 .jl-more { display: flex; margin: 16px auto 0; min-width: 160px; }
