/* ===== v87-ui-cleanup.css ===== */
/* ===== v82 layout stabilization ===== */
/* v71 cleanup: stable layout and safe UI polish. No click blocking, no moving cards. */
html{scroll-behavior:auto!important;}
body{overflow-x:hidden!important;}
*,*::before,*::after{box-sizing:border-box;}
button,.tab,.card,.item,.stat,.hero,.admin-hero-v61,.catalog-card-v61,.catalog-hero-v61,.catalog-control-card-v61,.cart-panel-v61{animation:none!important;}
button:hover,.tab:hover,.card:hover,.item:hover,.catalog-card-v61:hover{transform:none!important;}
.screen{animation:none!important;transition:none!important;}
button,.tab{transition:background-color .12s ease,color .12s ease,border-color .12s ease,box-shadow .12s ease!important;}
header{min-height:88px!important;height:88px!important;max-height:88px!important;overflow:hidden!important;}
.headrow{min-height:52px!important;height:52px!important;align-items:center!important;gap:8px!important;}
.brand{min-width:176px!important;flex:0 0 176px!important;}
.brand h1,.brand p{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.admin-chip{min-width:142px!important;width:142px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important;}
.logout-btn,.logout-site-top-v61{min-width:124px!important;width:124px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:center!important;}
.header-notify-v71{border:1px solid var(--border)!important;background:#fff!important;color:#0f766e!important;border-radius:999px!important;height:38px!important;min-width:46px!important;padding:0 11px!important;font-weight:900!important;white-space:nowrap!important;box-shadow:none!important;}
main{padding-top:10px!important;padding-bottom:116px!important;}
.card{margin:8px 0!important;}
.section-title{margin:12px 2px 8px!important;}
.empty{padding:14px!important;}
.tabs{position:fixed!important;left:0!important;right:0!important;bottom:0!important;height:68px!important;min-height:68px!important;max-height:68px!important;display:flex!important;align-items:stretch!important;gap:0!important;overflow-x:auto!important;overflow-y:hidden!important;background:rgba(255,255,255,.98)!important;border-top:1px solid var(--border)!important;box-shadow:0 -8px 26px rgba(15,23,42,.08)!important;padding:0 8px env(safe-area-inset-bottom,0px)!important;z-index:80!important;scrollbar-width:none!important;}
.tabs::-webkit-scrollbar{display:none!important;}
.tabs .tab{flex:0 0 88px!important;width:88px!important;min-width:88px!important;max-width:88px!important;height:67px!important;min-height:67px!important;max-height:67px!important;margin:0!important;padding:0 7px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;border:0!important;border-top:3px solid transparent!important;border-radius:12px 12px 0 0!important;box-shadow:none!important;line-height:1.15!important;font-size:11.5px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.tabs .tab.active{border-top-color:#0f766e!important;background:linear-gradient(180deg,#ecfeff,#f8ffff)!important;color:#0f766e!important;}
.map-empty-v71{min-height:170px!important;background:#f8fbff!important;border:1px dashed #bfdbfe!important;border-radius:22px!important;display:flex!important;align-items:center!important;justify-content:center!important;color:#475569!important;padding:22px!important;text-align:center!important;}
.map-empty-v71 b{display:block;color:#0f766e;font-size:18px;margin-bottom:6px;}
.debt-calc-v71{margin-top:8px;padding:9px 10px;border:1px solid #dbeafe;border-radius:13px;background:#f8fbff;color:#475569;font-size:13px;line-height:1.45;}
.debt-calc-v71 b{color:#0f172a;}
body.theme-dark .tabs{background:rgba(15,23,42,.96)!important;border-top-color:#334155!important;}
body.theme-dark .tabs .tab.active{background:#0f2f2b!important;color:#7dd3fc!important;}
body.theme-dark .header-notify-v71{background:#0b1220!important;border-color:#334155!important;color:#7dd3fc!important;}
body.theme-dark .map-empty-v71{background:#0b1220!important;border-color:#334155!important;color:#94a3b8!important;}
body.theme-dark .debt-calc-v71{background:#0b1220!important;border-color:#334155!important;color:#94a3b8!important;}
body.theme-dark .debt-calc-v71 b{color:#e2e8f0!important;}
@media(max-width:760px){
  header{height:84px!important;min-height:84px!important;max-height:84px!important;}
  .headrow{height:50px!important;min-height:50px!important;max-height:50px!important;}
  .brand{min-width:128px!important;max-width:38vw!important;flex:0 0 128px!important;}
  .brand h1{font-size:20px!important;}
  .brand p{font-size:10px!important;}
  .admin-chip{display:none!important;}
  .logout-btn,.logout-site-top-v61{min-width:86px!important;width:86px!important;font-size:11px!important;padding:8px 8px!important;}
  .header-notify-v71{min-width:40px!important;max-width:52px!important;width:44px!important;padding:0!important;font-size:0!important;}
  .header-notify-v71::before{content:'🔔';font-size:17px;}
  .theme-toggle button,.lang button{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;}
  main{padding-left:10px!important;padding-right:10px!important;padding-bottom:118px!important;}
  .tabs{height:68px!important;min-height:68px!important;max-height:68px!important;padding-left:6px!important;padding-right:6px!important;}
  .tabs .tab{width:80px!important;min-width:80px!important;max-width:80px!important;height:67px!important;min-height:67px!important;max-height:67px!important;font-size:11px!important;padding:0 6px!important;}
}


/* ===== v82 header and bottom navigation ===== */
/* v76: stable readable header + bottom navigation. CSS only. */
:root{--top-control-h:42px;--bottom-nav-h:76px;}
html{scroll-behavior:auto!important;}
body{overflow-x:hidden!important;}
header{
  min-height:72px!important;
  height:auto!important;
  padding:12px 14px!important;
  overflow:visible!important;
  border-bottom-left-radius:24px!important;
  border-bottom-right-radius:24px!important;
}
.headrow{
  width:100%!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
}
.brand{
  flex:1 1 auto!important;
  min-width:230px!important;
  max-width:none!important;
  margin-right:auto!important;
}
.brand h1{font-size:24px!important;line-height:1.05!important;margin:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.brand p{font-size:12px!important;line-height:1.25!important;margin:6px 0 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.theme-toggle,.admin-chip,.logout-btn,.logout-site-top-v61,.header-notify-v71,.lang{flex:0 0 auto!important;}
.theme-toggle{
  height:44px!important;
  min-width:78px!important;
  margin-left:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
}
.theme-toggle button{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.admin-chip,.logout-btn,.logout-site-top-v61,.header-notify-v71{
  height:var(--top-control-h)!important;
  min-height:var(--top-control-h)!important;
  max-height:var(--top-control-h)!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  line-height:1!important;
  font-size:13.5px!important;
  font-weight:850!important;
  border-radius:999px!important;
}
.admin-chip{max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.header-notify-v71{min-width:92px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.35)!important;box-shadow:none!important;}
.lang{display:inline-flex!important;align-items:center!important;gap:7px!important;}
.lang button{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:13px!important;font-weight:900!important;}
main{max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;padding-top:20px!important;padding-bottom:calc(var(--bottom-nav-h) + 36px)!important;}
.screen{padding-left:14px!important;padding-right:14px!important;}
#admin.screen>.admin-hero-v61,
#admin.screen>#adminGate,
#admin.screen>.card,
#admin.screen>.admin-grid-v61{
  margin-left:auto!important;
  margin-right:auto!important;
}
#admin.screen>.admin-hero-v61{width:min(100%,920px)!important;max-width:920px!important;margin-top:8px!important;margin-bottom:20px!important;}
#admin.screen>#adminGate{width:min(100%,760px)!important;max-width:760px!important;}
#admin.screen>.admin-grid-v61{width:min(100%,980px)!important;max-width:980px!important;}
#adminGate .row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(220px,.72fr)!important;align-items:end!important;gap:12px!important;}
.tabs{
  height:var(--bottom-nav-h)!important;
  min-height:var(--bottom-nav-h)!important;
  max-height:var(--bottom-nav-h)!important;
  padding:0 14px env(safe-area-inset-bottom,0px)!important;
  display:flex!important;
  align-items:stretch!important;
  gap:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity!important;
  scrollbar-width:none!important;
}
.tabs::-webkit-scrollbar{display:none!important;}
.tabs .tab{
  flex:0 0 118px!important;
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
  height:calc(var(--bottom-nav-h) - 1px)!important;
  min-height:calc(var(--bottom-nav-h) - 1px)!important;
  max-height:calc(var(--bottom-nav-h) - 1px)!important;
  padding:0 10px!important;
  font-size:13.5px!important;
  line-height:1.15!important;
  font-weight:850!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  scroll-snap-align:start!important;
}
.tabs .tab.active{border-top-width:4px!important;font-size:13.5px!important;background:rgba(20,184,166,.10)!important;}
@media(max-width:1360px){
  .brand{min-width:190px!important;}
  .brand h1{font-size:22px!important;}
  .brand p{font-size:11px!important;}
  .admin-chip,.logout-btn,.logout-site-top-v61,.header-notify-v71{height:38px!important;min-height:38px!important;max-height:38px!important;font-size:12px!important;padding:0 10px!important;}
  .header-notify-v71{min-width:78px!important;}
  .theme-toggle{height:40px!important;min-width:72px!important;}
  .theme-toggle button{width:33px!important;height:33px!important;min-width:33px!important;}
  .lang button{width:38px!important;height:38px!important;min-width:38px!important;font-size:12px!important;}
  .tabs .tab{flex-basis:108px!important;width:108px!important;min-width:108px!important;max-width:108px!important;font-size:13px!important;}
}
@media(max-width:1040px){
  header{padding:10px!important;}
  .headrow{gap:8px!important;flex-wrap:wrap!important;}
  .brand{flex:1 1 100%!important;min-width:0!important;order:1!important;}
  .theme-toggle{order:2!important;margin-left:0!important;}
  .admin-chip{order:3!important;}
  .logout-btn,.logout-site-top-v61{order:4!important;}
  .header-notify-v71{order:5!important;}
  .lang{order:6!important;margin-left:auto!important;}
}
@media(max-width:760px){
  header{min-height:74px!important;padding:9px!important;border-bottom-left-radius:22px!important;border-bottom-right-radius:22px!important;}
  .brand h1{font-size:20px!important;}
  .brand p{font-size:10px!important;}
  .admin-chip{display:none!important;}
  .logout-btn,.logout-site-top-v61,.header-notify-v71{height:36px!important;min-height:36px!important;max-height:36px!important;font-size:0!important;width:38px!important;min-width:38px!important;max-width:38px!important;padding:0!important;overflow:hidden!important;}
  .logout-btn::before,.logout-site-top-v61::before{content:'⎋';font-size:17px!important;}
  .header-notify-v71::before{content:'🔔';font-size:15px!important;}
  .theme-toggle{height:38px!important;min-width:74px!important;}
  .lang button{width:36px!important;height:36px!important;min-width:36px!important;}
  main{padding-left:8px!important;padding-right:8px!important;padding-top:12px!important;padding-bottom:96px!important;}
  .screen{padding-left:8px!important;padding-right:8px!important;}
  #admin.screen>.admin-hero-v61,#admin.screen>#adminGate,#admin.screen>.admin-grid-v61{width:100%!important;max-width:100%!important;}
  #adminGate .row{grid-template-columns:1fr!important;}
  .tabs{height:64px!important;min-height:64px!important;max-height:64px!important;padding-left:8px!important;padding-right:8px!important;}
  .tabs .tab{height:63px!important;min-height:63px!important;max-height:63px!important;flex-basis:90px!important;width:90px!important;min-width:90px!important;max-width:90px!important;font-size:12px!important;padding:0 7px!important;}
}


/* ===== v82 visual text fixes ===== */
/* v77: visual/text cleanup from screenshots. CSS only, no logic changes. */
:root{--bottom-nav-h:80px;}
header .headrow{gap:9px!important;}
header .header-notify-v71{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  padding:0!important;
  font-size:0!important;
  overflow:hidden!important;
  position:relative!important;
}
header .header-notify-v71::before{
  content:'🔔';
  font-size:15px!important;
  line-height:1!important;
}
header .header-notify-v71.has-count::after{
  content:'';
  position:absolute;
  right:8px;
  top:8px;
  width:8px;
  height:8px;
  border-radius:999px;
  background:#f59e0b;
  box-shadow:0 0 0 2px rgba(15,118,110,.95);
}
.admin-chip,.logout-btn,.logout-site-top-v61{font-size:13px!important;padding-left:13px!important;padding-right:13px!important;}
.theme-toggle{margin-left:auto!important;}
.tabs .tab{font-size:14px!important;letter-spacing:0!important;}
.tabs .tab.active{font-size:14px!important;}
#admin .admin-side-card-v61 .two-actions,
#admin .admin-info-card-v61 .two-actions{gap:10px!important;}
#admin .admin-side-card-v61 button,
#admin .admin-info-card-v61 button{min-height:42px!important;white-space:normal!important;line-height:1.15!important;}
select option{font-family:inherit;}
@media(max-width:1360px){
  .tabs .tab{font-size:13.5px!important;}
  .tabs .tab.active{font-size:13.5px!important;}
}
@media(max-width:760px){
  header .header-notify-v71{width:38px!important;min-width:38px!important;max-width:38px!important;}
  .tabs .tab{font-size:12.5px!important;}
}


/* ===== v82 language switching stability ===== */
/* v78: stop page shaking during TM/RU language switch. CSS only. */
html.lang-switching,
html.lang-switching *,
body.lang-switching,
body.lang-switching *{
  transition:none!important;
  animation:none!important;
  scroll-behavior:auto!important;
}
html,body{overflow-anchor:none!important;}
header{contain:layout paint!important;}
.headrow{min-height:48px!important;}
.theme-toggle{flex:0 0 78px!important;}
.admin-chip{flex:0 0 auto!important;min-width:82px!important;}
.logout-btn,.logout-site-top-v61{flex:0 0 auto!important;min-width:108px!important;}
.header-notify-v71{flex:0 0 44px!important;}
.lang{flex:0 0 88px!important;}
.lang button{flex:0 0 40px!important;}
.tabs{contain:layout paint!important;}
.tabs .tab{
  flex-grow:0!important;
  flex-shrink:0!important;
  transition:none!important;
}
.tabs .tab.active{
  transform:none!important;
}
.screen{
  transition:none!important;
  animation:none!important;
}
.card,.item,.stat,.admin-hero-v61,.notify-hero-v61{
  transition:box-shadow .12s ease,border-color .12s ease!important;
}
@media(max-width:1360px){
  .theme-toggle{flex-basis:72px!important;}
  .logout-btn,.logout-site-top-v61{min-width:96px!important;}
  .lang{flex-basis:80px!important;}
  .lang button{flex-basis:36px!important;}
}
@media(max-width:760px){
  .headrow{min-height:74px!important;}
  .logout-btn,.logout-site-top-v61,.header-notify-v71{min-width:38px!important;}
  .lang{flex-basis:78px!important;}
}


/* ===== v82 edit product photos layout ===== */
/* v80: reliable product photos inside edit modal */
.edit-product-photos-v80{
  grid-column:1/-1;
  border:1px solid var(--border,#d6e1ee);
  border-radius:16px;
  background:#f8fafc;
  padding:12px;
  margin-top:4px;
}
.edit-product-photos-head-v80{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.edit-product-photos-head-v80 b{font-size:14px;color:var(--text,#0f172a)}
.edit-product-photos-actions-v80{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-bottom:10px;
}
.edit-product-photos-grid-v80{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.edit-product-photo-v80{
  position:relative;
  width:78px;
  height:78px;
  border-radius:14px;
  overflow:hidden;
  background:#e5e7eb;
  border:1px solid var(--border,#d6e1ee);
}
.edit-product-photo-v80 img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  cursor:pointer;
}
.edit-product-photo-v80 button{
  position:absolute;
  top:4px;
  right:4px;
  width:24px;
  height:24px;
  min-width:24px;
  padding:0;
  border-radius:999px;
  background:rgba(220,38,38,.95);
  color:white;
  font-size:15px;
  line-height:1;
}
.edit-product-photos-empty-v80{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px dashed var(--border,#d6e1ee);
  border-radius:12px;
  color:var(--muted,#64748b);
  background:white;
}
@media(max-width:720px){
  .edit-product-photos-actions-v80{grid-template-columns:1fr}
  .edit-product-photo-v80{width:72px;height:72px}
}



/* ===== v82 final cleanup ===== */
:root{--bottom-nav-h:74px;--header-min-h:76px}
html,body{overflow-x:hidden}
body{min-width:320px}
header{min-height:var(--header-min-h)}
.headrow{min-height:var(--header-min-h);align-items:center;gap:10px;flex-wrap:wrap}
.brand{min-width:180px;flex:1 1 260px}
.lang,.theme-toggle{flex:0 0 auto}
.logout-btn,.header-notify-v71,#headerNotifyV71{flex:0 0 auto;min-height:40px;white-space:nowrap}
main{padding-bottom:calc(var(--bottom-nav-h) + 22px + env(safe-area-inset-bottom,0px))!important}
.tabs{min-height:var(--bottom-nav-h);height:auto;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.tabs::-webkit-scrollbar{display:none}
.tabs .tab{min-height:52px;line-height:1.15;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;flex:0 0 auto}
.tabs .tab.active{transform:none!important}
.catalog-card-v61{overflow:hidden}
.catalog-badge-v61.catalog-badge-v39:empty{display:none!important}
.catalog-badge-v61,.catalog-stock-v61{z-index:2;max-width:calc(100% - 24px);white-space:normal;line-height:1.15;text-align:center}
.catalog-stock-v61{left:12px;right:auto;top:46px;background:transparent!important;color:inherit!important;box-shadow:none!important;padding:0!important}
.status-badge-v61{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.catalog-img-v61.catalog-img-v39{padding-top:34px;box-sizing:border-box}
@media(max-width:720px){
  :root{--bottom-nav-h:78px;--header-min-h:88px}
  .headrow{gap:8px;justify-content:center}
  .brand{flex:1 1 100%;text-align:center}
  .brand h1{font-size:20px}.brand p{font-size:12px}
  .logout-btn,.header-notify-v71,#headerNotifyV71,.lang button,.theme-toggle button{min-height:38px;font-size:13px;padding:8px 10px}
  .tabs .tab{min-width:74px;font-size:12px;padding:9px 8px}
  .catalog-stock-v61{top:42px}
  .catalog-img-v61.catalog-img-v39{padding-top:38px}
}
@media(max-width:420px){
  .tabs .tab{min-width:68px;font-size:11px;padding-left:6px;padding-right:6px}
  .logout-btn{max-width:120px;overflow:hidden;text-overflow:ellipsis}
}

/* ===== v86 bottom navigation stability ===== */
/* Fixes shaking/cropping of the Notifications tab. CSS only; no click logic. */
.tabs{
  align-items:stretch!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  contain:layout paint!important;
}
.tabs .tab,
.tabs .tab.active,
.tabs .tab:hover,
.tabs .tab:focus{
  flex:0 0 104px!important;
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
  height:calc(var(--bottom-nav-h,74px) - 1px)!important;
  min-height:calc(var(--bottom-nav-h,74px) - 1px)!important;
  max-height:calc(var(--bottom-nav-h,74px) - 1px)!important;
  box-sizing:border-box!important;
  transform:none!important;
  font-size:13px!important;
  line-height:1.12!important;
  padding:0 8px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  transition:background-color .12s ease,color .12s ease,border-color .12s ease!important;
}
.tabs .tab.active{font-size:13px!important;border-top-width:4px!important;}
.tabs .tab[data-tab="notifications"]{
  flex-basis:104px!important;
  width:104px!important;
  min-width:104px!important;
  max-width:104px!important;
}
@media(max-width:720px){
  .tabs .tab,
  .tabs .tab.active,
  .tabs .tab:hover,
  .tabs .tab:focus{
    flex-basis:88px!important;
    width:88px!important;
    min-width:88px!important;
    max-width:88px!important;
    font-size:12px!important;
    padding:0 6px!important;
  }
  .tabs .tab[data-tab="notifications"]{
    flex-basis:88px!important;
    width:88px!important;
    min-width:88px!important;
    max-width:88px!important;
  }
}

/* v86 map empty state: make it look like a finished state, not a broken map. */
#shopsMap:has(.map-empty-v86){
  min-height:240px!important;
  background:#f8fafc!important;
}
.map-empty-v86{
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:24px;
  color:var(--muted,#64748b);
  background:#f8fafc;
  border:1px dashed var(--border,#d6e1ee);
  border-radius:18px;
}
.map-empty-v86 b{display:block;color:#0f766e;font-size:18px;margin-bottom:6px;}
.map-empty-v86 span{display:block;font-size:14px;line-height:1.45;}

/* ===== v88-security-ui-fix.css ===== */
/* v88 security + layout stability fixes */
.password-view-v61,
.password-view-with-btn-v61{
  box-sizing:border-box!important;
  min-height:56px!important;
  overflow:hidden!important;
}
.password-view-with-btn-v61{
  width:260px!important;
  min-width:260px!important;
  max-width:260px!important;
  flex:0 0 260px!important;
}
.password-view-with-btn-v61 span,
#sitePasswordView,
#adminPanelPasswordViewV61,
#chiefPasswordView{
  display:block!important;
  min-width:0!important;
  max-width:150px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.password-view-with-btn-v61 .eye-btn-v61,
.password-view-with-btn-v34 .eye-btn-v61,
.eye-btn-v61{
  flex:0 0 88px!important;
  width:88px!important;
  min-width:88px!important;
  max-width:88px!important;
  white-space:nowrap!important;
}
.admin-password-row-v61{
  grid-template-columns:minmax(0,1fr) 260px!important;
  align-items:center!important;
}
.email-confirm-v88{
  margin-top:10px!important;
  padding-top:10px!important;
  border-top:1px solid var(--border)!important;
}
.email-confirm-v88 label{
  display:block!important;
  margin-bottom:6px!important;
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:900!important;
}
.email-confirm-v88 input{
  width:100%!important;
}
.recovery-email-mask-v88{
  margin:8px 0 10px!important;
  padding:10px 12px!important;
  border:1px solid var(--border)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--muted)!important;
  font-size:13px!important;
  font-weight:800!important;
}
body.theme-dark .recovery-email-mask-v88{
  background:#0b1220!important;
  border-color:#334155!important;
  color:#cbd5e1!important;
}
#recoveryEmailV61.v88-hidden-email-input,
#recoveryEmailV28.v88-hidden-email-input{
  display:none!important;
}
#recoveryBoxV61 .two-actions,
#recoveryBoxV28 .two-actions{
  grid-template-columns:1fr!important;
}
#recoveryBoxV61 button[onclick*="copyResetLink"],
#recoveryBoxV28 button[onclick*="copyResetLink"]{
  display:none!important;
}
@media(max-width:720px){
  .admin-password-row-v61{grid-template-columns:1fr!important;}
  .password-view-with-btn-v61{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    flex:1 1 auto!important;
  }
  .password-view-with-btn-v61 span,
  #sitePasswordView,
  #adminPanelPasswordViewV61,
  #chiefPasswordView{max-width:calc(100% - 100px)!important;}
}

/* ===== v89-visit-journal.css ===== */
/* ===== v89 visit journal ===== */
.visit-report-grid-v89{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:12px}
.visit-kpi-v89{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.visit-kpi-v89 span{display:block;color:var(--muted);font-weight:800;font-size:12px;margin-bottom:8px}
.visit-kpi-v89 b{font-size:24px;color:var(--text)}
.visit-actions-v89{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.visit-btn-v89{border:0;border-radius:14px;padding:10px 8px;font-weight:900;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.08);white-space:normal;line-height:1.15;min-height:42px}
.visit-btn-v89.visited{background:#0f766e;color:#fff}
.visit-btn-v89.not_visited{background:#dc2626;color:#fff}
.visit-btn-v89.later{background:#f59e0b;color:#111827}
.visit-btn-v89.closed{background:#e5e7eb;color:#111827}
.visit-btn-v89.active{outline:3px solid rgba(20,184,166,.35);transform:translateY(-1px)}
.visit-summary-v89{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0}
.visit-pill-v89{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 10px;font-weight:900;font-size:12px;border:1px solid var(--line);background:#fff;color:var(--text)}
.visit-pill-v89.visited{background:#dcfce7;color:#166534;border-color:#86efac}
.visit-pill-v89.not_visited{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.visit-pill-v89.later{background:#fef3c7;color:#92400e;border-color:#fde68a}
.visit-pill-v89.closed{background:#f3f4f6;color:#374151;border-color:#d1d5db}
.visit-note-v89{margin-top:8px;border:1px dashed var(--line);background:#f8fafc;border-radius:14px;padding:10px;color:var(--muted);font-weight:700}
.visit-history-toolbar-v89{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:12px 0}
.visit-history-list-v89{display:grid;gap:10px}
.visit-history-item-v89{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.visit-history-head-v89{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;flex-wrap:wrap}
.visit-stale-list-v89{display:grid;gap:10px;margin-top:12px}
.visit-stale-item-v89{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.visit-card-block-v89{margin-top:10px;background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:10px}
.visit-card-block-v89 .meta{margin-top:6px}
.visit-status-line-v89{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.visit-plan-header-v89{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.visit-small-v89{font-size:12px;color:var(--muted);font-weight:800}
@media(max-width:780px){
  .visit-report-grid-v89{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .visit-actions-v89{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .visit-history-toolbar-v89{grid-template-columns:1fr}
  .visit-stale-item-v89{display:block}
  .visit-stale-item-v89 .btns{margin-top:10px}
}
@media(max-width:420px){
  .visit-report-grid-v89{grid-template-columns:1fr}
  .visit-actions-v89{grid-template-columns:1fr}
}

/* ===== v90-notification-actions.css ===== */
/* v90 notification action polish */
.notify-actions-v61 .notify-restore-v90{
  background:#f4f8fb;
  color:#0f172a;
  border:1px solid rgba(15,23,42,.12);
}
.notify-actions-v61 .notify-open-smart-v90{
  background:#0ea5e9;
  color:#fff;
}
.notify-card-v61[data-v90-kind="visit"]{
  border-left:4px solid #f59e0b;
}
.notify-card-v61[data-v90-kind="visit-old"]{
  border-left-color:#ef4444;
}
.notify-card-v61[data-v90-kind="visit-later"]{
  border-left-color:#f59e0b;
}
@media(max-width:760px){
  .notify-actions-v61{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .notify-actions-v61 button{
    min-height:42px;
    white-space:normal;
  }
}


/* ===== v92-final-release mobile/input stability ===== */
@media (max-width: 760px){
  input, select, textarea { font-size: 16px !important; }
  button, .tabs .tab { touch-action: manipulation; }
}
html { -webkit-text-size-adjust: 100%; }
