:root{--g:#4D694E;--mint:#F3E6C2;--ink:#2B3A2C;--mu:#5C6858;--ln:#E3D8B8;--bg:#FFF3D5;--warn:#c2410c}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.8 Vazirmatn,Tahoma,Arial,sans-serif}
header{background:var(--g);color:var(--bg);padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px}
header h1{font-size:1.15rem;margin:0}
main{max-width:860px;margin:auto;padding:16px 14px 48px}
.card{background:#fff;border:1px solid var(--ln);border-radius:14px;padding:16px;margin-bottom:14px}
h2{font-size:1.1rem;margin:0 0 10px}h3{font-size:1rem;margin:0}
label{display:block;font-size:.9rem;font-weight:bold;margin:10px 0 4px}
input,select,textarea{width:100%;font:inherit;padding:11px;border:1px solid #9D9475;border-radius:10px;background:#fff;color:var(--ink)}
textarea{min-height:80px}
.ltr{direction:ltr;text-align:left}
button{font:inherit;font-weight:bold;border:0;border-radius:10px;padding:10px 16px;background:var(--g);color:var(--bg);cursor:pointer}
button.alt{background:var(--mint);color:var(--g);border:1px solid var(--ln)}
button.danger{background:#fff;color:var(--warn);border:1px solid #f0c9b5}
button.full{width:100%;margin-top:14px}
button:disabled{opacity:.6;cursor:wait}
:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:14px;padding-bottom:2px}
.tabs button{white-space:nowrap;background:#fff;color:var(--g);border:1px solid var(--ln)}
.tabs button[aria-selected=true],.chips button[aria-pressed=true]{background:var(--g);color:var(--bg)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.full{grid-column:1/-1}
.cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.cats button{padding:12px 12px 16px;font-size:1.05rem;background:#fff;color:var(--g);border:1px solid var(--ln)}
.cat-choice{display:flex;flex-direction:column;align-items:stretch;gap:10px;overflow:hidden;position:relative;isolation:isolate;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.cat-choice:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(8,101,104,.13);border-color:#7bbdb2}
.cat-choice-art{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px;background:#e5f5f0}
.cat-choice-label{display:block;text-align:center;font-weight:850;line-height:1.5;color:#086568}
.cat-choice-land{border-color:#cce7dd}.cat-choice-apartment{border-color:#c9e2df}.cat-choice-villa{border-color:#c6e4d5}.cat-choice-other{border-color:#d2e7e2}
html[data-theme="dark"] .cat-choice{background:#201C1E;border-color:#403238}html[data-theme="dark"] .cat-choice-label{color:#9bd7c5}
.msg{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:var(--mint);overflow-wrap:anywhere}
.msg.err{background:#fff1e9}
.badge{display:inline-block;font-size:.75rem;padding:1px 9px;border-radius:99px;background:var(--mint);color:var(--g);margin-inline-start:6px}
.badge.hot{background:#ffe8d6;color:var(--warn)}
.pr{font-weight:bold;color:var(--g)}
.mu{color:var(--mu);font-size:.88rem;margin:4px 0}
.row{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.chips button{padding:4px 12px;background:#fff;color:var(--g);border:1px solid var(--ln)}
ul.pc{margin:6px 0;padding-inline-start:20px;font-size:.9rem}
.pos li::marker{content:"+ ";color:var(--g)}
.neg li::marker{content:"− ";color:var(--warn)}
.sw{display:flex;gap:6px;margin-bottom:14px}.sw button{flex:1}
@media(max-width:520px){.grid{grid-template-columns:1fr}}
.narrow{max-width:480px}.sw button[aria-selected=true]{background:var(--g);color:var(--bg)}

/* v2 modern layer */
.card{border-radius:18px;box-shadow:0 6px 20px rgba(43,58,44,.08)}
button,.btn{transition:transform .12s,background .15s}button:active,.btn:active{transform:scale(.97)}
.btn{display:inline-block;text-decoration:none;font-weight:bold;border-radius:10px;padding:8px 14px;font-size:.9rem;border:1px solid var(--ln)}
.btn.alt{background:var(--mint);color:var(--g)}
.login header{display:none}
.brand{text-align:center;margin:14px 0 18px}.brand h2{margin:0;font-size:1.4rem}.brand p{margin:0}
.logo{width:68px;height:68px;margin:0 auto 10px;border-radius:22px;background:var(--g);color:var(--bg);display:grid;place-items:center;font-size:36px;box-shadow:0 8px 20px rgba(77,105,78,.35)}
.pw{position:relative}.pw input{padding-right:72px}
.pw .eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);padding:4px 10px;background:transparent;color:var(--g);font-size:.8rem}
.dash main{padding-bottom:110px}
.dash .tabs{position:fixed;inset-inline:0;bottom:0;z-index:10;margin:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--ln);justify-content:space-around;gap:2px;overflow:visible}
.dash .tabs button{flex:1;display:flex;flex-direction:column;align-items:center;gap:0;background:transparent;border:0;color:var(--mu);font-size:.72rem;padding:4px 2px;line-height:1.5}
.dash .tabs button i{font-style:normal;font-size:1.25rem;line-height:1.4}
.dash .tabs button[aria-selected=true]{background:var(--mint);color:var(--g)}
.dash #st{position:fixed;inset-inline:12px;bottom:84px;z-index:20;margin:0;box-shadow:0 8px 24px rgba(43,58,44,.2)}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
.stat{background:var(--bg);border-radius:14px;padding:12px;text-align:center}
.stat b{display:block;font-size:1.6rem;color:var(--g);line-height:1.4}.stat span{font-size:.82rem;color:var(--mu)}
.bar{display:grid;grid-template-columns:1fr 130px;gap:8px;margin-bottom:12px}
.pr{font-size:1.3rem}
.card.hot{border-inline-start:5px solid var(--warn)}
.meta{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.88rem;color:var(--mu);margin:6px 0}
.badge[data-c="زمین"]{background:#efe3b8}.badge[data-c="آپارتمان"]{background:#dbe7d5}.badge[data-c="ویلایی"]{background:#e7dccb}.badge[data-c="پیش‌فروش"]{background:#d9e4e8}
.empty{text-align:center;padding:28px 12px;border:1px dashed #cdbf95;border-radius:16px}
@media(prefers-reduced-motion:reduce){button,.btn{transition:none}}

/* hamburger drawer */
.dash header{justify-content:flex-start;gap:12px;position:sticky;top:0;z-index:25;align-self:start;isolation:isolate;scroll-margin-top:0}
.burger{background:transparent;padding:8px;display:grid;gap:5px;border-radius:10px}
.burger span{display:block;width:24px;height:2.5px;background:var(--bg);border-radius:2px}
.dash main{padding-bottom:40px}
.dash #st{bottom:20px}
#ov{position:fixed;inset:0;background:rgba(43,58,44,.45);z-index:29;opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
.menu-open #ov{opacity:1;visibility:visible;transition-delay:0s}
.dash #menu{position:fixed;top:0;bottom:0;right:0;width:min(80vw,310px);background:#fff;z-index:30;display:flex;flex-direction:column;gap:6px;padding:14px 12px calc(14px + env(safe-area-inset-bottom));box-shadow:-8px 0 30px rgba(43,58,44,.2);transform:translateX(100%);visibility:hidden;overflow-y:auto;transition:transform .25s,visibility 0s .25s}
.menu-open #menu{transform:none;visibility:visible;transition-delay:0s}
.menu-open{overflow:hidden}
.mhead{display:flex;justify-content:space-between;align-items:center;padding:4px 6px 12px;border-bottom:1px solid var(--ln);margin-bottom:6px}
.mhead b{font-size:1.1rem;color:var(--g)}.mhead button{padding:4px 10px}
#mtabs{display:flex;flex-direction:column;gap:6px}
.dash:has(#app[hidden]) #mtabs{display:none}
#menu #mtabs button,#menu .out{display:flex;align-items:center;gap:12px;width:100%;text-align:start;background:transparent;color:var(--ink);border:0;padding:12px;border-radius:12px;font-size:1rem}
#menu i{font-style:normal;font-size:1.25rem}
#menu #mtabs button[aria-selected=true]{background:var(--mint);color:var(--g)}
#menu .out{margin-top:auto;color:var(--warn);border-top:1px solid var(--ln);border-radius:0 0 12px 12px;padding-top:16px}
@media(prefers-reduced-motion:reduce){#menu,#ov{transition:none}}

/* vector icons */
.ic{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.22em;flex:none}
.meta span{display:inline-flex;align-items:center;gap:5px}.meta .ic{color:var(--g)}
.btn .ic,button .ic{margin-inline-end:3px}
#menu i{display:grid;place-items:center}#menu .ic{width:24px;height:24px;margin:0;color:var(--g)}#menu .out .ic{color:var(--warn)}
.mb{display:flex;align-items:center;gap:10px}.mb img{border-radius:8px}
img.logo{display:block;background:none;box-shadow:0 8px 20px rgba(77,105,78,.35)}
.mhead button .ic{margin:0}

/* Property editing and image gallery */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin-top:14px}
.photo-grid a{display:block;border-radius:12px;overflow:hidden;border:1px solid var(--line,#e6e3d9);aspect-ratio:1/1}
.photo-grid img{width:100%;height:100%;object-fit:cover;display:block}
input[type=file]{max-width:100%;padding:10px;background:#fffdf7;border:1px dashed #c9c8b8;border-radius:12px}


/* Kadivar global Burgundy/Night theme */
.theme-toggle{width:44px;height:44px;min-width:44px;padding:8px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.14);color:inherit;border:1px solid currentColor;flex:none}
.theme-toggle svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-six{font-family:Arial,sans-serif;font-weight:900;font-size:28px;line-height:1}
html[data-theme="dark"]{color-scheme:dark;--g:#93032E;--mint:#252123;--ink:#F5EDEF;--mu:#D0C1C6;--ln:#403238;--bg:#151515;--warn:#ff8b70}
html[data-theme="dark"] body{background:#151515;color:#F5EDEF}
html[data-theme="dark"] header{background:#93032E;color:#fff}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .stat,html[data-theme="dark"] .box{background:#201c1e;color:#F5EDEF;border-color:#403238}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#242022;color:#F5EDEF;border-color:#55434a}
html[data-theme="dark"] input[type=file]{background:#201c1e}
html[data-theme="dark"] button.alt{background:#2b2226;color:#f3dce4;border-color:#60404b}
html[data-theme="dark"] .tabs button{background:#201c1e;color:#f3dce4;border-color:#403238}
html[data-theme="dark"] #menu{background:#1b191a;color:#F5EDEF;border-color:#403238}
html[data-theme="dark"] #menu button:not(.out){color:#F5EDEF}
html[data-theme="dark"] #menu .ic,html[data-theme="dark"] .meta .ic{color:#d94b73}
html[data-theme="dark"] .msg{background:#302126;color:#ffe8ee;border-color:#69404e}
html[data-theme="dark"] a{color:#f27b9b}
html[data-theme="dark"] table th,html[data-theme="dark"] table td{border-color:#403238}


/* Profile page polish */
.profile-hero{display:flex;align-items:center;gap:16px;padding:22px 24px;margin-bottom:18px;border-radius:20px;background:linear-gradient(120deg,rgba(147,3,46,.12),rgba(147,3,46,.025));border:1px solid var(--ln)}
.profile-hero h2{margin:0 0 6px}
.profile-hero p{margin:0 0 10px}
.profile-avatar{width:66px;height:66px;display:grid;place-items:center;border-radius:20px;background:#93032E;color:#fff;font-size:28px;font-weight:800;flex:none;box-shadow:0 8px 22px #93032e25}
.profile-role{display:inline-flex;padding:5px 12px;border-radius:999px;background:rgba(147,3,46,.12);color:var(--g);font-size:.88rem;font-weight:700}
.profile-panel{padding:22px;border:1px solid var(--ln);border-radius:20px;background:var(--card,#fff);box-shadow:0 8px 28px rgba(30,20,20,.045)}
.profile-panel h3{margin-top:0;margin-bottom:20px}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.profile-grid .full{grid-column:1/-1}
.profile-readonly{min-height:44px;display:flex;align-items:center;padding:10px 13px;border:1px solid var(--ln);border-radius:12px;background:rgba(120,120,120,.06);overflow-wrap:anywhere}
.profile-panel input{width:100%;min-height:46px;border-radius:12px}
.profile-save{margin-top:16px;min-width:170px}
.profile-hint,.profile-status{margin-bottom:0;margin-top:16px}
.profile-stat{cursor:pointer;text-align:center;font:inherit;transition:transform .16s ease,border-color .16s ease}
.profile-stat:hover{transform:translateY(-2px);border-color:#93032E}
@media(max-width:600px){.profile-hero{padding:17px;gap:12px}.profile-avatar{width:54px;height:54px;border-radius:16px}.profile-grid{grid-template-columns:1fr}.profile-grid .full{grid-column:auto}.profile-panel{padding:17px}}
html[data-theme="dark"] .profile-hero{background:linear-gradient(120deg,#93032e2b,#201c1e);border-color:#403238}
html[data-theme="dark"] .profile-panel{background:#201c1e;border-color:#403238}
html[data-theme="dark"] .profile-role{color:#ff9bb6}

/* Admin management dashboard */
.admin-hero{margin-top:8px}.admin-hero .profile-avatar{display:grid;place-items:center;font-size:1.7rem;font-weight:900;background:var(--g);color:#fff}.admin-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin:18px 0}.admin-stats .stat{border:1px solid var(--ln);text-align:right;padding:18px;min-height:92px}.admin-stats .stat b{font-size:1.8rem}.admin-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 12px}.admin-section-head h2{margin:0}@media(max-width:700px){.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Private notes notebook */
.note-form{margin-top:10px}.note-pin-label{display:flex;align-items:center;gap:8px;font-weight:500}.note-pin-label input{flex:none}.note-content{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}.note-card h3{margin-bottom:8px}.note-card .row{margin-top:12px}


/* Notes page layout fix: keep the notebook within the viewport */
#notes{min-width:0;width:100%;max-width:100%;overflow-wrap:anywhere}
#notes .card,#notes .note-form,#notes .note-card{min-width:0;max-width:100%}
#notes .bar{grid-template-columns:minmax(0,1fr) minmax(110px,130px);min-width:0}
#notes .bar input,#notes .bar select{min-width:0;width:100%}
#notes .note-form .row,#notes .note-card .row{min-width:0}
#notes .note-card .row button{max-width:100%;white-space:normal}
#notes .note-content{overflow-wrap:anywhere;word-break:normal}
@media(max-width:520px){
  #notes .bar{grid-template-columns:minmax(0,1fr);gap:8px}
  #notes .note-form{grid-template-columns:minmax(0,1fr)}
  #notes .note-form>.full{grid-column:1}
  #notes .note-card .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  #notes .note-card .row button{width:100%;padding:8px 10px;font-size:.9rem}
  #notes .note-card .row button:last-child{grid-column:1/-1}
}

/* Theme-aware logo and drawer theme control */
.logo-mark{display:block;flex:none;overflow:visible;box-shadow:0 8px 20px rgba(77,105,78,.22);border-radius:24%;background:transparent}
.logo-mark .logo-bg{fill:var(--g)}
.logo-mark .logo-lines{stroke:var(--bg)}
.logo-mark .logo-door{fill:var(--bg)}
.logo-mark-small{width:30px;height:30px;border-radius:8px;box-shadow:none}
.logo-mark.logo{width:68px;height:68px;margin:0 auto 10px;box-shadow:0 8px 20px color-mix(in srgb,var(--g) 28%,transparent)}
#menu .menu-theme-toggle{width:100%;min-width:0;height:auto;min-height:46px;border-radius:12px;justify-content:flex-start;gap:12px;padding:10px 12px;background:transparent;color:var(--ink);border:1px solid var(--ln);font-size:1rem}
#menu .menu-theme-toggle::before{content:'◐';display:inline-grid;place-items:center;width:24px;height:24px;font-size:22px;line-height:1;color:var(--g)}
#menu .menu-theme-toggle .theme-toggle-label{display:inline}
html[data-theme="dark"] .logo-mark{box-shadow:0 8px 20px rgba(147,3,46,.24)}


/* Kadivar logo replacement and polished theme transition */
.logo-image{object-fit:contain;background:transparent;filter:none;transition:filter .65s cubic-bezier(.2,.75,.25,1),transform .65s cubic-bezier(.2,.75,.25,1),opacity .35s ease;box-shadow:none!important;border-radius:0!important}
.logo-mark.logo-image{width:82px;height:82px;margin:0 auto 10px}
.logo-mark-small.logo-image{width:36px;height:36px;object-fit:contain}
html[data-theme="dark"] .logo-image{filter:hue-rotate(150deg) saturate(1.15) brightness(.9)}
html.theme-changing body{transition:background-color .55s ease,color .55s ease}
html.theme-changing header,html.theme-changing #menu,html.theme-changing .card,html.theme-changing .panel,html.theme-changing .stat,html.theme-changing .box,html.theme-changing button,html.theme-changing input,html.theme-changing select,html.theme-changing textarea{transition:background-color .55s ease,color .55s ease,border-color .55s ease,box-shadow .55s ease}
html.theme-changing .logo-image{animation:kadivar-theme-logo .7s cubic-bezier(.2,.8,.2,1)}
@keyframes kadivar-theme-logo{0%{transform:scale(1) rotate(0);opacity:1}38%{transform:scale(.88) rotate(-5deg);opacity:.78}72%{transform:scale(1.06) rotate(2deg);opacity:1}100%{transform:scale(1) rotate(0);opacity:1}}
@media(prefers-reduced-motion:reduce){html.theme-changing body,html.theme-changing header,html.theme-changing #menu,html.theme-changing .card,html.theme-changing .panel,html.theme-changing .stat,html.theme-changing .box,html.theme-changing button,html.theme-changing input,html.theme-changing select,html.theme-changing textarea,.logo-image{transition:none!important;animation:none!important}}

/* v9 — luxury, balanced Kadivar visual polish (CSS-only; preserves existing behavior) */
:root{--g:#075E63;--mint:#E4F0EC;--ink:#183536;--mu:#647777;--ln:#D5E3DF;--bg:#F5F7F4;--warn:#B4533C;--card:#FFFFFF}
body{background:radial-gradient(ellipse at top right,rgba(7,94,99,.055),transparent 36%),var(--bg);letter-spacing:-.01em}
header{background:linear-gradient(115deg,#064A50,#087078);box-shadow:0 5px 22px rgba(6,74,80,.15);padding:15px max(16px,calc((100vw - 1040px)/2));}
header h1{font-weight:850;letter-spacing:-.035em}
main{max-width:1040px;padding:22px 18px 52px}
.card,.profile-panel{background:var(--card);border:1px solid rgba(213,227,223,.9);border-radius:20px;padding:20px;margin-bottom:16px;box-shadow:0 8px 28px rgba(24,53,54,.055)}
h2{font-size:1.12rem;font-weight:850;letter-spacing:-.025em;margin-bottom:14px}
input,select,textarea{border-color:#D0DEDA;background:#FCFDFC;border-radius:12px;transition:border-color .18s,box-shadow .18s,background-color .18s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--g);box-shadow:0 0 0 3px rgba(7,94,99,.12)}
button,.btn{border-radius:12px;font-weight:750;transition:transform .16s ease,background-color .2s,border-color .2s,box-shadow .2s,color .2s}
button:not(.burger):not(.theme-toggle):hover,.btn:hover{box-shadow:0 5px 14px rgba(7,94,99,.13);filter:brightness(1.025)}
button:not(.burger):not(.theme-toggle):active,.btn:active{transform:translateY(1px) scale(.985)}
button:not(.alt):not(.danger):not(.burger):not(.theme-toggle){box-shadow:0 4px 12px rgba(7,94,99,.12)}
button.alt,.btn.alt{background:#E8F1EE;color:#075E63;border-color:#D3E4DF}
.tabs{gap:8px;padding:3px 2px 7px}
.tabs button{border-radius:12px;padding:9px 14px;background:#fff}
.tabs button[aria-selected=true],.chips button[aria-pressed=true]{box-shadow:0 4px 12px rgba(7,94,99,.14)}
.dash header{background:linear-gradient(115deg,#064A50,#087078)}
.burger{box-shadow:none!important}
.dash #menu{background:#FCFDFC;border-inline-start:1px solid var(--ln);box-shadow:-12px 0 38px rgba(14,44,45,.15)}
.mhead{padding-bottom:15px}
.mhead b{font-weight:850;letter-spacing:-.02em}
#menu #mtabs button,#menu .out{border-radius:13px;transition:background-color .18s,color .18s,transform .18s}
#menu #mtabs button:hover{background:#EEF5F2}
#menu #mtabs button[aria-selected=true]{background:linear-gradient(100deg,#DDECE7,#EFF6F3);color:#075E63}
#menu #mtabs button[aria-selected=true] .ic{color:#075E63}
.stats{gap:12px}
.stat{border:1px solid rgba(213,227,223,.9);background:linear-gradient(145deg,#F5FAF8,#EAF3F0);border-radius:17px;padding:15px}
.stat b{color:#075E63;font-size:1.75rem;font-weight:900}
.stat span{color:#647777}
.pr{color:#075E63}
.badge{background:#E6F1ED;color:#075E63;font-weight:750;padding:3px 10px}
.empty{background:rgba(255,255,255,.65);border-color:#B9D2CC}
.brand{margin:22px 0 24px}
.brand h2{font-size:1.55rem;font-weight:900;letter-spacing:-.04em}
.brand p{margin-top:4px}
.logo-image{filter:drop-shadow(0 8px 13px rgba(7,94,99,.13));}
.logo-mark.logo-image{width:94px;height:94px}
.logo-mark-small.logo-image{width:38px;height:38px}
.login main{padding-top:30px}
.login .card{padding:22px}
.login .sw{background:#EEF4F1;border-radius:14px;padding:4px;gap:5px}
.login .sw button{flex:1;border-radius:10px;box-shadow:none!important}
.login .sw button[aria-selected=true]{background:#075E63;color:#fff}
.login .sw button[aria-selected=false]{background:transparent;color:#54706F}
#notes .note-card{border-radius:18px}
#notes .note-card h3{font-weight:850}
#notes .note-form{border-radius:16px}
html[data-theme="dark"]{--g:#93032E;--mint:#292226;--ink:#F5EDEF;--mu:#CDBFC4;--ln:#44343A;--bg:#151515;--card:#201C1E}
html[data-theme="dark"] body{background:radial-gradient(ellipse at top right,rgba(147,3,46,.12),transparent 38%),#151515}
html[data-theme="dark"] header{background:linear-gradient(115deg,#690020,#93032E)}
html[data-theme="dark"] .card,html[data-theme="dark"] .profile-panel{background:#201C1E;border-color:#403238;box-shadow:0 8px 28px rgba(0,0,0,.18)}
html[data-theme="dark"] .stat{background:linear-gradient(145deg,#292226,#201C1E);border-color:#403238}
html[data-theme="dark"] .stat b,html[data-theme="dark"] .pr{color:#F27B9B}
html[data-theme="dark"] .stat span{color:#D0C1C6}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#242022;border-color:#55434A}
html[data-theme="dark"] button.alt,html[data-theme="dark"] .btn.alt{background:#2B2226;color:#F3DCE4;border-color:#60404B}
html[data-theme="dark"] .empty{background:rgba(32,28,30,.65);border-color:#60404B}
html[data-theme="dark"] #menu #mtabs button:hover{background:#292226}
html[data-theme="dark"] #menu #mtabs button[aria-selected=true]{background:linear-gradient(100deg,#39232B,#292226);color:#F27B9B}
html[data-theme="dark"] #menu #mtabs button[aria-selected=true] .ic{color:#F27B9B}
html[data-theme="dark"] .login .sw{background:#292226}
html[data-theme="dark"] .login .sw button[aria-selected=true]{background:#93032E;color:#fff}
@media(max-width:600px){main{padding:14px 12px 42px}.card,.profile-panel{padding:16px;border-radius:17px}.stats{gap:9px}.stat{padding:12px}.stat b{font-size:1.5rem}.brand{margin:16px 0 20px}.logo-mark.logo-image{width:82px;height:82px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v10 — real home dashboard: data-backed overview and quick actions */
#dashboard{display:block;min-width:0;max-width:100%;}
#dashboard[hidden]{display:none!important}
.dash-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;overflow:hidden;padding:26px 28px;margin-bottom:18px;border-radius:24px;background:linear-gradient(120deg,#064A50,#087078);color:#fff;box-shadow:0 14px 34px rgba(6,74,80,.17)}
.dash-hero:after{content:"";position:absolute;width:240px;height:240px;border:1px solid rgba(255,255,255,.12);border-radius:50%;inset-inline-start:-72px;top:-105px;box-shadow:0 0 0 25px rgba(255,255,255,.035),0 0 0 52px rgba(255,255,255,.025)}
.dash-hero-copy{position:relative;z-index:1;min-width:0}.dash-eyebrow{display:inline-block;font-size:.78rem;letter-spacing:.02em;color:#C7E4DF;background:rgba(255,255,255,.1);padding:4px 10px;border-radius:99px;margin-bottom:8px}
.dash-hero h2{font-size:clamp(1.35rem,3vw,1.9rem);margin:0 0 5px;font-weight:900}.dash-hero p{color:#D9EEEA;margin:0 0 17px;font-size:.92rem}.dash-hero-mark{flex:none;position:relative;z-index:1;width:104px;height:104px;border-radius:24px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.18);display:grid;place-items:center}.dash-hero-mark img{width:88px;height:88px;object-fit:contain;filter:drop-shadow(0 5px 12px rgba(0,0,0,.15))}
.dash-hero-actions{display:flex;gap:9px;flex-wrap:wrap}.dash-hero-actions button{background:#fff;color:#075E63;box-shadow:none!important}.dash-hero-actions button.alt{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.3)}
.dashboard-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.dashboard-stat{min-width:0;display:flex;align-items:center;gap:12px;text-align:right;padding:16px 14px;background:var(--card);color:var(--ink);border:1px solid var(--ln);border-radius:18px;box-shadow:0 5px 18px rgba(24,53,54,.035)}.dashboard-stat-symbol{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:14px;background:var(--mint);color:var(--g);font-size:1.45rem}.dashboard-stat-copy{display:flex;flex-direction:column;min-width:0;flex:1}.dashboard-stat-copy small{font-size:.78rem;color:var(--mu);white-space:nowrap}.dashboard-stat-copy b{font-size:1.7rem;line-height:1.4;font-weight:900;color:var(--g)}.dashboard-stat-copy em{font-style:normal;color:var(--mu);font-size:.7rem;white-space:nowrap}.dashboard-stat-arrow{align-self:flex-start;color:var(--mu);font-size:1rem}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.4fr) minmax(230px,.9fr);gap:14px;align-items:start}.dashboard-panel{min-width:0;padding:18px;background:var(--card);border:1px solid var(--ln);border-radius:20px;box-shadow:0 5px 20px rgba(24,53,54,.035)}.dash-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.dash-section-title h3,.dashboard-panel h3{margin:0;font-size:1rem;font-weight:850}.dash-section-title .mu{margin-top:2px}.dash-mini-total{font-size:.78rem;color:var(--g);background:var(--mint);padding:4px 9px;border-radius:99px;white-space:nowrap}.category-bars{display:grid;gap:17px}.category-bar-row{display:grid;grid-template-columns:70px minmax(30px,1fr) 28px;align-items:center;gap:9px;padding:0;background:transparent;color:var(--ink);text-align:start;box-shadow:none!important}.category-bar-label{font-size:.82rem}.category-bar-row>b{font-size:.83rem;text-align:end}.category-track{height:8px;border-radius:99px;background:var(--bg);overflow:hidden}.category-fill{display:block;height:100%;min-width:0;border-radius:99px;background:linear-gradient(90deg,var(--g),color-mix(in srgb,var(--g) 65%,#A7D3C7));transition:width .5s ease}
.dashboard-side{display:grid;gap:14px;min-width:0}.urgent-panel{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:10px;align-items:center}.urgent-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#FFF0E7;color:#B4533C;font-size:1.5rem}.urgent-panel h3{font-size:.93rem}.urgent-number{font-size:1.55rem;color:var(--g)}.urgent-panel .mu{font-size:.75rem}.urgent-panel button{grid-column:1/-1;width:100%}.quick-panel{padding-bottom:8px}.quick-link{display:flex;align-items:center;gap:10px;width:100%;padding:10px 0;background:transparent;color:var(--ink);text-align:start;border-radius:0;border-bottom:1px solid var(--ln);box-shadow:none!important}.quick-link:last-child{border-bottom:0}.quick-link>span:first-child{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:12px;background:var(--mint);color:var(--g);font-size:1.2rem}.quick-link>span:last-child{display:flex;flex-direction:column;min-width:0}.quick-link b{font-size:.83rem}.quick-link small{font-size:.72rem;color:var(--mu)}
.recent-property-list{display:grid;gap:8px}.recent-property{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:11px 10px;text-align:start;color:var(--ink);background:var(--bg);border:1px solid transparent;box-shadow:none!important}.recent-property:hover{border-color:var(--ln)}.recent-property-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:13px;background:var(--mint);color:var(--g);font-size:1.35rem}.recent-property-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.recent-property-info b{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-property-info small{font-size:.72rem;color:var(--mu);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-property-price{font-size:.76rem;font-weight:800;color:var(--g);white-space:nowrap;max-width:34%;overflow:hidden;text-overflow:ellipsis}.dash-empty{padding:22px 10px}.dash-empty button{margin-top:10px}.dashboard-panel .empty{border-color:var(--ln)}
html[data-theme="dark"] .dash-hero{background:linear-gradient(120deg,#4C0019,#93032E);box-shadow:0 14px 34px rgba(0,0,0,.18)}html[data-theme="dark"] .dash-hero-eyebrow{color:#F3DCE4}html[data-theme="dark"] .dashboard-stat{background:#201C1E;border-color:#403238;box-shadow:0 5px 18px rgba(0,0,0,.12)}html[data-theme="dark"] .dashboard-stat-symbol,html[data-theme="dark"] .dash-mini-total,html[data-theme="dark"] .quick-link>span:first-child,html[data-theme="dark"] .recent-property-icon{background:#39232B;color:#F27B9B}html[data-theme="dark"] .dashboard-stat-copy b,html[data-theme="dark"] .urgent-number,html[data-theme="dark"] .recent-property-price{color:#F27B9B}html[data-theme="dark"] .dashboard-panel{background:#201C1E;border-color:#403238;box-shadow:0 5px 20px rgba(0,0,0,.12)}html[data-theme="dark"] .category-track{background:#30262A}html[data-theme="dark"] .recent-property{background:#292226;color:#F5EDEF}html[data-theme="dark"] .urgent-icon{background:#39232B;color:#F3A1B6}html[data-theme="dark"] .dash-hero-actions button{background:#F5EDEF;color:#690020}html[data-theme="dark"] .dash-hero-actions button.alt{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.24)}
@media(max-width:1000px){.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-side{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dash-hero{padding:21px 18px;border-radius:20px}.dash-hero-mark{width:68px;height:68px;border-radius:18px}.dash-hero-mark img{width:60px;height:60px}.dash-hero p{font-size:.82rem}.dash-hero-actions button{font-size:.82rem;padding:9px 11px}.dashboard-stats{gap:9px}.dashboard-stat{gap:9px;padding:12px 10px;border-radius:16px}.dashboard-stat-symbol{width:35px;height:35px;border-radius:11px;font-size:1.2rem}.dashboard-stat-copy small{font-size:.72rem}.dashboard-stat-copy b{font-size:1.45rem}.dashboard-stat-copy em{font-size:.65rem}.dashboard-grid{grid-template-columns:minmax(0,1fr);gap:12px}.dashboard-side{grid-column:auto;grid-template-columns:minmax(0,1fr)}.dashboard-panel{padding:15px;border-radius:17px}.recent-property-price{font-size:.7rem;max-width:37%}}
@media(max-width:370px){.dash-hero-mark{display:none}.dashboard-stat{align-items:flex-start;flex-wrap:wrap}.dashboard-stat-copy{flex-basis:calc(100% - 48px)}.dashboard-stat-copy em{white-space:normal}.category-bar-row{grid-template-columns:64px minmax(25px,1fr) 24px;gap:6px}}

/* v11: robust mobile layout for the notebook editor and pin checkbox */
#notes .note-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;box-sizing:border-box;align-items:start}
#notes .note-form>h2.full,
#notes .note-form>div.full{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box}
#notes .note-form>div:not(.full){min-width:0;max-width:100%;box-sizing:border-box}
#notes .note-form textarea#note-content{display:block;width:100%;max-width:100%;min-width:0;min-height:180px;box-sizing:border-box;writing-mode:horizontal-tb;direction:rtl;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical}
#notes .note-pin-label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px;width:100%;min-width:0;white-space:normal;line-height:1.7;cursor:pointer;box-sizing:border-box}
#notes .note-pin-label input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;position:static!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;margin:0!important;padding:0!important;flex:0 0 20px!important;accent-color:var(--g);cursor:pointer}
#notes .note-pin-label{font-size:.95rem}
@media(max-width:700px){
  #notes .note-form{grid-template-columns:minmax(0,1fr)}
  #notes .note-form>h2.full,#notes .note-form>div.full{grid-column:1!important}
  #notes .note-form>div:not(.full){grid-column:1;min-width:0}
  #notes .note-form textarea#note-content{min-height:170px}
}

/* v12 — subtle premium micro-interactions across the whole interface */
:root{--motion-fast:160ms;--motion-base:240ms;--motion-slow:380ms;--motion-ease:cubic-bezier(.2,.75,.25,1)}
html{scroll-behavior:smooth}
body{animation:ui-page-in .42s var(--motion-ease) both}
button,.btn,a[role="button"],input[type="submit"],.quick-link,.recent-property,#menu #mtabs button{transition:transform var(--motion-fast) var(--motion-ease),background-color var(--motion-base) ease,color var(--motion-base) ease,border-color var(--motion-base) ease,box-shadow var(--motion-base) ease,opacity var(--motion-fast) ease}
button:not(:disabled):hover,.btn:not(:disabled):hover,input[type="submit"]:not(:disabled):hover{transform:translateY(-2px);filter:saturate(1.04)}
button:not(:disabled):active,.btn:not(:disabled):active,input[type="submit"]:not(:disabled):active{transform:translateY(0) scale(.985)}
button:disabled,.btn:disabled{cursor:not-allowed;opacity:.58}
:where(button,.btn,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--g) 58%,transparent);outline-offset:3px}
.card,.profile-panel,.dashboard-stat,.dashboard-panel,#notes .note-card,.stat,.empty{transition:transform var(--motion-base) var(--motion-ease),box-shadow var(--motion-base) ease,border-color var(--motion-base) ease,background-color var(--motion-base) ease}
.card:hover,.profile-panel:hover,.dashboard-stat:hover,.dashboard-panel:hover,#notes .note-card:hover,.stat:hover{box-shadow:0 12px 30px rgba(20,45,45,.075)}
html[data-theme="dark"] .card:hover,html[data-theme="dark"] .profile-panel:hover,html[data-theme="dark"] .dashboard-stat:hover,html[data-theme="dark"] .dashboard-panel:hover,html[data-theme="dark"] #notes .note-card:hover,html[data-theme="dark"] .stat:hover{box-shadow:0 12px 30px rgba(0,0,0,.22)}
input,select,textarea{transition:border-color var(--motion-base) ease,box-shadow var(--motion-base) ease,background-color var(--motion-base) ease}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 4px color-mix(in srgb,var(--g) 12%,transparent)}
img.logo-image,.logo-mark img,.dash-hero-mark img{transition:transform var(--motion-slow) var(--motion-ease),filter var(--motion-slow) ease}
img.logo-image:hover,.logo-mark img:hover,.dash-hero-mark img:hover{transform:scale(1.035)}
#menu #mtabs button:hover,.quick-link:hover,.recent-property:hover{transform:translateX(-2px)}
.category-fill{transition:width .65s var(--motion-ease)}
#dashboard:not([hidden]),main>section:not([hidden]),#notes:not([hidden]){animation:ui-section-in .36s var(--motion-ease) both}
.dash-hero{animation:ui-hero-in .48s var(--motion-ease) both}
.dashboard-stat:nth-child(1){animation-delay:35ms}.dashboard-stat:nth-child(2){animation-delay:75ms}.dashboard-stat:nth-child(3){animation-delay:115ms}.dashboard-stat:nth-child(4){animation-delay:155ms}
.dashboard-panel,.dashboard-side>.card{animation:ui-section-in .42s var(--motion-ease) both}
.dashboard-grid>.dashboard-panel:nth-child(2){animation-delay:55ms}.dashboard-grid>.dashboard-panel:nth-child(3){animation-delay:95ms}
#menu{transition:transform var(--motion-base) var(--motion-ease),opacity var(--motion-base) ease,visibility var(--motion-base) ease}
::selection{background:color-mix(in srgb,var(--g) 22%,transparent)}
@keyframes ui-page-in{from{opacity:.72}to{opacity:1}}
@keyframes ui-section-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes ui-hero-in{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(hover:none){.card:hover,.profile-panel:hover,.dashboard-stat:hover,.dashboard-panel:hover,#notes .note-card:hover,.stat:hover{box-shadow:initial}.logo-image:hover,.logo-mark img:hover,.dash-hero-mark img:hover{transform:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body,#dashboard:not([hidden]),main>section:not([hidden]),#notes:not([hidden]),.dash-hero,.dashboard-stat,.dashboard-panel,.dashboard-side>.card{animation:none!important}button,.btn,a[role="button"],input,select,textarea,.card,.profile-panel,.dashboard-stat,.dashboard-panel,#notes .note-card,.stat,.empty{transition:none!important}}


/* Drawer footer credit: compact, subtle and theme-aware */
#menu .menu-credit{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:8px;padding:12px 8px calc(2px + env(safe-area-inset-bottom));border-top:1px solid var(--ln);color:var(--muted);flex:none}
#menu .menu-credit img{display:block;width:38px;height:38px;object-fit:contain;flex:none;border-radius:9px;background:#000;box-shadow:0 3px 10px rgba(0,0,0,.14)}
#menu .menu-credit-copy{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;font-size:.78rem;line-height:1.5;white-space:nowrap}
#menu .menu-credit-copy span{color:var(--ink);font-weight:600}
#menu .menu-credit-copy bdi{font-weight:850;letter-spacing:.025em}
#menu .menu-credit-copy small{font-size:.64rem;line-height:1.2;letter-spacing:.12em;color:var(--muted);opacity:.8}
html[data-theme="dark"] #menu .menu-credit img{box-shadow:0 3px 12px rgba(147,3,46,.24)}
@media(max-height:620px){#menu .menu-credit{padding-top:8px}#menu .menu-credit img{width:30px;height:30px}}

/* Header: Jalali date and verified public gold quote */
.dash header{align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.dash .header-brand{display:flex;align-items:center;gap:12px;min-width:0}
.header-market{display:flex;align-items:center;gap:10px;min-width:0}
.header-date,.header-gold{display:flex;flex-direction:column;gap:2px;min-width:0;padding:7px 11px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(255,255,255,.09);color:#fff}
.header-market .market-label{font-size:.68rem;opacity:.82;white-space:nowrap}
.header-market strong{font-size:.84rem;font-weight:800;white-space:nowrap}
.header-gold{display:grid;grid-template-columns:auto auto;column-gap:9px;align-items:center}
.header-gold .market-label{grid-column:1/-1}
.header-gold a{font-size:.68rem;color:inherit;text-decoration:underline;opacity:.9}
.header-gold small{font-size:.62rem;opacity:.8;grid-column:1/-1}
@media(max-width:620px){.dash header{padding:10px 12px;gap:8px}.dash .header-brand{width:100%}.header-market{width:100%;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.header-date,.header-gold{padding:6px 9px}.header-market strong{font-size:.78rem;white-space:normal}.header-market .market-label{font-size:.64rem}}

/* v18: make the Jalali date and gold quote cards equal and aligned */
.header-market{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:10px;flex:1;max-width:660px}
.header-date,.header-gold{box-sizing:border-box;width:100%;min-width:0;height:104px;min-height:104px;padding:10px 12px;align-content:center;justify-content:center;}
.header-date{display:flex;}
.header-date strong,.header-gold strong{font-size:.84rem;line-height:1.55;font-weight:800;white-space:normal;overflow-wrap:anywhere}
.header-gold{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;column-gap:8px;row-gap:2px;align-items:center}
.header-gold .market-label{grid-column:1/-1}
.header-gold strong{grid-column:1;min-width:0}
.header-gold a{grid-column:2;white-space:nowrap}
.header-gold small{grid-column:1/-1;min-height:1em;line-height:1.25}
@media(max-width:620px){
  .header-market{width:100%;max-width:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .header-date,.header-gold{height:104px;min-height:104px;padding:8px 9px}
  .header-market .market-label{font-size:.64rem;line-height:1.4}
  .header-date strong,.header-gold strong{font-size:.76rem;line-height:1.55}
  .header-gold{column-gap:5px}
  .header-gold a{font-size:.62rem}
  .header-gold small{font-size:.58rem}
}

/* Text-first Instagram story maker */
.story-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.story-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin-bottom:18px}.story-check{display:flex;align-items:center;gap:8px;font-weight:500}.story-check input{width:18px;height:18px;accent-color:var(--g)}.story-layout{display:grid;grid-template-columns:minmax(220px,360px) minmax(220px,1fr);gap:22px;align-items:start}.story-preview-wrap{width:100%;max-width:360px;margin:0 auto}.story-preview{position:relative;overflow:hidden;isolation:isolate;aspect-ratio:9/16;border-radius:22px;padding:7% 7.5%;display:flex;flex-direction:column;align-items:center;text-align:center;color:#fff;box-shadow:0 12px 34px rgba(0,0,0,.18);background:linear-gradient(150deg,#063f3d,#0c7167 58%,#063f3d)}.story-preview:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.13;background:repeating-linear-gradient(135deg,transparent 0 34px,#fff 35px 36px,transparent 37px 72px)}.story-preview:after{content:"";position:absolute;inset:3%;border:1px solid rgba(255,255,255,.65);pointer-events:none}.story-blue{background:linear-gradient(150deg,#102f43,#315a70 58%,#102f43)}.story-red{background:linear-gradient(150deg,#481b24,#8b2837 58%,#481b24)}.story-brand{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:clamp(10px,2.8vw,17px);font-weight:700;z-index:1}.story-brand img{width:clamp(38px,12vw,76px);height:clamp(38px,12vw,76px);object-fit:contain;border-radius:14px}.story-kicker{margin-top:12%;font-size:clamp(9px,2.5vw,15px);color:#d8eee5}.story-headline{font-size:clamp(17px,5.2vw,31px);line-height:1.65;overflow-wrap:anywhere;margin:4% 0 5%;max-width:100%}.story-rule{height:2px;width:58%;background:rgba(255,255,255,.72);flex:none;margin-bottom:5%}.story-category{font-size:clamp(10px,2.8vw,17px);color:#e1f0e9}.story-meta{font-size:clamp(10px,2.8vw,17px);font-weight:700;margin-top:7%;line-height:1.9}.story-address{font-size:clamp(9px,2.4vw,15px);margin-top:5%;color:#d8eee5;overflow-wrap:anywhere}.story-spacer{flex:1;min-height:10px}.story-price{width:100%;padding:5% 2%;border-radius:12px;background:#fff;color:#07574f;font-weight:800;font-size:clamp(12px,3.3vw,20px);overflow-wrap:anywhere}.story-blue .story-price{color:#102f43}.story-red .story-price{color:#681e2b}.story-footer{font-size:clamp(9px,2.5vw,15px);font-weight:700;line-height:1.8;margin-top:7%;overflow-wrap:anywhere}.story-bottom-brand{font:10px Arial,sans-serif;letter-spacing:2px;color:rgba(255,255,255,.7);margin-top:6%}.story-side{display:flex;flex-direction:column;gap:14px}.story-help{border:1px solid var(--ln);background:var(--bg);padding:14px;border-radius:14px}.story-side>button{width:100%}.story-side .mu{overflow-wrap:anywhere}
@media(max-width:620px){.story-layout{grid-template-columns:1fr}.story-preview-wrap{max-width:min(100%,340px)}.story-controls{grid-template-columns:1fr}.story-heading{display:block}}

/* Theme-aware inline category SVG illustrations */
:root{--art-dark:color-mix(in srgb,var(--g) 82%,#101b1b);--art-mid:color-mix(in srgb,var(--g) 58%,var(--mint));--art-soft:color-mix(in srgb,var(--g) 28%,var(--bg));--art-pale:color-mix(in srgb,var(--bg) 78%,var(--mint));--art-bg1:color-mix(in srgb,var(--bg) 88%,var(--mint));--art-bg2:var(--card,#fff)}
.cat-choice-art{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;border-radius:10px;background:var(--art-bg1);transition:filter .35s ease}
html.theme-changing .cat-choice-art{transition:filter .55s ease,background-color .55s ease}

/* Property detail panel and text sharing */
.property-card{cursor:pointer;transition:transform .22s ease,box-shadow .22s ease,opacity .22s ease;}
.property-card:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(8,101,104,.12)}
.property-open-hint{border-top:1px solid var(--ln);padding-top:8px;margin-top:12px}
.property-modal-backdrop{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(8,25,25,.46);backdrop-filter:blur(5px);opacity:0;transition:opacity .22s ease}
.property-modal-backdrop.is-open{opacity:1}
.property-modal{width:min(720px,100%);max-height:min(88dvh,900px);overflow:auto;margin:0;background:var(--bg);color:var(--ink);border-color:var(--ln);box-shadow:0 24px 80px rgba(0,0,0,.24);transform:translateY(18px) scale(.985);transition:transform .22s ease}
.property-modal-backdrop.is-open .property-modal{transform:translateY(0) scale(1)}
.property-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.property-modal-head h2{margin:0;overflow-wrap:anywhere}
.property-modal-price{font-size:1.18rem;font-weight:900;color:var(--g);padding:12px 14px;border-radius:12px;background:var(--mint);margin:12px 0}
.property-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.property-detail-row{min-width:0;padding:10px 12px;border:1px solid var(--ln);border-radius:11px;background:rgba(255,255,255,.48);display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.property-detail-row small{color:var(--mu);font-size:.78rem}.property-detail-row strong{font-size:.94rem}
.property-modal-photos{display:flex;gap:8px;overflow:auto;margin:10px 0}.property-modal-photos img{width:min(68%,280px);height:170px;object-fit:cover;border-radius:12px;border:1px solid var(--ln)}
.property-modal-description{margin-top:14px;padding:12px;border:1px solid var(--ln);border-radius:12px}.property-modal-description h3{margin-bottom:4px}.property-modal-description p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.property-modal-actions{padding-top:10px;border-top:1px solid var(--ln)}
html[data-theme="dark"] .property-modal{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .property-detail-row{background:rgba(255,255,255,.035)}
@media(max-width:520px){.property-modal-backdrop{padding:8px;align-items:flex-end}.property-modal{max-height:92dvh;border-radius:18px 18px 10px 10px;padding:14px}.property-modal-grid{grid-template-columns:1fr 1fr}.property-modal-photos img{height:130px}.property-modal-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){.property-card,.property-modal-backdrop,.property-modal{transition:none!important}}

/* Category-specific minimal line art for property cards and detail panels */
.property-artwork{position:relative;isolation:isolate;overflow:hidden;display:block;width:100%;height:150px;margin:0 0 12px;border-radius:14px;background:linear-gradient(135deg,var(--mint,#e7f5f0),var(--bg,#fff));border:1px solid var(--ln,rgba(8,123,120,.12));}
.property-artwork-vector{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:8px;opacity:.92;transition:opacity .2s ease;}
.property-artwork-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.82;transition:opacity .2s ease;}
.property-artwork:has(.property-artwork-photo)::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(135deg,rgba(230,247,241,.12),rgba(4,103,101,.08));pointer-events:none;}
.property-artwork:has(.property-artwork-photo) .property-artwork-vector{opacity:.23;mix-blend-mode:multiply;}
.property-artwork-detail{height:220px;margin:0 0 14px;flex:none;}
.property-artwork-detail .property-artwork-vector{padding:18px;opacity:.72;}
.property-artwork-detail .property-artwork-photo{opacity:.76;}
.property-card{overflow:hidden;}
@media(max-width:520px){.property-artwork{height:130px}.property-artwork-detail{height:175px}}
@media(prefers-reduced-motion:reduce){.property-artwork-vector,.property-artwork-photo{transition:none}}

/* Team messages and unread indicator */
.notification-trigger{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.24);border-radius:13px;background:rgba(255,255,255,.10);color:inherit}
.notification-trigger .ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.notification-dot{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 3px;border:2px solid var(--g);border-radius:99px;background:#e53935;color:white;font-size:10px;font-weight:900;line-height:13px;text-align:center;box-sizing:border-box}
.notification-dot[hidden]{display:none}
.notification-backdrop{position:fixed;inset:0;z-index:10000;display:flex;align-items:flex-start;justify-content:flex-end;padding:76px 18px 18px;background:rgba(4,28,29,.28);backdrop-filter:blur(3px);animation:notificationFade .18s ease}
.notification-backdrop[hidden]{display:none}
.notification-panel{width:min(430px,100%);max-height:min(78dvh,720px);overflow:auto;background:var(--bg);color:var(--ink);box-shadow:0 22px 70px rgba(0,0,0,.22);animation:notificationSlide .2s ease}
.notification-panel-head,.team-message-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.notification-panel-head h2{margin:0;font-size:1.05rem}
.notification-panel-head button{font-size:1.35rem;line-height:1;min-width:36px;padding:5px}
.team-message{padding:14px 0;border-bottom:1px solid var(--ln);overflow-wrap:anywhere}
.team-message:last-child{border-bottom:0}
.team-message.is-unread{border-right:3px solid var(--g);padding-right:11px}
.team-message p{white-space:pre-wrap;line-height:1.9;margin:8px 0}
.team-message small{display:block;margin-bottom:8px}
.team-message button{font-size:.82rem;padding:7px 10px}
.message-composer{margin:12px 0 18px}
@keyframes notificationFade{from{opacity:0}to{opacity:1}}
@keyframes notificationSlide{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:620px){.notification-backdrop{padding:68px 9px 9px}.notification-panel{width:100%;max-height:82dvh}.notification-trigger{width:38px;height:38px;flex-basis:38px}}
@media(prefers-reduced-motion:reduce){.notification-backdrop,.notification-panel{animation:none}}


/* v30 — refined Persian typography, live-data trend chart, premium drawer */
.dash{font-family:Vazirmatn,Tahoma,sans-serif;font-feature-settings:"kern" 1;letter-spacing:0} .dash h1,.dash h2,.dash h3,.dash .dashboard-stat-copy b,.dash .dash-mini-total{font-variant-numeric:tabular-nums} .dash h2,.dash h3{letter-spacing:-.018em}.dash p,.dash label,.dash small{line-height:1.85}.dash .dashboard-stat-copy small{font-weight:650;letter-spacing:-.015em}.dash .dashboard-panel{backdrop-filter:saturate(1.04);}.dashboard-main-column{display:grid;gap:14px;min-width:0}.trend-chart{height:174px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:end;padding:8px 2px 0}.trend-column{height:100%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.trend-value{font-size:.75rem;font-weight:800;color:var(--g);font-variant-numeric:tabular-nums}.trend-bar-wrap{height:112px;width:min(100%,34px);display:flex;align-items:flex-end;justify-content:center;border-radius:10px 10px 5px 5px;background:color-mix(in srgb,var(--g) 7%,transparent);overflow:hidden}.trend-bar{display:block;width:100%;min-height:4px;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,#68B5A4,#075E63);box-shadow:0 3px 10px rgba(7,94,99,.13);animation:trend-rise .55s ease both}.trend-column small{font-size:.68rem;color:var(--mu);white-space:nowrap}.trend-panel{overflow:hidden}.trend-panel .dash-section-title{margin-bottom:8px}@keyframes trend-rise{from{height:0;opacity:.4}to{opacity:1}}
#menu{border-inline-start:1px solid rgba(7,94,99,.08)}.dash #menu{background:linear-gradient(160deg,#fff 0%,#F7FBF9 100%);padding:15px 13px calc(14px + env(safe-area-inset-bottom));box-shadow:-18px 0 50px rgba(7,54,56,.19)}.mhead{padding:7px 7px 15px;margin-bottom:8px;border-bottom-color:#E0ECE8}.mhead b{font-weight:900;letter-spacing:-.025em;color:#075E63}.mhead .logo-mark{width:40px;height:40px;object-fit:contain;box-shadow:0 4px 12px rgba(7,94,99,.12)}#menu #mtabs{gap:7px;padding:2px 0}#menu #mtabs button{min-height:48px;padding:10px 12px;border:1px solid transparent;font-weight:650;font-size:.91rem;letter-spacing:-.015em}#menu #mtabs button i{width:38px;height:38px;border-radius:12px;background:#EDF5F2;color:#286D66;transition:background .18s,transform .18s}#menu #mtabs button[aria-selected=true]{background:linear-gradient(105deg,#DDEFE9,#F0F8F5);border-color:#CBE3DC;color:#075E63;box-shadow:0 4px 12px rgba(7,94,99,.07)}#menu #mtabs button[aria-selected=true] i{background:#075E63;color:#fff;box-shadow:0 4px 10px rgba(7,94,99,.18)}#menu #mtabs button:hover i{transform:scale(1.04)}#menu .theme-toggle{border:1px solid #DCEBE6;border-radius:13px;margin-top:8px;background:#F4F9F7;color:#075E63}#menu .out{border:1px solid #F1DEDA;border-radius:13px;margin-top:8px;padding:12px;color:#A9473B;background:#FFF8F6}#menu .menu-credit{border-top:1px solid #E0ECE8;margin-top:10px}html[data-theme="dark"] .dash #menu{background:linear-gradient(160deg,#191F20,#151A1B);border-inline-start-color:#2B3C3D}html[data-theme="dark"] .mhead{border-bottom-color:#2D3D3D}html[data-theme="dark"] .mhead b{color:#B5DED5}html[data-theme="dark"] #menu #mtabs button{color:#E4EFEC}html[data-theme="dark"] #menu #mtabs button i{background:#263536;color:#A8D9D0}html[data-theme="dark"] #menu #mtabs button[aria-selected=true]{background:linear-gradient(105deg,#254441,#1F3231);border-color:#365C57;color:#D7F2EB}html[data-theme="dark"] #menu #mtabs button[aria-selected=true] i{background:#74BFB0;color:#123C3A}html[data-theme="dark"] #menu .theme-toggle{background:#202D2E;color:#B9E3DA;border-color:#344A4A}html[data-theme="dark"] #menu .out{background:#302322;border-color:#503533;color:#F1B5A9}html[data-theme="dark"] #menu .menu-credit{border-top-color:#2D3D3D}html[data-theme="dark"] .trend-bar-wrap{background:rgba(168,217,208,.08)}html[data-theme="dark"] .trend-bar{background:linear-gradient(180deg,#A2D8CC,#3A8D82)}html[data-theme="dark"] .trend-value{color:#A2D8CC}
@media(max-width:600px){.trend-chart{height:154px;gap:6px}.trend-bar-wrap{height:96px;width:min(100%,29px)}.trend-column small{font-size:.62rem}.trend-value{font-size:.7rem}}


/* v31: rotating market ticker with a soft fade transition */
.header-gold{opacity:1;transform:translateY(0);transition:opacity .22s ease,transform .22s ease;}
.header-gold.market-fading{opacity:0;transform:translateY(4px);}
.header-gold #gold-label,.header-gold #gold-price,.header-gold #gold-updated{transition:color .22s ease;}
@media(prefers-reduced-motion:reduce){.header-gold,.header-gold.market-fading,.header-gold #gold-label,.header-gold #gold-price,.header-gold #gold-updated{transition:none!important;transform:none!important;}}


/* v34 — keep the dashboard header pinned to the top while scrolling */
.dash header{position:sticky;top:0;z-index:25;align-self:start;isolation:isolate}

/* Price range filter in property categories */
.price-filter{display:flex;flex-direction:column;gap:10px;margin:12px 0 16px;padding:14px;border:1px solid var(--ln);border-radius:15px;background:var(--bg)}
.price-filter>strong{font-size:.9rem;color:var(--tx)}
.price-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.price-filter-fields>div{min-width:0}
.price-filter-fields label{display:block;margin-bottom:5px;font-size:.8rem;color:var(--mu)}
.price-filter-fields input{width:100%;min-width:0;box-sizing:border-box;padding:10px 11px;border:1px solid var(--ln);border-radius:10px;background:var(--card,var(--bg));color:var(--tx);font:inherit}
.price-filter-reset{align-self:flex-start;font:inherit;padding:7px 11px;border-radius:9px}
@media(max-width:420px){.price-filter-fields{gap:8px}.price-filter{padding:11px}}

/* v38 — draggable price range sliders */
.price-range-controls{display:grid;grid-template-columns:1fr;gap:10px}
.price-range-controls>label{display:flex;flex-direction:column;gap:5px;color:var(--mu);font-size:.8rem}
.price-range{width:100%;accent-color:var(--g);cursor:grab;direction:ltr;padding:4px 0;touch-action:pan-y;background:transparent}
.price-range::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:color-mix(in srgb,var(--g) 24%,var(--ln))}
.price-range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:19px;height:19px;margin-top:-6.5px;border:3px solid var(--bg);border-radius:50%;background:var(--g);box-shadow:0 0 0 2px var(--g);cursor:grab}
.price-range::-moz-range-track{height:6px;border-radius:999px;background:color-mix(in srgb,var(--g) 24%,var(--ln))}
.price-range::-moz-range-progress{height:6px;border-radius:999px;background:var(--g)}
.price-range::-moz-range-thumb{width:13px;height:13px;border:3px solid var(--bg);border-radius:50%;background:var(--g);box-shadow:0 0 0 2px var(--g);cursor:grab}
html.theme-changing .price-range::-webkit-slider-thumb,html.theme-changing .price-range::-webkit-slider-runnable-track,html.theme-changing .price-range::-moz-range-thumb,html.theme-changing .price-range::-moz-range-track,html.theme-changing .price-range::-moz-range-progress{transition:background-color .55s ease,border-color .55s ease,box-shadow .55s ease}
.price-range:active{cursor:grabbing}
.price-range-values{display:flex;justify-content:space-between;gap:12px;color:var(--tx);font-size:.82rem;font-weight:600}
@media(prefers-reduced-motion:reduce){.price-range{scroll-behavior:auto}}

/* hidden menu items (add file / admin) must really be hidden */
#menu #mtabs button[hidden],#menu .out[hidden]{display:none!important}

/* ===== پازل (مخصوص مدیر) ===== */
.pz-files{max-height:240px;overflow:auto;border:1px solid var(--ln);border-radius:12px;padding:6px;display:grid;gap:4px;margin:8px 0 6px}
.pz-file{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:10px;cursor:pointer;margin:0}
.pz-file:hover{background:var(--mint)}
.pz-file input{width:20px;height:20px;min-height:20px;padding:0;margin-top:5px;flex:none;accent-color:var(--g)}
.pz-file em{display:block;font-style:normal;font-size:.78rem;color:var(--mu)}
.pz-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 12px}
.pz-group{margin:0 0 24px}
.pz-group-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:4px 0 12px}
.pz-group-head h3{margin:0}
.pz-timeline{display:grid;gap:12px;margin-inline-start:8px;padding-inline-start:16px;border-inline-start:2px solid var(--ln)}
.pz-entry{position:relative;margin:0!important;padding:14px 16px}
.pz-dot{position:absolute;inset-inline-start:-23px;top:20px;width:12px;height:12px;border-radius:50%;background:var(--g);box-shadow:0 0 0 4px var(--bg)}
.pz-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pz-line{display:flex;flex-wrap:wrap;gap:4px 18px;margin:8px 0}
.pz-line span{display:inline-flex;align-items:center;gap:4px}
.pz-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.pz-chip{display:inline-block;padding:3px 11px;border-radius:999px;background:var(--mint);color:var(--g);font-size:.78rem;font-weight:700}
html[data-theme="dark"] .pz-chip{color:#f27b9b}
html[data-theme="dark"] .pz-files{border-color:#403238}
.pz-group-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pz-summary{margin:0 0 8px}
.pz-group-actions{margin:0 0 12px}
.pz-tags{display:flex;gap:6px;flex-wrap:wrap}
.pz-when{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pz-day{font-size:.78rem;font-weight:800;color:var(--g)}
.pz-stage{background:var(--mint);color:var(--g)}
html[data-theme="dark"] .pz-stage,html[data-theme="dark"] .pz-day{color:#f27b9b}

/* ===== جستجو ===== */
.sq-top input[type=search]{font-size:1.05rem;min-height:50px;margin-bottom:10px}
.sq-scopes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.sq-scope{flex:1 1 auto}
.sq-scope[aria-selected=true]{background:var(--g)!important;color:#fff!important;border-color:var(--g)!important}
.sq-presets{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.sq-presets button{padding:6px 12px;font-size:.82rem}
.sq-sortrow{align-items:end}
.sq-reset{padding-bottom:14px}
.sq-adv{border:1px solid var(--ln);border-radius:14px;padding:10px 14px;margin-top:10px}
.sq-adv summary{cursor:pointer;font-weight:800;color:var(--g);padding:4px 0}
.sq-adv[open] summary{margin-bottom:10px}
.sq-checks{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:8px}
.sq-check{display:inline-flex;align-items:center;gap:8px;margin:0;cursor:pointer}
.sq-check input{width:20px;height:20px;min-height:20px;padding:0;accent-color:var(--g)}
.sq-count{font-weight:800;margin:6px 2px 12px}
.sq-section{margin-bottom:26px}
.sq-usage{margin-top:8px;padding-top:8px;border-top:1px dashed var(--ln)}
.sq-more{justify-content:center}
html[data-theme="dark"] .sq-adv{border-color:#403238}
html[data-theme="dark"] .sq-adv summary{color:#f27b9b}
@media(min-width:1024px){
  #sq-results .sq-section{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px;align-items:start}
  #sq-results .sq-section>h2,#sq-results .sq-section>.empty,#sq-results .sq-section>.sq-more,#sq-results .sq-section>.msg{grid-column:1/-1}
  #sq-results .sq-section>.card{margin-bottom:0;height:100%}
}
.pz-advs{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.pz-adv{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;margin:0;border:1px solid var(--ln);border-radius:999px;cursor:pointer;background:var(--card,#fff)}
.pz-adv input{width:18px;height:18px;min-height:18px;padding:0;accent-color:var(--g);flex:none}
.pz-adv:has(input:checked){border-color:var(--g);background:var(--mint);font-weight:800}

/* ===== اضافه کردن رهن و اجاره ===== */
.rent-form [hidden]{display:none!important}
#rlist{display:grid;gap:14px}
#rlist .empty{grid-column:1/-1}
.rent-item .pr{font-weight:800;color:var(--g);margin:6px 0}
@media(min-width:821px){#rlist{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}#rlist .card{margin-bottom:0}}
@media(min-width:1280px){#rlist{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* فایل‌های قدیمی (بیش از یک هفته) */
.stale-banner{display:flex;align-items:center;gap:6px;margin:-4px 0 10px;padding:7px 12px;border-radius:10px;background:#fff4d6;color:#8a5a00;font-size:.85rem;font-weight:700;border:1px solid #f0d58a}
.stale-banner svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.property-card.stale{border-inline-start:5px solid #e0a800}
@media(prefers-color-scheme:dark){.stale-banner{background:#3b2f10;color:#ffd98a;border-color:#6b5420}}

/* داشبورد: کارت‌های اقدام، نمودار تفکیکی، عملکرد تیم */
.dash-alerts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
.alert-panel{display:flex;flex-direction:column;gap:10px}.alert-panel .dash-section-title{margin-bottom:6px}
.alert-panel h3{display:flex;align-items:center;gap:6px}.alert-panel h3 .ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.alert-number{font-size:1.8rem;font-weight:900;color:var(--g);line-height:1}
.stale-panel{border-inline-start:5px solid #e0a800}.stale-panel .alert-number,.stale-panel h3{color:#8a5a00}
.follow-panel{border-inline-start:5px solid var(--g)}
.alert-list{display:grid;gap:7px}
.alert-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 11px;background:var(--bg);color:var(--ink);border:1px solid transparent;border-radius:12px;text-align:start;box-shadow:none!important}
.alert-item b{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.alert-item small{color:var(--mu);font-size:.72rem;white-space:nowrap}
.follow-item{padding:6px 6px 6px 8px}.follow-item.late small{color:#b3261e;font-weight:700}
.follow-open{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex:1;min-width:0;padding:4px 6px;background:transparent;color:inherit;box-shadow:none!important;border:0;text-align:start}
.follow-done{padding:6px 10px;font-size:.75rem;white-space:nowrap}
.dashboard-stat-copy em{white-space:normal}
.trend-stack{width:100%;min-height:4px;display:flex;flex-direction:column;gap:2px}
.trend-stack .trend-bar{min-height:3px;border-radius:5px}
.trend-bar.rent{background:linear-gradient(180deg,#f0c15a,#c98a10)}
.trend-bar.zero{opacity:.25}
.trend-legend{display:flex;gap:14px;justify-content:center;margin-top:10px;font-size:.75rem;color:var(--mu)}
.trend-legend span{display:inline-flex;align-items:center;gap:5px}.trend-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.lg-sale{background:#3A8D82}.lg-rent{background:#d99a1e}
.dashboard-main-column{display:grid;gap:14px;min-width:0}
.team-bars{display:grid;gap:13px}
.team-row{display:grid;grid-template-columns:minmax(70px,110px) minmax(30px,1fr) 28px;align-items:center;gap:9px}
.team-name{font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.team-row>b{font-size:.83rem;text-align:end}
@media(max-width:700px){.dash-alerts{grid-template-columns:minmax(0,1fr)}}
html[data-theme="dark"] .alert-item{background:#292226;color:#F5EDEF}html[data-theme="dark"] .stale-panel .alert-number,html[data-theme="dark"] .stale-panel h3{color:#ffd98a}

/* فایل‌های پیشنهادی برای مشتری */
.suggest-box{margin:8px 0;border:1px solid var(--ln);border-radius:14px;padding:4px 12px 10px;background:color-mix(in srgb,var(--g) 5%,transparent)}
.suggest-box summary{cursor:pointer;font-weight:800;color:var(--g);padding:8px 0;display:flex;align-items:center;gap:6px}
.suggest-box summary .ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.suggest-item{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:7px;padding:10px;background:var(--card);color:var(--ink);border:1px solid var(--ln);border-radius:12px;text-align:start;box-shadow:none!important}
.suggest-info{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.suggest-info b{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggest-info small{font-size:.72rem;color:var(--mu);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suggest-price{font-size:.76rem;font-weight:800;color:var(--g);max-width:40%;text-align:end}
html[data-theme="dark"] .suggest-item{background:#292226;color:#F5EDEF}html[data-theme="dark"] .suggest-box summary,html[data-theme="dark"] .suggest-price{color:#F27B9B}

/* هشدار ثبت تکراری */
.dup-warn{display:grid;gap:7px;padding:10px 12px;border-radius:12px;background:#fff4d6;color:#8a5a00;border:1px solid #f0d58a}
.dup-item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:rgba(255,255,255,.6);border-radius:10px;padding:7px 9px}
.dup-item span{display:flex;flex-direction:column;gap:2px;min-width:0}.dup-item b{font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dup-item small{font-size:.72rem;color:#8a5a00}
.dup-item button{padding:5px 10px;font-size:.75rem;white-space:nowrap}
html[data-theme="dark"] .dup-warn{background:#3b2f10;color:#ffd98a;border-color:#6b5420}html[data-theme="dark"] .dup-item{background:rgba(0,0,0,.25)}html[data-theme="dark"] .dup-item small{color:#ffd98a}
