/* Member dashboard */
.dash { padding: 100px 0 60px; }
.loading { padding: 120px 0; text-align: center; color: var(--muted); }
.dhead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.dhead h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.05em; font-weight: 600; margin: 4px 0 0; line-height: 1.05; }
.dhead p { margin: 6px 0 0; color: var(--ink-2); }
.dhead .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.kp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kc { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 16px 18px; }
.kc small { color: var(--muted); font-size: 13px; display: block; }
.kc b { display: block; font-family: var(--mono); font-weight: 500; font-size: 26px; letter-spacing: -.06em; margin: 4px 0 2px; white-space: nowrap; }
.kc em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.kc em.up { color: var(--leaf); } .kc em.dn { color: var(--rose); }
.kc.dark { background: var(--ink); color: #fff; }
.kc.dark small, .kc.dark em { color: #a3a8b0; }
.kc.dark b { color: #f1c97a; }

.row2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; margin-top: 12px; }
.pn { background: var(--surface); border-radius: 18px; box-shadow: var(--sh-1); padding: 18px 20px; min-width: 0; }
.pn h2 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pn h2 small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.mchart { display: flex; align-items: flex-end; gap: 10px; height: 170px; }
.mc { flex: 1; height: 100%; display: grid; grid-template-rows: 1fr auto auto; gap: 6px; text-align: center; min-width: 0; }
.mc .bars2 { display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.mc .bars2 i { width: 38%; max-width: 22px; border-radius: 6px 6px 2px 2px; min-height: 2px; transition: height .7s cubic-bezier(.2, .8, .2, 1); }
.mc .bars2 i.in { background: var(--ink); } .mc .bars2 i.out { background: #e6c79a; }
.mc span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.mc b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; }
.mc b.neg { color: var(--rose); }
.lg2 { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.lg2 i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.att { display: grid; gap: 8px; }
.att a, .att div.al { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--sunken); font-size: 14px; cursor: pointer; }
.att a:hover { background: #ece8dd; }
.att .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); flex: none; }
.att small { display: block; color: var(--muted); font-size: 12.5px; }
.att .ok { background: var(--leaf-soft); color: #0f7a54; cursor: default; }

.sechead { display: flex; justify-content: space-between; align-items: center; margin: 30px 0 14px; gap: 12px; flex-wrap: wrap; }
.sechead h2 { font-size: 20px; letter-spacing: -.035em; font-weight: 600; margin: 0; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.pc { background: var(--surface); border-radius: 20px; box-shadow: var(--sh-1); overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s; text-align: left; border: 0; padding: 0; display: flex; flex-direction: column; }
.pc:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.pc .cov { height: 96px; position: relative; display: grid; place-items: center; font-size: 32px; }
.cov.condo, .cov.apartment { background: linear-gradient(135deg, #f7ecd4, #e9c98a); }
.cov.house, .cov.townhouse { background: linear-gradient(135deg, #efeae0, #cfc4ae); }
.cov.lot { background: linear-gradient(135deg, #e7efe4, #b9cdb0); }
.cov.commercial { background: linear-gradient(135deg, #eceef1, #c3cad3); }
.pc .cov .tag { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); }
.pc .cov .pub { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 600; background: var(--ink); color: #f1c97a; padding: 3px 9px; border-radius: 99px; }
.pc .bd { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.pc .nm { font-weight: 600; letter-spacing: -.02em; font-size: 16px; }
.pc .ar { color: var(--muted); font-size: 13px; }
.pc .rw { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; gap: 8px; }
.pc .rw b { font-family: var(--mono); font-weight: 500; font-size: 18px; letter-spacing: -.05em; }
.pc .rw b small { font-family: var(--sans); color: var(--muted); font-size: 12px; letter-spacing: 0; }
.pc .rw span { font-size: 12.5px; color: var(--muted); }
.pc .ft { border-top: 1px solid var(--line); padding: 10px 16px; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.pc .ft b { font-family: var(--mono); font-weight: 500; }
.st-occupied { background: var(--leaf-soft) !important; color: #0f7a54 !important; }
.st-vacant { background: var(--peach-soft) !important; color: #b5552a !important; }
.st-reserved { background: var(--accent-soft) !important; color: #8f5a0c !important; }
.pc.add { border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none; display: grid; place-items: center; min-height: 230px; color: var(--ink-2); gap: 8px; font-size: 15px; }
.pc.add:hover { background: var(--surface); }
.pc.add .plus { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 24px; margin: 0 auto 8px; }

.txl { display: grid; }
.tx { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 12px; align-items: center; padding: 10px 2px; border-top: 1px solid #f1eee6; font-size: 14px; }
.tx:first-child { border-top: 0; }
.tx .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); }
.tx small { display: block; color: var(--muted); font-size: 12.5px; }
.tx .amt { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.tx .amt.in { color: var(--leaf); }
.tx .del { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; padding: 2px 6px; border-radius: 8px; visibility: hidden; }
.tx:hover .del { visibility: visible; }
.tx .del:hover { background: var(--sunken); color: var(--rose); }
.empty2 { color: var(--muted); font-size: 14px; padding: 8px 0; }

.welcome { background: var(--surface); border-radius: 28px; box-shadow: var(--sh-1); padding: 48px 28px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.welcome img { width: 72px; height: 72px; }
.welcome h2 { font-size: 28px; letter-spacing: -.045em; margin: 8px 0 0; font-weight: 600; }
.welcome p { color: var(--ink-2); margin: 0 0 10px; max-width: 460px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 8px; width: min(720px, 100%); text-align: left; }
.steps3 div { background: var(--sunken); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.steps3 b { display: block; color: var(--ink); margin-bottom: 2px; }

/* Dialogs */
.sheet, .drawer { border: 0; padding: 0; color: var(--ink); box-shadow: var(--sh-2); }
.sheet::backdrop, .drawer::backdrop { background: rgba(17, 18, 20, .32); backdrop-filter: blur(4px); }
.sheet { border-radius: 24px; width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 24px); }
.sheet form { padding: 22px; display: grid; gap: 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h3 { margin: 0; font-size: 19px; letter-spacing: -.03em; font-weight: 600; }
.x-btn { border: 0; background: var(--sunken); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; line-height: 1; flex: none; }
.sheet label, .drawer label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.sheet input, .sheet select, .drawer input, .drawer select { border: 0; border-radius: 12px; padding: 11px 12px; background: var(--sunken); font-size: 15px; outline: 0; width: 100%; min-width: 0; }
.sheet input:focus, .sheet select:focus, .drawer input:focus, .drawer select:focus { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.opt { color: var(--muted); font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.three { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; }
.seg.mode { display: grid; grid-template-columns: 1fr 1fr; }
.hint { margin: -4px 0 0; font-size: 13px; color: var(--muted); min-height: 18px; }
.hint b { color: var(--ink); font-weight: 500; }
.err { margin: 0; min-height: 18px; color: var(--rose); font-size: 14px; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; }
.switch { display: flex !important; grid-template-columns: none; align-items: center; gap: 12px !important; background: var(--sunken); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .sw { width: 40px; height: 24px; border-radius: 99px; background: #d6d1c3; position: relative; flex: none; transition: background .2s; }
.switch .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .sw { background: var(--accent); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { box-shadow: 0 0 0 3px rgba(201, 138, 38, .3); }
.switch b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.switch small { color: var(--muted); font-size: 12.5px; }

.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100%); max-width: 100%; border-radius: 24px 0 0 24px; }
.drawer[open] { animation: slidein .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
#detailBody { padding: 22px; display: grid; gap: 14px; }
.dt-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dt-top h3 { margin: 6px 0 2px; font-size: 24px; letter-spacing: -.045em; font-weight: 600; line-height: 1.1; }
.dt-top p { margin: 0; color: var(--muted); font-size: 13.5px; }
.dt-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.mini3 div { background: var(--surface); padding: 12px 14px; }
.mini3 small { color: var(--muted); font-size: 12px; display: block; }
.mini3 b { font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: -.05em; }
.cmpbox { border-radius: 14px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.cmpbox.good { background: var(--leaf-soft); color: #0f5e43; }
.cmpbox.high { background: var(--peach-soft); color: #8a3d18; }
.cmpbox.fair { background: var(--sunken); color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; }
.facts small { display: block; color: var(--muted); font-size: 12px; }
.addtx { background: var(--sunken); border-radius: 16px; padding: 14px; display: grid; gap: 10px; }
.addtx .seg { background: var(--surface); }
.addtx input, .addtx select { background: var(--surface) !important; }
.addtx .r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer h4 { margin: 4px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; }
.drawer h4 small { color: var(--muted); font-weight: 400; font-size: 12.5px; }

.toast2 { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; box-shadow: var(--sh-2); opacity: 0; transition: opacity .25s, transform .25s; z-index: 2000; pointer-events: none; }
.toast2.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .kp { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .steps3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .three { grid-template-columns: 1fr 1fr; }
  .three label:first-child { grid-column: span 2; }
  .drawer { border-radius: 0; }
  .mini3 { grid-template-columns: 1fr 1fr; }
  .tx .del { visibility: visible; }
}

/* Listing details in the property form */
.listbox { border: 0; margin: 0; padding: 14px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.listbox legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.listbox textarea { border: 0; border-radius: 12px; padding: 11px 12px; background: var(--surface); font: inherit; font-size: 15px; outline: 0; resize: vertical; width: 100%; }
.listbox textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.listbox input:not([type=checkbox]), .listbox select { background: var(--surface) !important; }
.seg.ltype { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); }
.seg.ltype button { padding: 7px 4px; font-size: 13px; }
.check { display: flex !important; align-items: center; gap: 8px !important; font-size: 14px !important; color: var(--ink) !important; cursor: pointer; }
.check input { width: 18px !important; height: 18px; accent-color: #111214; }
@media (max-width: 560px) { .seg.ltype { grid-template-columns: 1fr 1fr; } }
