/* LandLinkGo Seller Dashboard — mockup style (ขนาดใหญ่) */
.pd-dash-rail{
  display:flex;
  flex-direction:column;
  min-width:0;
}
@media(max-width:1179px){
  .pd-dash-rail{ grid-column:1 / -1; }
  .pd-dash-shell{ max-height:min(85vh, 900px); }
}
@media(min-width:1180px){
  .pd-dash-rail{
    position:sticky;
    top:calc(var(--pd-top-bar-h, 56px) + 12px);
    height:calc(100vh - var(--pd-top-bar-h, 56px) - 24px);
    max-height:calc(100vh - var(--pd-top-bar-h, 56px) - 24px);
    min-height:0;
  }
}
.pd-dash-shell{
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  border-radius:20px;
  box-shadow:0 12px 36px rgba(15,23,42,.07);
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  height:100%;
  overflow:hidden;
}
#profileDashboardMount{
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  background:#f1f5f9;
  font-size:14px;
}

.pd-dash{
  padding:14px;
  min-height:100%;
}
.pd-cols{
  display:grid;
  grid-template-columns:1.12fr 0.98fr;
  gap:14px;
  align-items:start;
}
@media(max-width:1179px){
  .pd-cols{ grid-template-columns:1fr; }
}

/* Column */
.pd-col{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}
.pd-col-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding:6px 4px 4px;
}
.pd-col-head--mkt{ padding-top:8px; }
.pd-col-head-main{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
}
.pd-col-ico{
  font-size:26px;
  line-height:1;
  flex-shrink:0;
}
.pd-col-head h2{
  margin:0;
  font-size:19px;
  font-weight:900;
  color:#0f172a;
  line-height:1.25;
  letter-spacing:-.02em;
}
.pd-col-head p{
  margin:5px 0 0;
  font-size:13px;
  font-weight:700;
  color:#64748b;
  line-height:1.45;
}
.pd-col-pill{
  flex-shrink:0;
  padding:7px 14px;
  border-radius:999px;
  border:1px solid #e2e8f0;
  background:#fff;
  font-size:12px;
  font-weight:900;
  color:#334155;
}

/* KPI cards */
.pd-kpi-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.pd-kpi-card{
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:16px;
  padding:14px 14px 13px;
  box-shadow:0 3px 10px rgba(15,23,42,.05);
}
.pd-kpi-icon{ font-size:18px; line-height:1; }
.pd-kpi-val{
  margin:8px 0 0;
  font-size:28px;
  font-weight:900;
  color:#0f172a;
  line-height:1;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.02em;
}
.pd-kpi-lbl{
  margin:6px 0 0;
  font-size:13px;
  font-weight:800;
  color:#64748b;
}
.pd-kpi-delta{
  margin:7px 0 0;
  font-size:11px;
  font-weight:800;
  color:#16a34a;
}
.pd-kpi-delta--muted{
  color:#94a3b8;
}
.pd-empty--hero{
  margin:0 0 12px;
  padding:10px 12px;
  background:#f8fafc;
  border-radius:12px;
  border:1px dashed #e2e8f0;
}

/* Cards */
.pd-card{
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:16px;
  padding:16px;
  box-shadow:0 3px 10px rgba(15,23,42,.05);
}
.pd-card-title{
  margin:0 0 12px;
  font-size:15px;
  font-weight:900;
  color:#0f172a;
  line-height:1.35;
}
.pd-empty{
  margin:0;
  font-size:13px;
  font-weight:700;
  color:#94a3b8;
  line-height:1.45;
}

