/* User Dashboard Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');
:root{
  --blue:#3b82f6; --bg:#f3f4f6; --card:#ffffff; --muted:#6b7280; --border:#e5e7eb; --shadow:0 8px 20px rgba(2,12,27,.10);
  --success:#10b981; --success-bg:#ecfdf5; --danger:#ef4444; --danger-bg:#fef2f2;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:"Montserrat","Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:#0f172a;background:var(--bg)}
button, input, select, textarea, option { font-family: inherit; }
.claimhistory-page{font-family:"Montserrat","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.claimhistory-page input,
.claimhistory-page textarea,
.claimhistory-page button,
.claimhistory-page select{font-family:inherit}
body.page-dashboard--empty{overflow:auto}
body.page-dashboard--empty .u-main{height:auto;min-height:100vh;overflow:visible}
body.page-dashboard--empty .u-content{height:auto;overflow:visible}
/* Mobile: avoid cropping on browsers with dynamic toolbars; allow scrolling */
@media (max-width: 860px){
  /* Dashboard (mobile): use normal page scrolling to avoid clipping (carousel shadows/CTA) */
  body.page-dashboard{overflow:auto}
  body.page-dashboard .u-main{height:auto;min-height:100vh;overflow:visible}
  body.page-dashboard .u-content{height:auto;overflow:visible;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;touch-action:pan-y}

  /* Empty dashboard inherits the same scroll behavior */
  body.page-dashboard--empty{overflow:auto}
  body.page-dashboard--empty .u-main{height:auto;min-height:100vh;overflow:visible}
  body.page-dashboard--empty .u-content{height:auto;overflow:visible;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;touch-action:pan-y}
  body.page-dashboard--empty .u-empty-state{min-height:auto}
  body.page-dashboard--empty .u-empty-state--dashboard{margin:0 0 16px}
}
body.page-echat{overflow:hidden}
body.page-echat .u-app{height:var(--vvh, 100dvh);min-height:0}
body.page-echat .u-main{height:var(--vvh, 100dvh);overflow:hidden}

/* Modal open: keep background visible (scroll lock is handled in JS). */
html.ll-modal-open,
body.ll-modal-open{overscroll-behavior:contain}

