/* phase 518: Dashboard, Notifications and Earn: calmer, shorter pages with one clear next step */
.d8{--d8-line:#e3ebe9;--d8-mut:#64748b;--d8-brand:#0f766e}
.d8-head,.d8 .ldx-head,.d8 .td-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.d8-head h1,.d8 .ldx-head h1,.d8 .td-head h1{margin:0;font-size:1.55rem;letter-spacing:-.02em}.d8-head p,.d8 .ldx-head p,.d8 .td-head p{margin:3px 0 0;color:var(--d8-mut)}
.d8-ok{color:#15803d;font-weight:700}
.d8-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 14px;border-radius:10px;background:var(--d8-brand,#0f766e);color:#fff!important;font-weight:700;font-size:.88rem;text-decoration:none;border:0;white-space:nowrap;cursor:pointer}
.d8-btn:hover{background:#0b4f49}.d8-btn.ghost{background:#fff;color:#0f766e!important;border:1.5px solid #0f766e}.d8-btn.sm{min-height:34px;padding:0 11px;font-size:.82rem}.d8-btn svg{width:16px;height:16px}
/* things need you */
.d8-need{border:1.5px solid #fcd34d;background:#fffbeb;border-radius:16px;padding:12px 14px;margin:0 0 14px;display:grid;gap:8px}
.d8-need h2{margin:0 0 2px;font-size:1.02rem}
.d8-nr{display:flex;align-items:center;gap:12px;background:#fff;border-radius:11px;padding:9px 12px;color:#0f172a;text-decoration:none;min-width:0}
.d8-nr:hover{box-shadow:0 0 0 1.5px #f2c46d}
.d8-ni{flex:none;width:34px;height:34px;border-radius:10px;background:#ecf6f4;color:#0f766e;display:grid;place-items:center;font-size:.85rem}.d8-ni svg{width:18px;height:18px}
.d8-nr.red .d8-ni{background:#fee2e2;color:#b91c1c}
.d8-nt{flex:1;min-width:0;display:grid}.d8-nt b{font-size:.92rem}.d8-nt small{color:var(--d8-mut,#64748b);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d8-nr em{flex:none;font-style:normal;font-weight:700;font-size:.82rem;border:1.5px solid #0f766e;color:#0f766e;border-radius:9px;padding:6px 12px}.d8-nr em.m{background:#0f766e;color:#fff}
.d8-more{font-size:.85rem;font-weight:700;color:#0f766e;text-decoration:none;padding-left:4px}
/* quick actions as one row of pills */
.d8-qa{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.d8-qa a{display:inline-flex;align-items:center;gap:7px;border:1px solid #dbe4e2;background:#fff;border-radius:999px;padding:8px 14px;font-weight:600;font-size:.86rem;color:#0f172a;text-decoration:none}
.d8-qa a:hover{border-color:#0f766e;color:#0f766e}.d8-qa svg{width:16px;height:16px;color:#0f766e}
@media (max-width:700px){.d8-qa{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-left:-2px;padding:2px}.d8-qa::-webkit-scrollbar{display:none}.d8-qa a{flex:none}}
.d8 .ldx-stats{margin-bottom:14px}
/* two columns, cards */
.d8-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 14px;align-items:start}
@media (max-width:860px){.d8-two{grid-template-columns:1fr}}
.d8-card{background:#fff;border:1px solid var(--d8-line,#e3ebe9);border-radius:16px;padding:14px 16px}
.d8-ch{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px}.d8-ch h2{margin:0;font-size:1.02rem}.d8-ch a{font-size:.84rem;font-weight:700;color:#0f766e;text-decoration:none;white-space:nowrap}
.d8-empty{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.d8-empty>span:nth-child(2){flex:1;min-width:180px;display:grid}.d8-empty small{color:var(--d8-mut,#64748b)}
.d8-ei{width:40px;height:40px;border-radius:12px;background:#ecf6f4;color:#0f766e;display:grid;place-items:center}.d8-ei svg{width:20px;height:20px}
.d8 .d8-acts{margin:0}
/* property rows */
.d8-props{margin:0 0 14px}
.d8-pr{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #eef3f2;min-width:0}.d8-props .d8-ch+.d8-pr{border-top:0}
.d8-pi{position:relative;flex:none;width:64px;height:48px;border-radius:10px;background:#e3f1ee;overflow:hidden;display:grid;place-items:center;color:#5f9e94}
.d8-pi img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.d8-pi span svg{width:20px;height:20px}
.d8-pt{flex:1;min-width:0;display:grid}.d8-pt a{color:#0f172a;text-decoration:none}.d8-pt b{font-size:.93rem;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.d8-pt small{color:var(--d8-mut,#64748b);font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.d8-pill{flex:none;font-size:.72rem;font-weight:700;border-radius:999px;padding:3px 9px;background:#ecf6f4;color:#0f766e}
.d8-pill.amber,.d8-pill.warn,.d8-pill.orange{background:#fef3c7;color:#92400e}.d8-pill.blue{background:#e0f2fe;color:#075985}.d8-pill.red,.d8-pill.rose{background:#fee2e2;color:#991b1b}.d8-pill.grey,.d8-pill.gray{background:#f1f5f9;color:#475569}
@media (max-width:520px){.d8-pr .d8-btn{display:none}.d8-pi{width:56px;height:44px}}
/* tenant: compact home cards, no repeated sections */
.d8 .td-ov{margin-bottom:0}.d8 .td-sec{margin-bottom:14px}
.d8-feed .td-card{border:0!important;box-shadow:none!important;padding:0!important;background:none!important}
.d8-feed{margin:0}.d8 .d8-two>.td-card{height:auto}
.d8-recs{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.d8-recs .td-pim{aspect-ratio:16/10;height:auto!important}.d8-recs .td-pb{padding:10px 12px!important}.d8-recs .td-pb h3{font-size:.92rem!important;-webkit-line-clamp:1;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.d8-recs .td-meta{display:none}.d8-recs .td-pbtn{grid-template-columns:1fr!important;display:grid}.d8-recs .td-pbtn a{width:100%}
@media (max-width:1100px){.d8-recs{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* general dashboard */
.pt-d.d8 .d8-need{margin-top:14px}
/* notifications */
.n8-tabs{display:flex;gap:2px;border-bottom:1px solid #e3ebe9;margin:0 0 12px}
.n8-tabs a{padding:9px 14px;font-weight:600;color:#475569;text-decoration:none;border-bottom:2.5px solid transparent}.n8-tabs a.on{color:#0f766e;border-color:#0f766e}
.n8-tabs span{font-size:.75rem;background:#ecf6f4;color:#0f766e;border-radius:999px;padding:1px 7px;margin-left:3px}
.n8-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 6px}
.n8-search{flex:1 1 260px;display:flex;align-items:center;gap:8px;border:1.5px solid #d6dfdc;border-radius:11px;background:#fff;padding:0 12px;min-height:42px;color:#94a3b8}
.n8-search input{border:0!important;outline:0;box-shadow:none!important;flex:1;font:inherit;font-size:15px;background:none;min-height:40px;padding:0!important;color:#0f172a}
.n8-chips{display:flex;gap:6px;flex-wrap:wrap}.n8-chips a{border:1px solid #dbe4e2;border-radius:999px;padding:6px 12px;font-size:.82rem;font-weight:600;background:#fff;color:#0f172a;text-decoration:none;white-space:nowrap}
.n8-chips a span{color:#64748b;font-weight:700;margin-left:2px}.n8-chips a.on{background:#0f766e;border-color:#0f766e;color:#fff}.n8-chips a.on span{color:#ccfbf1}
@media (max-width:700px){.n8-chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;width:100%}.n8-chips::-webkit-scrollbar{display:none}}
.n8-day{font-size:.72rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin:16px 0 8px}
.n8-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.n8-n{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 10px;background:#fbfdfc;border:1px solid #e3ebe9;border-radius:13px;padding:10px 12px}
.n8-n.unread{background:#fff;border-color:#cfe5df}
.n8-main{display:flex;gap:12px;align-items:flex-start;color:#0f172a;text-decoration:none;min-width:0}
.n8-ic{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:#ecf6f4;color:#0f766e}.n8-ic svg{width:18px;height:18px}
.c-listings .n8-ic{background:#e0f2fe;color:#075985}.c-security .n8-ic{background:#fef3c7;color:#92400e}.c-money .n8-ic{background:#dcfce7;color:#166534}.c-visits .n8-ic{background:#ede9fe;color:#5b21b6}.c-trust .n8-ic{background:#fce7f3;color:#9d174d}
.n8-t{display:grid;min-width:0}.n8-t b{font-size:.92rem;font-weight:600;color:#334155}.n8-n.unread .n8-t b{font-weight:800;color:#0f172a}
.n8-t>span{color:#475569;font-size:.86rem;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.n8-t small{color:#64748b;font-size:.76rem;margin-top:2px}
.n8-x{font-style:normal;font-size:.72rem;font-weight:700;background:#e0f2fe;color:#075985;border-radius:999px;padding:2px 8px;margin-left:4px;vertical-align:1px}
.n8-act{display:flex;align-items:center;gap:10px}.n8-act form{margin:0}
.n8-dot{width:12px;height:12px;border-radius:50%;background:#0f766e;border:0;padding:0;cursor:pointer;display:inline-block;box-shadow:0 0 0 4px #e6f4f1}.n8-dot.off{background:#fff;box-shadow:0 0 0 1.5px #cbd5e1}
button.n8-dot:hover{box-shadow:0 0 0 5px #ccebe5}
.n8-fold{grid-column:1/-1;margin:0 0 0 48px}.n8-fold summary{cursor:pointer;color:#0f766e;font-weight:700;font-size:.82rem;list-style:none}.n8-fold summary::-webkit-details-marker{display:none}
.n8-fold ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:4px;border-left:2px solid #e3ebe9;padding-left:12px}
.n8-fold a{display:flex;justify-content:space-between;gap:10px;color:#334155;text-decoration:none;font-size:.84rem;padding:4px 0}.n8-fold li.unread a{font-weight:700;color:#0f172a}.n8-fold small{color:#64748b;white-space:nowrap}
.n8-moreb{text-align:center;margin:16px 0}
.n8-none{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.n8-none div{flex:1;display:grid}.n8-none small{color:#64748b}
@media (max-width:560px){.n8-n{grid-template-columns:1fr}.n8-act{justify-content:flex-end;margin-left:48px;justify-content:space-between}.n8-fold{margin-left:0}}
/* Earn: Quick Earn and Referral rewards */
.e8-h{display:flex;align-items:center;gap:12px}.e8-hi{width:46px;height:46px;border-radius:13px;background:#d97706;color:#fff;display:grid;place-items:center;flex:none}.e8-hi svg{width:22px;height:22px}
.e8-tabs{margin-bottom:14px}
.e8-gold{background:#d97706!important}.e8-gold:hover{background:#b45309!important}
.e8-hero{background:#fff;border:1px solid #f3dfb5;border-radius:16px;padding:16px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;margin:0 0 14px}
@media (max-width:860px){.e8-hero{grid-template-columns:minmax(0,1fr)}}
.e8-hero>*,.e8-link,.e8-share{min-width:0}.e8-code{overflow-wrap:anywhere}
.e8-link>b,.e8-sub{display:block;font-size:.98rem;margin-bottom:8px}
.e8-copy{display:flex;align-items:center;gap:8px;border:1.5px dashed #f2c46d;background:#fffbeb;border-radius:12px;padding:6px 6px 6px 12px;min-width:0}
.e8-copy input,.e8-copy code{flex:1;min-width:0;border:0!important;background:none!important;box-shadow:none!important;font:600 .9rem ui-monospace,Menlo,Consolas,monospace;color:#0f172a;padding:6px 0!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.e8-share{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px}.e8-code{color:#64748b;font-size:.84rem;margin-left:4px}.e8-code b{color:#0f172a;font-family:ui-monospace,Menlo,Consolas,monospace}
.e8-mini{border:0;background:none;color:#b45309;font-weight:700;cursor:pointer;padding:0 2px;font-size:.82rem}
.e8-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px;counter-reset:e8}
.e8-steps li{counter-increment:e8;display:grid;grid-template-columns:30px 1fr;column-gap:10px}.e8-steps li::before{content:counter(e8);grid-row:span 2;width:28px;height:28px;border-radius:50%;background:#d97706;color:#fff;display:grid;place-items:center;font-weight:800;font-size:.82rem}
.e8-steps b{font-size:.93rem}.e8-steps small{color:#64748b}
.e8-kpi{grid-template-columns:repeat(4,minmax(0,1fr))!important}.e8-kpi .ldx-s{padding:12px 14px!important}
@media (max-width:860px){.e8-kpi{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
.e8-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #eef3f2;font-size:.88rem}.e8-row small{color:#64748b}.d8-ch+.e8-row{border-top:0}
.e8-fine{color:#64748b;font-size:.8rem;line-height:1.5;margin:8px 0 0}
.e8-tip{background:#fffbeb;border-radius:10px;padding:10px 12px;font-size:.86rem;margin-bottom:8px}
.e8-form{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 10px}.e8-form label{display:grid;gap:4px;font-size:.8rem;font-weight:700;color:#334155}
.e8-form input,.e8-form select{min-height:42px;border:1.5px solid #d6dfdc;border-radius:10px;padding:0 10px;font:inherit;font-size:15px;width:100%}
.e8-form>button,.e8-form .r8-full{grid-column:1/-1}
@media (max-width:520px){.e8-form{grid-template-columns:1fr}}
/* referral bits filled by partner.js */
.r8-rates{width:100%;border-collapse:collapse;font-size:.88rem}.r8-rates td{padding:7px 0;border-top:1px solid #f3e8cf}.r8-rates tr:first-child td{border-top:0}.r8-rates .n{text-align:right;font-weight:700;white-space:nowrap;padding-left:10px}
.r8-rates .t{display:inline-flex;align-items:center;gap:8px}.r8 .ic{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:#b45309;flex:none}
.r8-tw{overflow-x:auto}.r8-t{width:100%;border-collapse:collapse;font-size:.86rem}.r8-t th{text-align:left;font-size:.7rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;padding:6px 8px 6px 0}.r8-t td{padding:8px 8px 8px 0;border-top:1px solid #eef3f2}
.r8-t .muted{color:#64748b}.r8-t .pos{color:#15803d;font-weight:700}.r8 .empty{display:grid;justify-items:center;gap:6px;color:#64748b;text-align:center;padding:14px 4px;font-size:.86rem}.r8 .empty .ic{width:22px;height:22px}
.r8-bars{display:flex;align-items:flex-end;gap:4px;height:70px}.r8-bars .b{flex:1;background:#fbbf24;border-radius:4px 4px 0 0;min-height:3px}
.r8-ax{display:flex;justify-content:space-between;font-size:.72rem;color:#94a3b8;margin-top:4px}
.r8-conv{margin-top:14px;border-top:1px solid #eef3f2;padding-top:12px}.r8-conv label{font-weight:700;font-size:.84rem}.r8-conv div{display:flex;align-items:center;gap:10px;margin-top:6px}
.r8-conv input{width:120px;min-height:40px;border:1.5px solid #d6dfdc;border-radius:10px;padding:0 10px;font:inherit;font-size:15px}.r8-conv b{color:#0f766e;font-size:1.05rem}
.r8-wd>summary{list-style:none;width:fit-content}.r8-wd>summary::-webkit-details-marker{display:none}.r8-wd[open]>summary{margin-bottom:12px;background:#fff!important;color:#b45309!important;border:1.5px solid #d97706}
.r8-err{color:#b91c1c;font-size:.84rem;margin:0}.r8 .pill{font-size:.72rem;font-weight:700;border-radius:999px;padding:3px 9px;background:#fef3c7;color:#92400e;text-transform:capitalize}.r8 .pill.paid,.r8 .pill.approved{background:#dcfce7;color:#166534}.r8 .pill.rejected{background:#fee2e2;color:#991b1b}
.r8 .tl{list-style:none;margin:6px 0 0;padding:0 0 0 10px;border-left:2px solid #eef3f2;font-size:.78rem;color:#64748b}.r8 .small{font-size:.8rem}
.r8-toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#0f172a;color:#fff;padding:10px 16px;border-radius:10px;font-size:.88rem;z-index:2000;max-width:90vw}.r8-toast.bad{background:#b91c1c}
.e8-kpi{display:grid;gap:12px;margin:0 0 14px}
.e8-kpi .ldx-s{background:#fff;border:1px solid #e3ebe9;border-radius:14px;display:block}
.e8-kpi .ldx-s small{display:block;color:#64748b;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.e8-kpi .ldx-s b{display:block;font-size:1.35rem;margin:3px 0 2px;overflow-wrap:anywhere}.e8-kpi .ldx-s em{display:block;font-style:normal;color:#64748b;font-size:.8rem;line-height:1.35}
.d8-feed .td-emptyc{display:flex;gap:12px;align-items:flex-start;margin-top:10px}.d8-feed .td-hrow{margin-bottom:4px}
@media (max-width:700px){.d8 .ldx-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.d8 .ldx-s{padding:12px!important;gap:8px!important}.d8 .ldx-s .ldx-si{display:none!important}.d8 .ldx-s b{font-size:1.25rem!important}.d8 .ldx-s em{font-size:.74rem!important}.d8-head .ldx-head-r{width:100%}.d8-head .d8-btn{flex:1}}
@media (max-width:700px){.d8 .td-ov{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.d8 .td-c{padding:12px!important;min-width:0}.d8 .td-c p{display:none}.d8 .td-cv{font-size:1rem!important}.d8 .td-c .td-btn{min-height:36px;font-size:.8rem;padding:0 8px}.d8 .td-c:last-child:nth-child(odd){grid-column:1/-1}}