/* Top listings */
.pd-top-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.pd-top-item{
  display:grid;
  grid-template-columns:auto 56px 1fr auto;
  gap:10px;
  align-items:center;
}
.pd-top-rank{
  width:28px;
  height:28px;
  border-radius:9px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:14px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pd-top-thumb{
  width:56px;
  height:56px;
  border-radius:12px;
  overflow:hidden;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pd-top-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.pd-top-ph{ font-size:24px; }
.pd-top-body{ min-width:0; }
.pd-top-title{
  margin:0;
  font-size:14px;
  font-weight:900;
  color:#0f172a;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.pd-top-loc{
  margin:3px 0 0;
  font-size:12px;
  font-weight:700;
  color:#94a3b8;
}
.pd-top-mini{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}
.pd-top-mini span{
  font-size:11px;
  font-weight:800;
  color:#64748b;
}
.pd-top-views{
  margin:0;
  font-size:17px;
  font-weight:900;
  color:#1d4ed8;
  text-align:right;
  font-variant-numeric:tabular-nums;
}

/* Behavior bars */
.pd-behavior{ display:flex; flex-direction:column; gap:12px; }
.pd-behavior-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
  font-size:13px;
  font-weight:800;
  color:#475569;
}
.pd-behavior-top strong{
  font-size:13px;
  color:#0f172a;
}
.pd-behavior-track{
  height:8px;
  border-radius:999px;
  background:#f1f5f9;
  overflow:hidden;
}
.pd-behavior-fill{
  height:100%;
  border-radius:999px;
}

/* Donut */
.pd-donut-wrap{
  display:flex;
  align-items:center;
  gap:16px;
}
.pd-donut{
  width:96px;
  height:96px;
  border-radius:50%;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pd-donut-hole{
  width:62px;
  height:62px;
  border-radius:50%;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height:1.1;
}
.pd-donut-hole strong{
  font-size:14px;
  font-weight:900;
  color:#0f172a;
}
.pd-donut-hole span{
  font-size:10px;
  font-weight:800;
  color:#94a3b8;
  margin-top:3px;
}
.pd-donut-legend{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
.pd-donut-leg{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:800;
  color:#334155;
}
.pd-donut-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  flex-shrink:0;
}
.pd-donut-leg-l{ flex:1; min-width:0; }
.pd-donut-leg-p{
  font-weight:900;
  color:#0f172a;
  font-variant-numeric:tabular-nums;
}

/* Activity */
.pd-activity{ display:flex; flex-direction:column; gap:12px; }
.pd-activity-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.pd-activity-ico{ font-size:18px; line-height:1.2; }
.pd-activity-body{ flex:1; min-width:0; }
.pd-activity-txt{
  margin:0;
  font-size:13px;
  font-weight:800;
  color:#334155;
  line-height:1.45;
}
.pd-activity-time{
  margin:4px 0 0;
  font-size:11px;
  font-weight:700;
  color:#94a3b8;
}
.pd-activity-btn{
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:999px;
  padding:6px 12px;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
  font-family:inherit;
  flex-shrink:0;
}

/* Market demand */
.pd-demand-list{ display:flex; flex-direction:column; gap:12px; }
.pd-demand-top{
  display:flex;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
  font-size:13px;
  font-weight:800;
  color:#334155;
}
.pd-demand-chg{
  font-size:13px;
  font-weight:900;
  color:#ea580c;
}
.pd-demand-track{
  height:9px;
  border-radius:999px;
  background:#fff7ed;
  overflow:hidden;
}
.pd-demand-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#fb923c,#ea580c);
}
.pd-demand-fill.is-cool{
  background:linear-gradient(90deg,#6ee7b7,#059669);
}

/* Province rank */
.pd-chips{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:12px;
}
.pd-chip{
  border:1px solid #e2e8f0;
  border-radius:999px;
  padding:6px 12px;
  font-size:11px;
  font-weight:900;
  background:#fff;
  color:#64748b;
  cursor:pointer;
  font-family:inherit;
}
.pd-chip.is-on{
  border-color:#1d4ed8;
  background:#eff6ff;
  color:#1d4ed8;
}
.pd-prov-rank{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pd-prov-rank li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
  font-weight:800;
  color:#334155;
}
.pd-prov-rank li.is-mine .pd-prov-name{ color:#1d4ed8; }
.pd-prov-n{
  width:26px;
  height:26px;
  border-radius:8px;
  background:#f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  color:#64748b;
  flex-shrink:0;
}
.pd-prov-name{ flex:1; min-width:0; }
.pd-prov-chg{
  font-size:13px;
  font-weight:900;
  color:#ea580c;
}

/* AI card */
.pd-ai-card{
  background:linear-gradient(145deg,#faf5ff,#fff);
  border:1px solid #e9d5ff;
  border-radius:16px;
  padding:16px;
}
.pd-ai-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
  font-size:15px;
  font-weight:900;
  color:#6b21a8;
}
.pd-ai-body{
  margin:0;
  font-size:13px;
  font-weight:750;
  color:#4c1d95;
  line-height:1.55;
}
.pd-ai-tip{
  margin-top:12px;
  padding:12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e9d5ff;
  font-size:13px;
  font-weight:750;
  color:#5b21b6;
  line-height:1.55;
}
.pd-ai-tip strong{ font-weight:900; }

.pd-footer{
  text-align:center;
  font-size:11px;
  font-weight:800;
  color:#94a3b8;
  padding:6px 0 4px;
}
.pd-footer strong{ color:#64748b; }
.pd-verified{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#3b82f6;
  color:#fff;
  font-size:9px;
  margin-left:4px;
}

.pd-guest{
  padding:32px 18px;
  text-align:center;
  font-size:15px;
  font-weight:800;
  color:#64748b;
  line-height:1.5;
}

.pd-aui-fab{
  display:none;
  position:fixed;
  right:max(10px, env(safe-area-inset-right, 0px));
  top:46%;
  z-index:4300;
  width:44px;
  min-height:76px;
  padding:12px 6px;
  border:1px solid #e5e7eb;
  border-radius:22px;
  background:#fff;
  box-shadow:0 6px 18px rgba(15,23,42,.14);
  color:#111827;
  font:inherit;
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  line-height:1;
  cursor:pointer;
  align-items:center;
  justify-content:center;
}
.pd-aui-fab:hover{ background:#f8fafc; }
@media (max-width:1179px){
  body.user-page .pd-aui-fab:not([hidden]){
    display:flex;
  }
  body.user-page .pd-dash-rail{
    display:none !important;
  }
}
