/* Ovimo. Morning paper, one ultramarine band with lit windows, a quiet property register
   beside one large debt run-off drawing. Light is the brand palette; system and dark are settings. */
:root {
  --plaster: #fff8f3;
  --panel: #ffffff;
  --ink: #14164f;
  --ink-2: #43467f;
  --ink-3: #5f618f;
  --rule: #eadfdb;
  --accent: #1c1f8a;
  --accent-tint: #e7e7f7;
  --action: #c23a1a;
  --action-tint: #ffeadf;
  --soon: #80590a;
  --soon-tint: #f6edd7;
  --sun: #ff5a36;
  --s1: #1e6db0;
  --s2: #b97f12;
  --s3: #0e9c80;
  --s4: #8e3a7c;
  --s5: #c2452d;
  --s6: #5a6bd0;
  --s7: #6f8a14;
  --s8: #c0507f;
  --display: "Gabarito", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --band: #1c1f8a;
  --on-band: #fff8f3;
  color-scheme: light;
}
/* No choice saved means following the device. Dark is neutral, close to black. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --plaster: #101114; --panel: #191a1f; --ink: #eeece8; --ink-2: #bdbcb7; --ink-3: #97968f;
    --rule: #2b2c32; --accent: #b4b7e4; --accent-tint: #25273a; --action: #ee8a70; --action-tint: #3a211a;
    --soon: #d9b36a; --soon-tint: #33291a; --sun: #ff6a48;
    --s1: #5f9fd6; --s2: #bc8a24; --s3: #27a98b; --s4: #b061a0; --s5: #d9694e; --s6: #8590d8; --s7: #829c26; --s8: #cc6f96;
    --band: #181a33; --on-band: #eeece8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --plaster: #101114; --panel: #191a1f; --ink: #eeece8; --ink-2: #bdbcb7; --ink-3: #97968f;
    --rule: #2b2c32; --accent: #b4b7e4; --accent-tint: #25273a; --action: #ee8a70; --action-tint: #3a211a;
    --soon: #d9b36a; --soon-tint: #33291a; --sun: #ff6a48;
    --s1: #5f9fd6; --s2: #bc8a24; --s3: #27a98b; --s4: #b061a0; --s5: #d9694e; --s6: #8590d8; --s7: #829c26; --s8: #cc6f96;
    --band: #181a33; --on-band: #eeece8;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 15px/1.5 var(--body); font-variant-numeric: lining-nums tabular-nums; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; font-variant-numeric: lining-nums; text-wrap: balance; }
a { color: var(--accent); text-underline-offset: 3px; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
img { display: block; max-width: 100%; }

.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: 100%; }
.rail { position: sticky; top: 0; align-self: start; height: 100vh; padding: 30px 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.brand { display: inline-block; color: var(--accent); text-decoration: none; line-height: 0; }
.wordmark { height: 32px; width: auto; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-height: max-content; }
.nav a { padding: 7px 10px; margin-left: -10px; border-radius: 3px; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--accent-tint); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-tint); font-weight: 600; }
.nav .count { float: right; min-width: 20px; text-align: center; font-size: 12px; line-height: 20px; border-radius: 10px; color: var(--action); background: var(--action-tint); font-weight: 600; }
.rail-props { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--rule); padding-top: 18px; flex: 1 1 0; min-height: 110px; overflow-y: auto; }
.rail-props .add { color: var(--accent); margin-top: 6px; }
.switch { font-size: 14px; color: var(--ink-2); }
.switch select { width: 100%; padding: 5px 6px; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; margin-top: 3px; }
.rail-props a { display: flex; align-items: center; gap: 11px; padding: 9px 0; color: var(--ink); text-decoration: none; font-size: 16px; }
.rail-props a:hover, .rail-props a[aria-current="page"] { color: var(--ink); }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; background: var(--sun); border: 1.5px solid var(--accent); }
.rail-foot { margin-top: auto; font-size: 12.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.rail-foot button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

main { padding: 44px clamp(16px, 4.5vw, 56px) 80px; max-width: 1180px; width: 100%; display: flex; flex-direction: column; gap: 44px; }
.preview-note { font-size: 13px; color: var(--ink-3); }

/* Opening statement */
.shell { overflow-x: clip; position: relative; }
.acct { position: absolute; top: 16px; right: 20px; z-index: 6; }
.acct summary { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; list-style: none; cursor: pointer; background: var(--panel); border: 1px solid var(--rule); color: var(--ink); font-size: 13px; font-weight: 600; }
.acct summary::-webkit-details-marker { display: none; }
.acct-menu { position: absolute; right: 0; top: 46px; min-width: 230px; padding: 8px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 8px 24px rgba(10, 10, 30, .18); }
.acct-who { padding: 6px 8px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; font-size: 14px; overflow-wrap: anywhere; }
.acct-who b { display: block; font-weight: 600; }
.acct-who span { color: var(--ink-3); font-size: 13px; }
.acct-menu a, .acct-menu button { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 3px; background: none; color: var(--ink); font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--accent-tint); }
.band { --bleed: clamp(16px, 4.5vw, 56px); position: relative; margin: -44px calc(-1 * var(--bleed)) 0; padding: 30px var(--bleed) 34px; background: var(--band); color: var(--on-band); }
.band::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 100vw; background: var(--band); }
.band a, .band .linkish { color: var(--on-band); }
.pf-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.pf-name .linkish { font-size: 14px; font-weight: 400; }
.pf-rename { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.pf-rename input { width: min(320px, 100%); padding: 7px 9px; border: 0; border-radius: 3px; background: var(--on-band); color: #14164f; }
.pf-rename .btn { border-color: var(--on-band); color: var(--on-band); }
.pf-rename .btn:hover { background: rgba(255, 248, 243, .14); }
.pf-rename .btn.solid { background: var(--on-band); color: var(--band); }
.windows-head { margin-top: 24px; font-size: 16px; }
.windows { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 104px)); gap: 16px 14px; margin-top: 14px; }
.window { min-width: 0; text-align: center; text-decoration: none; font-size: 14px; }
.window svg { display: block; width: 76px; height: 76px; margin: 0 auto 6px; }
.window span, .window small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window small { font-size: 12px; opacity: .8; }
.window .pane { fill: var(--on-band); }
.window .lit { fill: var(--sun); }
.window.off .lit { fill: none; stroke: var(--sun); stroke-width: 3; }
.pmark { width: 18px; height: 18px; flex: none; }
.rail-props .pmark { width: 22px; height: 22px; }
.rail-pf { font-size: 15px; font-weight: 600; color: var(--ink); padding-bottom: 6px; overflow-wrap: anywhere; }
.lede h1 { font-size: clamp(30px, 4.3vw, 46px); line-height: 1.14; letter-spacing: -0.012em; max-width: 21em; }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 28px; border-top: 1px solid var(--ink); }
.metric { padding: 12px 14px 0 0; }
.metric + .metric { padding-left: 14px; border-left: 1px solid var(--rule); }
.metric .k { font-size: 13px; color: var(--ink-2); }
.metric .v { font: 500 25px/1.2 var(--display); font-variant-numeric: lining-nums tabular-nums; margin-top: 2px; white-space: nowrap; }
.metric .n { font-size: 12.5px; color: var(--ink-3); }

