.dash-shell { background: radial-gradient(60% 40% at 100% 0%, #eef3ff, transparent 70%), var(--hp-bg, #f5f7fa); }
.dash {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding-top: 34px;
    padding-bottom: 70px;
    align-items: start;
    --line: #e4e9f1;
}
.dash-side {
    position: sticky; top: 92px; padding: 18px 12px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
    box-shadow: 0 30px 60px -45px rgba(7, 19, 49, .5); animation: pm-fade .6s var(--pm-ease, ease) backwards;
}
.dash-who { display: flex; align-items: center; gap: 12px; margin: 0 6px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dash-who p { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.dash-who strong { font-size: 16px; color: #0b1a38; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-who p span { font-size: 12.5px; color: #5f6b80; }
.dash-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #1a56e8, #0c3f8f); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 10px 20px -10px rgba(26, 86, 232, .8); }
.dash-side nav { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.dash-side nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #26324a; text-decoration: none; font-weight: 550; font-size: 14.5px; transition: background .2s, color .2s, transform .25s; }
.dash-side nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.dash-side nav a:hover { background: #f1f5fd; color: #1a56e8; transform: translateX(2px); }
.dash-side nav a.on { background: linear-gradient(135deg, #1a56e8, #0c3f8f); color: #fff; box-shadow: 0 12px 24px -14px rgba(26, 86, 232, .9); }
.dash-side nav a.on svg { opacity: 1; }
.dash-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: #e10600; color: #fff; font-size: 11px; font-weight: 800; }
.dash-side form button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: #c8102e; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.dash-side form button:hover { background: #fff1f0; }
.dash-side form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-head .pg-eyebrow { margin-bottom: .4rem; }
.dash-head h1 { margin: 0; font-family: var(--hp-serif, Georgia, serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.01em; color: #0b1a38; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash .home-grid { margin-top: 0; }
.dash .acard { border-radius: 18px; border-color: var(--line); box-shadow: 0 24px 48px -40px rgba(7, 19, 49, .5); animation: pm-fade .6s var(--pm-ease, ease) backwards; }
.tag.amber { background: #fff4dc; color: #8a5a00; }
.dash .acard-head h2 { font-size: 17px; }
.dash .atable { border-radius: 12px; overflow: hidden; }
.dash .atable tbody tr { transition: background .2s; }
.dash .atable tbody tr:hover { background: #f8faff; }
.dash .stat { position: relative; overflow: hidden; border-radius: 18px; border-color: var(--line); transition: transform .35s var(--pm-ease, ease), box-shadow .35s; animation: pm-fade .6s var(--pm-ease, ease) backwards; }
.dash .stat:nth-child(2) { animation-delay: .06s; }
.dash .stat:nth-child(3) { animation-delay: .12s; }
.dash .stat:nth-child(4) { animation-delay: .18s; }
.dash .stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, rgba(26, 86, 232, .12), transparent 70%); }
.dash .stat:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -28px rgba(12, 63, 143, .55); }
.dash .stat b { font-family: var(--hp-serif, Georgia, serif); }
a.stat { color: inherit; text-decoration: none; }
.dash-empty { background: #fff; border: 1.5px dashed #c9d4e6; border-radius: 18px; padding: 34px; text-align: center; color: #5f6b80; }
.dash-empty .abtn { margin-top: 10px; }

/* Plan banner and quick actions on the overview */
.dash-plan { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 18px 20px; border-radius: 18px; color: #fff; background: radial-gradient(70% 120% at 100% 0%, rgba(225, 6, 0, .35), transparent 60%), linear-gradient(135deg, #071331, #0c3f8f); flex-wrap: wrap; }
.dash-plan strong { display: block; font-size: 16px; }
.dash-plan span { color: rgba(255, 255, 255, .78); font-size: 14px; }
.dash-plan.is-off { background: linear-gradient(135deg, #8a0400, #e10600); }
.dash-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dash-quick a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: #0b1a38; text-decoration: none; font-weight: 650; font-size: 14.5px; transition: transform .3s var(--pm-ease, ease), border-color .3s, box-shadow .3s; }
.dash-quick a:hover { transform: translateY(-3px); border-color: rgba(26, 86, 232, .4); box-shadow: 0 18px 36px -26px rgba(12, 63, 143, .6); }
.dash-quick svg { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: #eef3ff; fill: none; stroke: #1a56e8; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dash-quick small { font-weight: 450; color: #5f6b80; font-size: 12.5px; }

/* Cards used by offers, viewings, bookings and documents */
.dash-list { display: grid; gap: 12px; }
.dash-item { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s; }
.dash-item:hover { border-color: rgba(26, 86, 232, .3); box-shadow: 0 18px 36px -30px rgba(12, 63, 143, .6); }
.dash-item > img, .dash-item > .dash-thumb { width: 74px; height: 64px; border-radius: 12px; object-fit: cover; background: #eef3ff; display: grid; place-items: center; }
.dash-thumb svg { width: 26px; height: 26px; fill: none; stroke: #1a56e8; stroke-width: 1.8; }
.dash-item h3 { margin: 0 0 3px; font-size: 15.5px; color: #0b1a38; }
.dash-item h3 a { color: inherit; }
.dash-item p { margin: 0; font-size: 13.5px; color: #5f6b80; line-height: 1.5; }
.dash-item .dash-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-size: 13px; color: #3d4a60; }
.dash-item .dash-meta b { font-weight: 700; color: #0b1a38; }
.dash-item .dash-meta svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2; }
.dash-item h3 .tag { margin-left: 6px; vertical-align: 2px; }
.dash .abtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.dash .acard .pg-btn { margin-top: 4px; }
.dash-item .dash-side-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dash-item form { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; margin: 0; }
.dash-item form input[type=datetime-local], .dash-item form input[type=text] { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; font: inherit; font-size: 13px; }
.dash-quote { margin-top: 8px !important; padding: 8px 12px; border-left: 3px solid #1a56e8; border-radius: 0 10px 10px 0; background: #f5f8ff; color: #26324a !important; }
.dash-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: #e9eef6; }
.dash-tabs button { padding: 8px 16px; border: 0; border-radius: 9px; background: none; font: inherit; font-weight: 650; font-size: 14px; color: #5f6b80; cursor: pointer; }
.dash-tabs button[aria-selected=true] { background: #fff; color: #1a56e8; box-shadow: 0 1px 4px rgba(7, 19, 49, .14); }
.dash-tabs b { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(26, 86, 232, .12); font-size: 12px; }
[data-panel][hidden] { display: none; }

.dash-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.dash-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: #3d4a60; }
.dash-form :is(input:not([type=checkbox]), select) { width: 100%; padding: 10px 12px; border: 1.5px solid #dfe5ef; border-radius: 11px; background: #fbfcfe; font: inherit; font-size: 14px; }
.dash-form input[type=file] { padding: 8px; border-style: dashed; }
.dash-form .wide { grid-column: span 2; }
.dash-form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

.dash-notes { list-style: none; margin: 0; padding: 0; }
.dash-notes li a { display: flex; gap: 14px; align-items: flex-start; padding: 14px 6px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background .2s; }
.dash-notes li a:hover { background: #f8faff; }
.dash-notes li:last-child a { border-bottom: 0; }
.dash-notes .dot { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #eef3ff; }
.dash-notes .dot svg { width: 18px; height: 18px; fill: none; stroke: #1a56e8; stroke-width: 2; }
.dash-notes .is-new .dot { background: #1a56e8; }
.dash-notes .is-new .dot svg { stroke: #fff; }
.dash-notes strong { display: block; color: #0b1a38; }
.dash-notes p { margin: 2px 0 0; color: #5f6b80; font-size: 14px; }
.dash-notes time { margin-left: auto; flex: none; font-size: 12.5px; color: #8590a6; }

.dash-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.dash-plans label { position: relative; display: grid; gap: 4px; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: all .25s; }
.dash-plans label:hover { border-color: rgba(26, 86, 232, .5); }
.dash-plans label:has(input:checked) { border-color: #1a56e8; background: #f3f7ff; box-shadow: 0 0 0 4px rgba(26, 86, 232, .1); }
.dash-plans input { position: absolute; top: 16px; right: 16px; width: 18px !important; height: 18px; margin: 0; accent-color: #1a56e8; }
.dash-plans strong { font-size: 15px; color: #0b1a38; }
.dash-plans b { font-family: var(--hp-serif, Georgia, serif); font-size: 26px; color: #0c3f8f; }
.dash-plans small { color: #5f6b80; }
.dash-plans em { position: absolute; top: -10px; left: 16px; padding: 2px 9px; border-radius: 999px; background: #e10600; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.dash-pay { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 18px; align-items: start; }

.udash-hero {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap;
    margin: -4px 0 18px; padding: 26px 28px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #071331 0%, #0c3f8f 52%, #1a56e8 100%);
    box-shadow: 0 28px 50px -36px rgba(12, 63, 143, .9);
    animation: udash-rise .55s cubic-bezier(.2,.7,.2,1) both;
}
.udash-hero::after {
    content: ""; position: absolute; right: -50px; top: -80px; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 6, 0, .5), transparent 68%);
    animation: udash-orb 8s ease-in-out infinite;
}
.udash-hero > * { position: relative; z-index: 1; }
.udash-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.udash-hero h2 { margin: 0; font-family: var(--hp-serif, Georgia, serif); font-size: clamp(26px, 3vw, 34px); color: #fff; }
.udash-hero p { margin: 8px 0 0; max-width: 520px; color: rgba(255,255,255,.82); }
.udash-hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; background: #fff; color: #0c3f8f; font-weight: 700; text-decoration: none; }
.udash-hero-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.udash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.udash-kpi {
    display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
    text-decoration: none; color: #0b1a38; animation: udash-rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--d, 0ms);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.udash-kpi:hover { transform: translateY(-4px); border-color: rgba(26,86,232,.35); box-shadow: 0 18px 36px -28px rgba(12,63,143,.7); color: #0b1a38; }
.udash-kpi b { font-family: var(--hp-serif, Georgia, serif); font-size: 26px; color: #0c3f8f; }
.udash-kpi > span:last-child { color: #5f6b80; font-size: 13px; font-weight: 600; }
.udash-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #eef3ff; margin-bottom: 6px; }
.udash-ico svg { width: 18px; height: 18px; fill: none; stroke: #1a56e8; stroke-width: 1.8; }
.udash-attention { margin-bottom: 16px; }
.udash-attention header h2, .udash-compose h2 { margin: 0 0 10px; font-size: 15px; }
.udash-attention > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.udash-attention a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #f3c9c6; text-decoration: none; color: #0b1a38; transition: transform .25s; }
.udash-attention a:hover { transform: translateY(-2px); }
.udash-attention b { min-width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fdecef; color: #e10600; }
.udash-attention small, .udash-thread small, .udash-line small { display: block; color: #5f6b80; font-weight: 500; }
.udash-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 18px; align-items: start; }
.udash-threads { display: grid; gap: 2px; }
.udash-thread {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center;
    padding: 12px 8px; border-radius: 14px; text-decoration: none; color: #0b1a38; transition: background .2s, transform .2s;
}
.udash-thread:hover { background: #f5f8ff; transform: translateX(3px); color: #0b1a38; }
.udash-avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #1a56e8, #0c3f8f); color: #fff; font-weight: 800; flex: none; }
.udash-thread .abtn { justify-self: end; }
.udash-line { display: flex; gap: 10px; align-items: center; text-decoration: none; color: #0b1a38; padding: 8px 0; border-top: 1px solid var(--line); }
.udash-line:first-of-type { border-top: 0; }
.udash-line b { margin-left: auto; color: #0c3f8f; }
.udash-compose p { margin: 0 0 10px; color: #5f6b80; }
.udash-compose form { display: grid; gap: 10px; }
.udash-compose textarea, .udash-reply textarea { width: 100%; border: 1.5px solid #dfe5ef; border-radius: 12px; padding: 12px; font: inherit; }
.udash-compose h2, .udash-reply .afield > span { display: flex; align-items: center; gap: 8px; }
.udash-compose h2 svg, .udash-reply svg { width: 18px; height: 18px; fill: none; stroke: #1a56e8; stroke-width: 1.8; }
.udash-chat .athread { gap: 12px; }
.udash-chat .amsg { border-radius: 16px; animation: udash-rise .4s ease both; }
.udash-chat .amsg.me { background: linear-gradient(135deg, #eef3ff, #fff); }
@keyframes udash-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes udash-orb { 50% { transform: translate(-16px, 14px) scale(1.06); } }

.dash-verify-hero { margin-bottom: 18px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(135deg, #eef3ff, #fff); border: 1px solid #d9e3f7; }
.dash-verify-hero p { margin: 0; color: #3d4a60; max-width: 62ch; line-height: 1.55; }
.dash-verify { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-verify-card { display: grid; gap: 12px; padding: 20px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; }
.dash-verify-card.is-approved { border-color: #b7e0c5; background: #f5fbf7; }
.dash-verify-card.is-pending { border-color: #f0d48a; }
.dash-verify-card.is-rejected { border-color: #f3b4bc; background: #fff8f8; }
.dash-verify-card header { display: flex; gap: 12px; align-items: flex-start; }
.dash-verify-card h2 { margin: 0 0 6px; font-size: 18px; color: #0b1a38; }
.dash-verify-card p { margin: 0; color: #5f6b80; font-size: 14px; }
.dash-verify-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #eef3ff; }
.dash-verify-ico svg { width: 20px; height: 20px; fill: none; stroke: #1a56e8; stroke-width: 1.8; }
.dash-verify-file a { font-weight: 650; color: #1a56e8; }
.dash-verify-note { padding: 10px 12px; border-radius: 10px; background: #fdecef; color: #9b1230 !important; }
.dash-verify-card form { display: grid; gap: 10px; }
.dash-verify-card form label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: #3d4a60; }
.dash-verify-card form input[type=file] { padding: 8px; border: 1.5px dashed #dfe5ef; border-radius: 11px; background: #fbfcfe; }

@media (prefers-reduced-motion: reduce) {
    .udash-hero, .udash-kpi, .udash-hero::after, .udash-thread { animation: none; transition: none; }
}

.heart[data-favorite] { cursor: pointer; }
.heart.is-saved svg { fill: #c8102e; stroke: #c8102e; }
.btn.is-saved { background: #c8102e; color: #fff; border-color: #c8102e; }

@media (max-width: 1100px) {
    .udash-split { grid-template-columns: 1fr; }
    .dash-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dash-verify { grid-template-columns: 1fr; }
    .dash-pay { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .dash { grid-template-columns: minmax(0, 1fr); padding-top: 20px; gap: 18px; }
    .dash-side { position: static; min-width: 0; }
    .dash-who { margin-bottom: 10px; padding-bottom: 10px; }
    .dash-side nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .dash-side nav a { flex: none; }
    .dash-side nav::-webkit-scrollbar { display: none; }
    .dash-side form { display: none; }
}
@media (max-width: 640px) {
    .udash-thread { grid-template-columns: auto minmax(0, 1fr); }
    .udash-thread .tag, .udash-thread .abtn { grid-column: 2; justify-self: start; }
    .udash-hero { padding: 20px; }
    .dash-item { grid-template-columns: 56px minmax(0, 1fr); }
    .dash-item > img, .dash-item > .dash-thumb { width: 56px; height: 52px; }
    .dash-item .dash-side-actions { grid-column: 1 / -1; align-items: stretch; }
    .dash-item form { justify-content: flex-start; }
    .dash-form, .dash-plans { grid-template-columns: 1fr; }
    .dash-form .wide { grid-column: auto; }
}
