/* PnBeyond redesign layer — "world-class mobile CRM" polish.
   Loaded LAST so it overrides the base + phase stylesheets.
   Principles: larger type, softer lines, generous touch targets,
   bottom-sheet modals on mobile, one soft shadow recipe. */

:root{
  --line:#e9edf4;
  --canvas:#f7f9fc;
  --shadow-soft:0 1px 2px rgba(23,38,71,.04),0 10px 30px rgba(23,38,71,.05);
  --radius-card:16px;
}

/* ---------- Surfaces ---------- */
.panel,.metric-card,.org-card{border-radius:var(--radius-card);border-color:#eaf0f6;box-shadow:var(--shadow-soft)}
.btn{border-radius:10px}
.btn.primary{box-shadow:0 6px 16px rgba(66,104,245,.22)}

/* ---------- Activity rows (everywhere: Home, popup, Activities) ---------- */
.activity-row{min-height:62px;gap:12px;border-top-color:#f0f3f8;padding:7px 2px}
.activity-check{width:26px;height:26px;border:2px solid #d3dcee;transition:background .15s,border-color .15s,transform .1s}
.activity-check:active{transform:scale(.9)}
.activity-check.checked{background:linear-gradient(145deg,#5d79ee,#4268f5);border-color:#4268f5;box-shadow:0 4px 10px rgba(66,104,245,.28)}
.activity-check svg{width:13px;height:13px;stroke-width:2.4}
.activity-type{width:36px;height:36px;border-radius:11px}
.activity-type svg{width:17px;height:17px}
.activity-copy{gap:3px}
.activity-copy b{font-size:13.5px;font-weight:620;letter-spacing:-.15px;color:#22314e}
.activity-copy small{font-size:11.5px;color:#8b96a9}
.activity-row time{font-size:11px;font-weight:600;color:#7c879c;font-variant-numeric:tabular-nums}
.activity-row.is-done .activity-copy b{color:#9aa5b5}
.activity-list .activity-row{min-height:64px}

/* ---------- Panels & headings ---------- */
.panel-heading h2{font-size:14.5px;letter-spacing:-.2px}
.panel-heading p{font-size:11px}
.page-heading h1,.welcome-row h1{letter-spacing:-.9px}

/* ---------- Home calendar ---------- */
.cal-panel{border-radius:18px}
.cal-day{min-height:47px;border-radius:12px}
.cal-num{font-size:14px;font-weight:600}
.cal-dots{gap:3px}
.cal-dots i,.cal-dots span{width:5px;height:5px}

/* ---------- Tables ---------- */
tbody td{font-size:11.5px}
.person-cell b{font-size:12px}
.person-cell small{font-size:10.5px}

/* ---------- Deal cards ---------- */
.deal-card{border-radius:12px;padding:12px 12px 11px}
.deal-card h3{font-size:12.5px}

/* ==================================================================
   MOBILE (<=700px) — the primary surface
   ================================================================== */
@media (max-width:700px){
  body{font-size:14.5px}

  /* Top bar: frosted glass */
  .topbar{height:62px;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom-color:#edf1f7}
  .profile-trigger{border-radius:12px}

  .page-content{padding:22px 16px 44px}
  .page-heading h1,.welcome-row h1{font-size:25px}
  .page-subtitle{font-size:12px}

  /* Touch targets */
  .btn{min-height:44px;border-radius:12px;font-size:13px;padding:0 16px}
  .icon-button{width:38px;height:38px;border-radius:11px}
  .nav-item{height:49px;border-radius:12px;font-size:14px}
  .sidebar{border-radius:0 22px 22px 0}

  /* Metric cards */
  .metric-card{border-radius:16px;padding:15px}
  .metric-card>strong{font-size:25px}
  .metric-card>small{font-size:10px}
  .metric-top{font-size:10.5px}

  /* Activity rows — roomy, readable */
  .activity-row{min-height:68px;gap:13px}
  .activity-check{width:28px;height:28px}
  .activity-type{width:38px;height:38px;border-radius:12px}
  .activity-copy b{font-size:14.5px}
  .activity-copy small{font-size:12.5px}
  .activity-row time{font-size:12px}
  .up-next-list{padding:0 16px 12px}
  .activity-list{padding:0 14px}
  .activity-list .activity-row{min-height:70px}

  /* Panels */
  .panel-heading{padding:17px 16px 13px}
  .panel-heading h2{font-size:15px}
  .panel-heading p{font-size:11.5px}

  /* Home calendar cells */
  .cal-day{min-height:50px}
  .cal-num{font-size:15px}

  /* Tables */
  tbody td{height:66px;font-size:12.5px}
  .person-cell b{font-size:13.5px}
  .person-cell small{font-size:11px}
  thead th{font-size:9px}

  /* Deal cards */
  .deal-card h3{font-size:13.5px}
  .deal-card-org{font-size:10.5px}
  .deal-card-bottom>b{font-size:11.5px}

  /* ---------- Bottom-sheet modals ---------- */
  .modal-backdrop{align-items:flex-end;padding:0;background:rgba(13,22,41,.52);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
  .modal-card{width:100%;max-height:93dvh;border-radius:24px 24px 0 0;box-shadow:0 -12px 44px rgba(13,22,41,.28);animation:sheetUp .3s cubic-bezier(.32,.72,.24,1);padding-top:6px}
  .modal-card::before{content:"";display:block;width:42px;height:5px;border-radius:99px;background:#dde4ee;margin:4px auto 2px;position:sticky;top:4px;z-index:3}
  @keyframes sheetUp{from{opacity:.4;transform:translateY(46px)}to{opacity:1;transform:translateY(0)}}
  .modal-head{padding:14px 20px 13px;position:sticky;top:10px;background:#fff;z-index:2}
  .modal-head h2{font-size:20px;letter-spacing:-.5px}
  .modal-body{padding:16px 20px 20px;gap:14px}
  .modal-body input,.modal-body select,.modal-body textarea,.form-stack input{height:48px;border-radius:12px;font-size:16px;padding:0 13px}
  .modal-body textarea{height:auto;padding:11px 13px}
  .modal-body label,.form-stack label{font-size:12px}
  .modal-footer{padding:13px 16px calc(13px + env(safe-area-inset-bottom));position:sticky;bottom:0;background:#fff;gap:10px}
  .modal-footer .btn{flex:1;min-height:50px;border-radius:13px;font-size:14px}
  .modal-footer .footer-spacer{display:none}
  .search-backdrop{padding:12px}
  .search-dialog{border-radius:18px}

  /* Day popup specifics */
  .home-day-body{max-height:none;gap:20px}
  .home-day-sec-head{margin-bottom:6px;align-items:center}
  .home-day-sec-head h3{font-size:16.5px;font-weight:720;letter-spacing:-.3px}
  .home-day-sec-head span{background:#f0f4fb;color:#64748f;border-radius:99px;padding:4px 10px;font-size:11.5px;font-weight:650}
  .home-day-sec + .home-day-sec{border-top-color:#eef1f6;padding-top:18px}
  .home-day-empty{font-size:13px;color:#93a0b4}
  .home-day-more{font-size:12.5px}
  .home-day-card .activity-list{padding:0}

  /* LINE / calendar-sync cards */
  .gcp-card{border-radius:16px}
  .gcp-button{min-height:48px;border-radius:12px;font-size:14px}

  /* People page — one simple search + sort, list right below */
  .contacts-toolbar{padding:14px 14px 12px;gap:10px}
  .contacts-search{display:grid;grid-template-columns:1fr;gap:9px;flex-basis:100%}
  .contacts-search .table-filter{width:100%;height:46px;border-radius:12px}
  .contacts-sort-control{margin-left:auto}
  .contacts-search .table-filter input{font-size:14px}
  .contacts-search select,.contacts-sort-control select,.people-views-controls select,.people-views-controls input{min-height:46px;border-radius:12px;font-size:14px}
  .contacts-more{grid-column:1/-1;width:100%}
  .contacts-more summary{min-height:46px;display:flex;align-items:center;justify-content:center;border-radius:12px;font-size:14px}
  .contacts-advanced{border-radius:14px}
  .contacts-sort-control{font-size:13px}
  .people-saved-views{padding:13px 14px}
  .people-views-heading b{font-size:15px}
  .people-views-heading p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11.5px;margin:5px 0 9px}
  .people-views-controls{gap:9px}
  .people-views-controls button,.people-views-confirm button{min-height:46px;border-radius:12px}

  /* People table — name + phone fit the phone screen, no sideways scroll */
  .contacts-results table{min-width:0}
  .contacts-results th:nth-child(2),.contacts-results td:nth-child(2),
  .contacts-results th:nth-child(3),.contacts-results td:nth-child(3),
  .contacts-results th:nth-child(5),.contacts-results td:nth-child(5),
  .contacts-results th:nth-child(6),.contacts-results td:nth-child(6){display:none}
  .contacts-results td{white-space:normal}
}

/* ---------- Activities phase rows: readable long subjects ----------
   The phase row reuses .activity-row's grid (built for short titles),
   which squeezed the text into a sliver. Give it its own layout:
   check | main (title <=2 lines, meta 1 line) | menu, time under meta. */
.phase-activity.activity-row{
  display:grid;grid-template-columns:32px minmax(0,1fr) 32px;
  grid-template-areas:"check main more" "check time more";
  column-gap:10px;row-gap:3px;align-items:start;
  padding:13px 12px;border-radius:14px;
}
.phase-activity .activity-check{grid-area:check;margin-top:1px}
.phase-activity>span{grid-area:main;min-width:0;display:grid;gap:3px}
.phase-activity>span b{
  font-size:14.5px;font-weight:630;line-height:1.38;letter-spacing:-.15px;color:#22314e;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  overflow-wrap:break-word;white-space:normal;
}
.phase-activity>span small{
  display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-size:12px;color:#8b96a9;line-height:1.35;
}
.phase-activity time{grid-area:time;justify-self:start;font-size:12px;font-weight:600;color:#7c879c;font-variant-numeric:tabular-nums}
.phase-activity .activity-more{grid-area:more;justify-self:end;width:32px;height:32px}
.phase-activity.is-done>span b{color:#9aa5b5}

/* Desktop sheet nicety: softer modal entrance */
@media (min-width:701px){
  .modal-card{border-radius:18px}
  .modal-footer .btn{min-height:40px}
}

/* ==================================================================
   BRAND TOP BAR (rd2) — logo blue, minimal: menu · logo · bell · avatar
   ================================================================== */
:root{--brand-blue:#0070C0;--brand-blue-deep:#0063A6;--brand-yellow:#FFEB00}
.topbar{
  position:fixed;top:0;left:0;right:0;height:62px;z-index:40;
  display:flex;align-items:center;gap:6px;padding:0 14px;
  background:linear-gradient(180deg,#0E80D2 0%,var(--brand-blue) 58%,#006BB4 100%);
  border-bottom:0;box-shadow:0 8px 24px rgba(0,84,143,.28);
  animation:barIn .38s cubic-bezier(.22,.8,.3,1);
}
@keyframes barIn{from{transform:translateY(-100%)}to{transform:translateY(0)}}
.main-area{margin-top:62px}
.sidebar{padding-top:78px;z-index:30}
.topbar-menu{color:#fff;width:42px;height:42px;border-radius:12px;flex:none;transition:background .18s ease,transform .12s ease}
.topbar-menu:hover{background:rgba(255,255,255,.16);color:#fff}
.topbar-menu:active{transform:scale(.9)}
.topbar-menu svg{width:21px;height:21px}
.topbar-brand{display:flex;align-items:center;gap:9px;background:none;border:0;padding:5px 8px 5px 2px;border-radius:12px;cursor:pointer;transition:background .18s ease;min-width:0}
.topbar-brand:hover{background:rgba(255,255,255,.10)}
.topbar-brand img{height:34px;width:auto;max-width:none;flex:none;object-fit:contain;display:block;filter:drop-shadow(0 2px 5px rgba(0,45,86,.35))}
.topbar-wordmark{color:#fff;font-size:16.5px;font-weight:780;letter-spacing:-.35px;white-space:nowrap}
.topbar-wordmark i{font-style:normal;color:var(--brand-yellow)}
.topbar .top-actions{margin-left:auto;display:flex;align-items:center;gap:9px}
.topbar .notification-trigger{position:relative;color:#fff;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.14);transition:background .18s ease,transform .12s ease}
.topbar .notification-trigger:hover{background:rgba(255,255,255,.24);color:#fff}
.topbar .notification-trigger:active{transform:scale(.9)}
.topbar .notification-trigger svg{width:20px;height:20px}
.topbar .notification-count{background:var(--brand-yellow);color:#0B4A7C;font-weight:800;box-shadow:0 2px 6px rgba(0,45,86,.35)}
.topbar .profile-trigger{background:transparent;border:0;padding:0;box-shadow:none;border-radius:50%}
.topbar .profile-circle{display:block;width:41px;height:41px;border-radius:50%;cursor:pointer}
.topbar .profile-trigger-avatar{width:41px;height:41px;border-radius:50%;background:var(--brand-yellow);color:#00548F;border:2px solid rgba(255,255,255,.9);display:grid;place-items:center;font-size:13px;font-weight:800;letter-spacing:.2px;box-shadow:0 3px 10px rgba(0,45,86,.3);transition:transform .15s ease}
.topbar .profile-trigger:active .profile-trigger-avatar{transform:scale(.92)}
.profile-menu{border-radius:14px;animation:menuPop .16s cubic-bezier(.2,.8,.3,1)}
@keyframes menuPop{from{opacity:0;transform:translateY(-4px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
/* Drawer tools (search + create moved off the bar) */
.drawer-tools{display:flex;flex-direction:column;gap:9px;padding:2px 4px 16px}
.drawer-search{width:100%;height:42px;background:#22355C;border:1px solid #31497A;border-radius:11px;color:#9FB0CC;justify-content:flex-start;padding:0 12px;gap:9px}
.drawer-search .search-label{display:inline;font-size:12.5px;color:#C4D0E6}
.drawer-search kbd{display:inline-block;margin-left:auto;background:#24365C;border-color:#33497A;color:#93A7CC}
.drawer-create{width:100%;min-height:42px;border-radius:11px;font-size:13px}
.sidebar{transition:transform .45s cubic-bezier(.32,.72,0,1),box-shadow .45s ease}
@media (max-width:700px){
  #sidebar{z-index:36}
  .sidebar.open{box-shadow:26px 0 64px rgba(9,20,42,.38)}
  /* Blurred, dimmed backdrop over the page while the drawer is open */
  body::before{content:"";position:fixed;inset:0;z-index:28;background:rgba(11,23,44,.34);
    -webkit-backdrop-filter:blur(7px) saturate(1.15);backdrop-filter:blur(7px) saturate(1.15);
    opacity:0;visibility:hidden;transition:opacity .38s ease,visibility 0s linear .38s;pointer-events:none}
  html.mobile-nav-open body::before{opacity:1;visibility:visible;transition:opacity .38s ease}
  /* Nav items glide in one after another */
  .sidebar.open .nav-label{animation:drawerIn .45s cubic-bezier(.32,.72,0,1) both}
  .sidebar.open .nav-item{animation:drawerIn .5s cubic-bezier(.32,.72,0,1) both}
  .sidebar.open .nav-item:nth-child(1){animation-delay:.05s}
  .sidebar.open .nav-item:nth-child(2){animation-delay:.09s}
  .sidebar.open .nav-item:nth-child(3){animation-delay:.13s}
  .sidebar.open .nav-item:nth-child(4){animation-delay:.17s}
  .sidebar.open .nav-item:nth-child(5){animation-delay:.21s}
  .sidebar.open .nav-item:nth-child(6){animation-delay:.25s}
  .sidebar.open .nav-item:nth-child(7){animation-delay:.29s}
  .sidebar.open .nav-item:nth-child(8){animation-delay:.33s}
}
@keyframes drawerIn{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:translateX(0)}}
@media (max-width:700px){
  .topbar{height:60px;padding:0 10px;gap:4px}
  .main-area{margin-top:60px}
  .sidebar{padding-top:74px}
  .topbar-brand{gap:7px;padding-right:2px}
  .topbar-brand img{height:30px}
  .topbar-wordmark{font-size:15px;letter-spacing:-.5px}
  .topbar .top-actions{gap:7px;flex:none}
  .topbar-menu{flex:none}
  .notification-panel{top:66px;right:12px}
}
@media (max-width:352px){
  .topbar-wordmark{display:none}
}

/* Profile photo + identity (rd7) */
.profile-avatar-img{width:41px;height:41px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.9);box-shadow:0 3px 10px rgba(0,45,86,.3);display:block;background:#fff}
.profile-trigger:active .profile-avatar-img{transform:scale(.92)}
.profile-menu-identity{display:flex;flex-direction:column;gap:2px}
.profile-menu-identity b{font-size:13px;color:var(--ink)}
.profile-menu-identity span{font-size:11px;color:var(--muted)}
.profile-form{display:flex;flex-direction:column;gap:12px;padding:2px 20px 18px}
.profile-form label{display:flex;flex-direction:column;gap:6px;color:#647188;font-size:11px;font-weight:650}
.profile-form input{height:44px;border:1px solid #dfe5ee;border-radius:9px;background:#fff;padding:0 12px;color:#35435a;font-size:14px;outline:0}
.profile-form input:focus{border-color:#8399f5;box-shadow:0 0 0 3px #edf0ff}
.profile-form-head{display:flex;align-items:center;gap:13px}
.profile-big-avatar{width:56px;height:56px;border-radius:50%;background:var(--brand-yellow);color:#00548F;display:grid;place-items:center;font-size:16px;font-weight:800;overflow:hidden;flex:none;border:2px solid #fff;box-shadow:0 3px 10px rgba(0,45,86,.18)}
.profile-big-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-form-meta{display:flex;flex-direction:column;gap:2px;min-width:0}
.profile-form-meta b{font-size:14.5px;color:var(--ink)}
.profile-form-meta span{font-size:12px;color:var(--muted)}
.profile-form-meta small{font-size:11px;color:var(--muted);line-height:1.45}

/* Auth hero — logo + welcome on sign-in screens (rd9) */
.auth-hero{display:none}
.auth-aside-logo{height:46px;width:auto;display:block}
@media (max-width:700px){
  .auth-hero{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;margin:10px 0 24px;animation:authHeroIn .5s cubic-bezier(.22,.8,.3,1)}
  .auth-hero-logo{height:66px;width:auto;filter:drop-shadow(0 8px 18px rgba(0,84,143,.20))}
  .auth-welcome{margin:0;font-size:20px;font-weight:650;color:#5B6B84;letter-spacing:-.2px}
  .auth-welcome b{color:var(--brand-blue);font-weight:800}
}
@keyframes authHeroIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

/* ==================================================================
   RD11 — side menu matches the sky-blue top bar, bigger nav buttons,
   drawer header, Home day popup detail/compact modes
   ================================================================== */
.sidebar{
  background:linear-gradient(180deg,#0E80D2 0%,#0070C0 58%,#006BB4 100%);
  box-shadow:10px 0 34px rgba(0,84,143,.18);
}
.nav-label{color:rgba(255,255,255,.62);font-size:10.5px;letter-spacing:1.4px;padding:0 14px 10px}
.main-nav{gap:6px}
.nav-item{height:52px;border-radius:12px;padding:0 14px;gap:14px;font-size:15px;color:rgba(255,255,255,.86)}
.nav-item:hover{background:rgba(255,255,255,.13);color:#fff}
.nav-item .nav-icon{color:rgba(255,255,255,.78)}
.nav-icon svg{width:21px;height:21px}
.nav-item.active{background:#fff;color:#006BB4;font-weight:700;box-shadow:0 8px 18px rgba(0,60,110,.28)}
.nav-item.active .nav-icon{color:#0070C0}
.nav-count{background:rgba(255,255,255,.22);color:#fff;font-size:11px;min-width:24px;height:24px;border-radius:12px;padding:0 7px}
.nav-item.active .nav-count{background:#E8F3FB;color:#006BB4}
.drawer-head{display:none}
@media (max-width:700px){
  #sidebar{z-index:45;padding:calc(10px + env(safe-area-inset-top,0px)) 14px calc(14px + env(safe-area-inset-bottom,0px))}
  .drawer-head{display:flex;align-items:center;gap:10px;padding:2px 4px 16px}
  .drawer-head img{height:31px;width:auto;display:block;filter:drop-shadow(0 3px 8px rgba(0,60,110,.30))}
  .drawer-head span{color:#fff;font-weight:800;font-size:16.5px;letter-spacing:-.2px}
  .drawer-close{margin-left:auto;width:38px;height:38px;border-radius:50%;border:0;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;flex:none}
  .drawer-close svg{width:17px;height:17px}
  .drawer-close:active{background:rgba(255,255,255,.3)}
}
/* Home day popup — detail cards (few) / compact rows (many) / detail view */
.home-day-sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.hd-hint{font-size:11px;color:#93A0B4;font-weight:600}
.hd-cards{display:flex;flex-direction:column;gap:10px}
.hd-card{border:1px solid #E6ECF5;border-radius:14px;padding:13px 14px;background:#FBFCFE;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.hd-card:active{border-color:#B9CFF5;box-shadow:0 4px 14px rgba(0,84,143,.10)}
.hd-card.is-done{opacity:.72}
.hd-card-top{display:flex;align-items:flex-start;gap:9px}
.hd-card-top h4{margin:1px 0 0;font-size:15px;line-height:1.35;color:#1E2B43;font-weight:700;flex:1;min-width:0}
.hd-card.is-done h4{text-decoration:line-through;color:#8A96A9}
.hd-meta{display:flex;flex-wrap:wrap;gap:4px 12px;margin:9px 0 0 37px;color:#71809A;font-size:12px;line-height:1.45}
.hd-meta-time{color:#43516A;font-weight:650}
.hd-note{margin:8px 0 0 37px;font-size:13px;line-height:1.55;color:#43516A;white-space:pre-wrap}
.hd-more{display:block;margin:9px 0 0 37px;font-size:12px;font-weight:700;color:var(--brand-blue)}
.hd-badge{flex:none;font-size:10px;font-weight:800;letter-spacing:.4px;padding:4px 8px;border-radius:99px;text-transform:uppercase}
.hd-badge.open{background:#E8F3FB;color:#0070C0}
.hd-badge.overdue{background:#FDECEA;color:#C0453E}
.hd-badge.done{background:#E7F6EE;color:#1E9E6A}
.hd-list .activity-row{cursor:pointer}
.hd-compact .activity-copy b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.35}
.hd-compact .activity-copy small{font-size:11.5px}
.hd-detail-subject{font-size:19px;line-height:1.3}
.hd-detail-status{display:flex;gap:8px;margin-bottom:12px}
.hd-detail-note{border:1px solid #E6ECF5;background:#FBFCFE;border-radius:12px;padding:11px 13px;margin-bottom:14px}
.hd-detail-note b{font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#71809A}
.hd-detail-note p{margin:6px 0 0;font-size:13.5px;line-height:1.6;color:#2A3852;white-space:pre-wrap}
.hd-fields{margin:0;display:flex;flex-direction:column}
.hd-fields>div{display:flex;gap:14px;padding:9px 2px;border-top:1px solid #EFF3F8}
.hd-fields dt{flex:0 0 96px;font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#93A0B4;padding-top:1px}
.hd-fields dd{margin:0;font-size:13.5px;color:#2A3852;font-weight:600;line-height:1.45}

/* ---------- RD12: side-menu buttons genuinely bigger (owner round 2) ----------
   styles.css caps #sidebar .nav-item at 34px/12px inside its mobile block;
   these rules match that specificity and come later, so they win. */
.nav-item{height:56px;font-size:16px}
.nav-icon svg{width:21px;height:21px}
@media (max-width:700px){
  #sidebar .main-nav{gap:6px}
  #sidebar .nav-item{min-height:58px;height:58px;padding:0 14px;gap:14px;font-size:16.5px;border-radius:13px}
  #sidebar .nav-icon{width:24px;height:24px;flex:0 0 24px}
  #sidebar .nav-icon svg{width:23px;height:23px}
  #sidebar .nav-label{font-size:10.5px;margin:2px 10px 8px}
  #sidebar .nav-count{min-width:24px;height:24px;font-size:11.5px;border-radius:12px}
  #sidebar .profile-row{min-height:52px}
  .drawer-head span{font-size:18px}
  .drawer-head img{height:34px}
  .drawer-close{width:44px;height:44px}
}
.av-head-actions{display:flex;gap:4px;align-items:flex-start;flex:none}

/* RD18b: phase activity rows are flex (text left, check right), not the old 3-col grid. */
.phase-activity.activity-row{display:flex;align-items:center;grid-template-columns:none;grid-template-areas:none}
.phase-activity>span{grid-area:auto}
.phase-activity .activity-check{grid-area:auto}

/* RD20: profile menu — bigger, photo header, uniform icon rows. */
.profile-menu{width:min(312px,calc(100vw - 24px));padding:10px;border-radius:16px}
.profile-menu button{min-height:52px;font-size:15.5px;border-radius:10px;padding:0 12px}
.profile-menu [data-view],.profile-menu [data-action]{flex-direction:row;align-items:center}
.profile-menu .profile-menu-identity{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;margin-bottom:6px;border-bottom:1px solid var(--line);border-radius:12px;background:transparent;color:var(--ink)}
.pm-avatar{width:46px;height:46px;border-radius:50%;overflow:hidden;flex:none;background:#E8F3FC;color:#0070C0;font-weight:800;font-size:16px;display:grid;place-items:center}
.pm-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.pm-id-text{display:grid;gap:1px;min-width:0;flex:1;text-align:left}
.pm-id-text b{font-size:16.5px;color:var(--ink)}
.pm-id-text small{font-size:12.5px;color:#768196;overflow-wrap:anywhere}
.pm-chevron{width:18px;height:18px;color:#9AA5B5;flex:none;display:grid;place-items:center}
.pm-chevron svg{width:100%;height:100%}
.pm-item{display:flex;align-items:center;gap:12px}
.pm-icon{width:21px;height:21px;flex:none;color:#5A6B84;display:grid;place-items:center}
.pm-icon svg{width:100%;height:100%}
.profile-menu .profile-menu-logout{color:#C0392B}
.profile-menu .profile-menu-logout .pm-icon{color:#C0392B}
.team-position-edit{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.team-position-edit input{flex:1 1 170px;min-height:42px;border:1px solid var(--line,#E4E8EF);border-radius:9px;padding:7px 10px;font:inherit;background:#fff;color:var(--ink)}

/* rd21 — Home: slim date header, readable calendar, metric bricks, entrance motion */
.home-top{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 10px}
.home-date{font-size:16.5px;font-weight:750;color:#22314A;margin:0}
@keyframes pnbDashIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
.dash-in{animation:pnbDashIn .38s cubic-bezier(.22,.8,.32,1) both}
section.metric-grid.dash-in{animation-delay:.05s}
section.dashboard-grid.dash-in{animation-delay:.1s}
section.tip-banner.dash-in{animation-delay:.15s}
.brick-grid{gap:12px}
.metric-card.brick{font:inherit;text-align:left;cursor:pointer;border-radius:18px;padding:16px;min-height:118px;transition:transform .16s ease,box-shadow .16s ease;box-shadow:0 2px 10px rgba(23,51,84,.06)}
.metric-card.brick:active{transform:scale(.96)}
.metric-card.brick strong{font-size:28px;line-height:1.1}
.metric-card.brick.tone-orange{background:#FFF6EC;border-color:#F5DFC4}
.metric-card.brick.tone-blue{background:#EEF5FD;border-color:#CBDEF5}
.metric-card.brick.tone-purple{background:#F4F0FE;border-color:#DDD2F7}
.metric-card.brick.tone-green{background:#EBF8F0;border-color:#C4E8D2}
/* home calendar — bigger day numbers, one clear count pill, no tiny dots */
.home-cal-heading h2{font-size:20px}
.home-cal-weekdays span{font-size:12px;letter-spacing:.3px;color:#5F7189;padding:9px 0 7px}
.home-cal-grid{gap:5px;padding:4px 12px 14px}
.home-cal-day{min-height:53px;border-radius:13px;gap:5px;padding:7px 2px 6px}
.home-cal-num{width:33px;height:33px;font-size:17px;font-weight:750}
.home-cal-day.today .home-cal-num{background:#0E80D2;box-shadow:0 3px 9px rgba(14,128,210,.35)}
.home-cal-day.selected{border-color:#0E80D2;background:#EAF4FC;box-shadow:inset 0 0 0 1px #0E80D2}
.home-cal-day.outside{color:#A3B0C1}
.home-cal-count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:19px;padding:0 6px;border-radius:999px;background:#E2F3E9;color:#146C43;font-size:12px;font-weight:800;line-height:1}
.home-cal-count.all-done{background:#EDF1F6;color:#7A8798}
.home-cal-day.selected .home-cal-count{background:#0E80D2;color:#fff}
.home-cal-agenda-head b{font-size:14.5px}
/* Calendar sync + LINE: one tidy duo, visible without scrolling */
.gcp-page{padding-top:22px}
.gcp-header{margin-bottom:6px}
.gcp-header h1{font-size:27px}
.gcp-subtitle{font-size:14.5px;line-height:1.45;max-width:560px}
.gcp-duo{display:grid;gap:12px;margin:14px 0 4px}
.gcp-duo .gcp-card{margin:0}
@media(min-width:920px){.gcp-duo{grid-template-columns:1fr 1fr;align-items:start}}
@media(max-width:600px){
  .gcp-duo .gcp-card{padding:16px}
  .gcp-duo .gcp-actions{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 2px}
  .gcp-duo .gcp-actions .gcp-button{flex:1 1 0;width:auto;min-height:47px}
  .gcp-duo .gcp-details{gap:8px 26px;margin-top:14px;padding-top:13px}
  .gcp-duo .gcp-details div{min-width:0}
  .gcp-duo .gcp-details dd{font-size:15px}
  .gcp-line-card .gcp-muted{font-size:13.5px;line-height:1.5}
  .gcp-duo .gcp-status-line p{font-size:13.5px;margin-top:3px}
}
@media(prefers-reduced-motion:reduce){.dash-in{animation:none}}
@media(max-width:700px){.contacts-results th:nth-child(4),.contacts-results td:nth-child(4){display:none}}

/* rd22 — home calendar, reference layout: month title + chevrons, weekday pill strip,
   borderless grid; activity days = filled green disc, today = filled blue disc + outer ring */
.home-cal-panel{border-radius:26px;box-shadow:0 12px 32px rgba(23,51,84,.08)}
.home-cal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 20px 4px}
.home-cal-title{display:flex;align-items:center;gap:8px;min-width:0}
.home-cal-title h2{font-size:23px;font-weight:800;letter-spacing:-.02em;margin:0}
.home-cal-year{color:#98A5B8;font-weight:650;font-size:19px}
.home-cal-nav-arrows{display:flex;gap:0}
.home-cal-nav-arrows .icon-button{width:32px;height:32px;font-size:21px;color:#5B6B82}
.home-cal-today{border:1.5px solid #D8E1EC;background:#fff;border-radius:999px;min-height:35px;padding:0 16px;font-size:13px;font-weight:700;color:#22314A}
.home-cal-weekdays{background:#F1F4F8;border-radius:999px;margin:12px 14px 2px;padding:0 4px}
.home-cal-weekdays span{font-size:12.5px;font-weight:650;letter-spacing:.2px;color:#68788E;padding:8px 0}
.home-cal-weekdays span:last-child{color:#22314A;font-weight:800}
.home-cal-grid{gap:2px;padding:8px 10px 12px}
.home-cal-day{min-height:53px;border:1px solid transparent;background:transparent;border-radius:14px;gap:3px;padding:5px 0}
.home-cal-day.selected{background:#F2F8FD;border-color:transparent;box-shadow:none}
.home-cal-num{width:40px;height:40px;font-size:17px;font-weight:600;background:transparent;color:var(--ink);box-shadow:none}
.home-cal-day.has-open .home-cal-num{background:#1FA855;color:#fff;font-weight:800;box-shadow:none}
.home-cal-day.has-done .home-cal-num{background:#DFF2E4;color:#177245;font-weight:750;box-shadow:none}
.home-cal-day.selected .home-cal-num{box-shadow:0 0 0 2px #fff,0 0 0 4.5px rgba(14,128,210,.55)}
.home-cal-day.has-open.selected .home-cal-num{background:#1FA855;color:#fff}
.home-cal-day.has-done.selected .home-cal-num{background:#DFF2E4;color:#177245}
.home-cal-day.today .home-cal-num{background:#0E80D2;color:#fff;font-weight:800;box-shadow:0 0 0 3px #fff,0 0 0 6px #0E80D2}
.home-cal-day.outside:not(.today):not(.selected) .home-cal-num{opacity:.45}
.home-cal-day.outside:not(.today):not(.selected) .home-cal-count{opacity:.55}
.home-cal-count{display:inline-flex;align-items:center;justify-content:center;background:transparent;min-width:0;height:15px;padding:0;font-size:11.5px;font-weight:800;color:#177245;line-height:1}
.home-cal-count.all-done{background:transparent;color:#8A97A8}
.home-cal-day.selected .home-cal-count{background:transparent;color:#0E80D2}
.home-cal-day.today .home-cal-count{background:transparent;color:#0E80D2}
/* rd22b — today wins over has-open/has-done even when selected (the default view) */
.home-cal-title{flex:1}
.home-cal-title h2{white-space:nowrap}
.home-cal-day.today.selected .home-cal-num,
.home-cal-day.today.has-open .home-cal-num,
.home-cal-day.today.has-done .home-cal-num{background:#0E80D2;color:#fff;font-weight:800;box-shadow:0 0 0 3px #fff,0 0 0 6px #0E80D2}

/* rd23 — activity detail sheet: visual cards instead of a plain text table */
.hd-head-main{display:flex;gap:12px;align-items:flex-start;min-width:0}
.hd-head-icon{width:42px;height:42px;border-radius:13px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}
.hd-head-icon svg{width:21px;height:21px}
.hd-detail-status{align-items:center;flex-wrap:wrap}
.hd-rel{font-size:12px;font-weight:750;padding:4px 10px;border-radius:999px;background:#EEF3F9;color:#526176}
.hd-rel.overdue{background:#FDECEA;color:#C23325}
.hd-rel.today{background:#E3F0FB;color:#0B65AD}
.hd-due-card{display:flex;align-items:center;gap:12px;background:#F2F7FD;border:1px solid #E1EDF9;border-radius:16px;padding:13px 15px;margin-bottom:12px}
.hd-due-card.overdue{background:#FDF0EE;border-color:#F6D9D4}
.hd-due-card.done{background:#F0F7F2;border-color:#DCEDE2}
.hd-due-icon{width:38px;height:38px;border-radius:11px;background:#fff;display:inline-flex;align-items:center;justify-content:center;color:#0E80D2;flex:0 0 auto;box-shadow:0 1px 3px rgba(23,51,84,.08)}
.hd-due-icon svg{width:19px;height:19px}
.hd-due-card.overdue .hd-due-icon{color:#C23325}
.hd-due-card.done .hd-due-icon{color:#177245}
.hd-due-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.hd-due-text small{font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#71809A}
.hd-due-card.overdue .hd-due-text small{color:#C23325}
.hd-due-text b{font-size:15px;color:#1D2B44}
.hd-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.hd-info-card{background:#F6F8FB;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:5px;min-width:0}
.hd-info-label{font-size:10.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#93A0B4}
.hd-info-value{display:flex;align-items:center;gap:7px;font-size:13.5px;font-weight:650;color:#2A3852;line-height:1.35;min-width:0}
.hd-info-value .activity-type{width:24px;height:24px;border-radius:8px;flex:0 0 auto}
.hd-avatar{width:24px;height:24px;border-radius:50%;background:#DCE9F7;color:#0B65AD;font-size:10.5px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.hd-ic{display:inline-flex;color:#71809A;flex:0 0 auto}
.hd-ic svg{width:17px;height:17px}

/* rd24 — activity form tidy: plain colour block, Auto + 3 colours, uniform swatches */
.activity-color-field{border:0;padding:0;margin:0}
.activity-color-label{display:block;font-size:13.5px;font-weight:650;color:#3D4E68;margin-bottom:9px}
.activity-color-palette{display:flex;gap:16px;flex-wrap:wrap;align-items:flex-start}
.activity-color-palette .activity-color-opt{display:inline-flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;position:relative;font-size:12px;font-weight:600;color:#5B6B82}
.activity-color-palette .activity-color-opt i{width:38px;height:38px;box-shadow:inset 0 0 0 1px rgba(16,42,80,.12)}
.activity-color-palette .activity-color-opt input:checked+i{outline:3px solid #0E80D2;outline-offset:2px}
.activity-color-palette .activity-color-opt input:checked~span{color:#0B65AD;font-weight:700}

/* rd25 — Google Sheets card on the integrations page */
.gcp-actions a.gcp-button{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.gcp-sheets{margin-top:14px}

/* rd26 — LINE link in 2 big steps, no checkbox */
.line-steps{display:grid;gap:10px}
.line-add-btn{background:#06C755!important;color:#fff!important;border:0;min-height:52px;border-radius:14px;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:center;text-decoration:none;padding:0 16px}
.line-steps .line-connect-btn{min-height:52px;font-size:16px;width:100%}
.line-step-note{margin:0;font-size:13px;line-height:1.5;color:#66788E}
.line-consent-note{margin:0;font-size:12.5px;line-height:1.55;color:#66788E}

/* rd27 — LINE link: a single button (friend add happens on LINE's screen) */
.line-friend-help{margin:0;font-size:13px;line-height:1.5;color:#66788E}
.line-friend-link{color:#06C755;font-weight:700;text-decoration:none}

/* rd28 — Team directory (profile menu → Team) */
.team-dir-list{display:grid;gap:10px}
.team-card{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #E3EAF3;border-radius:16px;padding:10px 14px}
.team-avatar{width:46px;height:46px;border-radius:50%;overflow:hidden;flex:none;background:#E8F2FB;color:#0E80D2;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:16px}
.team-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.team-main{flex:1;min-width:0;display:grid;gap:2px}
.team-name{font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-sub{font-size:12.5px;color:#66788E;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.team-phone{font-size:14.5px;color:#0E80D2;text-decoration:none;font-weight:700}
.team-nophone{font-size:13px;color:#98A6B5}
.team-line{flex:none;font-size:11.5px;font-weight:700;padding:5px 9px;border-radius:999px;text-align:center}
.team-line.on{background:#DFF7E8;color:#0B7A3E}
.team-line.off{background:#EEF2F6;color:#7A8794}
.team-group-btn{margin-top:14px;width:100%}

/* rd30: Facebook-style notifications — unread bold on a tinted row, read normal */
.notification-item{padding:12px;border-radius:12px;border-bottom:0;margin-bottom:2px}
.notification-item b{font-size:14px;line-height:1.45}
.notification-item small{font-size:12px}
.notification-item:not(.unread) b{font-weight:500;color:#43536A}
.notification-item.unread{background:#E8F1FB}
.notification-item.unread b{font-weight:800;color:#0B2B4A}
.notification-item.unread small{color:#3E6DA3}

/* rd31: premium property pipeline — journey stages, funnel hero, rich cards */
.kanban-board{grid-template-columns:repeat(6,minmax(238px,82vw))}
@media (min-width:900px){.kanban-board{grid-template-columns:repeat(6,minmax(225px,1fr))}}
.pipe-hero{background:linear-gradient(120deg,#0A2547,#0E5FA8 70%,#0E80D2);border-radius:18px;padding:18px;color:#fff;box-shadow:0 10px 26px rgba(10,37,71,.22);margin-bottom:12px}
.pipe-hero-label{font-size:11px;font-weight:700;letter-spacing:.14em;color:#F2C94C;margin:0 0 4px}
.pipe-hero-value{font-size:31px;font-weight:800;line-height:1.1;margin:0}
.pipe-hero-sub{font-size:13px;color:rgba(255,255,255,.82);margin:3px 0 0}
.funnel-bar{display:flex;gap:2px;height:10px;border-radius:99px;overflow:hidden;background:rgba(255,255,255,.16);margin:14px 0 9px}
.funnel-seg{display:block;height:100%}
.funnel-legend{display:flex;flex-wrap:wrap;gap:6px 14px}
.funnel-key{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:rgba(255,255,255,.88)}
.funnel-key b{color:#fff}
.funnel-dot{width:9px;height:9px;border-radius:50%;flex:none}
.board-hint-line{font-size:12.5px;color:#687792;margin:0 0 10px}
.kanban-column{border-top:4px solid var(--stage,#0E80D2);background:#F5F8FC;border-radius:14px}
.stage-dot{width:11px;height:11px;border-radius:50%;background:var(--stage,#0E80D2);flex:none;box-shadow:0 0 0 3px #fff}
.column-title{display:flex;align-items:center;gap:9px}
.column-title b{font-size:16px}
.pdeal{border-radius:14px;border-left:5px solid var(--stage,#0E80D2);padding:12px;box-shadow:0 3px 10px rgba(20,50,90,.07)}
.pdeal h3{font-size:16px;font-weight:700;line-height:1.35;margin:8px 0 2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pdeal-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.source-chip{display:inline-flex;align-items:center;gap:5px;background:#EAF2FC;color:#0E5FA8;font-size:11px;font-weight:700;letter-spacing:.02em;padding:4px 9px;border-radius:99px}
.source-chip.muted-chip{background:#EEF1F5;color:#687792}
.pdeal-value{font-size:21px;font-weight:800;color:#0A2547;margin-top:8px}
.pdeal-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.close-chip,.age-chip{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:600;padding:4px 9px;border-radius:99px;background:#EEF1F5;color:#43536A}
.close-chip svg,.pdeal-next svg{width:13px;height:13px}
.age-chip.stale-warm{background:#FEF3C7;color:#92400E}
.age-chip.stale-hot{background:#FDE8E8;color:#B42318}
.pdeal-next{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:11px;min-height:39px;border:0;border-radius:11px;background:#EAF2FC;color:#0E5FA8;font-size:13.5px;font-weight:700;cursor:pointer}
.pdeal-next:active{background:#D8E8FA}
.pdeal-next:disabled{opacity:.55}

/* rd32: Trash */
.trash-panel{padding:8px 14px}
.trash-row{display:flex;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid #EDF1F6;flex-wrap:wrap}
.trash-row:last-child{border-bottom:0}
.trash-kind{flex:none;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;background:#EEF2F7;color:#43536A;padding:5px 10px;border-radius:99px}
.trash-main{flex:1;min-width:150px}
.trash-main b{display:block;font-size:15.5px;color:#12263F}
.trash-main small{display:block;font-size:12px;color:#687792;margin-top:2px}
.trash-actions{display:flex;gap:8px}
.trash-empty{font-size:14px;color:#687792;padding:18px 6px}
.pm-icon svg{width:19px;height:19px}

/* rd36: completed-records link on Home */
.panel-foot{padding:10px 16px 14px;border-top:1px solid var(--line,#e3e7ed)}
.panel-foot .text-link{font-size:13.5px;font-weight:600}

/* rd39: fixed per-member colours */
.team-dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:7px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}

/* rd41: Team hub — invite + member editing on demand */
.team-card{flex-wrap:wrap}
.team-edit-btn{margin-top:6px}
.team-editor{flex:1 1 100%;border-top:1px solid #E3EAF3;margin-top:10px;padding-top:10px}
.team-editor .team-member-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.team-editor-email{font-size:12.5px;color:#66788E}
.team-invite-btn{width:100%;margin-bottom:12px}
.team-invite-panel{display:grid;gap:12px;margin-bottom:14px}
.team-invite-panel[hidden]{display:none}
.team-log-panel{margin-top:14px}

/* rd42: profile colour picker */
.profile-color-grid{display:flex;flex-wrap:wrap;gap:10px}
.profile-color-swatch{display:flex;flex-direction:column;align-items:center;gap:5px;width:60px;padding:9px 2px 7px;border:2px solid transparent;border-radius:14px;background:#F4F8FC;cursor:pointer}
.profile-color-swatch i{width:32px;height:32px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.profile-color-swatch span{font-size:10.5px;color:var(--muted,#687386);max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:13px}
.profile-color-swatch.selected{border-color:#0E80D2;background:#EAF4FC}
.profile-color-swatch:disabled{opacity:.38;cursor:not-allowed}

/* rd43: Team toolbar + collapsible activity log */
.team-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.team-dir-list:not(.editing) .team-edit-btn{display:none}
#team-edit-toggle[aria-expanded="true"]{background:#EAF4FC;border-color:#0E80D2;color:#0B5FA5}
.team-log-tools{display:flex;justify-content:flex-end;margin-bottom:8px}
.team-log-body[hidden]{display:none}

/* rd44: pro activity detail — clean definition list */
.hd-pro-list{margin:2px 0 0;display:flex;flex-direction:column}
.hd-pro-row{display:flex;gap:14px;padding:11px 1px;border-top:1px solid #EDF1F6;align-items:flex-start}
.hd-pro-row:first-child{border-top:0;padding-top:2px}
.hd-pro-row dt{flex:0 0 86px;font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#8494AB;padding-top:3px}
.hd-pro-row dd{margin:0;flex:1;min-width:0;font-size:15px;line-height:1.45;color:#22314E;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hd-pro-due{font-weight:750}
.hd-pro-due.overdue{color:#C23325}
.hd-pro-due.today{color:#0B65AD}
.hd-pro-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}
.hd-pro-note{white-space:pre-wrap;line-height:1.55}
.hd-by{display:inline-flex;align-items:center;gap:5px}
.hd-by i{width:8px;height:8px;border-radius:50%;display:inline-block}
.hd-head-icon{color:#fff}

/* rd48 - Activity Log, Facebook-notification style */
.team-log-panel .panel-heading { align-items: flex-start; gap: 10px; }
.alog-actions { display: flex; gap: 8px; flex: none; }
.alog-actions .btn { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.team-activity-log { margin-top: 4px; }
.alog-row { display: flex; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #E7EEF5; align-items: flex-start; }
.alog-row:last-child { border-bottom: 0; }
.alog-ava { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(18, 45, 80, .08); }
.alog-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alog-main { flex: 1; min-width: 0; padding-top: 1px; }
.alog-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: #3C526B; overflow-wrap: anywhere; }
.alog-text b { color: #14273F; font-weight: 700; }
.alog-time { display: block; margin-top: 2px; font-size: 12.5px; color: #7D93A9; }
#more-team-log { width: 100%; margin-top: 10px; }

/* rd52 - Profile settings, cleaned */
.pf-in { animation: pf-rise .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes pf-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pf-id-row { display: flex; gap: 16px; align-items: center; }
.pf-avatar { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; background: #E9F4FC; color: #0A63A8; display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 6px 16px -6px rgba(18, 45, 80, .25), inset 0 0 0 1px rgba(18, 45, 80, .06); }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pf-cam { position: absolute; right: -2px; bottom: -2px; width: 27px; height: 27px; border-radius: 50%; background: #0E80D2; color: #fff; display: grid; place-items: center; border: 2px solid #fff; cursor: pointer; transition: transform .15s ease; }
.pf-cam:active { transform: scale(.88); }
.pf-id-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pf-name { font-size: 17.5px; font-weight: 750; color: #14273F; }
.pf-sub { font-size: 13px; color: #7D93A9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-id-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.pf-upload { min-height: 38px; padding: 7px 14px; font-size: 13.5px; border-radius: 11px; cursor: pointer; }
.pf-remove { border: 0; background: none; color: #C23325; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 6px 2px; }
.pf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pf-head h2 { margin: 0; font-size: 16.5px; }
.pf-head-note { font-size: 12.5px; color: #7D93A9; }
.profile-color-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pf-swatch { border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; transition: transform .16s cubic-bezier(.22, 1.24, .36, 1); }
.pf-swatch:active { transform: scale(.88); }
.pf-swatch i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-style: normal; box-shadow: inset 0 0 0 1px rgba(18, 45, 80, .08); transition: box-shadow .2s ease; }
.pf-swatch i span { font-size: 12px; font-weight: 700; }
.pf-swatch.selected i { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--sc), 0 6px 14px -6px rgba(18, 45, 80, .4); }
.pf-swatch:disabled { cursor: default; }
.pf-swatch:disabled i { opacity: .45; }
.pf-avatar { border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.pf-color-dot { margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(18,45,80,.18), 0 4px 10px -4px rgba(18,45,80,.4); cursor: pointer; padding: 0; transition: transform .15s ease; }
.pf-color-dot:active { transform: scale(.88); }
.pf-pop { max-width: 350px; }
.pf-pop-body { padding: 20px; }
.pf-sheet { display: flex; flex-direction: column; gap: 10px; }
.pf-note { color: #7d899d; font-size: 12px; margin: 0 0 12px; }
.pf-form-actions { display: flex; gap: 10px; justify-content: flex-end; }
.pf-form-actions .btn { min-width: 108px; }
@media (prefers-reduced-motion: reduce) { .pf-in { animation: none; } .pf-swatch, .pf-cam { transition: none; } }

/* rd54 - Pull-to-refresh, PNB line mark only */
html { overscroll-behavior-y: none; }
#ptr { height: 0; overflow: hidden; display: grid; place-items: center; }
#ptr.ptr-anim { transition: height .55s cubic-bezier(.16, 1, .3, 1); }
.ptr-mark { width: 40px; height: auto; overflow: visible; opacity: .25; }
.ptr-line { stroke: #0E80D2; fill: none; }
.ptr-cloud, .ptr-roof { stroke-width: 4; }
.ptr-star { stroke-width: 2.8; }
#ptr.refreshing .ptr-mark { opacity: 1; animation: ptr-mark-cycle 2.6s ease-in-out infinite; }
#ptr.refreshing .ptr-line { animation: ptr-line-draw 2.6s ease-in-out infinite; animation-fill-mode: backwards; }
#ptr.refreshing .ptr-roof { animation-delay: .38s; }
#ptr.refreshing .ptr-star { animation-delay: .72s; }
@keyframes ptr-line-draw { 0% { stroke-dashoffset: 100; } 42%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes ptr-mark-cycle { 0% { opacity: .25; } 6% { opacity: 1; } 90% { opacity: 1; } 97%, 100% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { #ptr.refreshing .ptr-line, #ptr.refreshing .ptr-mark { animation: none; } }

/* rd57 - DiiJai assistant + admin */
#diijai-root { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 44; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dj-bubble { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 0 18px 0 12px; height: 54px; border-radius: 999px; color: #fff; font-weight: 750; font-size: 15px; background: linear-gradient(135deg, #11998e, #0E80D2); box-shadow: 0 14px 30px -8px rgba(10, 90, 140, .45), 0 3px 8px rgba(10, 90, 140, .25); transition: transform .18s ease, box-shadow .18s ease; }
.dj-bubble:active { transform: scale(.95); }
.dj-bubble-ic { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.dj-bubble-ic svg { width: 19px; height: 19px; stroke: #fff; }
.dj-panel { width: min(384px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 110px)); background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -18px rgba(15, 40, 70, .4), 0 4px 14px rgba(15, 40, 70, .12); display: flex; flex-direction: column; overflow: hidden; animation: dj-in .38s cubic-bezier(.16, 1, .3, 1); }
@keyframes dj-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.dj-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(120deg, #0E80D2, #11998e); color: #fff; }
.dj-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.dj-ava svg { width: 21px; height: 21px; stroke: #fff; }
.dj-head-t { flex: 1; min-width: 0; }
.dj-head-t b { display: block; font-size: 16px; line-height: 1.2; }
.dj-head-t small { font-size: 11.5px; opacity: .85; }
.dj-x { border: 0; background: rgba(255, 255, 255, .18); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 13px; }
.dj-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; background: #F5F8FB; }
.dj-row { display: flex; flex-direction: column; max-width: 88%; }
.dj-row.user { align-self: flex-end; align-items: flex-end; }
.dj-row.assistant { align-self: flex-start; }
.dj-msg { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.55; background: #fff; color: #22314E; border: 1px solid #E4ECF4; border-bottom-left-radius: 5px; overflow-wrap: anywhere; }
.dj-row.user .dj-msg { background: #0E80D2; border-color: #0E80D2; color: #fff; border-radius: 16px; border-bottom-right-radius: 5px; }
.dj-typing { display: flex; gap: 5px; padding: 14px 13px; }
.dj-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9DB8CC; animation: dj-blink 1.2s infinite; }
.dj-typing span:nth-child(2) { animation-delay: .18s; }
.dj-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes dj-blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.dj-prop { margin-top: 8px; background: #FFF8E8; border: 1px solid #F0DFAE; border-radius: 14px; padding: 11px 12px; }
.dj-prop p { margin: 0 0 5px; font-size: 12.5px; color: #7A6414; }
.dj-prop b { display: block; font-size: 14.5px; color: #22314E; }
.dj-prop small { color: #8494AB; font-size: 12px; }
.dj-prop-btns { display: flex; gap: 8px; margin-top: 9px; }
.dj-confirm { flex: 1; border: 0; background: #0E80D2; color: #fff; font-weight: 700; border-radius: 10px; min-height: 38px; cursor: pointer; font-size: 13.5px; }
.dj-cancel { border: 1px solid #D8E2EC; background: #fff; color: #5A718C; border-radius: 10px; min-height: 38px; padding: 0 14px; cursor: pointer; font-size: 13.5px; }
.dj-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #E7EEF5; background: #fff; align-items: flex-end; }
.dj-form textarea { flex: 1; border: 1px solid #D8E2EC; border-radius: 14px; padding: 10px 12px; font-size: 15px; resize: none; max-height: 96px; font-family: inherit; }
.dj-form textarea:focus { outline: 2px solid #0E80D2; outline-offset: 0; border-color: transparent; }
.dj-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: #0E80D2; color: #fff; display: grid; place-items: center; cursor: pointer; }
.dj-send svg { width: 19px; height: 19px; stroke: #fff; }
.dj-admin-card { padding-bottom: 18px; margin-bottom: 16px; }
.dj-settings { padding: 4px 20px 0; display: flex; flex-direction: column; gap: 14px; }
.dj-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 650; color: #22314E; cursor: pointer; }
.dj-toggle input { display: none; }
.dj-toggle i { width: 50px; height: 29px; border-radius: 999px; background: #CBD8E4; position: relative; transition: background .2s; flex: none; }
.dj-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.dj-toggle input:checked + i { background: #17B26A; }
.dj-toggle input:checked + i::after { left: 24px; }
.dj-field { display: flex; flex-direction: column; gap: 7px; }
.dj-field > span { font-size: 13px; font-weight: 650; color: #3C526B; line-height: 1.5; }
.dj-field textarea { border: 1px solid #D8E2EC; border-radius: 12px; padding: 11px 12px; font-size: 14px; line-height: 1.6; font-family: inherit; resize: vertical; }
.dj-note { padding: 6px 20px; color: #7D93A9; font-size: 13.5px; line-height: 1.6; }
.dj-inbox-list { display: flex; flex-direction: column; padding: 0 8px; }
.dj-conv { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; border: 0; background: transparent; border-top: 1px solid #EEF3F8; padding: 12px 10px; cursor: pointer; }
.dj-conv:first-child { border-top: 0; }
.dj-conv-chip { flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; padding: 4px 8px; border-radius: 999px; background: #E8F7EE; color: #12805C; }
.dj-conv-chip.web { background: #EAF3FC; color: #0B65AD; }
.dj-conv-chip.teamline { background: #E6F7F4; color: #0E7C6B; }
.dj-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dj-conv-main b { font-size: 14px; color: #22314E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-conv-main small { font-size: 12.5px; color: #8494AB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-conv time { font-size: 11.5px; color: #9DB0C2; flex: none; }
.dj-lead { font-style: normal; color: #12805C; font-size: 12px; font-weight: 700; }
.dj-thread-box { margin: 6px 12px 0; background: #F5F8FB; border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; }
@media (prefers-reduced-motion: reduce) { .dj-panel, .dj-typing span { animation: none; } }

/* rd63 - PNB AI panel: close actually works, tidy mobile sheet, smooth motion */
.dj-panel[hidden] { display: none; }
.dj-scrim { position: fixed; inset: 0; background: rgba(9, 26, 43, .38); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: -1; }
#diijai-root.open .dj-scrim { opacity: 1; pointer-events: auto; }
.dj-bubble { transition: opacity .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease; }
#diijai-root.open .dj-bubble { opacity: 0; transform: scale(.85); pointer-events: none; }
.dj-panel { animation: dj-in .34s cubic-bezier(.16, 1, .3, 1); }
.dj-panel.closing { animation: dj-out .18s ease-in forwards; }
@keyframes dj-out { to { opacity: 0; transform: translateY(12px) scale(.98); } }
.dj-x { width: 36px; height: 36px; font-size: 14px; }
@media (max-width: 640px) {
  #diijai-root { left: 12px; right: 12px; align-items: stretch; }
  .dj-panel { width: 100%; height: min(600px, calc(100dvh - 104px)); }
  .dj-bubble { align-self: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .dj-panel, .dj-panel.closing { animation: none; } .dj-scrim, .dj-bubble { transition: none; } }

/* rd66 - PNB AI full page (popup chat removed), attachments, motion */
.dj-chat { display: flex; flex-direction: column; height: min(680px, calc(100dvh - 238px)); min-height: 400px; background: #fff; border: 1px solid #E1EAF2; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 32px -18px rgba(15, 40, 70, .25); }
.dj-chat .dj-msgs { flex: 1; }
.dj-chat .dj-form { padding: 12px; gap: 10px; }
.dj-row { animation: dj-msg-in .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes dj-msg-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.dj-attach { width: 44px; height: 44px; flex: none; border: 1px solid #D8E2EC; background: #F2F7FB; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #0B65AD; transition: transform .15s ease; }
.dj-attach svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dj-attach:active { transform: scale(.93); }
.dj-chiprow { display: flex; align-items: center; gap: 9px; padding: 10px 12px 0; background: #fff; }
.dj-chiprow[hidden] { display: none; }
.dj-chiprow img { width: 40px; height: 40px; object-fit: cover; border-radius: 9px; }
.dj-chip-ic { font-size: 19px; }
.dj-chip-name { flex: 1; min-width: 0; font-size: 13px; color: #3C526B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-chip-x { border: 0; background: #EEF3F8; color: #5A718C; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex: none; font-size: 12px; }
.dj-att { display: block; max-width: 190px; max-height: 190px; border-radius: 12px; margin-bottom: 7px; }
.dj-att-file { display: inline-block; font-size: 12.5px; background: rgba(255, 255, 255, .18); padding: 3px 8px; border-radius: 8px; margin-bottom: 6px; }
.dj-row.assistant .dj-att-file { background: #EEF3F8; color: #3C526B; }
@media (prefers-reduced-motion: reduce) { .dj-row { animation: none; } }

/* rd67 - DiiJai / PNB AI hub: premium minimal */
.dj-hub-tabs { display: flex; gap: 6px; background: #E9EFF5; border-radius: 999px; padding: 5px; margin: 2px 0 18px; }
.dj-hub-tab { flex: 1; border: 0; background: transparent; padding: 11px 10px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #5A718C; cursor: pointer; transition: background .22s cubic-bezier(.16, 1, .3, 1), color .22s, box-shadow .22s; }
.dj-hub-tab.active { background: #fff; color: #0B2B4C; box-shadow: 0 3px 10px rgba(15, 40, 70, .13); }
.dj-admin-card { padding: 22px; border: 1px solid #E4EBF2; border-radius: 20px; box-shadow: 0 10px 28px -20px rgba(15, 40, 70, .22); margin-bottom: 16px; }
.dj-settings { display: flex; flex-direction: column; gap: 16px; }
.dj-toggle { padding: 4px 0; }
.dj-field > span { font-size: 13.5px; font-weight: 650; color: #3C526B; margin-bottom: 7px; }
.dj-field textarea { border: 1px solid #DCE5EE; border-radius: 14px; background: #FBFDFE; padding: 12px 14px; font-size: 14.5px; line-height: 1.55; transition: border-color .18s, box-shadow .18s; }
.dj-field textarea:focus { outline: none; border-color: #0E80D2; box-shadow: 0 0 0 3px rgba(14, 128, 210, .14); background: #fff; }
.dj-know-list { margin: 4px 0 16px; }
.dj-know-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid #EEF3F8; animation: dj-msg-in .3s cubic-bezier(.16, 1, .3, 1); }
.dj-know-row:first-child { border-top: 0; }
.dj-know-ic { width: 38px; height: 38px; border-radius: 11px; background: #F0F6FB; display: grid; place-items: center; font-size: 16px; flex: none; }
.dj-know-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dj-know-main b { font-size: 14.5px; font-weight: 650; color: #14273F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dj-know-main small { font-size: 12px; color: #8494AB; }
.dj-know-del { border: 0; background: none; color: #C23325; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 4px; flex: none; }
.dj-teach-btn { width: 100%; min-height: 48px; font-size: 15px; border-radius: 14px; }
.dj-back { border: 0; background: none; color: #0B65AD; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 0; margin-bottom: 2px; }
.dj-teach-head h1 { margin-top: 2px; }

/* rd71 — bots hub: simpler + AI Share / Connect */
.dj-admin-card{padding:18px}
.dj-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}
.dj-card-head h2{font-size:16.5px;margin:0}
.dj-card-head span{font-size:12.5px;color:#8494AB;font-weight:600}
.dj-card-head .small-btn{min-height:34px}
.dj-settings{gap:12px}
.dj-field span{font-size:12.5px}
.dj-connect{text-align:center}
.dj-connect .dj-card-head{text-align:left}
.dj-qr-tabs{display:inline-flex;background:#E9EFF5;border-radius:999px;padding:3px;gap:2px;margin-bottom:14px}
.dj-qr-tabs button{border:0;background:transparent;padding:7px 20px;border-radius:999px;font:inherit;font-size:13.5px;font-weight:700;color:#5B7186;cursor:pointer}
.dj-qr-tabs button.active{background:#fff;color:#0A63A8;box-shadow:0 1px 4px rgba(20,39,63,.14)}
.dj-qr-box{display:flex;justify-content:center;margin-bottom:14px}
.dj-qr{width:168px;height:168px;border:1px solid #E4EBF2;border-radius:16px;padding:8px;background:#fff}
.dj-link-row{display:flex;align-items:center;gap:8px;background:#F4F7FB;border:1px solid #E4EBF2;border-radius:12px;padding:6px 6px 6px 14px;margin-bottom:14px}
.dj-link{flex:1;text-align:left;font-size:13px;color:#0A63A8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dj-share-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.dj-sh{display:inline-flex;align-items:center;gap:7px;border:1px solid #E4EBF2;background:#fff;border-radius:999px;padding:9px 14px;font:inherit;font-size:13.5px;font-weight:700;color:#22314E;cursor:pointer;min-height:40px}
.dj-sh i{width:9px;height:9px;border-radius:50%;flex:none}
.dj-sh:active{transform:scale(.96)}

/* rd74 — Telegram connect UI */
.dj-tg-strip { margin-bottom: 14px; }
.dj-tg-strip[hidden] { display: none; }
.dj-tg-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dj-tg-code { font-size: 26px; font-weight: 800; letter-spacing: 3px; color: #0B65AD; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.dj-tg-slot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #E7EEF5; }
.dj-tg-slot[hidden] { display: none; }
.dj-tg-label { font-size: 12.5px; font-weight: 700; color: #8494AB; text-transform: uppercase; letter-spacing: .4px; }
.dj-conv-chip.telegram { background: #E3F2FB; color: #1273A8; }

/* rd76 — DiiJai logo in the hub */
.dj-h-logo { width: 23px; height: 23px; border-radius: 7px; object-fit: cover; vertical-align: -6px; margin-right: 8px; }

/* rd79: composer tidy, no-zoom chat input, photo lightbox */
.dj-form textarea { font-size: 16px; line-height: 1.4; padding: 11px 14px; border-radius: 22px; max-height: 120px; }
.dj-attach, .dj-send { align-self: flex-end; }
.dj-msg .dj-att { display: block; max-width: 100%; border-radius: 12px; margin-top: 8px; cursor: zoom-in; }
.dj-lb { position: fixed; inset: 0; z-index: 200; background: rgba(8,17,29,.8); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); display: flex; flex-direction: column; }
.dj-lb[hidden] { display: none; }
.dj-lb-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #fff; }
.dj-lb-count { font-size: 14px; font-weight: 700; letter-spacing: .4px; }
.dj-lb-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 16px; cursor: pointer; }
.dj-lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.dj-lb-track::-webkit-scrollbar { display: none; }
.dj-lb-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 6px 14px; }
.dj-lb-slide img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.dj-lb-hint { color: rgba(255,255,255,.75); text-align: center; font-size: 12.5px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); margin: 0; }

/* rd80: Update item (under Trash). rd87: the avatar green dot is gone -
   updates are announced with the Update CRM popup (see the rd87 block). */
#profile-trigger { position: relative; }

/* rd86 — bots hub menu + panels + organised chat list + customer memory */
.dj-menu { display: grid; gap: 12px; }
.dj-menu-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid #E4EBF2; border-radius: 18px; padding: 18px; box-shadow: 0 10px 28px -22px rgba(15,40,70,.25); cursor: pointer; font: inherit; }
.dj-menu-btn:active { transform: scale(.99); }
.dj-menu-ic { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: #F0F6FD; border-radius: 14px; }
.dj-menu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dj-menu-main b { font-size: 16.5px; color: #14273F; }
.dj-menu-main small { font-size: 12.5px; color: #8494AB; }
.dj-menu-arrow { flex: none; font-size: 24px; color: #B7C3D4; }
.dj-panel-bar { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; }
.dj-panel-bar .dj-back { flex: none; border: 1px solid #E4EBF2; background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 700; color: #14273F; cursor: pointer; }
.dj-panel-title { font-size: 19px; margin: 0; color: #14273F; }
.dj-chat-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.dj-search { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #E4EBF2; border-radius: 12px; font-size: 16px; font: inherit; background: #F8FAFC; }
.dj-chan-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.dj-chan-chip { border: 1px solid #E4EBF2; background: #fff; border-radius: 999px; padding: 7px 13px; font: inherit; font-size: 13px; font-weight: 700; color: #5B7A9D; cursor: pointer; }
.dj-chan-chip.active { background: #14273F; color: #fff; border-color: #14273F; }
.dj-loadmore { width: 100%; margin-top: 10px; }
.dj-mem-badge { font-style: normal; }
.dj-mem-card { background: #F4F8FF; border: 1px solid #DCE8F7; border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.dj-mem-card b { font-size: 13px; color: #14273F; }
.dj-mem-card p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: #33506E; }
.dj-mem-row { display: flex; gap: 11px; align-items: flex-start; width: 100%; text-align: left; border: 0; background: transparent; border-top: 1px solid #EEF3F8; padding: 12px 10px; cursor: pointer; font: inherit; }
.dj-mem-row:first-child { border-top: 0; }
.dj-mem-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dj-mem-main b { font-size: 14px; color: #14273F; }
.dj-mem-main small { font-size: 12.5px; line-height: 1.45; color: #5B7A9D; }
.dj-conv-chip.crm { background: #F1EAFB; color: #6D3FC4; }
.dj-conv-chip.telegram { background: #E7F3FB; color: #0E7AA8; }

/* rd87 — Update CRM popup (replaces the avatar green dot) */
.modal-backdrop.upd-pop-backdrop { align-items: center; }
.upd-pop { text-align: center; padding: 30px 24px 26px; max-width: 420px; width: 100%; }
.upd-pop-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #EAF3FC; color: #0B65AD; display: flex; align-items: center; justify-content: center; }
.upd-pop-ic svg { width: 30px; height: 30px; }
.upd-pop h2 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; color: #14273F; }
.upd-pop p { font-size: 14px; line-height: 1.6; color: #5B7A9D; margin: 0 0 22px; }
.upd-pop-btn { width: 100%; min-height: 56px; border: 0; border-radius: 16px; background-color: #0B65AD; background: linear-gradient(135deg, #0E74C4, #0B54AD); color: #fff; font: inherit; font-size: 17px; font-weight: 800; letter-spacing: .2px; box-shadow: 0 12px 24px -10px rgba(11, 101, 173, .55); cursor: pointer; }
.upd-pop-btn:active { transform: scale(.99); }
.upd-pop-btn:disabled { opacity: .7; }

/* rd89 — knowledge groups (auto-split pieces under their source) */
.dj-know-toggle { border: 0; background: none; font-size: 15px; color: #8494AB; cursor: pointer; padding: 8px 6px; flex: none; }
.dj-know-gdel { border: 0; background: none; color: #C23325; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 8px 4px; flex: none; }
.dj-know-pieces { margin-left: 18px; padding-left: 12px; border-left: 2px solid #EEF3F8; }
.dj-know-pieces[hidden] { display: none; }
.dj-know-pieces .dj-know-row { border-top: 1px dashed #EEF3F8; }

/* Multi-assignee picker: compact member rows (rd92, restyled rd94).
   The modal-body label/input rules in styles.css force column labels and
   48px inputs; the selectors below outrank them inside picker rows. */
.assign-fieldset { border: 1px solid #E2EAF3; border-radius: 12px; padding: 12px 14px; margin: 4px 0 12px; }
.assign-fieldset legend { font-size: 12px; font-weight: 700; color: #33506E; padding: 0 6px; }
.assign-picker { display: flex; flex-direction: column; gap: 6px; }
label.assign-option, .modal-body label.assign-option, .cs-body label.assign-option { display: flex; flex-direction: row; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; background: #F7FAFD; border: 1px solid #E2EAF3; border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #24405C; cursor: pointer; margin: 0; }
.assign-option input[type=checkbox] { width: 22px; height: 22px; min-width: 22px; min-height: 22px; padding: 0; margin: 0; flex: none; accent-color: #0B65AD; border-radius: 6px; }
.assign-option .assign-avatar { width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.assign-option .assign-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assign-option:has(input:checked) { background: #E3EEFB; border-color: #0B65AD; }
#rd-assign .assign-picker { margin-bottom: 10px; }
.lead-assign { margin-top: 14px; }
.lead-assign .assign-picker { margin-bottom: 10px; }

/* Chat list delete + multi-select (rd95) */
.dj-selrow { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.dj-sel-toggle { background: none; border: 0; color: #0B65AD; font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px 2px; }
.dj-selbar { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dj-selbar[hidden] { display: none; }
.dj-selall { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #33506E; }
.dj-selall input { width: 20px; height: 20px; accent-color: #0B65AD; }
.dj-sel-count { font-size: 13px; color: #64798E; font-weight: 600; }
.dj-conv-check { display: none; width: 22px; height: 22px; flex: none; accent-color: #0B65AD; margin: 0; }
.dj-inbox-list.selecting .dj-conv-check { display: block; }
.dj-conv-del { flex: none; background: none; border: 0; color: #8CA1B5; cursor: pointer; padding: 7px; border-radius: 8px; line-height: 0; display: inline-flex; align-items: center; justify-content: center; transition: color .15s ease, background .15s ease; }
.dj-conv-del:hover { color: #C0392B; background: #FDECEC; }

/* rd102 — Profile polish: padded cards, un-clipped inputs, centred colour popup */
.pf-card { padding: 20px; margin: 0 0 15px; }
@media (max-width: 700px) { .pf-card { padding: 18px 16px; } }
.pf-card input { height: 52px; line-height: 26px; padding: 0 14px; font-size: 16px; border-radius: 12px; }
.pf-form-actions { margin: 0 0 8px; }
.modal-backdrop.pf-center { align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.pf-center .modal-card { border-radius: 20px; padding-top: 0; animation: modalIn .22s cubic-bezier(.2,.8,.2,1); }

/* rd103 — compact member-card actions */
.team-card .btn { min-height: 36px; padding: 0 14px; font-size: 12.5px; border-radius: 10px; }

/* rd104 — centred popups (activity day / detail / view) */
.modal-backdrop.pop-center { align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.pop-center .modal-card { border-radius: 20px; padding-top: 0; max-height: 86dvh; animation: modalIn .22s cubic-bezier(.2,.8,.2,1); }
.modal-backdrop.pop-center .modal-card::before, .modal-backdrop.pf-center .modal-card::before { display: none; }

/* rd107 — Home calendar: per-activity creator-colour dots; selected day = blue ring, no fill */
.home-cal-dots { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 6px; }
.home-cal-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.home-cal-dot.done { opacity: .3; }
.home-cal-plus { font-size: 9px; font-style: normal; font-weight: 800; color: #7A8798; line-height: 1; }
.home-cal-day.outside .home-cal-dots { opacity: .55; }
.home-cal-day.selected .home-cal-num,
.home-cal-day.has-open.selected .home-cal-num,
.home-cal-day.has-done.selected .home-cal-num,
.home-cal-day.today.selected .home-cal-num { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px #0E80D2; }

/* rd108 — Home calendar: many-dot days wear their dots as a ring around the number */
.home-cal-num { position: relative; }
.home-cal-ring-dot { position: absolute; top: 50%; left: 50%; width: 5.5px; height: 5.5px; margin: -2.75px 0 0 -2.75px; border-radius: 50%; pointer-events: none; }
.home-cal-ring-dot.done { opacity: .3; }
.home-cal-day.outside .home-cal-ring-dot { opacity: .55; }
.home-cal-day.outside .home-cal-ring-dot.done { opacity: .25; }

/* rd109 — Team strip by owner-assigned sides + Team page side switch */
.team-strip { display: flex; align-items: flex-start; gap: 4px; padding: 10px 0 2px; }
.ts-side { display: flex; gap: 3px; flex: 1; }
.ts-side.right { justify-content: flex-end; }
.ts-slot { position: relative; width: 25px; padding: 0; border: 0; background: none; display: block; cursor: pointer; }
.ts-ava { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; color: var(--tc, #fff); overflow: hidden; background: #B6C2D2; }
.ts-ava img { width: 100%; height: 100%; object-fit: cover; }
.ts-slot.free .ts-ava { opacity: .35; filter: grayscale(.55); }
.ts-slot.busy .ts-ava { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mc); }
.ts-slot.active .ts-ava { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0E80D2; }
.ts-badge { position: absolute; top: -5px; right: -3px; min-width: 15px; height: 15px; border-radius: 99px; background: #1E2B43; color: #fff; font-size: 9px; font-style: normal; font-weight: 800; display: grid; place-items: center; padding: 0 3px; }
.ts-date { text-align: center; min-width: 58px; }
.ts-date b { display: block; font-size: 14.5px; color: #1E2B43; line-height: 1.15; }
.ts-date span { font-size: 10.5px; color: #7A8798; font-weight: 650; }
@media (max-width: 380px) { .ts-ava { width: 22px; height: 22px; } .ts-slot { width: 23px; } .ts-date { min-width: 52px; } }
.team-side-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.team-side-label { font-size: 12.5px; font-weight: 650; color: #43516A; }
.team-side-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid #D9DFEB; border-radius: 9px; background: #F2F5FA; }
.tsw-btn { min-height: 30px; padding: 4px 13px; border: 0; border-radius: 7px; background: transparent; font-size: 12.5px; font-weight: 600; color: #43516A; cursor: pointer; }
.tsw-btn[aria-pressed="true"] { background: #fff; color: #0B5FA5; box-shadow: 0 1px 4px rgba(23, 43, 77, .18); }

/* rd111 — Team editor dot-position picker */
.team-pos-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.tpn-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #D9DFEB; background: #fff; font-size: 12.5px; font-weight: 700; color: #43516A; cursor: pointer; padding: 0; }
.tpn-btn[aria-pressed="true"] { background: #0E80D2; border-color: #0E80D2; color: #fff; }
.tpn-btn:disabled { opacity: .35; cursor: default; }
.tpn-btn.off { width: auto; padding: 0 11px; }

/* rd112 — fixed dot columns flanking each day number (owner's sketch):
   positions 1-5 down the left, 6-10 down the right; no ring, no row. */
.home-cal-cell { display: flex; align-items: center; justify-content: center; gap: 2px; }
.home-cal-col { display: flex; flex-direction: column; align-items: center; gap: 2.5px; width: 7px; }
.home-cal-slot { width: 5.5px; height: 5.5px; border-radius: 50%; display: block; background: transparent; }
.home-cal-slot.done { opacity: .45; }
.home-cal-num { width: 26px; height: 26px; font-size: 14.5px; }
.home-cal-dot.extra { background: #B6C2D2; }
.home-cal-dot.outside { background: #64748B; }
.team-pos-hint { font-size: 11.5px; color: #7A8798; width: 100%; }

/* rd127 today pulse — one soft ring, expanding and fading */
.home-cal-day.today .home-cal-num { position: relative; }
.home-cal-day.today .home-cal-num { animation: todayGlow 1.8s ease-in-out infinite; }
@keyframes todayGlow { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0E80D2, 0 0 0 8px rgba(14,128,210,.5); } 50% { transform: scale(1.15); box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0E80D2, 0 0 0 15px rgba(14,128,210,0); } }
@media (prefers-reduced-motion: reduce) { .home-cal-day.today .home-cal-num { animation: none; } }

/* rd128 docked + button + chooser */
.home-cal-panel { padding-bottom: 50px; }
.dash-add-wrap { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; margin-top: -70px; margin-bottom: 22px; position: relative; z-index: 3; }
.dash-add-btn { width: 200px; height: 46px; border-radius: 999px; border: none; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(14,128,210,.35); padding: 0; }
.dash-add-btn svg { width: 24px; height: 24px; }
.dash-add-btn:active { transform: scale(.94); }
.add-choose-card { max-width: 400px; }
.add-choose-body { display: flex; flex-direction: column; gap: 10px; }
.add-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #F6F9FD; border: 1.5px solid #E1EAF5; border-radius: 16px; padding: 14px; cursor: pointer; }
.add-opt:active { background: #EAF2FC; }
.add-opt-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.add-opt-ic svg { width: 22px; height: 22px; }
.add-opt-tx b { display: block; font-size: 15px; color: var(--ink); }
.add-opt-tx small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.filter-list { gap: 6px; max-height: 62vh; overflow-y: auto; }
.filter-list .add-opt { min-height: 44px; padding: 5px 10px; gap: 10px; border-radius: 12px; }
.filter-list .add-opt-ic { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.filter-list .add-opt-ic svg { width: 16px; height: 16px; }
.filter-list .add-opt-tx b { font-size: 13.5px; }
.df-count { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }

/* rd164 — calendar dots: one tidy fixed-slot grid under the number */
.home-cal-day { padding: 4px 0; gap: 1px; }
.home-cal-num { width: 30px; height: 30px; font-size: 16px; }
.home-cal-dots2 { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 0; }
.home-cal-srow { display: flex; gap: 3px; height: 5px; }
.home-cal-srow .home-cal-slot { width: 5px; height: 5px; }
.home-cal-srow:not(.has) .home-cal-slot { visibility: hidden; }
.home-cal-srow.has .home-cal-slot { background: rgba(20,39,63,.08); }
.home-cal-srow.has .home-cal-slot.done { opacity: .45; }

/* rd137 calendar sheet tint */
.home-cal-panel { background: linear-gradient(180deg, #F4F9FF 0%, #E8F1FD 100%); }
.home-cal-weekdays { background: rgba(255,255,255,.62); }

/* rd143: plain date numbers — no colour fills inside; the side dots carry the colours */
.home-cal-day .home-cal-num { background: transparent !important; color: var(--ink) !important; box-shadow: none; }
.home-cal-day.today .home-cal-num { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #0E80D2; }
.home-cal-day.today.selected .home-cal-num { box-shadow: inset 0 0 0 2px #0E80D2; }

.dash-filter-btn { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; background: #fff; color: #54657C; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(20,40,80,.18); padding: 0; }
.dash-filter-btn svg { width: 21px; height: 21px; }
.dash-filter-btn:active { transform: scale(.94); }
.dash-filter-btn .df-ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 750; }
.dash-filter-btn.active { box-shadow: 0 0 0 2px #0E80D2, 0 6px 16px rgba(20,40,80,.18); }
.add-opt .filter-check { margin-left: auto; color: var(--blue); display: grid; place-items: center; }
.add-opt .filter-check svg { width: 18px; height: 18px; }
.add-opt[aria-checked="true"] { background: #F2F6FF; }

/* rd166 — dots back in the side columns; faint guides in active columns */
.home-cal-num { width: 26px; height: 26px; font-size: 14.5px; }
.home-cal-col.has .home-cal-slot { background: rgba(20,39,63,.08); }

/* rd168 narrow fit — columns may shrink; slimmer cell gutters */
.home-cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); padding-left: 8px; padding-right: 8px; }
.home-cal-day { min-width: 0; }
.home-cal-cell { gap: 1px; }
.home-cal-col { width: 6px; }

/* rd169 final dot layout — under-number grid, as in the owner's chosen screenshot */
.home-cal-num { width: 30px; height: 30px; font-size: 16px; }

/* rd180: Apple-style day states — today in red, selection as a filled disc */
.home-cal-day .home-cal-num { border-radius: 50%; }
.home-cal-day.today .home-cal-num { color: #FF3B30 !important; background: transparent !important; box-shadow: none !important; animation: none; }
.home-cal-day.selected .home-cal-num { background: #1C1C1E !important; color: #fff !important; box-shadow: none !important; }
.home-cal-day.today.selected .home-cal-num { background: #FF3B30 !important; color: #fff !important; box-shadow: none !important; animation: none; }

/* rd182: only real dots show — empty slots stay invisible (positions kept) */
.home-cal-srow.has .home-cal-slot:not(.on) { background: transparent; }

/* rd184: desktop Home — calendar left, team board right, side by side */
@media (min-width: 1024px) {
  .page-content:has(> .home-cal-stack) { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); column-gap: 24px; height: calc(100dvh - 150px); }
  .page-content:has(> .home-cal-stack) > .home-cal-stack { align-self: start; min-height: 0; }
  .page-content:has(> .home-cal-stack) > #home-board { overflow-y: auto; min-height: 0; padding-right: 6px; scrollbar-width: thin; }
  .home-cal-day { min-height: 66px; }
  .home-cal-srow { height: 6px; }
  .home-cal-srow .home-cal-slot { width: 6px; height: 6px; }
}

@media (min-width: 1024px) and (min-height: 800px) {
  .page-content:has(> .home-cal-stack) > .home-cal-stack { align-self: center; }
}