.notice-band { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 11px 14px; background: var(--action-tint); border-left: 3px solid var(--action); }
.notice-band strong { font-weight: 600; }
.notice-band a { margin-left: auto; white-space: nowrap; }

/* Section heads */
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 14px; }
.head h2 { font-size: 24px; line-height: 1.2; }
.head p { color: var(--ink-2); font-size: 14px; max-width: 60ch; }

/* Chart */
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 3px; background: var(--panel); }
.seg button { border: 0; background: none; padding: 5px 12px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--plaster); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { width: 12px; height: 12px; border-radius: 2px; }
.lsample { width: 18px; height: 0; border-top: 2px solid var(--ink); }
.lsample.dash { border-top-style: dashed; border-top-color: var(--ink-2); }
.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font: 12px var(--body); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .band-label { font-size: 12.5px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--plaster); stroke-width: 3.5px; stroke-linejoin: round; }
.chart .line-label { font-size: 12.5px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--plaster); stroke-width: 3.5px; }
.tip { position: absolute; top: 0; left: 0; pointer-events: none; min-width: 176px; padding: 9px 11px; background: var(--panel); border: 1px solid var(--rule); box-shadow: 0 3px 14px rgba(20, 28, 34, .14); font-size: 13px; z-index: 3; }
.tip b { display: block; font-weight: 600; margin-bottom: 4px; }
.tip div { display: flex; justify-content: space-between; gap: 18px; color: var(--ink-2); }
.tip div span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.tip .total { border-top: 1px solid var(--rule); margin-top: 4px; padding-top: 4px; color: var(--ink); font-weight: 600; }
details.table-view { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
details.table-view summary { cursor: pointer; color: var(--accent); }

/* Tables */
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 13px; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
td { padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; padding-right: 14px; padding-left: 14px; white-space: nowrap; }
td.num:last-child, th.num:last-child { padding-right: 0; }

/* Property register: rows, varying by content, not boxes */
.register { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 172px minmax(0, 1.5fr) 64px repeat(3, minmax(84px, .8fr)); gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.row:hover .row-name { color: var(--accent); }
.row img { width: 172px; height: 118px; object-fit: cover; }
.row-name { font: 500 23px/1.15 var(--display); display: flex; align-items: center; gap: 9px; }
.row-sub { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.row-tenant { color: var(--ink-3); font-size: 13.5px; }
.row-mini { display: none; color: var(--ink-2); font-size: 13.5px; }
.cell .k { font-size: 12.5px; color: var(--ink-3); }
.cell .v { font-size: 16px; white-space: nowrap; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 3px; white-space: nowrap; }
.tag.action { color: var(--action); background: var(--action-tint); }
.tag.soon { color: var(--soon); background: var(--soon-tint); }
.tag.later { color: var(--ink-2); background: var(--accent-tint); }
.neg { color: var(--action); }

/* DPE: the regulatory shape */
.dpe-chip { display: inline-grid; place-items: center; width: 38px; height: 28px; font: 700 16px/1 var(--body); color: #17201c; clip-path: polygon(0 0, 76% 0, 100% 50%, 76% 100%, 0 100%); padding-right: 7px; }
.dpe-A { background: #00a06d; } .dpe-B { background: #52b153; } .dpe-C { background: #78bd76; }
.dpe-D { background: #f4e70f; } .dpe-E { background: #f0b50f; } .dpe-F { background: #eb8235; } .dpe-G { background: #d7221f; color: #fff; }
.dpe-scale { display: flex; flex-direction: column; gap: 3px; max-width: 300px; }
.dpe-line { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.dpe-bar { height: 22px; display: flex; align-items: center; padding-left: 8px; font-weight: 700; font-size: 13px; color: #17201c; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); opacity: .34; }
.dpe-bar.on { opacity: 1; height: 28px; }
.dpe-line .here { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Property page */
.prop-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: end; }
.prop-top img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.prop-top h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.012em; }
.prop-top .addr { color: var(--ink-2); margin-top: 8px; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
dl.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
dl.facts dt, dl.facts dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--rule); }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { text-align: right; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.btn { display: inline-block; padding: 7px 13px; border: 1px solid var(--accent); border-radius: 3px; color: var(--accent); background: none; text-decoration: none; cursor: pointer; font-size: 14px; }
.btn:hover { background: var(--accent-tint); }
.btn.solid { background: var(--accent); color: var(--plaster); }
.btn.quiet { border-color: var(--rule); color: var(--ink-2); }
.small { font-size: 13.5px; color: var(--ink-3); }

/* Simulator */
.results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.controls { border-top: 1px solid var(--ink); }
.ctl { display: grid; grid-template-columns: minmax(150px, 1.2fr) 170px 130px 130px 172px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.ctl-name { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.ctl-sub { color: var(--ink-3); font-size: 13px; font-weight: 400; }
.field { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--ink-2); }
.field input, .field select { font-size: 14.5px; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 6px 8px; width: 100%; min-width: 0; }
.field input:disabled, .field select:disabled { opacity: .45; }
.assume { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.assume input[type="range"] { accent-color: var(--accent); width: 100%; padding: 0; border: 0; background: none; }
.assume .val { color: var(--ink); font-weight: 600; float: right; }
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }

/* Calendar */
.agenda { border-top: 1px solid var(--ink); }
.ev { display: grid; grid-template-columns: 112px 118px minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.ev-date { font-weight: 600; }
.ev-prop { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ev-detail { color: var(--ink-2); font-size: 14px; }
.check { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.check b { font-weight: 600; }
.check p { color: var(--ink-2); font-size: 14px; max-width: 72ch; }
.draft { margin-top: 10px; width: 100%; min-height: 150px; padding: 10px; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; font: 13.5px/1.5 var(--body); color: var(--ink); }

/* Sign in */
.login { max-width: 360px; margin: 18vh auto 0; padding: 0 16px; display: flex; flex-direction: column; gap: 14px; }
.login .brand { font-size: 44px; }
.login form { display: flex; flex-direction: column; gap: 10px; }

main .metrics.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
main .metrics.pair .metric { margin-top: 0; padding: 12px 14px 8px 0; border-left: 0; }
main .metrics.pair .metric:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--rule); }

@media (max-width: 1020px) {
  .row { grid-template-columns: 124px minmax(0, 1fr) 54px; }
  .row img { width: 124px; height: 96px; }
  .row .cell { display: none; }
  .row-mini { display: block; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric:nth-child(4) { border-left: 0; padding-left: 0; }
  .metric:nth-child(n+4) { margin-top: 10px; }
  .results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ctl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctl-name, .ctl .segf { grid-column: 1 / -1; }
  .assume { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .prop-top, .facts-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .rail { position: sticky; z-index: 5; height: auto; padding: 10px 16px 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; background: var(--plaster); border-right: 0; border-bottom: 1px solid var(--rule); }
  .brand { font-size: 24px; }
  .nav { flex: none; min-height: 0; flex-direction: row; gap: 14px; order: 3; width: 100%; overflow-x: auto; }
  .nav a { padding: 6px 0 9px; margin: 0; background: none !important; white-space: nowrap; border-bottom: 2px solid transparent; border-radius: 0; }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .nav .count { float: none; display: inline-block; margin-left: 5px; }
  .rail-props, .rail-foot { display: none; }
  main { padding-top: 24px; gap: 34px; }
  .band { margin-top: -24px; padding-top: 22px; }
  .acct { position: fixed; top: 8px; right: 14px; }
  .windows { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
  .window svg { width: 62px; height: 62px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metric:nth-child(4) { border-left: 1px solid var(--rule); padding-left: 14px; }
  .metric:nth-child(n+3) { margin-top: 10px; }
  .metric .v { font-size: 22px; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assume { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ev { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; }
  .ev-detail { grid-column: 1 / -1; }
  .ev-title { grid-column: 1 / -1; }
  .notice-band a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Photo placeholder */
.ph { display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font: 500 34px/1 var(--display); }
.row .ph { width: 172px; height: 118px; }
.prop-top .ph { width: 100%; aspect-ratio: 4 / 3; font-size: 72px; }

/* Empty portfolio */
.empty { max-width: 34em; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.empty h1 { font-size: clamp(30px, 4.3vw, 46px); line-height: 1.14; }
.empty p { color: var(--ink-2); }

/* Forms */
.form-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; }
.form-head h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; }
form.edit { display: flex; flex-direction: column; gap: 34px; max-width: 860px; }
fieldset { border: 0; border-top: 1px solid var(--ink); margin: 0; padding: 12px 0 0; min-width: 0; }
legend { padding: 0 12px 0 0; font: 500 22px/1.2 var(--display); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin-top: 10px; }
.grid .wide { grid-column: span 2; }
.grid .full { grid-column: 1 / -1; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); margin-top: 6px; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.hidden { display: none !important; }
.form-error { padding: 10px 14px; background: var(--action-tint); border-left: 3px solid var(--action); color: var(--action); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn.danger { border-color: var(--action); color: var(--action); }
.btn.danger.solid { background: var(--action); color: var(--plaster); }
.btn:disabled { opacity: .55; cursor: default; }
.inline-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 10px; }
.inline-save .field { width: 130px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.photo-now { width: 150px; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 8px; }
.login .tabs { display: flex; gap: 16px; }
.login .tabs button { background: none; border: 0; padding: 4px 0; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; }
.login .tabs button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; align-self: flex-start; }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid .wide { grid-column: 1 / -1; }
  .row .ph { width: 124px; height: 96px; }
}
@media (max-width: 1020px) { .row .ph { width: 124px; height: 96px; } }

/* People */
.person { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.person .tag { margin-left: auto; }
.person .linkish { align-self: center; }

/* Rents */
.rents { border-top: 1px solid var(--ink); }
.rent { display: grid; grid-template-columns: minmax(0, 1.2fr) 96px minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.rent-prop { display: flex; align-items: center; gap: 9px; }
.rent-prop .small { display: block; }
.rent .amount { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.rent .status .small { display: block; margin-top: 3px; }
.rent .links { margin-top: 0; justify-content: flex-end; }
.rent .inline-save { grid-column: 1 / -1; margin-top: 4px; }
.mini { border-top: 1px solid var(--ink); }
.mini .check .main { flex: 1 1 60%; min-width: 0; }
.mini .check .small { display: block; }
.mini .check .amount { white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
form.list-form { gap: 10px; margin-top: 10px; }
@media (max-width: 760px) {
  .rent { grid-template-columns: minmax(0, 1fr) auto; }
  .rent .status { grid-column: 1; }
  .rent .links { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Tax */
.disclaimer { font-size: 13.5px; color: var(--ink-2); max-width: 70ch; }
.tax-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 96px 104px; gap: 4px 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.tax-row .amount { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.tax-row .small { display: block; }
.tax-row.off { color: var(--ink-3); }
.tax-row.head-row { padding: 0 0 6px; font-size: 12.5px; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.bar { height: 8px; background: transparent; }
.bar i { display: block; height: 8px; min-width: 2px; background: var(--ink-3); border-radius: 0 4px 4px 0; }
.tax-row.mine .bar i { background: var(--accent); }
.assume { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 18px; margin-top: 10px; }
.assume input.edited, .assume select.edited { border-color: var(--accent); }
.assume-head { margin-top: 22px; font-size: 15px; font-weight: 600; }
details.prop-assume { border-top: 1px solid var(--rule); padding: 10px 0; }
details.prop-assume summary { cursor: pointer; }
/* News */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filters button { border: 1px solid var(--rule); background: var(--panel); color: var(--ink-2); padding: 5px 12px; border-radius: 3px; font: inherit; font-size: 13.5px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--plaster); font-weight: 600; }
.news { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.news a { font-size: 16.5px; line-height: 1.32; text-decoration: none; color: var(--ink); }
.news a:hover { text-decoration: underline; }
.news .small { display: block; margin-top: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 760px) {
  .tax-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tax-row .bar { grid-column: 1 / -1; grid-row: 3; }
  .tax-row .cash { display: none; }
  .tax-row.head-row { display: none; }
}
#tax-results { display: flex; flex-direction: column; gap: 44px; }
.disclaimer { margin-top: 10px; }
@media (max-width: 760px) { #tax-results { gap: 34px; } }

.notif-list { display: flex; flex-direction: column; }
.notif-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.notif-row .toggle { margin-top: 0; font-weight: 500; }
.notif-row .small { margin: 2px 0 0 24px; max-width: 56ch; }
.notif-days { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; flex: none; }
.notif-days input { width: 68px; padding: 5px 6px; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; text-align: right; }
.notif-props { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.notif-props .dot { margin-left: 2px; }

.mandate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.mandate-row .main { flex: 1 1 280px; min-width: 0; }
.mandate-edit { flex: 1 0 100%; }
.parallel-net { width: 96px; padding: 4px 6px; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; text-align: right; }

.auto-flags { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.auto-flags .toggle { margin-top: 0; }

.job { border-bottom: 1px solid var(--rule); }
.job-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; width: 100%; padding: 12px 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.job-head b { font-weight: 600; }
.job-head .tag { margin-left: auto; }
.job-head .small { flex-basis: 100%; }
.job-body { display: grid; gap: 16px; padding: 2px 0 20px; }
.job-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 9px 0; border-top: 1px solid var(--rule); }
.job-result .main { flex: 1 1 260px; min-width: 0; }
.job-result .small { display: block; }
.job-links { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.sup-group { margin-top: 18px; }
.sup-group h3 { margin-bottom: 4px; font-size: 15px; }

.gallery { min-width: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 3px; background: none; cursor: pointer; line-height: 0; }
.thumbs button[aria-pressed="true"] { border-color: var(--accent); }
.prop-top .thumbs img { width: 62px; height: 46px; aspect-ratio: auto; object-fit: cover; border-radius: 2px; }
.gallery-tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 8px; }
.gallery-tools label { cursor: pointer; }