.u-app{min-height:100vh;display:flex}
.u-sidebar{position:fixed; top:0; left:0; z-index:30; width:210px; height:100vh; background:var(--card); border-right:1px solid var(--border); padding:0 10px 16px; display:flex; flex-direction:column; overflow-x:hidden; overflow-y:auto; -ms-overflow-style:none; scrollbar-width:none}
.u-sidebar::-webkit-scrollbar{width:0;height:0;display:none}
.u-brand{display:flex; align-items:center; justify-content:center; height:64px; padding:0 10px; margin:0 -10px 12px; background:#2563eb}
.u-brand img{height:36px; width:auto; max-width:86%; object-fit:contain; filter:drop-shadow(0 3px 1px rgba(0,0,0,.25))}
.u-nav{display:flex; flex-direction:column; gap:10px; margin-top:4px; flex:1 1 auto; min-height:0}
.u-nav #sidebarLogout{margin-top:auto}
.u-nav a{display:flex; align-items:center; gap:12px; height:46px; padding:0 14px; border-radius:6px; text-decoration:none; color:#9ca3af; font-weight:700; font-size:16px; transition:background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; will-change:transform; transform:translateY(0); box-shadow:none}
.u-nav a .icon{width:24px; height:24px; display:inline-flex; align-items:center; justify-content:center; position:relative}
.u-nav a .icon img{width:20px; height:20px; object-fit:contain; filter:grayscale(100%) brightness(0) invert(55%); opacity:.9}
.u-nav a .echat-nav-badge,
.u-nav a .notif-nav-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:16px;
  height:16px;
  padding:0 5px;
  border-radius:999px;
  background:#ef4444;
  color:#fff;
  font-size:10px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
  box-shadow:none;
  pointer-events:none;
}
.u-nav a .echat-nav-badge.is-dot,
.u-nav a .notif-nav-badge.is-dot{
  min-width:8px;
  width:8px;
  height:8px;
  padding:0;
  font-size:0;
  box-shadow:none;
  top:-3px;
  right:-3px;
}
.u-nav a .echat-nav-badge[hidden],
.u-nav a .notif-nav-badge[hidden]{ display:none !important; }
.u-nav a:hover{background:rgba(59,130,246,.12); color:#3b82f6; transform:translateY(-2px); box-shadow:0 10px 18px rgba(15,23,42,.10)}
.u-nav a:hover .icon img{filter:grayscale(0%) brightness(0) invert(32%); opacity:.95}
.u-nav a.active{background:#3b82f6; color:#fff; box-shadow:0 6px 14px rgba(59,130,246,.35); border-radius:6px; transform:translateY(-1px)}
.u-nav a.active:hover{background:#2563eb; color:#fff; transform:translateY(-1px); box-shadow:0 10px 18px rgba(37,99,235,.35)}
.u-nav a.active .icon img{filter:brightness(0) invert(1); opacity:1}
.u-nav a:focus-visible{outline:2px solid rgba(59,130,246,.55);outline-offset:2px;transform:translateY(-2px);box-shadow:0 10px 18px rgba(15,23,42,.10)}
/* Temporary highlight when Logout is selected */
.u-nav a.logout-alert{background:#fee2e2;color:#b91c1c;box-shadow:0 6px 14px rgba(239,68,68,.25); border-radius:6px}
.u-nav a.logout-alert .icon img{filter:none;opacity:1}

@media (prefers-reduced-motion: reduce){
  .u-nav a{transition:background .15s ease,color .15s ease;will-change:auto}
  .u-nav a:hover,
  .u-nav a.active,
  .u-nav a:focus-visible{transform:none}
}

.u-main{flex:1;display:flex;flex-direction:column; margin-left:210px; width:calc(100% - 210px)}
.u-topbar{height:64px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 12px;position:sticky;top:0;z-index:20}
.u-topbar::before{content:'';position:absolute;left:0;right:0;top:-24px;height:24px;background:#2563eb;pointer-events:none}
.u-topbar h1{margin:0;font-size:20px;font-weight:800}


.u-top-actions{display:flex;align-items:center;gap:0;margin-left:auto;margin-right:25px}
.u-top-profile-name{color:#fff;font-weight:700;font-size:14px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:0}
@media (max-width: 640px){
  .u-top-actions{margin-right:0}
  .u-top-profile-name{display:none}
}

.u-search{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);padding:6px 12px;border-radius:6px;min-width:260px}
.u-search img{width:18px;height:18px;opacity:.9}
.u-search input{border:0;outline:0;background:transparent;color:#fff;width:100%}
.u-search input::placeholder{color:rgba(255,255,255,.85)}
/* Browse page: pill search with logo and ring */
.browse-page .u-search{background:#ffffff;border:2px solid #e5e7eb;border-radius:999px;box-shadow:none;padding:8px 14px;overflow:hidden;position:relative;height:40px;flex:0 1 auto;width:clamp(140px, 42vw, 220px);min-width:140px;max-width:220px}
.browse-page .u-search svg{opacity:.9;color:#9ca3af}
.browse-page .u-search input{color:#374151;font-family:"Montserrat","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.browse-page .u-search input::placeholder{color:#9ca3af}
.browse-page .u-search input{padding-right:32px}
@media (min-width: 641px){
  .browse-page .u-search{width:clamp(220px, 40vw, 340px);min-width:220px;max-width:340px}
}
.u-search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:transparent;border:0;color:transparent!important;font-size:0!important;width:24px;height:24px;line-height:0;cursor:pointer;border-radius:50%;text-indent:-9999px;overflow:hidden;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  background-repeat:no-repeat; background-position:center; background-size:18px 18px;
}
.u-search-clear::before{content:none}
.u-search-clear:hover{
  background:#f3f4f6;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
  background-repeat:no-repeat; background-position:center; background-size:18px 18px;
}

/* Remove native WebKit search decorations (white dash/clear icon) */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration{ -webkit-appearance:none; appearance:none; display:none; }
.u-search-btn{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:999px;padding:8px 16px;cursor:pointer}
.u-search-btn img{width:18px;height:18px;filter:brightness(100%)}
.u-search-btn span{font-weight:700}
.icon-btn{background:rgba(255,255,255,.14);border:0;border-radius:999px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer}
.icon-btn img{width:18px;height:18px;filter:brightness(100%)}
#browseSearchToggle{margin-right:8px}
#browseSearchToggle img{filter:brightness(0) invert(1)}
/* Website/desktop format: keep the Search button at the topbar's far-right corner */
@media (min-width: 861px){
  .browse-page .u-top-actions{margin-right:0;gap:10px;flex-direction:row-reverse}
  .browse-page #browseSearchToggle{margin-right:0;margin-left:0}
}
#topEchatBtn{margin-right:8px; position:relative}
#topEchatBtn .echat-dot{
  position:absolute;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:#ef4444;
  top:0;
  right:0;
  transform:translate(25%,-25%);
  box-shadow:0 0 0 2px rgba(37,99,235,.95);
  pointer-events:none;
  display:none;
  color:#fff;
  font-size:10px;
  font-weight:800;
  line-height:16px;
  text-align:center;
  font-family:"Montserrat","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
#topEchatBtn.has-unread .echat-dot{display:block}
/* Website/desktop format: hide the E-chat topbar shortcut (keep it for mobile layout) */
@media (min-width: 861px){
  #topEchatBtn{display:none}
}
.u-avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;border:0;box-shadow:none}
.u-avatar img{width:100%;height:100%;object-fit:cover;display:block}
/* Make topbar profile avatar perfectly circular and centered */
#topProfileBtn{width:44px;height:44px;padding:0;border-radius:50%;background:transparent;border:0;display:flex;align-items:center;justify-content:center}
/* Website/desktop format: hide the Profile shortcut (keep it for mobile layout) */
@media (min-width: 861px){
  #topProfileBtn{display:none}
  .u-top-profile-name{display:none}
}
@media (min-width: 861px){
  .p-logout-actions{display:none !important}
}

.u-content{padding:22px}
.u-content h2{margin:0 0 14px;font-size:18px;color:#0f2744}
.page-dashboard .u-content h2{font-weight:600}
.page-dashboard .u-section-divider{border:0;height:1px;background:rgba(15,23,42,.14);width:100%;margin:24px 0 22px}

/* Dashboard (desktop only): empty state left, carousel right */
.u-dashboard-hero{display:flex;flex-direction:column;gap:18px;margin-bottom:46px}
.u-dashboard-hero-left,.u-dashboard-hero-right{min-width:0}
.u-dashboard-hero-right{display:flex;justify-content:center}
@media (min-width: 861px){
  .u-dashboard-hero{flex-direction:row;align-items:stretch;gap:28px}
  .u-dashboard-hero.has-empty .u-dashboard-hero-left{flex:0 0 42%}
  .u-dashboard-hero.has-empty .u-dashboard-hero-right{flex:1;justify-content:flex-end}
  .u-dashboard-hero.has-panels .u-dashboard-hero-left{flex:0 0 42%}
  .u-dashboard-hero.has-panels .u-dashboard-hero-right{flex:1;justify-content:flex-end}
  .u-dashboard-hero-left{display:flex;align-items:center;justify-content:center}
  .u-empty-state--dashboard{margin:0;padding:0;align-items:center;text-align:center}
  /* When showing Latest Activity, keep it content-sized (don’t stretch to match carousel height). */
  .u-dashboard-hero.has-panels .u-activity-panel{align-self:flex-start}
}
/* Dashboard carousel */
.u-carousel{
  /* Position CTA under the subtitle area (matches the new carousel artwork) */
  --cta-bottom:26%;
  --cta-left:28%;
  --cta-width:44%;
  position:relative;
  border-radius:10px;
  overflow:hidden;
  border:0;
  box-shadow:0 18px 40px rgba(2,12,27,.22);
  margin:0 auto 16px;
  background:transparent;
  touch-action:pan-y;
  width:100%;
  max-width:460px;
}
.u-carousel-viewport{overflow:hidden}
.u-carousel-track{display:flex;will-change:transform;transition:transform .55s cubic-bezier(.2,.8,.2,1)}
@media (prefers-reduced-motion: reduce){
  .u-carousel-track{transition:none}
}
.u-carousel .u-slide{flex:0 0 100%;display:flex;align-items:center;justify-content:center;padding:0;background:transparent}
.u-carousel .u-slide-frame{position:relative;width:100%;aspect-ratio:920/584}
.u-carousel .u-slide-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.u-carousel .u-slide-cta{
  position:absolute;
  left:var(--cta-left);
  bottom:var(--cta-bottom);
  transform:translateX(-50%);
  width:var(--cta-width);
  max-width:340px;
  height:40px;
  border-radius:8px;
  box-sizing:border-box;
  text-decoration:none;
  color:#fff;
  font-weight:600;
  letter-spacing:-.01em;
  font-size:clamp(12px, 2.6vw, 16px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  white-space:nowrap;
  box-shadow:0 14px 26px rgba(2,12,27,.25);
  border:2px solid rgba(255,255,255,.45);
  background:var(--cta-bg, #3b82f6);
}
.u-carousel .u-slide-cta:active{transform:translateX(-50%) translateY(1px)}
.u-carousel .u-slide-cta:focus-visible{outline:3px solid rgba(255,255,255,.90);outline-offset:2px}
.u-carousel .u-slide[data-cta="blue"] .u-slide-cta{--cta-bg:#5a8bf0}
.u-carousel .u-slide[data-cta="blue"]{--cta-left:29%}
.u-carousel .u-slide[data-cta="green"] .u-slide-cta{--cta-bg:#76ce55}
.u-carousel .u-slide[data-cta="green"]{--cta-left:27%}
.u-carousel .u-slide[data-cta="purple"] .u-slide-cta{--cta-bg:#7a62d6}
.u-carousel .u-slide[data-cta="purple"]{--cta-left:27%}
.u-carousel .u-slide[data-cta="orange"] .u-slide-cta{--cta-bg:#ff9a2f}
.u-carousel .u-slide[data-cta="orange"]{--cta-left:26%}

.u-carousel .u-carousel-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.25);background:rgba(15,23,42,.35);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1;user-select:none;z-index:2;opacity:0;pointer-events:none;transition:opacity .15s ease, background .15s ease}
.u-carousel:hover .u-carousel-nav,
.u-carousel:focus-within .u-carousel-nav{opacity:1;pointer-events:auto}
.u-carousel .u-carousel-nav:hover{background:rgba(15,23,42,.55)}
.u-carousel .u-carousel-nav.prev{left:10px}
.u-carousel .u-carousel-nav.next{right:10px}
.u-carousel .u-carousel-nav:focus-visible{outline:3px solid rgba(147,197,253,.85);outline-offset:2px}

/* Dashboard carousel: card-stack effect (keeps auto-swipe via JS) */
.u-carousel--stack{
  perspective:1500px;
  overflow:visible;
  box-shadow:none;
}
.u-carousel--stack .u-carousel-viewport{overflow:visible}
.u-carousel--stack .u-carousel-track{
  display:grid;
  transition:none !important;
  transform:none !important;
}
.u-carousel--stack .u-slide{
  grid-area:1/1;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(2,12,27,.22);
  border:1px solid rgba(255,255,255,.55);
  transition:transform .6s cubic-bezier(.23,1,.32,1), opacity .6s ease, filter .6s ease;
  transform-origin:center 80%;
  will-change:transform, opacity;
  user-select:none;
}
.u-carousel--stack .u-carousel-nav{z-index:50}
.u-carousel--stack .u-slide.no-transition{transition:none !important}
.u-carousel--stack .u-slide.u-stack-throw-left{animation:uStackFlyLeft .6s cubic-bezier(.215,.61,.355,1) forwards;pointer-events:none}
.u-carousel--stack .u-slide.u-stack-throw-right{animation:uStackFlyRight .6s cubic-bezier(.215,.61,.355,1) forwards;pointer-events:none}
@keyframes uStackFlyLeft{
  0%{transform:translateY(0) scale(1) rotate(0);opacity:1}
  100%{transform:translate(-120%, -100px) rotate(-30deg);opacity:0}
}
@keyframes uStackFlyRight{
  0%{transform:translateY(0) scale(1) rotate(0);opacity:1}
  100%{transform:translate(120%, -100px) rotate(30deg);opacity:0}
}

/* Hide arrows + allow click-to-swipe (all sizes) */
.page-dashboard .u-carousel--stack{cursor:pointer}
.page-dashboard .u-carousel--stack .u-carousel-nav{display:none !important}

@media (max-width: 700px){
  .u-carousel .u-carousel-nav{display:none}
  .u-carousel{--cta-bottom:26%;--cta-left:26%;--cta-width:48%;max-width:420px;margin:0 auto 16px;width:100%}
  .u-carousel .u-slide-cta{height:36px;max-width:220px;font-size:clamp(10px, 3.4vw, 13px);border-radius:8px;padding:0 12px;overflow:hidden;text-overflow:ellipsis}
  .u-carousel .u-slide[data-cta="blue"]{--cta-left:29%}
  .u-carousel .u-slide[data-cta="green"]{--cta-left:27%}
  .u-carousel .u-slide[data-cta="purple"]{--cta-left:27%}
  .u-carousel .u-slide[data-cta="orange"]{--cta-width:44%}
}
@media (max-width: 420px){
  .u-carousel{--cta-bottom:26%;--cta-left:26%;--cta-width:50%;max-width:360px}
  .u-carousel .u-slide-cta{height:34px;max-width:200px;font-size:clamp(9px, 4.2vw, 12px);border-radius:8px;padding:0 11px;overflow:hidden;text-overflow:ellipsis}
  .u-carousel .u-slide[data-cta="blue"]{--cta-left:29%}
  .u-carousel .u-slide[data-cta="green"]{--cta-left:27%}
  .u-carousel .u-slide[data-cta="purple"]{--cta-left:27%}
  .u-carousel .u-slide[data-cta="orange"]{--cta-width:42%}
}
.u-empty-state{width:100%;min-height:calc(100vh - 150px);}
.u-empty-state--dashboard{min-height:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 16px 6px;margin:0 0 54px;color:#b6beca;text-align:center}
.u-dashboard-hero.has-panels .u-empty-state--dashboard{margin:0;padding:0;color:inherit}
.u-empty-state--dashboard img{width:110px;height:auto;opacity:.45;margin:0 0 10px}
.u-empty-state--dashboard .u-empty-title{font-size:20px;font-weight:500;letter-spacing:-.01em;line-height:1.2;color:#b8c0cc}
.u-empty-state--dashboard .u-empty-sub{margin-top:6px;font-size:13px;color:#c0c7d2;font-weight:600}
.page-dashboard .u-activity-panel{
  width:100%;
  max-width:1100px;
  align-self:stretch;
  background:#fff;
  border-radius:10px;
  padding:22px 18px 18px;
  border:1px solid rgba(15,23,42,.08);
  box-shadow:0 18px 40px rgba(2,12,27,.10);
  color:#0f172a;
}
.page-dashboard .u-activity-title{
  text-align:center;
  font-size:clamp(22px, 4.2vw, 32px);
  font-weight:500;
  letter-spacing:-.02em;
  margin:2px 0 18px;
}
.page-dashboard .u-activity-pills{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.page-dashboard .u-activity-pill{
  display:flex;
  align-items:center;
  gap:14px;
  padding:6px 12px;
  border-radius:8px;
  color:#fff;
  box-shadow:0 10px 22px rgba(2,12,27,.10);
  border:1px solid rgba(255,255,255,.22);
}
.page-dashboard .u-activity-pill--ok{background:#3FD076}
.page-dashboard .u-activity-pill--bad{background:#FF8C8C}
.page-dashboard .u-activity-pill--info{background:#60a5fa}
.page-dashboard .u-activity-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  line-height:1;
  flex:0 0 auto;
}
.page-dashboard .u-activity-ico img{
  width:22px;
  height:22px;
  display:block;
  transform:translate(var(--ll-activity-ico-nudge-x, 0px), var(--ll-activity-ico-nudge-y, 0px));
  opacity:1;
  filter:saturate(1.1) contrast(1.08) drop-shadow(0 1px 2px rgba(0,0,0,.35));
  -webkit-filter:saturate(1.1) contrast(1.08) drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.page-dashboard .u-activity-pill--ok .u-activity-ico img{--ll-activity-ico-nudge-x:0px}
.page-dashboard .u-activity-pill--bad .u-activity-ico img{--ll-activity-ico-nudge-x:0px}
.page-dashboard .u-activity-pill--info .u-activity-ico img{--ll-activity-ico-nudge-x:0px}
.page-dashboard .u-activity-ico img{--ll-activity-ico-nudge-y:4px}
.page-dashboard .u-activity-line{
  font-size:clamp(16px, 3.6vw, 26px);
  font-weight:500;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (min-width: 861px){
  .page-dashboard .u-activity-panel{max-width:560px;padding:18px 16px 16px}
  .page-dashboard .u-activity-title{font-size:28px;margin:0 0 14px}
  .page-dashboard .u-activity-pills{gap:12px}
  .page-dashboard .u-activity-pill{padding:8px 12px}
  .page-dashboard .u-activity-line{font-size:18px}
}
@media (max-width: 420px){
  .u-empty-state--dashboard img{width:96px}
  .u-empty-state--dashboard .u-empty-title{font-size:18px}
  .page-dashboard .u-activity-panel{padding:18px 14px 14px;border-radius:10px}
  .page-dashboard .u-activity-pill{padding:9px 12px;border-radius:8px;gap:12px}
  .page-dashboard .u-activity-ico{width:26px;height:26px}
  .page-dashboard .u-activity-ico img{width:22px;height:22px}
}
.filters{display:flex;gap:12px;flex-wrap:wrap;margin:6px 0 14px;justify-content:flex-end}
.filter{position:relative}
.filter-select{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:160px;height:40px;padding:0 14px;border-radius:10px;border:1px solid #c7d8ea;background:#fff;color:#111827;font-weight:600;cursor:pointer;box-shadow:var(--shadow);transition:background-color .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;will-change:transform}
.filter-select:hover{background:#eff6ff;border-color:#93c5fd;box-shadow:var(--shadow);transform:translateY(-1px)}
.filter.open .filter-select{background:#eff6ff;border-color:#60a5fa;box-shadow:var(--shadow)}
.filter-select:active{transform:translateY(0);box-shadow:var(--shadow)}
.filter-caret{display:inline-flex;align-items:center}
.filter.open .filter-caret{transform:rotate(180deg)}
.filter-menu{position:absolute;z-index:10;top:calc(100% + 6px);left:0;right:0;background:#fff;border:1px solid #93c5fd;border-radius:10px;box-shadow:var(--shadow);padding:0;display:none;max-height:280px;overflow:auto}
.filter.open .filter-menu{display:block}
.filter-menu li{list-style:none;padding:10px 14px;cursor:pointer;font-weight:500;color:#111827}
.filter-menu li:hover{background:var(--blue);color:#fff}
.filter-menu li[aria-selected="true"]{background:var(--blue);color:#fff}
/* When hovering the list, let the highlight follow the cursor instead of sticking to the selected item */
.filter-menu:hover li[aria-selected="true"]{background:#fff;color:#111827}
.filter-menu:hover li[aria-selected="true"]:hover{background:var(--blue);color:#fff}
.u-grid{display:grid;grid-template-columns:repeat(2, minmax(280px, 1fr));gap:18px}

.u-card{background:var(--card);border-radius:10px;box-shadow:var(--shadow);overflow:hidden;border:1px solid var(--border);transition:transform .12s ease;will-change:transform}
.u-card:hover{transform:translateY(-1px)}
.u-card:active{transform:translateY(0)}
.u-card .media{height:150px;background:#e8edf2;display:flex;align-items:center;justify-content:center}
.u-card .media img{max-height:120px;max-width:90%;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(2,12,27,.15))}
.browse-page .u-card.is-found .media img,
.page-dashboard .u-card.is-found .media img{
  filter:blur(14px) drop-shadow(0 4px 8px rgba(2,12,27,.12));
  transform:scale(1.14);
}
.u-card .info{display:flex;align-items:flex-start;justify-content:space-between;padding:12px 14px;background:#fff}
.u-card .title{font-weight:800}
.browse-page .u-card .title{font-weight:600}
.page-dashboard .u-card .title{font-weight:600}
.u-card .sub{color:var(--muted);font-size:12px;margin-top:2px}
.u-card .meta{color:#9ca3af;font-size:12px}
.u-badges{padding:8px 14px;border-top:1px solid var(--border);background:#fff}
.badge{display:inline-block;padding:4px 10px;border-radius:999px;font-weight:700;font-size:12px;white-space:nowrap}
.badge.found{background:var(--success-bg);color:var(--success)}
.badge.lost{background:var(--danger-bg);color:var(--danger)}
.badge.pending{background:#fff7ed;color:#f59e0b}
.badge.approved{background:#ecfdf5;color:#10b981}
.badge.rejected{background:#fef2f2;color:#ef4444}
.badge.reviewed{background:#eff6ff;color:#2563eb}
/* Small avatar in table */
.mini-thumb{width:36px;height:36px;border-radius:50%;overflow:hidden;display:inline-flex;vertical-align:middle;margin-right:8px;border:1px solid var(--border)}
.mini-thumb img{width:100%;height:100%;object-fit:cover}
.ll-name{display:inline-block;vertical-align:middle;max-width:calc(100% - 56px)}
/* Claim History table: prevent item name and date from breaking awkwardly */
.ll-claims-table .ll-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ll-claims-table td:nth-child(2),
.nowrap{white-space:nowrap}
/* Optional: give columns gentle width hints so layout is stable */
.ll-claims-table td:nth-child(1){width:50%}
.ll-claims-table td:nth-child(2){width:24%}
.ll-claims-table td:nth-child(3){width:12%}
.ll-claims-table td:nth-child(4){width:14%}
@media (max-width: 600px){
  .ll-claims-table .ll-name{max-width:140px}
}

/* Notifications */
.notif-wrap{padding:0;background:#f3f4f6}
.notif-wrap .n-group{max-width:1600px;width:100%;margin:0 auto;padding:18px 14px 28px}

.n-filters{max-width:1600px;width:100%;margin:12px auto 0;padding:0 14px;display:flex;gap:12px;align-items:center;justify-content:flex-start}
.n-filter{height:34px;min-width:64px;padding:0 14px;border-radius:999px;border:1px solid var(--border);background:#fff;color:#6b7280;font-weight:600;font-size:14px;cursor:pointer;transition:background-color .12s ease,border-color .12s ease,color .12s ease,transform .12s ease,box-shadow .12s ease,filter .12s ease;will-change:transform}
.n-filter[data-filter="all"]{min-width:52px;padding:0 12px}
.n-filter:hover{border-color:#cbd5e1;background:#f8fafc;color:#475569;transform:translateY(-1px);box-shadow:none}
.n-filter:active{transform:translateY(0);box-shadow:none;filter:brightness(.98)}
.n-filter.active{background:#03B8FF;color:#fff;border-color:#03B8FF}
.n-filter.active:hover{background:#03B8FF;border-color:#03B8FF;color:#fff;transform:translateY(-1px);box-shadow:none}

.n-section-title{font-size:18px;font-weight:600;margin:12px 2px 8px;color:#0f172a}
.notif-wrap .n-section-title{display:none !important;margin:0 !important}
 
.n-card{
  display:flex;
  align-items:flex-start;
  gap:6px;
  background:#fff;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 14px 34px rgba(15,23,42,.14);
  padding:16px 16px 14px;
  margin-bottom:14px;
  position:relative;
  width:100%;
}
.n-card.is-clickable{cursor:pointer}
.n-card.is-clickable:hover{transform:translateY(-1px);box-shadow:0 16px 36px rgba(15,23,42,.16)}
.n-card.is-clickable:active{transform:translateY(0);box-shadow:0 14px 34px rgba(15,23,42,.14);filter:brightness(.99)}
.n-card.is-clickable:focus-visible{outline:3px solid rgba(3,184,255,.35);outline-offset:3px}

.n-bell{width:46px;flex:0 0 46px;display:flex;align-items:center;justify-content:center;margin-top:0;align-self:center}
.n-bell img{width:40px;height:40px;display:block}

.n-body{flex:1;min-width:0}

.n-badge{
  display:inline-block;
  padding:9px 16px;
  border-radius:8px;
  font-weight:600;
  font-size:16px;
  line-height:1;
  color:#fff;
  margin-bottom:4px;
  letter-spacing:.2px;
  max-width:calc(100% - 180px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.n-badge--orange{background:#DB5106}
.n-badge--blue{background:#3b82f6}
.n-badge--green{background:#16a34a}
.n-badge--red{background:#ef4444}

.n-msg{
  color:#6b7280;
  font-size:13px;
  line-height:1.35;
  margin-top:2px;
  white-space:normal;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

/* Website/Desktop sizing for notifications */
@media (min-width: 861px){
  .notif-wrap .n-group{padding:14px 14px 22px}
  .n-section-title{font-size:20px;margin:12px 2px 8px}
  .n-card{padding:12px 14px 10px;border-radius:10px;margin-bottom:12px;box-shadow:0 10px 26px rgba(15,23,42,.12)}
  .n-bell{width:40px;flex-basis:40px}
  .n-bell img{width:34px;height:34px}
  .n-badge{font-size:14px;padding:7px 14px;max-width:calc(100% - 150px)}
  .n-msg{font-size:12px}
  .n-meta{font-size:12px;top:12px;right:14px}
  .n-meta img{width:16px;height:16px}
}

.n-meta{
  display:flex;
  align-items:center;
  gap:8px;
  color:#6b7280;
  font-size:13px;
  margin:0;
  text-align:right;
  position:absolute;
  top:16px;
  right:16px;
}
.n-meta img{width:18px;height:18px;opacity:.65}
.n-time{white-space:nowrap}

.n-empty{padding:32px 14px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px}
.n-empty-icon{width:56px;height:56px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 14px 34px rgba(15,23,42,.12);border:1px solid rgba(15,23,42,.06)}
.n-empty-icon img{width:30px;height:30px;display:block}
.n-empty-title{font-weight:700;color:#0f172a;font-size:14px}
.n-empty-sub{color:#64748b;font-size:14px;max-width:520px}
.n-section.n-section--empty .n-empty{align-items:flex-start;text-align:left}
.n-section.n-section--empty .n-empty-title{color:#9ca3af;font-weight:600}

@media (max-width: 860px){
  .notif-wrap .n-group{max-width:none;padding:14px 12px 22px}
  .n-section-title{font-size:20px;margin:12px 2px 8px}
  .n-card{padding:12px 12px 10px;border-radius:10px;gap:8px;margin-bottom:10px;box-shadow:0 10px 24px rgba(15,23,42,.12)}
  .n-bell{width:44px;flex-basis:44px}
  .n-bell img{width:34px;height:34px}
  /* Mobile: reduce title (badge) size only */
  .n-badge{font-size:13px;padding:7px 12px;max-width:calc(100% - 150px)}
  .n-msg{font-size:12px}
  .n-meta{font-size:12px;top:12px;right:12px}
  .n-meta img{width:16px;height:16px}
  .n-time{white-space:normal}
}

@media (max-width: 520px){
  .n-section-title{font-size:20px}
  .n-card{padding:11px 12px 10px}
  .n-bell{width:44px;flex-basis:44px}
  .n-bell img{width:34px;height:34px}
  .n-badge{max-width:calc(100% - 135px)}
  /* Mobile (small): reduce title (badge) size only */
  .n-badge{font-size:13px;padding:7px 12px}
  .n-msg{font-size:12px}
  .n-meta{font-size:12px}
  .n-time{white-space:normal}
  .n-meta{top:12px;right:12px}
}

/* E-Chat */
.echat-page{
  height:var(--vvh, 100dvh);
  overflow:hidden; /* prevent page scroll; chat list handles scrolling */
}
.echat-page .u-content{
  display:flex;
  justify-content:center;
  padding:18px 12px 24px;
  flex:1;                 /* fill height under topbar */
  align-items:stretch;    /* let card fill available height */
  min-height:0;           /* allow inner list to become scrollable */
  overflow:hidden;
}
.chat-card{background:#fff;border-radius:10px;box-shadow:0 18px 40px rgba(15,23,42,.20);border:0;overflow:hidden}
.echat-page .chat-card{
  width:100%;
  /* Desktop/tablet: wider than the mobile-style card */
  max-width:min(1680px, calc(100vw - 24px));
  display:flex;
  flex-direction:column; /* header + messages + input stacked */
  height:100%;
  max-height:100%;
}

/* Desktop E-chat layout with internal chat sidebar */
.u-echat-shell{ flex:1; min-height:0; display:flex; flex-direction:column; }
.u-echat-threads-wrap{ display:none; }
.u-echat-convo{ display:flex; flex-direction:column; min-width:0; min-height:0; flex:1; overflow:hidden; }

@media (min-width: 861px){
  .chat-card[data-view="desktop"] .u-echat-shell{
    display:grid;
    grid-template-columns: 320px 1fr;
    flex:1;
    min-height:0;
  }
  .chat-card[data-view="desktop"] .u-echat-threads-wrap{
    display:block;
    border-right:1px solid var(--border);
    overflow-y:auto;
    overflow-x:hidden;
    -ms-overflow-style:none;
    scrollbar-width:none;
  }
  .chat-card[data-view="desktop"] .u-echat-threads-wrap::-webkit-scrollbar{ width:0; height:0; display:none; }
  .chat-card[data-view="desktop"] .conv-header{ display:none !important; }

  .chat-card[data-view="desktop"] #uThreads{ padding: 10px 10px; }
  .chat-card[data-view="desktop"] #uThreads .chat-row{
    border-top: 0;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: 10px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    align-items: center;
  }
  .chat-card[data-view="desktop"] #uThreads .chat-row:hover{ background:#f5f8ff; }
  .chat-card[data-view="desktop"] #uThreads .chat-row.unread{
    background:#f0f7ff;
    border-color:#cfe0ff;
    box-shadow: inset 3px 0 0 #3b82f6;
  }
  .chat-card[data-view="desktop"] #uThreads .chat-row.unread:hover{ background:#eaf2ff; }
  .chat-card[data-view="desktop"] #uThreads .chat-row.active{
    background:#eaf2ff;
    border-color:#cfe0ff;
    box-shadow:none;
  }
  .chat-card[data-view="desktop"] #uThreads .chat-row.unread.active{
    box-shadow: inset 3px 0 0 #3b82f6;
  }
  .chat-card[data-view="desktop"] #uThreads .chat-badge{
    margin-left:auto;
    flex:0 0 auto;
  }
  /* Keep time visible (no ellipsis cutting it off) */
  .chat-card[data-view="desktop"] #uThreads .chat-msg{
    display:flex;
    align-items:baseline;
    gap:6px;
    white-space:normal;
  }
  .chat-card[data-view="desktop"] #uThreads .chat-msg-text{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .chat-card[data-view="desktop"] #uThreads .chat-msg-time{
    flex:0 0 auto;
    white-space:nowrap;
    color:#9ca3af;
    font-weight:500;
  }
}
/* Summary/Thread share same height via .echat-page .chat-card */
@media (max-width: 640px){
  .echat-page .u-content{
    padding:12px 8px 16px;
  }
  .echat-page .chat-card{
    max-width:none;      /* let card span full mobile width */
    border-radius:10px;
    height:100%;
    max-height:100%;
  }
}
.chat-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:linear-gradient(135deg,#155e9a 0%, #1e6dbf 60%, #2a7bd0 100%);color:#fff}
.chat-title{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px}
.chat-title-icon{display:inline-flex;width:36px;height:36px;align-items:center;justify-content:center;}
.chat-title-icon img{width:100%;height:100%;object-fit:contain;border-radius:8px;transform:scale(3);transform-origin:left center}
.chat-actions{display:flex;align-items:center;gap:8px}
.circle-btn{width:34px;height:34px;border:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18);color:#fff;cursor:pointer;padding:0;line-height:0}
.circle-btn img{width:16px;height:16px;filter:brightness(0) invert(1);display:block}
.circle-btn.plus{width:34px;height:34px}
.circle-btn.plus img{width:16px;height:16px;filter:brightness(0) invert(1)}

.chat-list{list-style:none;margin:0;padding:8px 0}
.chat-row{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-top:1px solid var(--border)}
.chat-row:first-child{border-top:0}
.chat-row.unread{
  background:#f0f7ff;
  box-shadow:inset 3px 0 0 #3b82f6;
}
.chat-row.unread .chat-name{font-weight:800}
.chat-row.unread .chat-msg{color:#374151;font-weight:600}
.chat-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;flex:0 0 auto;border:0}
.chat-avatar img{width:100%;height:100%;object-fit:cover}
.chat-main{flex:1;min-width:0}
.chat-name{font-weight:600;color:#111827}
.chat-msg{
  color:#6b7280;
  font-size:13px;
  display:flex;
  align-items:baseline;
  gap:6px;
}
.chat-msg-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chat-msg-time{
  flex:0 0 auto;
  white-space:nowrap;
  color:#9ca3af;
  font-weight:500;
}
.chat-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:72px}
.chat-time{color:#6b7280;font-size:12px}
.chat-badge{
  background:#ef4444;
  color:#fff;
  font-weight:700;
  font-size:11px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

/* Conversation header inside card */
.conv-header{display:flex;align-items:center;gap:10px;padding:12px 16px 8px;border-bottom:1px solid var(--border);background:linear-gradient(135deg,#155e9a 0%, #1e6dbf 60%, #2a7bd0 100%);color:#fff}
.conv-back{border:0;background:transparent;color:#111827;cursor:pointer;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:0;padding:0}
.conv-back img{width:18px;height:18px;display:block;object-fit:contain;filter:brightness(0) saturate(100%)}
.echat-page .conv-back img{filter:brightness(0) invert(1)}
.conv-back:hover{background:transparent}
.conv-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;flex:0 0 auto}
.conv-avatar img{width:100%;height:100%;object-fit:cover}
.conv-name{font-weight:600;color:#fff;font-size:18px}
.chat-card[data-view="summary"] .conv-header{display:none}
.chat-card[data-view="thread"] .chat-header{display:none}
.chat-card[data-view="summary"] .chat-input-bar{display:none}
.chat-card[data-view="summary"] .chat-attach-preview{display:none}

/* Bubble conversation styles */
#uChatList{
  padding:12px 14px;     /* same gap top and bottom */
  background:#fff;
  flex:1;            /* grow to fill chat-card */
  min-height:0;      /* allow flex shrink so typebar stays visible */
  overflow-y:auto;   /* scroll when messages overflow */
  overflow-x:hidden; /* prevent horizontal scroll */
}
#uChatList .chat-row{border-top:0;padding:8px 10px}
#uChatList .chat-row.msg{display:flex;align-items:flex-end}
#uChatList .chat-row.msg .msg-stack{
  display:flex;
  flex-direction:column;
  gap:4px;
  max-width:70%;
}
#uChatList .chat-row.msg.mine .msg-stack{align-items:flex-end}
#uChatList .chat-row.msg.theirs .msg-stack{align-items:flex-start}
#uChatList .chat-row.msg .bubble{
  display:inline-block;
  max-width:100%;
  padding:12px 14px;
  border-radius:10px;
  color:#fff;
  font-size:14px;
  line-height:1.5;
  box-shadow:0 2px 6px rgba(2,12,27,.10);
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
#uChatList .chat-row.msg .msg-meta{display:flex;gap:6px;align-items:center;font-size:11px;color:#9ca3af;line-height:1;padding:0 4px}
#uChatList .chat-row.msg .msg-time{color:#111827}
#uChatList .chat-row.msg .msg-status{font-size:11px;color:#9ca3af;line-height:1;padding:0}
#uChatList .chat-row.msg.mine{justify-content:flex-end}
#uChatList .chat-row.msg.mine .bubble{background:#3b82f6}
#uChatList .chat-row.msg.mine .bubble:not(.bubble-image):not(.bubble-emoji-only){border-bottom-right-radius:1px}
#uChatList .chat-row.msg.mine .bubble:not(.bubble-image):not(.bubble-emoji-only) .bubble-caption{border-bottom-right-radius:1px}
#uChatList .chat-row.msg.theirs{justify-content:flex-start}
#uChatList .chat-row.msg.theirs .bubble{background:#0f4c81}
#uChatList .chat-row.msg.theirs .bubble:not(.bubble-image):not(.bubble-emoji-only){border-bottom-left-radius:1px}
#uChatList .chat-row.msg.theirs .bubble:not(.bubble-image):not(.bubble-emoji-only) .bubble-caption{border-bottom-left-radius:1px}
#uChatList .chat-row.msg .bubble .chat-attach-link{ display:block; margin-top:8px; }
#uChatList .chat-row.msg .bubble .chat-attach-img{ display:block; max-width:240px; max-height:240px; width:auto; height:auto; object-fit:contain; border-radius:12px; }
#uChatList .chat-row.msg .bubble .chat-attach-file{ display:block; margin-top:8px; color:rgba(255,255,255,.92); text-decoration:underline; }
#uChatList .chat-row.msg .bubble.bubble-image{ background: transparent !important; padding:0 !important; box-shadow:none !important; border:0 !important; }
#uChatList .chat-row.msg .bubble.bubble-image .chat-attach-link{ display:block; margin-top:8px; }
#uChatList .chat-row.msg .bubble.bubble-image.bubble-image-no-caption .chat-attach-link{ margin-top:0; }
#uChatList .chat-row.msg .bubble.bubble-emoji-only{
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  font-size: 15px;
  line-height: 1.1;
  color: #111827;
}
#uChatList .chat-row.msg .bubble.bubble-emoji-only.bubble-emoji-large{
  font-size: 42px;
  line-height: 1;
}
@media (max-width: 640px){
  #uChatList .chat-row.msg .bubble.bubble-emoji-only.bubble-emoji-large{ font-size: 36px; }
}
#uChatList .chat-row.msg .bubble .bubble-caption{ display:inline-block; max-width:100%; padding:12px 14px; border-radius:10px; color:#fff; font-size:14px; line-height:1.5; box-shadow:0 2px 6px rgba(2,12,27,.10); white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
#uChatList .chat-row.msg.mine .bubble .bubble-caption{ background:#3b82f6; }
#uChatList .chat-row.msg.theirs .bubble .bubble-caption{ background:#0f4c81; }

#uChatList .chat-row.msg-sep{display:flex;justify-content:center;align-items:center;padding:14px 10px;gap:0}
#uChatList .chat-row.msg-sep .msg-sep-text{font-size:12px;color:#9ca3af;line-height:1}

body.page-echat .chat-scroll-down,
body.echat-page .chat-scroll-down{
  position:absolute;
  left:50%;
  bottom: 82px; /* overridden by JS to sit above input bar */
  transform:translateX(-50%);
  width:44px;
  height:44px;
  border:0;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  padding:0;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(2,12,27,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 6;
}
body.page-echat .chat-scroll-down:hover,
body.echat-page .chat-scroll-down:hover{ background:#bfdbfe; }
body.page-echat .chat-scroll-down:active,
body.echat-page .chat-scroll-down:active{ transform:translateX(-50%) scale(0.98); }
body.page-echat .chat-scroll-down:focus,
body.echat-page .chat-scroll-down:focus{ outline:none; box-shadow:0 10px 24px rgba(2,12,27,.12); }
body.page-echat .chat-scroll-down:focus-visible,
body.echat-page .chat-scroll-down:focus-visible{ outline:none; box-shadow:0 10px 24px rgba(2,12,27,.12); }
body.page-echat .chat-scroll-down[hidden],
body.echat-page .chat-scroll-down[hidden]{ display:none !important; }
body.page-echat .chat-scroll-down__icon,
body.echat-page .chat-scroll-down__icon{ width:22px; height:22px; display:block; object-fit:contain; }

@media (max-width: 640px){
  body.page-echat .chat-scroll-down,
  body.echat-page .chat-scroll-down{ width:36px; height:36px; }
  body.page-echat .chat-scroll-down__icon,
  body.echat-page .chat-scroll-down__icon{ width:18px; height:18px; }
}

@media (max-width: 640px){
  #uChatList .chat-row.msg .msg-stack{ max-width:86%; }
  #uChatList .chat-row.msg .bubble .chat-attach-img{ max-width:180px; max-height:180px; }
  #uChatList .chat-row.msg .bubble.bubble-image{ background: transparent !important; padding:0 !important; box-shadow:none !important; border:0 !important; }
}

body.ll-no-scroll{ overflow:hidden !important; }
.ll-img-lightbox{ position:fixed; inset:0; z-index:9999; display:none; align-items:center; justify-content:center; padding:18px; }
.ll-img-lightbox.open{ display:flex; }
.ll-img-lightbox__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.72); }
.ll-img-lightbox__panel{ position:relative; z-index:1; max-width:min(92vw, 920px); max-height:92vh; }
.ll-img-lightbox__img{ display:block; max-width:92vw; max-height:92vh; width:auto; height:auto; object-fit:contain; border-radius:14px; background:#fff; box-shadow:0 14px 35px rgba(0,0,0,.25); }
.ll-img-lightbox__close{ top:-12px; right:-12px; z-index:2; }

/* Report Item page: image viewer (copied from Admin Claims Details modal) */
#imgViewModal.cv-img-viewer{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(2,12,27,.45);
  z-index: 10060;
}
#imgViewModal.cv-img-viewer.open{display:flex}
#imgViewModal .cv-img-shell{position:relative;display:inline-flex}
#imgViewModal .cv-img-full{
  max-width:min(92vw, 520px);
  max-height:76vh;
  border-radius:10px;
  background:#fff;
  box-shadow:0 18px 45px rgba(2,12,27,.24);
  object-fit:contain;
  display:block;
}
#imgViewModal .cv-img-close:hover{background:#e5e7eb}

/* Bottom input bar */
.chat-input-bar{
  display:flex;
  flex:0 0 auto;
  align-items:flex-end;
  gap:10px;
  padding:8px 12px;
  border-top:1px solid var(--border);
  background:#f3f4f6;
}
.chat-attach-preview{ display:none; }
.chat-attach-preview:not([hidden]){
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-top:1px solid var(--border);
  background:#f3f4f6;
  min-height:92px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.chat-attach-preview::-webkit-scrollbar{ height:8px; }
.chat-attach-preview::-webkit-scrollbar-thumb{ background:rgba(17,24,39,.18); border-radius:999px; }
.chat-attach-preview:not([hidden]) + .chat-input-bar{ border-top:0; }
.chat-attach-item{
  position:relative;
  width:72px;
  height:72px;
  flex:0 0 auto;
  border-radius:14px;
  background:#e5e7eb;
  box-shadow:0 6px 18px rgba(2,12,27,.10);
  overflow:visible;
}
.chat-attach-thumb{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:inherit;
}
.chat-attach-remove{
  position:absolute;
  top:-10px;
  right:-10px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:0;
  background:#9ca3af;
  color:#fff;
  font-size:18px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(2,12,27,.18);
  border:2px solid rgba(255,255,255,.95);
}
.chat-attach-remove:hover{ background:#6b7280; }
.chat-attach-remove:active{ transform:translateY(1px); }
.chat-input-shell{
  flex:1;
  background:transparent;
  border-radius:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  min-width:0;
  gap:0;
}
.chat-input-inner{
  flex:1;
  background:#ffffff;
  border-radius:12px; /* medium round white rectangle */
  min-height:38px;
  height:auto;
  padding:5px 12px;
  display:flex;
  align-items:flex-end;
  min-width:0;
  gap:12px;
  width:100%;
  max-width:none;
  margin:0;
}
.chat-input-inner .form-input{
  border:0;
  outline:0;
  background:transparent;
  width:auto;
  height:auto;
  padding:0;
  font-size:14px;
  font-family:inherit;
  text-align:left;
  color:#111827;
  min-width:0;
  flex:1;
  display:block;
  min-height:24px;
  resize:none;
  overflow-y:auto;
  line-height:1.4;
  max-height:120px;
}
.chat-input-inner .form-input::placeholder{
  color:#9ca3af;
}
.chat-icon-btn{
  border:0;
  background:transparent;
  width:32px;
  height:32px;
  border-radius:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
  box-shadow:none;
}
.chat-icon-btn img{
  width:22px;
  height:22px;
  display:block;
  object-fit:contain;
  max-width:22px;
  max-height:22px;
}
@media (max-width: 640px){
  .chat-attach-preview{ min-height:76px; padding:8px 10px; gap:8px; }
  .chat-attach-item{ width:56px; height:56px; border-radius:13px; }
  .chat-attach-remove{ width:26px; height:26px; font-size:16px; top:-9px; right:-9px; }
}
.chat-emoji-btn{
  border-radius:999px;
}
.chat-send-btn{
  border:0;
  background:transparent;
  padding:0;
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.chat-send-btn img{
  width:22px;
  height:22px;
  display:block;
  object-fit:contain;
  max-width:22px;
  max-height:22px;
}

/* Emoji picker (E-Chat) */
.chat-input-bar{position:relative}
.emoji-popover{
  position:absolute;
  right:10px;
  bottom:calc(100% + 10px);
  width:min(320px, calc(100vw - 40px));
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:14px;
  box-shadow:0 18px 45px rgba(2,12,27,.18), 0 2px 6px rgba(2,12,27,.08);
  padding:10px;
  display:none;
  z-index:50;
  max-height:min(260px, calc(100vh - 200px));
  overflow:auto;
}
.emoji-popover.open{display:block}
.emoji-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(38px, 1fr));
  gap:6px;
}
.emoji-btn{
  border:0;
  background:#f3f4f6;
  border-radius:10px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.emoji-btn:hover{background:#e5e7eb}
.emoji-btn:active{transform:translateY(1px)}
@media (max-width: 640px){
  .emoji-popover{
    right:8px;
    width:calc(100vw - 28px);
    max-height:min(240px, calc(100vh - 180px));
  }
  .emoji-grid{ grid-template-columns:repeat(auto-fit, minmax(34px, 1fr)); }
  .emoji-btn{ height:34px; font-size:17px; border-radius:9px; }
}
/* Force chat icons to stay small + aligned (esp. mobile browsers) */
#uAttachBtn, #uChatSend{
  flex:0 0 auto;
  width:32px;
  height:32px;
  overflow:hidden;
  line-height:0;
}
#uAttachBtn img, #uChatSend img{
  width:22px;
  height:22px;
  max-width:22px;
  max-height:22px;
}
#uEmojiBtn{
  flex:0 0 auto;
  width:28px;
  height:28px;
  overflow:hidden;
  line-height:0;
}
#uEmojiBtn img{
  width:18px;
  height:18px;
  max-width:18px;
  max-height:18px;
}
@media (max-width: 640px){
  /* Mobile typebar */
  .chat-input-bar{
    padding:4px 10px calc(4px + env(safe-area-inset-bottom));
    gap:12px;
  }
  /* While typing on mobile: hide gallery + let input expand left */
  .chat-input-bar.mobile-compose-typing{
    gap:8px;
  }
  .chat-input-bar.mobile-compose-typing #uAttachBtn{
    display:none;
  }
  .chat-input-inner{
    min-height:40px;
    height:auto;
    padding:4px 10px;
  }
  .chat-input-inner .form-input{
    font-size:16px;
    max-height:140px;
    text-align:left;
  }
  #uAttachBtn, #uChatSend{ width:40px; height:40px; }
  #uAttachBtn img, #uChatSend img{ width:24px; height:24px; max-width:24px; max-height:24px; }
  #uEmojiBtn{ width:32px; height:32px; }
  #uEmojiBtn img{ width:20px; height:20px; max-width:20px; max-height:20px; }
}

/* E-Chat header search bar */
.chat-search{display:block;width:200px;max-width:240px;height:36px;padding:0 12px;border:2px solid #e5e7eb;border-radius:999px;background:#fff;color:#374151;font-size:14px;margin-left:8px}
.chat-search::placeholder{color:#9ca3af}
.chat-search:focus,
.chat-search:focus-visible{outline:none;border-color:#e5e7eb;box-shadow:none}
/* Search input wrapper */
.chat-search-wrap{position:relative;display:inline-flex;align-items:center}
.chat-search{padding-right:34px}
.chat-search-clear{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:24px;
  height:24px;
  border-radius:999px;
  border:0;
  background:transparent;
  color:#6b7280;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
}
.chat-search-clear:hover{background:#f3f4f6;color:#111827}
.chat-search-clear:active{transform:translateY(-50%) scale(.98)}

/* KPI tiles */
.kpi-grid{display:grid;grid-template-columns:repeat(4, minmax(180px, 1fr));gap:18px;margin:0}
/* Dashboard: keep stat cards visible while scrolling */
.page-dashboard .kpi-sticky{
  position:sticky;
  top:64px; /* below topbar */
  z-index:19;
  background:var(--bg);
  padding:22px 22px 14px;
  margin:-22px -22px 22px;
}
.kpi-card{background:#fff;border-radius:10px;box-shadow:var(--shadow);border:1px solid var(--border);padding:14px;display:flex;align-items:center;gap:12px;transition:transform .12s ease;will-change:transform}
.kpi-card:hover{transform:translateY(-1px)}
.kpi-card:active{transform:translateY(0)}
.kpi-icon{width:46px;height:46px;border-radius:12px;display:flex;align-items:center;justify-content:center}
.kpi-icon img{width:24px;height:24px;object-fit:contain;display:block}
.kpi-icon.purple{background:#f3e8ff;color:#7c3aed}
.kpi-icon.pink{background:#fee2e2;color:#db2777}
.kpi-icon.teal{background:#d1fae5;color:#0f766e}
.kpi-icon.amber{background:#fef3c7;color:#d97706}
.kpi-icon.blue{background:#dbeafe;color:#2563eb}
.kpi-icon.purple img{filter:brightness(0) saturate(100%) invert(27%) sepia(80%) saturate(4750%) hue-rotate(255deg) brightness(92%) contrast(96%)}
.kpi-icon.pink img{filter:brightness(0) saturate(100%) invert(24%) sepia(81%) saturate(3150%) hue-rotate(310deg) brightness(95%) contrast(95%)}
.kpi-icon.teal img{filter:brightness(0) saturate(100%) invert(30%) sepia(63%) saturate(930%) hue-rotate(132deg) brightness(92%) contrast(93%)}
.kpi-icon.amber img{filter:brightness(0) saturate(100%) invert(59%) sepia(64%) saturate(2410%) hue-rotate(2deg) brightness(95%) contrast(93%)}
.kpi-icon.blue img{filter:brightness(0) saturate(100%) invert(32%) sepia(86%) saturate(2068%) hue-rotate(204deg) brightness(96%) contrast(96%)}
.kpi-text .label{color:#64748b;font-weight:500;font-size:12px}
.kpi-text .value{font-weight:600;font-size:22px;color:#0f2744}

/* Action panels */
.action-grid{display:grid;grid-template-columns:repeat(2, minmax(280px,1fr));gap:22px;margin:18px 0}
.action-card{background:#fff;border-radius:16px;box-shadow:var(--shadow);border:1px solid var(--border);padding:36px 16px;display:flex;flex-direction:column;align-items:center;gap:10px;min-height:200px;transition:transform .12s ease;will-change:transform}
.action-card:hover{transform:translateY(-1px)}
.action-card:active{transform:translateY(0)}
.action-icon{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e1effb;color:#0f4c81;font-size:28px}
.action-card h3{margin: 8px 0 6px; font-size: 18px; }
.action-card p{margin: 0 0 12px; color: var(--muted); font-size: 14px; }

/* Report Item: choice cards (Lost/Found) */
.page-reportitem .u-content h2{font-weight:500}
.page-reportitem .u-report-btn{font-weight:500;border-radius:8px}
.page-reportitem .u-report-choice-card{border-radius:10px}
.page-reportitem .pill-select{border-radius:10px}
.page-reportitem .pill-dd-btn{border-radius:10px}
.page-reportitem .pill-dd-menu{border-radius:10px}
.page-reportitem .my-reports-card{border-radius:10px}
.u-report-choice-card{transition:transform .12s ease;will-change:transform}
.u-report-choice-card:hover{transform:translateY(-1px)}
.u-report-choice-card:active{transform:translateY(0)}

/* Buttons */
.btn{border:0;padding:10px 18px;border-radius:999px;cursor:pointer;font-weight:800}
.btn.primary{background:#3b82f6;color:#fff}
.btn.primary:hover{background:#2563eb}
.btn.danger{background:#ef4444;color:#fff}
.btn.danger:hover{background:#dc2626}
/* Medium-radius Logout button on profile page */
#profileLogoutBtn.btn{
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width: 210px;
  padding:12px 26px;
  font-weight:600;
}
#profileLogoutBtn.btn img{
  width:18px;
  height:18px;
  display:block;
  filter:brightness(0) invert(1);
}
/* Self-claim modal: custom blue for the OK button */
#selfClaimModal .btn.primary{background:#2866ff}
#selfClaimModal .btn.primary:hover{background:#1f55d6}
.btn.info{background:#19b6cf;color:#fff}
.btn.info:hover{background:#0ea5b7}
.btn.outline{background:#fff;color:#0f4c81;border:2px solid #c7d8ea;border-radius:24px;padding:8px 16px}

/* Uiverse-style buttons for Report Item choices on public page */
.u-report-btn{
  --color:#3b82f6;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:8.5em;
  height:2.8em;
  padding:0 1.8em;
  border-radius:8px !important;
  overflow:hidden;
  cursor:pointer;
  font-weight:500;
  font-size:15px;
  color:var(--color);
  background:transparent;
  border:2px solid var(--color);
  position:relative;
}
.u-report-lost-btn{ --color:#3b82f6; }
.u-report-found-btn{ --color:#19b6cf; }
.u-report-btn::before{
  position:absolute;
  content:"";
  background:var(--color);
  width:260px;
  height:260px;
  z-index:-1;
  border-radius:50%;
  top:100%;
  left:100%;
  transition:0.3s all;
}
.u-report-btn:hover{
  color:#ffffff;
}
.u-report-btn:hover::before{
  top:-80px;
  left:-80px;
}

/* Table styles */
.table-card{background:#fff;border-radius:14px;box-shadow:var(--shadow);border:1px solid var(--border);overflow:hidden}
/* Claim History: allow status dropdown menu to extend outside the card */
.claimhistory-page .table-card{overflow:visible;border-radius:10px}
.claimhistory-page .table-scroll{border-radius:10px;overflow-x:auto;overflow-y:hidden}
.claimhistory-page .ll-claims-table thead{background:#3b82f6}
.claimhistory-page .ll-claims-table thead th{
  background:transparent;
  color:#fff;
  font-weight:600;
  border-bottom-color:rgba(255,255,255,.22);
}
.claimhistory-page .ll-claims-table thead th + th{border-left:1px solid rgba(255,255,255,.18)}
.ll-table{width:100%;border-collapse:collapse}
.ll-table thead th{text-align:left;font-size:14px;color:#6b7280;background:#f6f7fb;padding:12px 12px;border-bottom:1px solid var(--border)}
.ll-table tbody td{padding:10px 12px;border-bottom:1px solid var(--border);font-size:13px;color:#334155}
.ll-table tbody tr:hover{background:#fafbff}

/* Simple horizontal scroll container for wide tables on phones */
.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-scroll table{min-width:560px}

/* Claim History filters */
.cl-filters{display:flex;gap:8px;flex-wrap:wrap}
.cl-filter{background:#fff;border:1px solid var(--border);border-radius:999px;padding:6px 12px;font-weight:800;color:#0f2744;cursor:pointer}
.cl-filter.active{background:#0f4c81;color:#fff;border-color:#0f4c81}
.claimhistory-page .cl-history-head{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:0 0 10px}
.claimhistory-page .cl-history-title{margin:0;font-size:20px;color:#0f2744;font-weight:600}
.claimhistory-page #chStatusDD .pill-select{border-radius:10px}
.claimhistory-page #chStatusDD .pill-dd-btn{border-radius:10px}
.claimhistory-page #chStatusDD .pill-dd-menu{border-radius:10px}
.claimhistory-page #chStatusDD{min-width:160px}
.claimhistory-page #chStatusDD .filter-select{min-width:160px}
.claimhistory-page #chStatusDD .filter-menu{
  left:auto;
  right:0;
  width:max-content;
  min-width:160px;
  max-width:min(320px, calc(100vw - 28px));
  overflow-x:hidden;
}
.claimhistory-page #chStatusDD .filter-menu li{white-space:nowrap}
/* Pill-style select (like filters with caret) */
.pill-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:#fff;border:2px solid #c7d8ea;border-radius:14px;box-shadow:var(--shadow);padding:8px 36px 8px 14px;font-weight:600;color:#111827;cursor:pointer;min-width:160px;height:40px;background-image:url('data:image/svg+xml,%3Csvg xmlns%3D%22http://www.w3.org/2000/svg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 stroke%3D%22%231f2937%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Cpath d%3D%22M6 9l6 6 6-6%22/%3E%3C/svg%3E');background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.pill-select:hover{border-color:#93c5fd}
.pill-select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.35)}
.cl-filter-wrap{display:flex;gap:10px;align-items:center}

/* Custom pill dropdown (used for Report Item type filter to avoid native mobile select UI) */
.pill-dd{position:relative;display:inline-block;min-width:160px}
.pill-dd-btn{
  width:100%;
  text-align:left;
  height:40px;
  padding:8px 36px 8px 14px;
  border-radius:14px;
  border:2px solid #c7d8ea;
  box-shadow:var(--shadow);
  background:#fff;
  color:#111827;
  font-weight:600;
  font-size:16px;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-image:url('data:image/svg+xml,%3Csvg xmlns%3D%22http://www.w3.org/2000/svg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 stroke%3D%22%231f2937%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Cpath d%3D%22M6 9l6 6 6-6%22/%3E%3C/svg%3E');
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease, filter .12s ease;
  will-change: transform;
}
.pill-dd-btn:hover{background-color:#eff6ff;border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.25), var(--shadow);transform:translateY(-1px);filter:brightness(1.03)}
.pill-dd-btn[aria-expanded="true"]{
  background-color:#eff6ff;
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(96,165,250,.25), var(--shadow);
  background-image:url('data:image/svg+xml,%3Csvg xmlns%3D%22http://www.w3.org/2000/svg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 24 24%22 fill%3D%22none%22 stroke%3D%22%231f2937%22 stroke-width%3D%222%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22%3E%3Cpath d%3D%22M6 15l6-6 6 6%22/%3E%3C/svg%3E');
}
.pill-dd-btn:active{transform:translateY(0);box-shadow:var(--shadow);filter:brightness(.98)}
.pill-dd-btn:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.35), var(--shadow)}
.pill-dd-native{position:absolute;inset:0;opacity:0;pointer-events:none}
.pill-dd-menu{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  min-width:100%;
  background:#fff;
  border:2px solid #93c5fd;
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:auto;
  max-height:220px;
  z-index:70
}
.pill-dd-opt{
  display:block;
  width:100%;
  padding:10px 14px;
  background:#fff;
  border:0;
  text-align:left;
  color:#111827;
  font-size:16px;
  font-weight:500;
  cursor:pointer
}
.pill-dd-opt:hover,
.pill-dd-opt:focus-visible{background:var(--blue);color:#fff}
.pill-dd-opt.is-selected{background:var(--blue);color:#fff}
/* Desktop: when the menu is open and you're hovering, let the highlight follow the cursor */
.pill-dd-menu:hover .pill-dd-opt.is-selected{background:#fff;color:#111827}
.pill-dd-menu:hover .pill-dd-opt.is-selected:hover,
.pill-dd-menu:hover .pill-dd-opt.is-selected:focus-visible{background:var(--blue);color:#fff}

/* Report modals: custom dropdown for Category/Item */
.rf-dd{position:relative;width:100%}
.rf-dd-native{position:absolute;inset:0;opacity:0;pointer-events:none}
.rf-dd-btn{
  width:100%;
  height:42px;
  padding:8px 40px 8px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  color:#111827;
  font-size:14px;
  font-weight:500;
  text-align:left;
  cursor:pointer;
  box-shadow:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:14px;
}
.rf-dd-btn.is-placeholder{color:#6b7280}
.rf-dd-btn:hover{border-color:#d1d5db}
.rf-dd-btn:focus,
.rf-dd-btn:focus-visible{outline:none;border-color:#93c5fd;box-shadow:none}
.rf-dd-menu{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:100%;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  max-height:320px;
  overflow-y:auto;
  z-index:80;
}
.rf-dd-divider{
  height:1px;
  background:var(--border);
  margin:6px 0;
}
.rf-dd-opt{
  display:block;
  width:100%;
  padding:10px 12px;
  background:#fff;
  border:0;
  text-align:left;
  font-size:14px;
  font-weight:500;
  color:#111827;
  cursor:pointer;
}
.rf-dd-opt:hover,
.rf-dd-opt:focus-visible{background:var(--blue);color:#fff}
.rf-dd-opt.is-selected{background:var(--blue);color:#fff}
/* When hovering the list, let the highlight follow the cursor instead of sticking to the selected item */
.rf-dd-menu:hover .rf-dd-opt.is-selected{background:#fff;color:#111827}
.rf-dd-menu:hover .rf-dd-opt.is-selected:hover,
.rf-dd-menu:hover .rf-dd-opt.is-selected:focus-visible{background:var(--blue);color:#fff}
@media (max-width: 860px){
  .rf-dd-btn{height:42px;font-size:14px;border-radius:12px;padding:8px 40px 8px 12px;background-position:right 12px center}
  .rf-dd-opt{font-size:14px;padding:10px 12px}
  .rf-dd-menu{border-radius:12px;top:calc(100% + 8px);max-height:260px}
}


/* Stacked cards for Claim History on small screens */
@media (max-width: 600px){
  .claimhistory-page .table-card{background:transparent;border:0;box-shadow:none;border-radius:0;overflow:visible}
  .claimhistory-page .table-scroll{border-radius:0}
  .table-scroll{overflow-x:visible}
  .table-scroll table{min-width:100%}
  .cl-filters{justify-content:flex-start}
  .ll-claims-table thead{display:none}
  .ll-claims-table{border-collapse:separate;border-spacing:0}
  .ll-claims-table tbody{display:block}
  .ll-claims-table tr{display:block;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 16px rgba(2,12,27,.06);margin:12px 0;padding:10px 12px}
  .ll-claims-table tr:hover{background:#fff}
  .ll-claims-table td{display:grid;grid-template-columns:120px 1fr;gap:10px;border:0;padding:8px 0}
  .ll-claims-table td::before{content:attr(data-label);font-weight:800;color:#6b7280}
  .ll-claims-table td:first-child{grid-template-columns:auto 1fr;align-items:center;padding-top:4px}
  .ll-claims-table td:first-child::before{content:none}
  .ll-claims-table .mini-thumb{margin-right:10px}
  .ll-claims-table .btn{width:100%}
  /* Make the View button smaller, not full width */
  .ll-claims-table td[data-label="Actions"] .btn{width:auto; min-width:84px; height:32px; padding:0 12px; font-size:13px; border-radius:8px}
  /* Mobile: make Cancel pill/oval */
  .ll-claims-table td[data-label="Actions"] .cancel-claim{border-radius:999px}
  /* Keep actions side-by-side on small screens */
  .ll-claims-table td[data-label="Actions"] .actions-inline{display:flex; gap:8px; align-items:center; justify-content:flex-start}
}

/* Smaller View button on desktop as well */
.ll-claims-table .cv-view{min-width:96px;height:36px;padding:0 14px;font-size:14px;border-radius:999px}
/* Ensure View button in Claim History is pill/oval even without ll-claims-table wrapper */
.ll-table .cv-view, .cv-view{
  border-radius:999px !important;
  min-width:78px;
  height:32px;
  padding:0 12px;
  font-size:13px;
  font-weight:600;
  background:#2563eb !important;
  color:#fff !important;
  border-color:#2563eb !important;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease, filter .12s ease;
  will-change: transform;
}
.ll-table .cv-view:hover, .cv-view:hover{
  background:#1d4ed8 !important;
  border-color:#1d4ed8 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(147,197,253,.25);
  filter: brightness(1.03);
}
.ll-table .cv-view:active, .cv-view:active{
  transform: translateY(0);
  box-shadow: none;
  filter: brightness(.98);
}
/* Keep Cancel aligned with View on desktop */
.ll-claims-table .cancel-claim{min-width:84px;height:32px;padding:0 12px;font-size:13px;border-radius:999px;font-weight:600}
/* Align View and Cancel inline on desktop */
.ll-claims-table td[data-label="Actions"] .actions-inline{display:inline-flex;gap:8px;align-items:center}

@media (max-width: 860px){
  /* Keep sidebar mountable on mobile; slide it in with the .open class */
  .u-sidebar{display:block; transform:translateX(-100%); transition:transform .25s ease}
  .u-sidebar.open{transform:translateX(0)}
  .u-main{margin-left:0; width:100%}
  .u-grid{grid-template-columns:1fr}
  /* Dashboard: give KPI cards a bit more horizontal space */
  .page-dashboard .u-content{padding:16px 16px calc(26px + env(safe-area-inset-bottom))}
  .page-dashboard .kpi-sticky{padding:16px 16px 12px;margin:-16px -16px 16px}
  .page-dashboard .u-activity-panel{max-width:none;width:calc(100% + 32px);margin:0 -16px}
  /* When the hero panels are shown on mobile, keep Latest Activity card centered (no full-bleed). */
  .page-dashboard .u-dashboard-hero.has-panels .u-activity-panel{width:100%;max-width:560px;margin:0 auto}
  .kpi-grid{grid-template-columns:repeat(2, minmax(0,1fr));gap:12px}
  .kpi-card{border-radius:10px;padding:12px 14px;gap:12px}
  .kpi-icon{width:42px;height:42px;border-radius:12px}
  .kpi-icon img{width:20px;height:20px}
  .kpi-text{min-width:0}
  .kpi-text .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
  .kpi-text .value{font-size:24px}
  .action-grid{grid-template-columns:1fr}
}


/* Mobile menu + overlay */
.menu-btn{display:none;background:rgba(255,255,255,.14);border:0;border-radius:10px;width:40px;height:40px;align-items:center;justify-content:center;cursor:pointer;margin-right:8px}
.menu-btn img{width:20px;height:20px;filter:brightness(100%)}
.u-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:25}
.u-overlay.show{display:block}
@media (max-width: 860px){
  .u-sidebar{display:block;transform:translateX(-100%);transition:transform .25s ease}
  .u-sidebar.open{transform:translateX(0)}
  .u-main{margin-left:0;width:100%}
  .u-nav a.website-only{display:none}
  .menu-btn{display:inline-flex}
  .u-grid{grid-template-columns:1fr}
}

/* Item details modal */
.u-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:60}
.u-modal.open{display:flex}
.u-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2.5px)}
.u-modal-card{position:relative;background:#fff;width:min(1020px, calc(100% - 40px));max-height:90vh;overflow:auto;border-radius:18px;box-shadow:0 18px 45px rgba(2,12,27,.18), 0 2px 6px rgba(2,12,27,.08);padding:24px;border:1px solid var(--border);overscroll-behavior:contain}
.u-modal-card.sm{width:min(440px, calc(100% - 40px)); padding:18px; border-radius:16px}
.u-modal.open .u-modal-card{animation:modalIn .22s ease-out both}

@keyframes modalIn{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.u-modal-close{position:absolute;right:14px;top:12px;width:36px;height:36px;border-radius:50%;background:#f3f4f6;border:0;font-size:24px;line-height:1;color:#111827;cursor:pointer}
.u-modal-close:hover{background:#e5e7eb}

/* Welcome modal */
#welcomeModal .u-modal-card.wm-card{width:min(680px, calc(100% - 40px));padding:26px 28px 22px;border-radius:12px;text-align:center}
#welcomeModal .wm-icon{position:absolute;left:18px;top:18px;width:34px;height:34px;border-radius:10px;background:#e0f2fe;display:flex;align-items:center;justify-content:center}
#welcomeModal .wm-icon img{width:18px;height:18px;object-fit:contain}
#welcomeModal .wm-title{margin:6px 0 10px;font-size:20px;font-weight:600;color:#0f172a}
#welcomeModal .wm-text{margin:0 auto 16px;max-width:560px;color:#475569;font-size:13px;line-height:1.35;text-align:center}
#welcomeModal .wm-actions{display:flex;justify-content:center;margin-top:10px}
#welcomeModal #wmStart{font-weight:600}
#welcomeModal .wm-check{display:flex;align-items:center;gap:8px;margin-top:12px;color:#64748b;font-size:12px;justify-content:flex-start}

/* Report Item page: "My Reported Items" details modal (match Admin Report Details UI) */
#myReportModal .u-modal-card.mr-card{
  width:min(900px, calc(100% - 40px));
  max-height: calc(100% - 44px);
  padding: 18px 18px 14px;
  border-radius: 10px;
}
#myReportModal .mr-title{
  margin: 2px 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
}
#myReportModal .mr-rule{
  border: 0;
  border-top: 1px solid #d1d5db;
  margin: 0 0 14px;
}
#myReportModal .mr-grid{
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  align-items: start;
}
#myReportModal .mr-photo-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(2,12,27,.14);
  min-height: 220px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#myReportModal .mr-photo-card img{
  width: 100%;
  height: 100%;
  max-height: 260px;
  object-fit: contain;
}
#myReportModal .mr-kv{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  align-items: baseline;
}
#myReportModal .mr-k{
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.15;
}
#myReportModal .mr-v{
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.25;
  min-width: 0;
  word-break: break-word;
}
#myReportModal #mrStatus.mr-v{ font-weight: 700; }
#myReportModal #mrStatus.is-rejected{ font-weight: 600; }
#myReportModal #mrStatus.is-claimed{ color: #16a34a; }
#myReportModal #mrStatus.is-posted{ color: #16a34a; }
#myReportModal #mrStatus.is-pending{ color: #f59e0b; }
#myReportModal #mrStatus.is-verified{ color: #2563eb; }
#myReportModal #mrStatus.is-rejected{ color: #dc2626; }
#myReportModal #mrStatus.is-resolved{ color: #16a34a; }
#myReportModal #mrDescription{ white-space: pre-wrap; }
#myReportModal #mrDate{ white-space: nowrap; }

@media (max-width: 980px){
  #myReportModal .mr-grid{ grid-template-columns: 1fr; }
  #myReportModal .mr-kv{ grid-template-columns: 130px 1fr; gap: 12px; }
  #myReportModal .mr-title{ font-size: 24px; }
  #myReportModal .mr-k{ font-size: 16px; }
  #myReportModal .mr-v{ font-size: 16px; }
}
.item-head{display:flex;align-items:center;justify-content:space-between;margin:4px 6px 10px}
.item-title{margin:0;font-size:28px;font-weight:800;color:#0f2744}
.item-rule{border:0;border-top:1px solid var(--border);margin:0 6px 14px}
.chip{display:inline-flex;align-items:center;justify-content:center;height:34px;padding:0 14px;border-radius:999px;font-weight:800;font-size:14px;background:#fff7ed;color:#f59e0b}
.chip.lost{background:#fef2f2;color:#ef4444}
.chip.found{background:#ecfdf5;color:#10b981}

/* Appeal attach button */
.rf-attach{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#0f4c81;font-weight:800}
.rf-attach img{width:100%;height:100%;display:block;object-fit:contain}
.btn-icon{width:36px;height:36px;border-radius:50%;background:#f3f4f6;border:1px solid #e5e7eb;display:inline-flex;align-items:center;justify-content:center;padding:0;overflow:hidden}
.btn-icon:hover{background:#e5e7eb}
.rf-attach-text{display:none}

/* Appeal Decision modal (Claim History) */
#appealModal .u-modal-card.appeal-card{
  width:min(620px, calc(100% - 40px));
  max-width:620px;
  border-radius:10px;
  padding:18px 18px 16px;
}
#appealModal .u-modal-close{
  z-index:10;
}
#appealModal .appeal-title{
  margin: 6px 0 8px;
  text-align:center;
  font-size:22px;
  font-weight:600;
  color:#0f172a;
  letter-spacing:-0.02em;
}
#appealModal .appeal-sub{
  margin:0 auto 14px;
  text-align:center;
  color:#9ca3af;
  font-size:13px;
  line-height:1.35;
  max-width:760px;
  white-space:nowrap;
}
#appealModal .appeal-label{
  display:block;
  margin:14px 0 10px;
  font-size:15px;
  font-weight:500;
  color:#111827;
}
#appealModal .appeal-textarea{
  width:100%;
  border:1px solid #93c5fd;
  border-radius:10px;
  padding:14px 16px;
  font-size:14px;
  color:#111827;
  background:#fff;
  min-height:130px;
  resize:none;
  box-shadow:none;
}
#appealModal .appeal-textarea::placeholder{color:#9ca3af}
#appealModal .appeal-textarea:focus{
  outline:none;
  border-color:#60a5fa;
  box-shadow:none;
}
#appealModal .appeal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
}
#appealModal .appeal-upload-wrap{display:flex;align-items:flex-start;gap:12px;min-width:0;position:relative}
#appealModal .appeal-upload-wrap input[type="file"]{
  /* Visually hidden but still programmatically clickable (mobile Safari friendly) */
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
  opacity:0 !important;
  pointer-events:none !important;
}
#appealModal .appeal-upload-wrap input[type="file"][disabled]{pointer-events:none}
#appealModal .appeal-upload{
  width:30px;
  height:30px;
  border-radius:10px;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex:0 0 auto;
  box-shadow:0 10px 22px rgba(59,130,246,.22);
  overflow:hidden;
  border:0;
  padding:0;
  margin-top:10px;
}
#appealModal .appeal-upload:hover{filter:brightness(.98)}
#appealModal .appeal-upload img{width:100%;height:100%;object-fit:contain;filter:none;opacity:1}
#appealModal .appeal-previews{
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  max-width:240px;
  overflow-x:auto;
  overflow-y:visible;
  padding:10px 10px 2px 0;
  -ms-overflow-style:none; /* IE/Edge */
  scrollbar-width:none;    /* Firefox */
}
#appealModal .appeal-previews::-webkit-scrollbar{width:0;height:0;display:none}
#appealModal .appeal-previews[hidden]{display:none}
#appealModal .appeal-prev-item{position:relative;flex:0 0 auto}
#appealModal .appeal-prev-remove{
  position:absolute;
  top:-8px;
  right:-8px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:0;
  background:rgba(255,255,255,.96);
  color:#111827;
  font-size:16px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(2,12,27,.18);
  z-index:2;
}
#appealModal .appeal-prev-remove:hover{background:#f3f4f6}
#appealModal .appeal-prev-remove:active{transform:translateY(1px)}
#appealModal .appeal-preview{
  width:30px;
  height:30px;
  border-radius:8px;
  border:1px solid rgba(15,23,42,.10);
  object-fit:cover;
  display:block;
}
#appealModal .appeal-preview[hidden]{display:none !important}
#appealModal .appeal-filecount{
  display:none;
  color:#9ca3af;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#appealModal .appeal-submit.btn{
  height:36px;
  min-width:96px;
  padding:0 16px;
  border-radius:8px !important;
  font-weight:600;
  font-size:14px;
}

@media (max-width: 600px){
  #appealModal .u-modal-card.appeal-card{padding:18px 16px 16px}
  #appealModal .appeal-title{font-size:24px}
  #appealModal .appeal-sub{font-size:13px}
  #appealModal .appeal-sub{white-space:normal}
  #appealModal .appeal-label{font-size:15px;margin-top:12px}
  #appealModal .appeal-textarea{font-size:14px;min-height:150px}
  #appealModal .appeal-upload{width:30px;height:30px}
  #appealModal .appeal-upload img{width:100%;height:100%}
  #appealModal .appeal-preview{width:30px;height:30px}
  #appealModal .appeal-filecount{font-size:14px}
  #appealModal .appeal-submit.btn{min-width:96px;font-size:14px;height:36px;padding:0 16px}
}
.chip.pending{background:#fff7ed;color:#f59e0b}
.chip.approved{background:#ecfdf5;color:#10b981}
.chip.rejected{background:#fef2f2;color:#ef4444}
.item-details{display:grid;grid-template-columns:380px 1fr;grid-template-areas:"fig specs" "btn specs";gap:24px;margin-top:8px;align-items:start}
.item-left{display:flex;flex-direction:column;gap:14px;align-items:center}
.item-figure{grid-area:fig;background:#e5e7eb;border-radius:12px;display:flex;align-items:center;justify-content:center;min-height:360px}
.item-figure img{max-width:90%;max-height:320px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(2,12,27,.15))}
.claim-btn{grid-area:btn;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:46px;border:0;border-radius:8px;background:#2563eb;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 4px 10px rgba(2,12,27,.12);font-family:"Montserrat","Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.claim-btn img{width:18px;height:18px;display:block;filter:brightness(100%)}
.claim-btn:hover{background:#1e40af}
.item-specs{grid-area:specs;display:block}
.spec-row{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:start;padding:14px 4px;border-bottom:1px solid var(--border)}
.spec-row.multi .spec-value{white-space:pre-wrap}
.spec-row:last-child{border-bottom:0}
.spec-label{color:#6b7280;font-weight:600}
.spec-value{color:#111827;font-size:18px}
.spec-sep{border:0;border-top:1px solid var(--border);margin:10px 0}

/* Browse + Dashboard: match the desired "Browse Item" modal UI */
.browse-page #itemModal .u-modal-card,
.page-dashboard #itemModal .u-modal-card{
  width: min(860px, calc(100% - 40px));
  max-height: calc(100% - 44px);
  padding: 18px 12px 16px;
  border-radius: 10px;
}
.browse-page #itemModal .item-title,
.page-dashboard #itemModal .item-title{font-size:30px;font-weight:500;color:#0f172a;letter-spacing:-.02em}
.browse-page #itemModal .item-rule,
.page-dashboard #itemModal .item-rule{border-top:1px solid #d1d5db;margin:0 0 10px}
.browse-page #itemModal .item-details,
.page-dashboard #itemModal .item-details{
  grid-template-columns: minmax(0, 340px) minmax(0, 420px);
  grid-template-rows: 1fr auto;
  grid-template-areas:"fig specs" "fig btn";
  gap:18px;
  justify-content:center;
  align-items:stretch;
}
.browse-page #itemModal .item-figure,
.page-dashboard #itemModal .item-figure{
  background: transparent;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 220px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width:100%;
  max-width:340px;
  justify-self:center;
}
/* Center the details block + CTA within the modal */
.browse-page #itemModal .item-specs,
.page-dashboard #itemModal .item-specs{width:100%;max-width:420px;justify-self:center;margin-top:16px;align-self:start}
.browse-page #itemModal .claim-action-box,
.page-dashboard #itemModal .claim-action-box{
  grid-area:btn;
  width:min(420px, 100%);
  justify-self:center;
  align-self:end;
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:0 auto 18px;
}
.browse-page #itemModal .claim-note,
.page-dashboard #itemModal .claim-note{
  border-left:4px solid #3b82f6;
  background:#dbeafe;
  color:#1d4ed8;
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  line-height:1.35;
  font-weight:500;
  box-shadow:0 6px 16px rgba(37,99,235,.10);
  display:flex;
  align-items:flex-start;
  gap:8px;
}
.browse-page #itemModal .claim-note-icon,
.page-dashboard #itemModal .claim-note-icon{
  flex:0 0 18px;
  width:18px;
  height:18px;
  border:1.5px solid currentColor;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  line-height:1;
  margin-top:1px;
}
.browse-page #itemModal .claim-btn,
.page-dashboard #itemModal .claim-btn{width:min(420px, 100%);justify-self:center}
.browse-page #itemModal .item-figure img,
.page-dashboard #itemModal .item-figure img{
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: none;
  filter: none;
  cursor: pointer;
}
.browse-page #itemModal .item-figure img.is-found,
.page-dashboard #itemModal .item-figure img.is-found{
  filter: blur(18px);
  transform: scale(1.12);
}
.browse-page #itemModal .spec-row,
.page-dashboard #itemModal .spec-row{
  grid-template-columns: 130px 1fr;
  gap: 10px 10px;
  border-bottom:0;
  padding:5px 0;
}
.browse-page #itemModal .spec-row + .spec-row,
.page-dashboard #itemModal .spec-row + .spec-row{margin-top:8px}
  .browse-page #itemModal .spec-label,
  .page-dashboard #itemModal .spec-label{color:#111827;font-weight:600;font-size:16px}
.browse-page #itemModal .spec-value,
.page-dashboard #itemModal .spec-value{color:#6b7280;font-weight:500;font-size:16px}
.browse-page #itemModal .reporter-row,
.page-dashboard #itemModal .reporter-row{align-items:center}
.browse-page #itemModal #mdReporter,
.page-dashboard #itemModal #mdReporter{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:8px;
}
.browse-page #itemModal .reporter-name,
.page-dashboard #itemModal .reporter-name{
  display:inline-block;
  line-height:1.2;
}
.browse-page #itemModal .reporter-role-badge,
.page-dashboard #itemModal .reporter-role-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:26px;
  padding:4px 12px;
  border:1px solid #f4c55e;
  border-radius:999px;
  background:#fff8ea;
  color:#b55f14;
  font-size:12px;
  font-weight:600;
  line-height:1;
  letter-spacing:.01em;
  white-space:nowrap;
}
.browse-page #itemModal .reporter-role-badge[hidden],
.page-dashboard #itemModal .reporter-role-badge[hidden]{display:none}
.browse-page #itemModal .chip,
.page-dashboard #itemModal .chip{font-weight:600}
.browse-page #itemModal #mdStatus,
.page-dashboard #itemModal #mdStatus{font-weight:600}
.browse-page #itemModal .chip,
.page-dashboard #itemModal .chip{
  background:transparent;
  padding:0;
  height:auto;
  border-radius:0;
  font-size:18px;
  font-weight:800;
  line-height:1.1;
}
.browse-page #itemModal .chip.found,
.page-dashboard #itemModal .chip.found{color:#16a34a}
.browse-page #itemModal .chip.lost,
.page-dashboard #itemModal .chip.lost{color:#dc2626}
.browse-page #itemModal .claim-btn,
.page-dashboard #itemModal .claim-btn{
  width:min(420px, 100%);
  height:44px;
  border-radius:8px;
  font-weight:600;
  justify-self:center;
  margin:0;
}

@media (min-width: 861px){
  .browse-page #itemModal .item-figure img,
  .page-dashboard #itemModal .item-figure img{
    max-height: 100%;
    object-fit: cover;
  }
}
.browse-page #itemModal #mdImage,
.page-dashboard #itemModal #mdImage{cursor:pointer}

/* Browse: image viewer (copy from Claims Details modal) */
.browse-page #imgViewModal.cv-img-viewer{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(2,12,27,.45);
  z-index: 10060;
}
.browse-page #imgViewModal.cv-img-viewer.open{display:flex}
.browse-page #imgViewModal .cv-img-shell{position:relative;display:inline-flex;overflow:hidden;border-radius:10px}
.browse-page #imgViewModal .cv-img-full{
  max-width:min(92vw, 520px);
  max-height:76vh;
  border-radius:10px;
  background:#fff;
  box-shadow:0 18px 45px rgba(2,12,27,.24);
  object-fit:contain;
  display:block;
}
.page-dashboard #imgViewModal .cv-img-full{max-width:min(92vw, 760px)}
.browse-page #imgViewModal .cv-img-full.is-found,
.page-dashboard #imgViewModal .cv-img-full.is-found{
  filter:blur(18px);
  transform:scale(1.08);
}
@media (max-width: 980px){
  .browse-page #itemModal .u-modal-card,
  .page-dashboard #itemModal .u-modal-card{width:calc(100% - 16px)}
  .browse-page #itemModal .item-details,
  .page-dashboard #itemModal .item-details{grid-template-columns:1fr;grid-template-areas:"fig" "specs" "btn";gap:14px;justify-items:center}
  .browse-page #itemModal .spec-row,
  .page-dashboard #itemModal .spec-row{grid-template-columns:105px 1fr;gap:12px 10px}
}
@media (max-width: 600px){
  .browse-page #itemModal .u-modal-card,
  .page-dashboard #itemModal .u-modal-card{width:calc(100% - 16px)}
  .browse-page #itemModal .item-title,
  .page-dashboard #itemModal .item-title{font-size:22px}
  .browse-page #itemModal .item-details,
  .page-dashboard #itemModal .item-details{grid-template-columns:1fr;grid-template-areas:"fig" "specs" "btn";gap:14px;justify-items:center}
  .browse-page #itemModal .item-figure,
  .page-dashboard #itemModal .item-figure{width:100%;max-width:100%;min-height:0;height:auto;padding:0;border-radius:10px;aspect-ratio:4/3;background:transparent;border:0;box-shadow:none}
  .browse-page #itemModal .item-figure img,
  .page-dashboard #itemModal .item-figure img{max-height:100%}
  .browse-page #itemModal .spec-row,
  .page-dashboard #itemModal .spec-row{padding:6px 0}
  .browse-page #itemModal .chip,
  .page-dashboard #itemModal .chip{font-size:16px}
  .browse-page #itemModal .claim-btn,
  .page-dashboard #itemModal .claim-btn{height:48px;border-radius:8px}
}

/* Mobile-friendly modal layout */
@media (max-width: 600px){
  .u-modal-card{width:calc(100% - 16px);padding:14px;border-radius:14px;max-height:92vh}
  .browse-page #itemModal .u-modal-card,
  .page-dashboard #itemModal .u-modal-card{padding:14px 10px 12px}
  .item-title{font-size:20px}
  .item-details{grid-template-columns:1fr;grid-template-areas:"fig" "specs" "btn";gap:14px}
  .item-left{align-items:stretch}
  .item-figure{min-height:220px}
  .item-figure img{max-height:200px}
  .spec-row{grid-template-columns:120px 1fr;gap:12px;padding:10px 2px}
  .spec-value{font-size:16px;word-break:break-word}
  .claim-btn{height:44px}
}

/* Claim view modal */
.cv-card{max-width:650px}
.u-modal-card.cv-card{border-radius:10px}
.cv-head{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:6px 4px 8px}
.cv-title{margin:0;font-size:28px;font-weight:600;color:#0f2744}
.cv-pill{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 14px;border-radius:999px;font-weight:600;font-size:14px}
.cv-pill.pending{background:#fde8c8;color:#ea7f1b}
.cv-pill.rejected{background:#fde2e2;color:#dc2626}
.cv-pill.approved{background:#dcfce7;color:#166534}
.cv-pill.reviewed{background:#eff6ff;color:#2563eb}
.cv-msg{color:#111827;font-size:18px;margin:12px 6px 10px}
.cv-recipient{background:#f5f7fb;border:1px solid #e5e7eb;border-radius:16px;padding:14px;margin:10px 6px}
.cv-rec-title{font-weight:800;color:#111827;margin:0 0 8px}
.cv-rec-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cv-lbl{color:#6b7280;font-weight:800}
.cv-val{color:#111827}
.cv-divider{border:0;border-top:1px solid #e5e7eb;margin:14px 6px 16px}
.cv-details{display:grid;grid-template-columns:1.25fr .75fr;gap:26px;padding:0 6px 4px}
.cv-kv{display:grid;grid-template-columns:180px 1fr;gap:10px 16px;align-items:baseline}
.cv-k{font-weight:600;color:#111827;font-size:16px}
.cv-v{color:#6b7280;font-size:16px}
.cv-v strong{color:#111827;font-weight:900}
.cv-code{color:inherit;font-weight:400}
.cv-media{display:flex;flex-direction:column;gap:18px;align-items:flex-start}
.cv-media-title{font-weight:600;color:#111827;font-size:16px}
.cv-media-img{width:140px;height:140px;border-radius:12px;border:1px solid #e5e7eb;overflow:hidden;background:#fff;box-shadow:0 10px 20px rgba(2,12,27,.12)}
.cv-media-img img{width:100%;height:100%;object-fit:cover;display:block;cursor:pointer}
.cv-media-block{display:flex;flex-direction:column;gap:8px}
.cv-actions{display:flex;gap:10px;justify-content:center;align-items:center;margin:14px 6px 0}
.cv-btn{display:inline-flex;align-items:center;gap:10px;height:46px;padding:0 20px;border-radius:8px;font-weight:800;cursor:pointer;border:2px solid transparent}
.cv-btn.outline{background:#fff;border-color:#3b82f6;color:#1d4ed8}
.cv-btn.primary{background:#2563eb;color:#fff}
#cvShowCode.cv-btn{font-weight:600; justify-content:center}
/* Desktop/Web: fixed button width */
@media (min-width: 601px){
  #cvShowCode.cv-btn{width:800px; max-width:100%}
}
/* Mobile: slightly wider so label fits comfortably */
@media (max-width: 600px){
  #cvShowCode.cv-btn{width:min(360px, 100%); max-width:100%}
}
#cvAppeal.cv-btn{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
  font-weight:600;
  width:380px;
  max-width:100%;
  justify-content:center;
}
#cvAppeal.cv-btn .cv-ico img{filter:brightness(0) invert(1)}
#cvAppeal.cv-btn:hover{background:#1d4ed8;border-color:#1d4ed8}
#codeModal .modal-actions .btn{font-weight:600}
.cv-btn .cv-ico{font-size:18px;line-height:0}
.cv-btn .cv-ico img{width:18px;height:18px;display:block}
.cv-btn.primary .cv-ico img{filter:brightness(0) invert(1)}

/* Claim History: match Admin Claim Details modal look */
.claimhistory-page #cvModal .u-modal-card.cv-card{
  width:min(800px, calc(100% - 36px));
  max-width: 800px;
  max-height: calc(100% - 44px);
  padding: 18px 18px 14px;
  border-radius: 10px;
  overflow-x: hidden;
}
.claimhistory-page #cvModal .cv-head{margin:2px 0 8px}
.claimhistory-page #cvModal .cv-title{
  font-size: 26px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.claimhistory-page #cvModal .cv-msg{
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}
.claimhistory-page #cvModal .cv-divider{
  border: 0;
  border-top: 1px solid #cbd5e1;
  margin: 0;
}
.claimhistory-page #cvModal .cv-details{
  grid-template-columns: 1fr 420px;
  gap: 18px;
  padding: 12px 0 6px;
  align-items: start;
}
.claimhistory-page #cvModal .cv-media{
  display:flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
}
.claimhistory-page #cvModal .cv-media-block{min-width:0; flex: 0 0 140px}
.claimhistory-page #cvModal .cv-kv{grid-template-columns: 180px 1fr; gap: 10px 14px}
.claimhistory-page #cvModal .cv-k{font-size: 15px; font-weight: 600; color:#0f172a; line-height:1.15}
.claimhistory-page #cvModal .cv-v{font-size: 15px; font-weight: 500; color:#6b7280; line-height:1.25}
/* Keep submitted/claimed date on one line in the details list */
.claimhistory-page #cvModal #cvDetDate{white-space:nowrap}
.claimhistory-page #cvModal .cv-media-img{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(2,12,27,.12);
}
.claimhistory-page #cvModal .cv-media-block{max-width: 140px}
.claimhistory-page #cvModal .cv-actions{margin: 14px 0 0; padding: 0}

@media (max-width: 860px){
  .claimhistory-page #cvModal .u-modal-card.cv-card{
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }
  .claimhistory-page #cvModal .cv-details{grid-template-columns: 1fr; gap: 24px}
  .claimhistory-page #cvModal .cv-media{
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .claimhistory-page #cvModal .cv-media-block + .cv-media-block{ margin-left: 0; }
  /* Mobile: prevent long values (date/email) from getting cropped */
  .claimhistory-page #cvModal .cv-kv{grid-template-columns: 132px minmax(0, 1fr); gap: 10px 12px}
  .claimhistory-page #cvModal .cv-v{overflow-wrap:anywhere; word-break:break-word}
}

/* Claim History: make Appeal Decision fit the modal width on desktop */
@media (min-width: 861px){
  .claimhistory-page #cvModal #cvAppeal.cv-btn{width:100%; max-width:100%}
}

/* Claim History: image viewer (no backdrop) */
.cv-img-viewer{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,12,27,.45);z-index:10060}
.cv-img-viewer.open{display:flex}
.cv-img-shell{position:relative;display:inline-flex}
.cv-img-full{max-width:min(92vw, 520px);max-height:76vh;border-radius:10px;background:#fff;box-shadow:0 18px 45px rgba(2,12,27,.24);object-fit:contain;display:block}
.cv-img-close{position:absolute;top:12px;right:12px;z-index:3;border-radius:50%}

/* Claim completed feedback (Claim History modal) */
.cv-feedback{box-shadow:0 10px 24px rgba(2,12,27,.08)}
.cv-feedback-top{display:flex;align-items:center;gap:10px;margin:2px 2px 10px}
.cv-feedback-ico{width:28px;height:28px;border-radius:999px;background:#dbeafe;display:inline-flex;align-items:center;justify-content:center}
.cv-feedback-ico img{width:16px;height:16px;display:block}
.cv-feedback-label{font-weight:600;color:#111827}
.cv-feedback-body{text-align:center}
.cv-feedback-title{font-size:20px;font-weight:900;color:#111827;letter-spacing:.2px;margin:2px 0 4px}
.cv-feedback-sub{font-size:12px;color:#6b7280;margin:0 0 10px}
.cv-stars{display:flex;justify-content:center;gap:10px;margin:22px 0 22px}
.cv-stars.readonly{pointer-events:none}
.cv-star{border:0;background:transparent;cursor:pointer;padding:0 2px}
.cv-star img{width:32px;height:32px;display:block}
.cv-feedback-text{width:100%;min-height:110px;border:1px solid var(--border);border-radius:14px;padding:12px 14px;font-size:14px;color:#111827;background:#fff;resize:vertical;text-align:left}
.cv-feedback-text:focus{outline:2px solid #dbeafe;border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.35)}
.cv-feedback-actions{display:flex;justify-content:center;margin-top:12px}
.cv-feedback-submit{display:block;width:min(360px, 92%);height:44px;border-radius:14px;border:0;background:#2563eb;color:#fff;font-weight:600;font-size:16px;cursor:pointer;box-shadow:none;letter-spacing:.2px}
.cv-feedback-submit:hover{filter:brightness(1.03)}
.cv-feedback-submit:active{transform:translateY(1px)}
.cv-feedback-submit:disabled{opacity:.7;cursor:not-allowed}
.cv-feedback-display{margin-top:8px;padding:6px 10px 2px;font-size:13px;color:#374151;line-height:1.45;max-width:640px;margin-left:auto;margin-right:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.cv-feedback-hint{margin-top:10px;font-size:12px;color:#dc2626}

.cv-feedback.is-view .cv-feedback-title{font-size:24px;margin:8px 0 10px}
.cv-feedback.is-view .cv-stars{margin:10px 0 16px}
.cv-feedback.is-view .cv-feedback-display{margin-top:0;padding:0 10px 2px}

/* Feedback Submitted success modal */
.fb-success-modal{max-width:520px;text-align:center}
.fb-success-icon{display:flex;justify-content:center;margin:10px 0 8px}
.fb-success-icon img{width:92px;height:92px;display:block}
.fb-success-title{margin:8px 0 6px;font-size:28px;font-weight:800;color:#0f2744}
.fb-success-sub{margin:0 auto 6px;max-width:420px;color:#6b7280;font-size:16px;line-height:1.5}
.fb-success-done{min-width:180px;height:44px;border-radius:10px}

@media (max-width: 600px){
  .cv-title{font-size:22px}
  .cv-msg{font-size:16px}
  .cv-rec-grid{grid-template-columns:1fr}
  .cv-details{grid-template-columns:1fr;gap:16px}
  .cv-kv{grid-template-columns:130px 1fr}
  .cv-k,.cv-v{font-size:15px}
  .cv-media{flex-direction:row;gap:14px;justify-content:flex-start;flex-wrap:wrap}
  .cv-media-img{width:120px;height:120px}
  .cv-star img{width:28px;height:28px}
}

/* Request Form modal */
.rf-card{max-width:760px}
.rf-title{margin:4px 6px 10px;font-size:30px;font-weight:800;color:#0f2744;letter-spacing:.2px}
.rf-divider{border:0;border-top:2px solid #e5e7eb;margin:10px 6px 18px}
.rf-form{padding:2px 6px 6px}
.rf-label{display:block;margin:16px 0 8px;font-weight:800;color:#111827;font-size:20px}
.rf-input,.rf-textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:12px 14px;font-size:16px;color:#111827;background:#fff;box-shadow:0 1px 0 rgba(2,12,27,.03) inset}
.rf-input:-webkit-autofill,
.rf-input:-webkit-autofill:hover,
.rf-input:-webkit-autofill:focus,
.rf-textarea:-webkit-autofill,
.rf-textarea:-webkit-autofill:hover,
.rf-textarea:-webkit-autofill:focus{
  -webkit-text-fill-color:#111827;
  caret-color:#111827;
  box-shadow:0 0 0 1000px #fff inset;
  transition:background-color 9999s ease-out 0s;
}
.rf-input:-moz-autofill,
.rf-textarea:-moz-autofill{
  box-shadow:0 0 0 1000px #fff inset;
  -moz-text-fill-color:#111827;
  caret-color:#111827;
}
.rf-input:hover,.rf-textarea:hover{outline:none;border-color:#93c5fd;box-shadow:none}
.rf-input:focus,.rf-textarea:focus{outline:none;border-color:#93c5fd;box-shadow:none}
.rf-input.is-invalid,.rf-textarea.is-invalid{border-color:var(--danger);box-shadow:none}
.rf-textarea{min-height:120px;resize:vertical}
/* Browse: Claim Item Verification modal (no resize handle) */
.browse-page .rf-textarea{resize:none}
.rf-drop{display:block;border:2px dashed #d1d5db;border-radius:10px;padding:22px;text-align:center;cursor:pointer;transition:background .15s ease,border-color .15s ease}
.rf-drop:hover{background:#fafbff}
.rf-drop.drag{background:#eef6ff;border-color:#93c5fd}
.rf-drop.is-invalid{border-color:var(--danger);background:transparent}
.rf-drop input{display:none}
/* Claim Item Verification: keep file input present for browser-native validation bubble */
#claimForm .rf-drop{position:relative}
#claimForm .rf-drop input[type="file"]{
  display:block;
  position:absolute;
  top:14px;
  left:14px;
  width:1px;
  height:1px;
  opacity:0;
}
.rf-drop .rf-cloud{display:block;margin:8px auto 12px;opacity:.8}
.rf-drop-text{color:#6b7280;font-weight:400;font-size:13px;max-width:520px;margin:0 auto}
.rf-drop.has-files .rf-drop-inner{margin-bottom:12px}
.rf-drop.has-files .rf-cloud,
.rf-drop.has-files .rf-drop-text{display:none}
.rf-previews{display:grid;grid-template-columns:repeat(auto-fill, minmax(92px, 1fr));gap:10px;margin:12px 0 0;justify-items:center}
.rf-previews.single{grid-template-columns:minmax(220px, 520px);justify-content:center}
.rf-thumb{position:relative;aspect-ratio:1/1;border-radius:14px;overflow:visible;border:1px solid var(--border);background:transparent;display:flex;align-items:center;justify-content:center;width:100%}
.rf-previews.single .rf-thumb{max-width:360px}
.rf-previews.single .rf-thumb.is-landscape{aspect-ratio:16/9;max-width:520px}
.rf-previews.single .rf-thumb.is-portrait{aspect-ratio:3/4;max-width:340px}
.rf-previews.single .rf-thumb.is-square{aspect-ratio:1/1;max-width:360px}
.rf-thumb img{width:100%;height:100%;object-fit:contain;display:block;border-radius:14px;cursor:pointer}
.rf-thumb{border:0}
.rf-thumb-remove{position:absolute;top:-10px;right:-10px;width:30px;height:30px;border-radius:999px;background:#fff;border:0;font-size:18px;line-height:1;color:#111827;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;box-shadow:0 10px 24px rgba(2,12,27,.18)}
.rf-thumb-remove:hover{background:#f3f4f6}
.rf-check{display:flex;align-items:center;gap:10px;margin:16px 0;color:#111827;font-weight:400}
label.rf-check{color:#9ca3af}
label.rf-check.is-ready{color:#111827}
.rf-check input{width:18px;height:18px}
.rf-check.is-invalid{outline:none}

/* Report-item confirm checkbox (kept black by default) */
label.report-check{display:flex;align-items:center;gap:10px;margin:8px 0;color:#111827;font-weight:400}
label.report-check input{width:18px;height:18px}
label.report-check span{font-size:13px;line-height:1.25}
/* Report-item: disabled confirm state until required fields filled */
#reportLostModal label.report-check,
#reportFoundModal label.report-check{color:#9ca3af}
#reportLostModal label.report-check.is-ready,
#reportFoundModal label.report-check.is-ready{color:#111827}
#reportLostModal label.report-check input:disabled,
#reportFoundModal label.report-check input:disabled{opacity:.6;cursor:not-allowed}
/* Ensure confirm checkbox stays clickable (avoid overlap from upload drop label in some browsers) */
#reportLostModal label.report-check,
#reportFoundModal label.report-check{position:relative;z-index:3}
.rf-drop{position:relative;z-index:1}
.rf-submit{display:block;width:100%;height:48px;border-radius:8px;border:0;background:#2563eb;color:#fff;font-weight:500;font-size:20px;box-shadow:none;cursor:pointer;letter-spacing:.2px}
.rf-submit:hover{background:#1d4ed8}
.rf-submit:active{background:#1e40af}
/* Medium radius + narrower width for Report Lost/Found modals */
#reportLostModal .u-modal-card.rf-card,
#reportFoundModal .u-modal-card.rf-card{
  border-radius:10px;
  width:min(550px, calc(100% - 40px));
  max-width:550px;
  max-height:96vh;
  overscroll-behavior:contain;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:0;
}
#reportLostModal .rf-head,
#reportFoundModal .rf-head{
  flex:0 0 auto;
  background:#fff;
  padding:14px 60px 14px 16px; /* leave room for the X button */
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  position:relative;
}
#reportLostModal .rf-body,
#reportFoundModal .rf-body{
  flex:1 1 auto;
  overflow:auto;
  overscroll-behavior:contain;
}
#reportLostModal .rf-head .u-modal-close,
#reportFoundModal .rf-head .u-modal-close{right:16px;top:50%;transform:translateY(-50%)}

#reportLostModal .rf-title,
#reportFoundModal .rf-title{margin:0;font-weight:600;font-size:24px;color:#0f172a;text-align:left}
#reportLostModal .rf-divider,
#reportFoundModal .rf-divider{display:none}
#reportLostModal .rf-form,
#reportFoundModal .rf-form{padding:14px 16px 16px}

#reportLostModal .rf-label{font-weight:600}
#reportLostModal .report-form-label{font-weight:600}
#reportFoundModal .rf-label{font-weight:600}
#reportFoundModal .report-form-label{font-weight:600}

#reportLostModal .rf-body,
#reportFoundModal .rf-body{scrollbar-width:thin;scrollbar-color:rgba(100,116,139,.55) transparent}
#reportLostModal .rf-body::-webkit-scrollbar,
#reportFoundModal .rf-body::-webkit-scrollbar{width:10px}
#reportLostModal .rf-body::-webkit-scrollbar-track,
#reportFoundModal .rf-body::-webkit-scrollbar-track{background:transparent}
#reportLostModal .rf-body::-webkit-scrollbar-thumb,
#reportFoundModal .rf-body::-webkit-scrollbar-thumb{background:rgba(100,116,139,.45);border-radius:999px;border:3px solid transparent;background-clip:content-box}
#reportLostModal .rf-body::-webkit-scrollbar-thumb:hover,
#reportFoundModal .rf-body::-webkit-scrollbar-thumb:hover{background:rgba(100,116,139,.65);background-clip:content-box}

/* Mobile: Report Lost/Found should size like Browse Item modal */
@media (max-width: 600px){
  #reportLostModal .u-modal-card.rf-card,
  #reportFoundModal .u-modal-card.rf-card{
    width:calc(100% - 16px);
    max-width:none;
    max-height:84vh;
    max-height:84svh;
  }
}

/* Claim modal: hide scrollbar visuals but keep scrolling */
#claimModal.open{
  align-items:center;
  padding-top:12px;
  padding-bottom:12px;
}
#claimModal .u-modal-card.rf-card{
  border-radius:10px;
  -ms-overflow-style:none; /* IE/Edge */
  scrollbar-width:none;    /* Firefox */
  overscroll-behavior:contain;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:0;
}
#claimModal .rf-head{
  flex:0 0 auto;
  background:#fff;
  padding:14px 60px 14px 16px; /* leave room for the X button */
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  position:relative;
}
#claimModal .rf-body{
  flex:1 1 auto;
  overflow:auto;
  overscroll-behavior:contain;
}
#claimModal .rf-head .u-modal-close{right:16px;top:50%;transform:translateY(-50%)}
#claimModal .rf-body{scrollbar-width:thin;scrollbar-color:rgba(100,116,139,.55) transparent}
#claimModal .rf-body::-webkit-scrollbar{width:10px}
#claimModal .rf-body::-webkit-scrollbar-track{background:transparent}
#claimModal .rf-body::-webkit-scrollbar-thumb{background:rgba(100,116,139,.45);border-radius:999px;border:3px solid transparent;background-clip:content-box}
#claimModal .rf-body::-webkit-scrollbar-thumb:hover{background:rgba(100,116,139,.65);background-clip:content-box}
#claimModal .rf-title{font-weight:600}
#claimModal .rf-title{margin:0;font-size:20px;font-weight:600;color:#0f172a;text-align:left}
#claimModal .rf-divider{display:none}
#claimModal .rf-form{padding:10px 16px 16px}
#claimModal .rf-form .rf-label:first-of-type{margin-top:6px}
#claimModal .rf-label{font-weight:600;font-size:16px}
#claimModal .rf-contact-input{margin-bottom:16px}
#claimModal .rf-upload-label{margin-top:0}
#claimModal .rf-input,#claimModal .rf-textarea{font-size:14px}
#claimModal .rf-drop-text{font-size:13px}
#claimModal .rf-check{font-size:13px;line-height:1.35}
#claimModal .rf-submit{font-size:15px;font-weight:600}

/* Claim modal: reduce width on desktop only */
@media (min-width: 768px){
  #claimModal .u-modal-card.rf-card{
    width:min(480px, calc(100% - 40px));
    max-width:480px;
  }
}
#claimModal .u-modal-card.rf-card::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;            /* Chrome/Safari */
}
/* Found Item modal: cyan submit button (lost modal keeps blue gradient) */
#reportFoundModal .rf-submit{
  background:#19b6cf;
  box-shadow:none;
  font-size:16px;
  font-weight:600;
}
#reportFoundModal .rf-submit:hover{background:#0891b2}
#reportFoundModal .rf-submit:active{background:#0e7490}

#reportLostModal .rf-submit{font-size:16px;font-weight:600}

/* Report item modals: reuse admin-like form layout */
.report-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 26px;width:100%}
.report-form-grid.single{grid-template-columns:1fr}
.report-form-group{display:flex;flex-direction:column;gap:10px}
.rf-specify-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.rf-specify-back{border:0;background:transparent;color:#2563eb;font-size:12px;font-weight:600;cursor:pointer;padding:0;text-decoration:underline}
.rf-specify-back:focus-visible{outline:2px solid rgba(37,99,235,.35);outline-offset:2px;border-radius:6px}
.report-form-label{font-size:14px;color:#374151;font-weight:500}
.report-form-input{height:42px;border:1px solid var(--border);border-radius:10px;padding:8px 12px;font-size:14px;color:#111827;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}
.report-form-input:-webkit-autofill,
.report-form-input:-webkit-autofill:hover,
.report-form-input:-webkit-autofill:focus{
  -webkit-text-fill-color:#111827;
  caret-color:#111827;
  box-shadow:0 0 0 1000px #fff inset;
  transition:background-color 9999s ease-out 0s;
}
.report-form-input:-moz-autofill{
  box-shadow:0 0 0 1000px #fff inset;
  -moz-text-fill-color:#111827;
  caret-color:#111827;
}
.report-form-group textarea.report-form-input{height:auto;resize:none}
.report-form-input:hover{border-color:#93c5fd}
.report-form-input:focus{outline:2px solid #dbeafe;border-color:#bfdbfe;box-shadow:0 0 0 3px rgba(147,197,253,.25)}
select.report-form-input{height:44px;padding:0 36px 0 14px;border:2px solid #bfdbfe;border-radius:10px;font-weight:800;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:14px;box-shadow:0 0 0 2px rgba(59,130,246,.12),var(--shadow)}
select.report-form-input:hover{border-color:#93c5fd}
select.report-form-input:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 3px rgba(147,197,253,.25)}
/* Match admin modal dropdown look for report modals */
#reportLostModal select.report-form-input,
#reportFoundModal select.report-form-input{
  border-radius:10px;
  border:1px solid var(--border);
  box-shadow:none;
  font-weight:400;
}
#reportLostModal select.report-form-input:hover,
#reportFoundModal select.report-form-input:hover{
  border-color:#60a5fa;
  box-shadow:none;
}
#reportLostModal select.report-form-input:focus,
#reportFoundModal select.report-form-input:focus{
  outline:none;
  border-color:var(--border);
  box-shadow:none;
}
/* Report modals: remove glowing focus/hover rings on inputs/textarea */
#reportLostModal .report-form-input:hover,
#reportFoundModal .report-form-input:hover{
  border-color:#93c5fd;
  box-shadow:none;
}
#reportLostModal .report-form-input:focus,
#reportFoundModal .report-form-input:focus{
  outline:none;
  border-color:#93c5fd;
  box-shadow:none;
}
/* \"My Reported Items\" type filter on Report Item page */
#myReportsType{
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:none;
}
#myReportsType:hover{
  border-color:#93c5fd;
  box-shadow:none;
}
#myReportsType:focus{
  outline:none;
  border-color:#60a5fa;
  box-shadow:none;
}
.my-reports-table{width:100%;border-collapse:collapse;font-size:13px;}
.page-reportitem .my-reports-table thead{
  background:#3b82f6 !important;
}
.page-reportitem .my-reports-table thead th{
  color:#fff !important;
  font-weight:600 !important;
  font-size:14px !important;
  border-bottom-color:rgba(255,255,255,.22) !important;
}
.page-reportitem .my-reports-table thead th + th{
  border-left:1px solid rgba(255,255,255,.18);
}
.my-report-details{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:flex-start;}
@media (max-width: 768px){
  .my-report-details{grid-template-columns:1fr;gap:12px;}
  .my-reports-table th,
  .my-reports-table td{padding:6px 8px;font-size:12px;}
  .my-reports-table .my-report-meta-col{display:none;}
}

/* Report item upload drop zone */
.rf-drop-inner{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:28px 16px;color:#4b5563;text-align:center}
.rf-preview-wrap{position:relative;margin-top:10px;display:inline-block}
.rf-preview{display:none;max-height:140px;border-radius:12px;border:1px solid var(--border);box-shadow:0 2px 6px rgba(2,12,27,.06);background:#f9fafb;object-fit:cover}
.rf-remove{display:none;position:absolute;top:4px;right:4px;width:24px;height:24px;border-radius:50%;background:#ffffff;border:1px solid #d1d5db;color:#000;font-size:14px;font-weight:500;cursor:pointer;align-items:center;justify-content:center;line-height:1;padding:0}

/* Custom datepicker (Report Item) */
.date-field{position:relative}
.date-field .report-form-input{padding-right:40px;cursor:pointer}
.u-modal .date-field .report-form-input{position:relative;z-index:1;
  background-image:url("../images/calendar.png");
  background-repeat:no-repeat;background-position:right 12px center;background-size:22px 22px}
.datepicker{position:absolute;top:calc(100% + 6px);left:0;width:300px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);z-index:100}
.datepicker.hidden{display:none}
.dp-header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border);color:#111827}
.dp-title{text-align:center;flex:1;font-weight:800;font-size:18px;color:#0f172a}
.dp-nav{display:flex;gap:6px}
.dp-btn{width:34px;height:34px;border:0;background:#e6f0ff;border-radius:50%;cursor:pointer;font-weight:700;color:#1d4ed8;display:inline-flex;align-items:center;justify-content:center}
.dp-btn:hover{background:#dbeafe}
#reportLostModal .dp-title,
#reportFoundModal .dp-title{font-weight:600}
.dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;padding:10px}
.dp-grid.m3{grid-template-columns:repeat(3,1fr)}
.dp-grid.m4{grid-template-columns:repeat(4,1fr)}
.dp-dow{font-size:11px;color:#6b7280;text-align:center;padding:6px 0}
.dp-cell{text-align:center;padding:6px 0;border-radius:50%;cursor:pointer;font-size:13px;color:#111827}
.dp-days .dp-cell{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.dp-cell:hover{background:#eef2ff}
.dp-cell.muted{color:#cbd5e1;cursor:default}
/* Today: solid blue circle (same as selected) */
.dp-cell.today,
.dp-cell.active{
  background:#2563eb;
  color:#fff;
  border:0;
}
.dp-link{background:transparent;border:0;cursor:pointer;font-weight:800;color:#1d4ed8;padding:2px 6px;border-radius:6px}
.dp-link:hover{background:#eef2ff}
.dp-caret{margin-left:6px;font-size:12px;color:#9ca3af}


/* Logout modal styles */
.logout-modal .logout-title{margin:0 0 8px; text-align:center; font-size:26px; font-weight:600; color:#0f2744}
.logout-modal .logout-sub{margin:0 0 18px; text-align:center; color:#6b7280; font-size:18px}
.logout-modal .modal-actions{display:flex; justify-content:center; gap:14px; margin-top:12px}
.u-modal-card.logout-modal{max-width:460px; width:min(460px, calc(100% - 40px)); border-radius:10px; padding:24px}
#codeModal .u-modal-card.logout-modal{border-radius:10px}
.logout-modal .u-modal-close{right:10px;top:10px}
#codeModal .logout-title{font-weight:600}
#logoutModal .modal-actions .btn{font-weight:600}
#cancelModal .modal-actions .btn{font-weight:600;font-size:14px}
#logoutModal .modal-actions .btn{
  transition: transform .12s ease;
  will-change: transform;
  border-radius: 999px;
}
#logoutModal .modal-actions .btn:hover{ transform: translateY(-1px); }
#logoutModal .modal-actions .btn:active{ transform: translateY(0); }
/* If any logout modal uses .primary, force it red like Logout */
#logoutModal .btn.primary{
  background:#ef4444;
  border-color:#ef4444;
  color:#fff;
}
#logoutModal .btn.primary:hover{
  background:#dc2626;
  border-color:#dc2626;
}
.btn{display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 22px; border-radius:999px; border:2px solid transparent; cursor:pointer; font-weight:800; font-size:16px; text-decoration:none}
.btn{min-width:120px}
.btn:focus{outline:none}
.btn.primary{background:#2563eb; color:#fff}
.btn.primary:hover{background:#1d4ed8}
.btn.info{background:#06b6d4; color:#fff; border-color:#06b6d4}
.btn.info:hover{background:#0891b2; border-color:#0891b2}
.btn.outline{background:#fff; color:#0f4c81; border-color:#c7d8ea}
.btn.outline:hover{background:#f8fafc; border-color:#93c5fd}
.btn.sm{min-width:72px; height:32px; padding:0 10px; font-size:13px; border-radius:10px;}
.btn.u-report-btn{border-radius:8px !important;font-weight:600 !important}
.btn.outline.my-report-view{
  font-weight:600;
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
  border-radius:999px;
  transition: background-color .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease, filter .12s ease;
  will-change: transform;
}
.btn.outline.my-report-view:hover{
  background:#1d4ed8;
  border-color:#1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(147,197,253,.25);
  filter: brightness(1.03);
}
.btn.outline.my-report-view:active{
  transform: translateY(0);
  box-shadow: none;
  filter: brightness(.98);
}
/* Report item page: medium-radius card buttons */
#choiceReportLost,
#choiceReportFound{
  border-radius:8px;
  font-weight:700;
  padding:12px 28px;
  font-size:16px;
}
/* Profile: Edit button orange style */
.p-edit-btn{background:#f97316 !important; color:#fff !important; border-color:#f97316 !important; border-radius:6px !important; height:36px !important; padding:0 14px !important; min-width:96px !important; font-size:14px !important; gap:8px; font-weight:600 !important}
.p-edit-btn .p-edit-icon{width:16px;height:16px;display:block;flex:0 0 auto;filter:brightness(0) invert(1);opacity:.95;pointer-events:none}
.p-cancel-btn, .p-save-btn{ border-radius:999px !important; height:36px !important; padding:0 14px !important; min-width:96px !important; font-size:14px !important; font-weight:600 !important }
.p-save-btn{ background:#2563eb !important; border-color:#2563eb !important; color:#fff !important }
.p-save-btn:hover{ background:#1e40af !important; border-color:#1e40af !important }
/* Security pane buttons: medium radius + medium text */
.p-chgpass-btn{ border-radius:6px !important; height:36px !important; padding:0 12px !important; min-width:96px; font-weight:600 !important }
.p-save-pass-btn{ border-radius:999px !important; height:36px !important; padding:0 12px !important; min-width:96px; font-weight:600 !important }
.p-chgpass-btn{gap:8px}
.p-chgpass-btn img.p-key-icon{width:16px;height:16px;display:block;flex:0 0 auto;filter:brightness(0) invert(1);opacity:.95;pointer-events:none}
.p-chgpass-btn .p-key-icon--blue,
.p-chgpass-btn .p-key-icon--white{
  width:16px;
  height:16px;
  display:block;
  flex:0 0 auto;
  background-color:#fff;
  -webkit-mask: url('../images/key.png') no-repeat center / contain;
  mask: url('../images/key.png') no-repeat center / contain;
  opacity:.95;
  pointer-events:none;
}
.p-chgpass-btn.primary .p-key-icon{display:none}
.p-cancel-pass-btn{ border-radius:999px !important; height:36px !important; padding:0 12px !important; min-width:96px; font-weight:600 !important }
.p-edit-btn:hover{background:#ea580c !important; border-color:#ea580c !important}

/* Make Change Password button orange in default state; Save stays blue via .primary */
.p-chgpass-btn:not(.primary){
  background:#f97316 !important;
  color:#fff !important;
  border-color:#f97316 !important;
}
.p-chgpass-btn:not(.primary):hover{
  background:#ea580c !important;
  border-color:#ea580c !important;
}
/* When Change Password becomes Save (primary), make it bright blue */
.p-chgpass-btn.primary{
  background:#2563eb !important;
  border-color:#2563eb !important;
  color:#fff !important;
  border-radius:999px !important;
}
.p-chgpass-btn.primary:hover{
  background:#1e40af !important;
  border-color:#1e40af !important;
}

/* Mobile tweaks for logout modal */
@media (max-width: 600px){
  .logout-modal .logout-title{font-size:20px}
  .logout-modal .logout-sub{font-size:15px}
  .logout-modal .modal-actions{flex-direction:column; align-items:stretch; gap:10px}
  .logout-modal .modal-actions .btn{width:100%; height:46px}
  .logout-modal .modal-actions form{width:100%}
}

/* Keep buttons inline on very small screens to match design */
@media (max-width: 600px){
  .logout-modal .modal-actions{flex-direction:row; align-items:center}
  .logout-modal .modal-actions .btn{width:auto; height:46px}
  .logout-modal .modal-actions form{width:auto}
}

/* Stronger blur/dim only for logout modal backdrop */
#logoutModal .u-modal-backdrop{background:rgba(15,23,42,.55);backdrop-filter:blur(6px)}

/* Align filters on small screens back to start */
@media (max-width: 860px){
  .filters{justify-content:flex-start}
}

/* Lightweight toast (user pages) */
.ll-toast-stack{position:fixed;right:20px;bottom:20px;display:flex;flex-direction:column;gap:10px;z-index:10000;pointer-events:none}
.ll-toast-stack-top{top:20px;bottom:auto}
.ll-toast{
  width:min(400px, 90vw);
  background:#ffffff;
  color:#111;
  --toast-accent:#3498db;
  padding:15px 20px;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight:600;
  pointer-events:auto;
  position:relative;
  overflow:hidden;
  border-left:6px solid var(--toast-accent);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:flex-start;
  gap:12px;
  animation:llSlideInUp .25s ease forwards;
}
.ll-toast{--toast-duration:2000ms}
.ll-toast::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  height:4px;
  width:100%;
  background:var(--toast-accent);
  opacity:.35;
  transform-origin:left;
  animation:llToastTimer var(--toast-duration, 2000ms) linear forwards;
}
.ll-toast:hover::after{animation-play-state:paused}
@keyframes llToastTimer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.ll-toast{
  --toast-icon-success: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M22%2011.08V12a10%2010%200%201%201-5.93-9.14%27/%3E%3Cpolyline%20points%3D%2722%204%2012%2014.01%209%2011.01%27/%3E%3C/svg%3E");
  --toast-icon-error: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2710%27/%3E%3Cline%20x1%3D%2715%27%20y1%3D%279%27%20x2%3D%279%27%20y2%3D%2715%27/%3E%3Cline%20x1%3D%279%27%20y1%3D%279%27%20x2%3D%2715%27%20y2%3D%2715%27/%3E%3C/svg%3E");
  --toast-icon-warning: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M10.29%203.86L1.82%2018a2%202%200%200%200%201.71%203h16.94a2%202%200%200%200%201.71-3L13.71%203.86a2%202%200%200%200-3.42%200z%27/%3E%3Cline%20x1%3D%2712%27%20y1%3D%279%27%20x2%3D%2712%27%20y2%3D%2713%27/%3E%3Cline%20x1%3D%2712%27%20y1%3D%2717%27%20x2%3D%2712.01%27%20y2%3D%2717%27/%3E%3C/svg%3E");
  --toast-icon-info: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%2710%27/%3E%3Cline%20x1%3D%2712%27%20y1%3D%2716%27%20x2%3D%2712%27%20y2%3D%2712%27/%3E%3Cline%20x1%3D%2712%27%20y1%3D%278%27%20x2%3D%2712.01%27%20y2%3D%278%27/%3E%3C/svg%3E");
  --toast-icon-mask: var(--toast-icon-info);
}
.ll-toast::before{
  content:'';
  width:24px;
  height:24px;
  margin-top:1px;
  flex:0 0 auto;
  background:var(--toast-accent);
  -webkit-mask-image: var(--toast-icon-mask);
  mask-image: var(--toast-icon-mask);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-size:contain;
  mask-size:contain;
  -webkit-mask-position:center;
  mask-position:center;
}
.ll-toast.success{--toast-accent:#10b981}
.ll-toast.success{--toast-icon-mask:var(--toast-icon-success)}
.ll-toast.info{--toast-accent:#3b82f6}
.ll-toast.info{--toast-icon-mask:var(--toast-icon-info)}
.ll-toast.warning{--toast-accent:#f59e0b}
.ll-toast.warning{--toast-icon-mask:var(--toast-icon-warning)}
.ll-toast.danger{--toast-accent:#ef4444}
.ll-toast.danger{--toast-icon-mask:var(--toast-icon-error)}
.ll-toast.danger::before{content:'!'}
@keyframes llSlideInUp{from{transform:translateY(10px);opacity:0}to{transform:translateY(0);opacity:1}}

@media (max-width: 480px){
  .ll-toast-stack{left:50%;right:auto;transform:translateX(-50%);bottom:14px}
  .ll-toast-stack-top{top:10px;bottom:auto}
  .ll-toast{width:92vw;padding:12px 14px}
}

/* Login-style toast (used for 2FA login success) */
.toast-stack{position:fixed;right:20px;top:20px;z-index:10000;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.toast-card{
  width:min(400px, 90vw);
  background:#ffffff;
  border-radius:8px;
  box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);
  display:flex;
  align-items:flex-start;
  padding:15px 20px;
  position:relative;
  overflow:hidden;
  pointer-events:auto;
  animation:llLoginSlideInRight .4s ease forwards;
  border-left:6px solid #3498db;
  backdrop-filter: blur(10px);
  opacity:1;
  transform:none;
}
.toast-card.success{border-left-color:#10b981;color:#10b981}
.toast-card.error{border-left-color:#ef4444;color:#ef4444}
.toast-card .tc-left{display:none}
.toast-card .tc-ico{display:flex;align-items:center;justify-content:center;margin-right:15px;font-size:24px;margin-top:2px;flex-shrink:0;width:28px;height:28px}
.toast-card .tc-ico svg{width:24px;height:24px;display:block}
.toast-card.success .tc-ico{color:#10b981}
.toast-card.error .tc-ico{color:#ef4444}
.toast-card .tc-body{flex:1;padding:0}
.toast-card .tc-title{font-weight:600;margin:0 0 4px;color:#111;font-size:16px}
.toast-card .tc-sub{font-size:14px;color:#666;margin:0;line-height:1.4}
.toast-card .tc-close{background:transparent;border:0;color:#aaa;font-size:20px;cursor:pointer;line-height:1;padding:0;margin-left:10px;margin-top:-2px;min-width:auto;width:auto;flex:0 0 auto;transition:color .3s}
.toast-card .tc-close:hover{color:#111827}
.toast-card::after{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  height:4px;
  width:100%;
  background:currentColor;
  opacity:.25;
}
.toast-card::before{
  content:'';
  position:absolute;
  left:0;
  bottom:0;
  height:4px;
  width:100%;
  background:currentColor;
  animation:llLoginToastTimer var(--toast-duration, 2000ms) linear forwards;
}
.toast-card:hover::before{animation-play-state:paused}
@keyframes llLoginSlideInRight{from{transform:translateX(110%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes llLoginSlideInTop{from{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes llLoginToastTimer{from{width:100%}to{width:0%}}
@media (max-width: 480px){
  .toast-stack{left:50%;right:auto;top:10px;transform:translateX(-50%);align-items:center}
  .toast-card{animation:llLoginSlideInTop .4s ease forwards;width:min(360px, 92vw);margin:0 auto;padding:12px 14px}
}

/* Make filters fit neatly above items on small screens */
@media (max-width: 600px){
  .filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:4px 0 6px;margin-top:6px;margin-bottom:12px}
  .filter{width:100%}
  .filter-select{min-width:0;width:100%}
  .filter-menu{left:0;right:0}
}

@media (max-width: 600px){
  .rf-title{font-size:22px}
  .rf-label{font-size:18px}
  .rf-input,.rf-textarea{font-size:15px}
}

/* Profile: make Change Password labels regular */
.p-label{ font-weight: 400 !important; }
/* In Profile > Edit, make field labels bold */
.p-pane[data-pane="edit"] .p-label{ font-weight: 600 !important; }

/* Profile settings */
.p-heading{margin:0 0 12px; font-size:18px; color:#0f2744}
.p-card{background:#fff;border-radius:10px;box-shadow:var(--shadow);border:1px solid var(--border)}
.p-logout-plain{display:flex;justify-content:flex-end;margin-top:12px}
.p-logout-plain #profileLogoutBtn.btn{border-radius:8px}
.p-tabs{display:flex;gap:26px;padding:12px 22px;border-bottom:1px solid var(--border)}
.p-tab{background:transparent;border:0;padding:10px 4px;font-weight:700;color:#6b7280;cursor:pointer;border-bottom:3px solid transparent;font-family:"Montserrat","Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:16px}
.p-tab.active{color:#1d4ed8;border-bottom-color:#3b82f6}
.p-tab:hover{color:#2563eb; background: rgba(59,130,246,.06)}
.p-tab:not(.active):hover{border-bottom-color:#93c5fd}
.p-pane{padding:16px 22px 20px}
.p-pane[data-pane="edit"] .p-bottom-actions{display:none;padding:12px 0 0;justify-content:flex-end}
.p-pane[data-pane="edit"][data-editing="1"] .p-bottom-actions{display:flex}
.p-profile-row{display:flex;gap:16px;align-items:flex-start;flex-direction:row}
.p-avatar{position:relative;width:120px;height:120px;border-radius:50%;overflow:visible;flex:0 0 auto;border:0;box-shadow:0 0 0 4px rgba(147,197,253,.45);transition: box-shadow .15s ease, transform .12s ease}
.p-avatar:hover{box-shadow:0 0 0 4px rgba(147,197,253,.45)}
.p-avatar{margin-bottom:6px}
.p-avatar-img{width:100%;height:100%;border-radius:50%;overflow:hidden}
.p-avatar-img img{width:100%;height:100%;object-fit:cover;display:block}
.p-avatar-cam{
  position:absolute;
  right:-6px;
  bottom:-6px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:2px solid #fff;
  background:#000;
  padding:0;
  display:none;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(2, 12, 27, 0.22);
  overflow:hidden;
  z-index:2;
}
.p-pane[data-pane="edit"][data-editing="1"] .p-avatar-cam{display:inline-flex}
.p-avatar-cam img{
  width:22px;
  height:22px;
  display:block;
  filter:none;
}
.p-avatar-cam:hover{transform:translateY(-1px)}
.p-avatar-cam:active{transform:translateY(0);filter:brightness(.98)}
.p-dot{display:none}

/* Profile: Change photo modal */
.u-modal-card.p-photo-modal{padding:20px 18px 18px;border-radius:10px}
.p-photo-modal .u-modal-close{top:10px;right:10px}
.p-photo-title{margin:0 0 14px;text-align:center;font-size:18px;font-weight:600;color:#0f2744}
.p-photo-actions{display:flex;flex-direction:column;gap:12px}
.p-photo-opt{
  width:100%;
  border:1px solid rgba(148,163,184,.65);
  background:#f3f4f6;
  border-radius:10px;
  padding:12px 12px;
  display:flex;
  align-items:center;
  gap:12px;
  cursor:pointer;
  text-align:left;
}
.p-photo-opt:hover{transform:translateY(-1px)}
.p-photo-opt:active{transform:translateY(0)}
.p-photo-ic{
  width:34px;
  height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.p-photo-ic img{width:22px;height:22px;display:block}
.p-photo-txt{display:flex;flex-direction:column;min-width:0}
.p-photo-h{font-weight:600;color:#111827;line-height:1.2}
.p-photo-s{font-size:12px;color:#6b7280;margin-top:2px;line-height:1.2}
.p-photo-opt.danger{background:#fecaca;border-color:#fca5a5}
.p-photo-opt.danger .p-photo-h{color:#ef4444}
.p-photo-opt.danger .p-photo-s{color:rgba(239,68,68,.75)}
.p-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;flex:1;width:100%}
/* Desktop only: align Full Name and Email to the left column to match other fields */
@media (min-width: 861px){
  :root{--profile-cols-gap:55px}
  /* Desktop: align edit actions with the top of the profile row */
  .p-pane[data-pane="edit"]{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:start}
  .p-pane[data-pane="edit"] .p-profile-row{grid-column:1;grid-row:1}
  .p-pane[data-pane="edit"] > .p-actions.p-top-actions{grid-column:2;grid-row:1;justify-content:flex-end;padding:0;align-self:start}
  .p-pane[data-pane="edit"] > .p-actions.p-bottom-actions{grid-column:1;grid-row:2;padding:12px 0 0;justify-content:flex-end}
  .p-profile-row{gap:var(--profile-cols-gap)}
  /* Desktop: nudge avatar + form a bit right */
  .p-pane[data-pane="edit"] .p-profile-row{padding-left:12px}
  /* Desktop: fixed field width (readable, keeps actions fitting) */
  .p-pane[data-pane="edit"] .p-form-grid{grid-auto-flow:dense;flex:0 0 auto;width:auto;grid-template-columns:320px 320px;gap:12px var(--profile-cols-gap);justify-content:start}
  .p-pane[data-pane="edit"] .p-input.p-input-short{width:100%;max-width:none;align-self:stretch}
  .p-pane[data-pane="edit"] .p-form-grid .p-label:nth-child(2), /* Full Name */
  .p-pane[data-pane="edit"] .p-form-grid .p-label:nth-child(4)  /* Email */
  { grid-column: 1; }

  /* Desktop (Profile): Security > Change Password fields in one row */
  body.profile-page .p-pane[data-pane="security"] .p-form-grid.single{
    width:100%;
    max-width:none;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:12px 18px;
    align-items:start;
  }
}
.p-form-grid.single{grid-template-columns:1fr}
.p-label{display:flex;flex-direction:column;gap:8px;font-weight:800;color:#111827}
.p-input{height:42px;border:1px solid var(--border);border-radius:12px;padding:8px 12px;font-size:14px;color:#111827;background:#fff;transition:border-color .15s ease, box-shadow .15s ease}
.p-input.p-input-short{width:220px;align-self:flex-start}
.p-input:hover{border-color:#93c5fd}
.p-input:focus{outline:none;border-color:#93c5fd;box-shadow:none}
.p-input-wrap{position:relative;width:100%}
.p-input-wrap .p-toggle-pass{position:absolute;right:10px;top:50%;transform:translateY(-50%);background:transparent;border:0;color:#1f3550;font-weight:800;cursor:pointer;z-index:2}
.p-input-wrap input.p-input{width:100%;padding-right:12px}
/* Security: place the visibility toggle inside the input field */
.p-pane[data-pane="security"][data-changing="1"] .p-input-wrap input.p-input{padding-right:48px}
.p-pane[data-pane="security"] .p-input-wrap .p-toggle-pass{right:12px}
.p-toggle-pass{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:8px}
.p-toggle-pass:hover{background:rgba(2,12,27,.06)}
.p-toggle-pass img{width:18px;height:18px;display:block}
/* Security pane: hide toggles until Change Password is active */
.p-pane[data-pane="security"] .p-toggle-pass{display:none}
.p-pane[data-pane="security"][data-changing="1"] .p-toggle-pass{display:inline-flex}
.p-pane[data-pane="security"] .p-new-pass{display:none}
.p-pane[data-pane="security"][data-changing="1"] .p-new-pass{display:flex}
.p-pane[data-pane="security"] .p-confirm-pass{display:none}
.p-pane[data-pane="security"][data-changing="1"] .p-confirm-pass{display:flex}
/* Smaller fields in Edit Profile pane only */

.p-actions{display:flex;justify-content:flex-end;padding:8px 22px 20px}
.p-actions .btn + .btn{margin-left:10px}
.p-pane[data-pane="security"] .p-actions{padding:0;justify-content:flex-end;margin-top:20px}
.p-card.p-highlight{box-shadow:0 0 0 3px rgba(59,130,246,.35), var(--shadow);}

/* Inline toast for save status (green pill, white text) */
.p-status{display:inline-flex;align-items:center;gap:10px;border-radius:14px;padding:8px 14px;font-size:13px;font-weight:800;box-shadow:var(--shadow);opacity:0;transform:translateY(-4px);transition:opacity .25s ease, transform .25s ease; visibility:hidden; pointer-events:none}
.p-status.show{opacity:1;transform:translateY(0); visibility:visible; pointer-events:auto}
.p-status.ok{background:var(--success);color:#fff}
.p-status.error{background:var(--danger);color:#fff}
.p-status.info{background:#0f4c81;color:#fff}
.profile-page .p-status{display:none !important}

/* Profile: prevent avatar status pill from shifting the form layout */
.p-profile-row{position:relative}
#avatarSaveStatus{position:absolute;left:0;top:calc(120px + 12px);margin-top:0 !important;z-index:5;max-width:min(360px, 92vw)}
@media (max-width: 860px){
  #avatarSaveStatus{left:50%;transform:translate(-50%,-4px)}
  #avatarSaveStatus.show{transform:translate(-50%,0)}
}

/* Switch */
.switch{position:relative;display:inline-block;--sw-w:44px;--sw-h:24px;--sw-p:3px;width:var(--sw-w);height:var(--sw-h)}
.switch input{display:none}
.switch .slider{position:absolute;inset:0;cursor:pointer;background:#d1d5db;transition:.2s;border-radius:999px;border:1px solid #e5e7eb}
.switch .slider:before{position:absolute;content:"";width:calc(var(--sw-h) - (var(--sw-p) * 2) - 2px);height:calc(var(--sw-h) - (var(--sw-p) * 2) - 2px);left:var(--sw-p);top:50%;transform:translateY(-50%);background:#fff;transition:left .2s ease, transform .2s ease;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.15);border:1px solid #e5e7eb}
.switch input:checked + .slider{background:#0f4c81}
.switch input:checked + .slider:before{left:calc(100% - var(--sw-p) - (var(--sw-h) - (var(--sw-p) * 2) - 2px))}

.p-sec-block{margin:10px 0 18px}
.p-sec-title{font-weight:600;color:#111827;margin-bottom:8px}
.p-sec-sub{color:#6b7280;font-size:14px}
.p-sec-toggle{display:flex;align-items:center;gap:12px}
.p-sec-subtitle{font-weight:600;color:#111827;margin:16px 0 8px}

.logout-bar{display:flex;justify-content:center;padding:28px 0}
.btn.danger{background:#ef4444;color:#fff}
.btn.danger:hover{background:#dc2626}
/* Report Item: make main "Report Lost" CTA use bright blue */
#choiceReportLost{
  background:#3b82f6;
  color:#fff;
}
#choiceReportLost:hover{
  background:#2563eb;
}

/* Utility */
.hidden{display:none !important}

@media (max-width: 860px){
  .p-form-grid{grid-template-columns:1fr}
  /* Mobile: center the Profile tab titles */
  .p-tabs{justify-content:center}

  /* Mobile (Profile > Edit Profile): keep Logout button at the bottom */
  body.profile-page .u-content{display:flex;flex-direction:column;flex:1;min-height:calc(100vh - 64px);min-height:calc(100dvh - 64px)}
  body.profile-page .p-logout-actions{margin-top:auto;padding-top:16px;padding-bottom:calc(72px + env(safe-area-inset-bottom))}

  /* Mobile: make Profile Logout button match card width */
  .p-logout-plain{justify-content:stretch}
  .p-logout-plain #profileLogoutBtn.btn{width:100%;min-width:0;height:52px;border-radius:8px}

  /* Mobile: put Edit button top-right beside the avatar, and move Logout to the old Edit area */
  .p-pane[data-pane="edit"]{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);column-gap:12px;row-gap:8px;align-items:start}
  .p-pane[data-pane="edit"] .p-profile-row{display:contents}
  .p-pane[data-pane="edit"] .p-avatar{grid-column:2;grid-row:1;margin-bottom:0;justify-self:center}
  .p-pane[data-pane="edit"] > .p-actions:not(.p-logout-actions):not(.p-bottom-actions){grid-column:3;grid-row:1;justify-self:end;justify-content:flex-end;padding:0;align-self:start}
  /* Keep avatar click status from shifting layout on mobile */
  .p-pane[data-pane="edit"] #avatarSaveStatus{position:absolute;left:50%;top:calc(120px + 8px);transform:translate(-50%,-4px);max-width:calc(100% - 32px);margin:0 !important;z-index:5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
  .p-pane[data-pane="edit"] #avatarSaveStatus.show{transform:translate(-50%,0)}
  .p-pane[data-pane="edit"] .p-form-grid{grid-column:1 / -1;grid-row:2}
  .p-pane[data-pane="edit"] #autoSaveStatus{grid-column:1 / -1;grid-row:3}
  .p-pane[data-pane="edit"] > .p-actions.p-bottom-actions{grid-column:1 / -1;grid-row:4;justify-content:flex-end;padding:10px 0 0}
  /* Mobile only: force Logout button to red */
.p-pane[data-pane="edit"] #profileLogoutBtn.btn{font-weight:600}
.p-pane[data-pane="edit"] #profileLogoutBtn.btn.danger{background:#ef4444;color:#fff}
.p-pane[data-pane="edit"] #profileLogoutBtn.btn.danger:hover{background:#dc2626}
  #logoutModal .btn.danger{background:#ef4444;color:#fff}
  #logoutModal .btn.danger:hover{background:#dc2626}

  /* Mobile: add spacing between Change Password fields and button row */
  .p-pane[data-pane="security"] .p-form-grid.single{margin-bottom:18px}
  /* Mobile: move Change Password buttons down a bit */
  .p-pane[data-pane="security"] .p-actions{margin-top:36px}
  .p-pane[data-pane="security"] .p-chgpass-btn:not(.primary){border-radius:6px !important}

  /* Mobile: smaller Edit button */
  .p-pane[data-pane="edit"] .p-edit-btn{min-width:76px !important;padding:0 10px !important;border-radius:6px !important}
  .p-pane[data-pane="edit"] .p-cancel-btn,
  .p-pane[data-pane="edit"] .p-save-btn{min-width:76px !important;padding:0 10px !important}
}

@media (max-width: 600px){ .p-input.p-input-short{ width:100%; align-self:stretch } }

/* Feedbacks page */
.u-feedbacks{padding:0}
.u-feedbacks .fb-head{margin:0 0 12px}
.u-feedbacks .fb-title{margin:0 0 4px;font-size:22px;font-weight:600;color:#0f172a;letter-spacing:-.01em}
.u-feedbacks .fb-sub{margin:0;color:#6b7280;font-size:13px;line-height:1.45;max-width:820px}
.u-feedbacks .fb-summary{display:grid;grid-template-columns:320px 1fr;gap:26px;align-items:center;margin:10px 0 10px}
.u-feedbacks .fb-summary-left{display:flex;flex-direction:column;align-items:flex-start}
.u-feedbacks .fb-avg{font-size:76px;font-weight:600;color:#0f172a;line-height:1;letter-spacing:-.03em}
.u-feedbacks .fb-avg-stars{display:flex;gap:6px;margin:10px 0 2px}
.u-feedbacks .fb-avg-sub{font-size:12px;color:#6b7280}
.u-feedbacks .fb-star{font-size:22px;line-height:1;display:inline-block;position:relative;width:1em}
.u-feedbacks .fb-star.on{color:#fbbf24}
.u-feedbacks .fb-star.off{color:#d1d5db}
.u-feedbacks .fb-star.half{color:#d1d5db}
.u-feedbacks .fb-star.half::before{content:"\2605";position:absolute;left:0;top:0;width:50%;height:100%;overflow:hidden;color:#fbbf24}
.u-feedbacks .fb-breakdown{min-width:0;display:flex;flex-direction:column;gap:8px}
.u-feedbacks .fb-break-row{display:flex;align-items:center;gap:10px}
.u-feedbacks .fb-break-label{width:14px;text-align:right;color:#0f172a;font-weight:700;font-size:12px}
.u-feedbacks .fb-break-star{color:#fbbf24;font-size:14px;line-height:1}
.u-feedbacks .fb-break-bar{flex:1;height:8px;border-radius:999px;background:#fde68a;overflow:hidden}
.u-feedbacks .fb-break-bar span{display:block;height:100%;width:0;background:#f59e0b;border-radius:999px}
.u-feedbacks .fb-prompt{display:flex;align-items:center;gap:14px;margin:8px 0 12px}
.u-feedbacks .fb-prompt-stars{display:flex;align-items:center;gap:10px}
.u-feedbacks .fb-rate-star{background:transparent;border:0;padding:0;cursor:pointer;line-height:1}
.u-feedbacks .fb-rate-star img{width:32px;height:32px;display:block;transition:transform .12s ease}
.u-feedbacks .fb-rate-star:hover img{transform:translateY(-1px)}
.u-feedbacks .fb-rate-star:focus-visible{outline:3px solid rgba(59,130,246,.35);outline-offset:4px;border-radius:10px}
.u-feedbacks .fb-prompt-text{color:#111827;font-size:13px;font-weight:600}
.u-feedbacks .fb-divider{border:0;border-top:1px solid var(--border);margin:10px 0 14px}
.u-feedbacks .fb-list{display:flex;flex-direction:column;gap:12px;max-width:none;width:100%;margin:0 auto}
.u-feedbacks .fb-card{width:100%}
.u-feedbacks .fb-empty{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:18px;text-align:center;color:#6b7280;box-shadow:var(--shadow)}
.u-feedbacks .fb-card{background:var(--card);border:1px solid var(--border);border-radius:10px;box-shadow:0 10px 24px rgba(2,12,27,.10);display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 14px}
.u-feedbacks .fb-card-left{display:flex;align-items:center;gap:12px;min-width:240px}
.u-feedbacks .fb-avatar{width:46px;height:46px;border-radius:999px;overflow:hidden;border:2px solid #e5e7eb;flex:0 0 auto;background:#f8fafc}
.u-feedbacks .fb-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.u-feedbacks .fb-user-name{font-weight:600;color:#111827}
.u-feedbacks .fb-user-rating{display:flex;align-items:center;gap:10px;margin-top:3px}
.u-feedbacks .fb-stars{display:flex;gap:3px}
.u-feedbacks .fb-score{font-weight:600;color:#111827;font-size:14px}
.u-feedbacks .fb-card-body{min-width:0;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.u-feedbacks .fb-comment{color:#374151;line-height:1.45;overflow-wrap:anywhere}
.u-feedbacks .fb-card-time{display:flex;align-items:center;gap:8px;color:#9ca3af;font-size:12px;white-space:nowrap;align-self:flex-start;margin-top:4px;opacity:.75}
.u-feedbacks .fb-card-time img{width:16px;height:16px;opacity:.7}
@media (max-width: 900px){
  .u-feedbacks .fb-summary{grid-template-columns:1fr;gap:12px}
  .u-feedbacks .fb-avg{font-size:60px}
  .u-feedbacks .fb-card{grid-template-columns:1fr;gap:10px}
  .u-feedbacks .fb-card-time{justify-content:flex-end}
  .u-feedbacks .fb-card-left{min-width:0}
  .u-feedbacks .fb-card-time{align-self:auto;margin-top:0;opacity:1}
  .u-feedbacks .fb-card-body{align-self:auto}
}

/* Feedback modal (feedbacks.php stars row) */
.fb-ux-card{width:min(760px, calc(100vw - 28px));padding:12px;background:transparent;box-shadow:none;border:0}
.fb-ux-panel{background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:16px 16px 18px;box-shadow:none}
.fb-ux-card .u-modal-close{top:18px;right:18px}
.fb-ux-top{display:flex;align-items:center;gap:10px;margin:2px 2px 8px}
.fb-ux-label{font-weight:600;color:#0f172a;font-size:20px}
.fb-ux-title{text-align:center;font-size:24px;font-weight:600;color:#0f172a;letter-spacing:-.01em;margin:4px 0 6px}
.fb-ux-sub{text-align:center;color:#6b7280;font-size:13px;line-height:1.45;margin:0 auto 4px;max-width:680px}
.fb-ux-panel .cv-stars{margin:14px 0 14px}
.fb-ux-panel .cv-feedback-text{background:#fff;border-radius:10px;min-height:110px;resize:none}
.fb-ux-panel .cv-feedback-text:focus,
.fb-ux-panel .cv-feedback-text:focus-visible{
  outline: none;
  box-shadow: none;
  border-color: #93c5fd;
}
.fb-ux-panel .cv-feedback-actions{margin-top:14px;justify-content:stretch}
.fb-ux-panel .cv-feedback-submit{height:44px;border-radius:8px;font-size:14px;font-weight:600;width:100%;max-width:100%;background:#2563eb}
.fb-ux-display{margin-top:8px;padding:6px 10px 2px;font-size:13px;color:#374151;line-height:1.45;max-width:720px;margin-left:auto;margin-right:auto;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left}
.fb-ux-meta{display:flex;justify-content:flex-end;margin-top:10px}
.fb-ux-date{color:#9ca3af;font-size:12px;white-space:nowrap}
.fb-ux-hint-ico{width:16px;height:16px;display:block;flex:0 0 16px;opacity:.9}
.cv-feedback-hint{display:flex;align-items:flex-start;gap:8px}
.cv-feedback-hint .fb-ux-hint-text{display:block}
@media (max-width: 640px){
  .fb-ux-title{font-size:22px}
  .fb-ux-label{font-size:18px}
  .fb-ux-panel{padding:16px}
  .fb-ux-panel .cv-feedback-submit{height:52px;font-size:16px}
}
