:root{
  --cc-text: rgba(15,23,42,.92);
  --cc-muted: rgba(15,23,42,.62);
  --cc-border: rgba(15,23,42,.10);
}

/* ===== Upload area (mobile-first) ===== */
.cc-file{display:none;}
.cc-upload-wrap{max-width:720px;}

.cc-upload-card{
  width:100%;
  padding:28px 18px;
  border-radius:22px;
  border:2px dashed rgba(17,24,39,.45);
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:10px;
  cursor:pointer;
  user-select:none;
  transition: border-color .15s ease, background .15s ease, transform .05s ease;
}
.cc-upload-card:active{transform:scale(.997);}
.cc-upload-card:hover{border-color:rgba(17,24,39,.65); background:rgba(249,250,251,1);}
.cc-upload-card.is-over{border-color:rgba(17,24,39,.9); background:rgba(249,250,251,1);}

.cc-upload-icon{color:rgba(17,24,39,.85);display:flex;align-items:center;justify-content:center;}
.cc-upload-title{font-weight:800;font-size:18px;line-height:1.2;color:rgba(17,24,39,.92);}
.cc-upload-subtitle{font-size:13px;color:rgba(107,114,128,1);}
.cc-upload-card-btn{padding:.55rem 1.1rem;border-radius:12px;font-weight:900;}
.cc-upload-status{color:rgba(15,23,42,.70);font-weight:700;min-height:1.2em;}

/* ===== Thumbnails ===== */
.cc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
@media (min-width: 576px){.cc-grid{grid-template-columns:repeat(3,1fr);}}
@media (min-width: 992px){.cc-grid{grid-template-columns:repeat(4,1fr);}}

.cc-thumb{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.cc-thumb img{width:100%;height:140px;object-fit:cover;display:block;}
.cc-thumb-foot{padding:8px 10px;display:flex;gap:8px;align-items:center;justify-content:space-between;}
.cc-thumb-meta{font-size:.85rem;color:rgba(15,23,42,.65);}

/* ===== Lightbox ===== */
.cc-lightbox{position:fixed;inset:0;z-index:2000;display:none;align-items:center;justify-content:center;background:rgba(2,6,23,.72);padding:14px;}
.cc-lightbox.is-open{display:flex;}
.cc-lightbox-inner{max-width:min(980px, 100%);max-height:min(92vh, 100%);}
.cc-lightbox img{max-width:100%;max-height:92vh;border-radius:18px;box-shadow:0 18px 50px rgba(0,0,0,.45);}
.cc-lightbox-close{position:absolute;top:14px;right:14px;}

/* ===== Toasts (PC only) ===== */
.cc-toast-host{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:2100;
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:360px;
}
.cc-toast{
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  box-shadow:0 16px 40px rgba(15,23,42,.14);
  padding:12px 14px;
}
.cc-toast-top{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;}
.cc-toast-title{font-weight:800;font-size:14px;}
.cc-toast-time{color:rgba(15,23,42,.55);font-size:12px;}
.cc-toast-body{color:rgba(15,23,42,.90);font-size:14px;line-height:1.35;margin-top:4px;}
@media (max-width: 991.98px){
  .cc-toast-host{display:none;}
}

/* ===== Bell dropdown ===== */
.cc-bell-wrap{ position:relative; }
.cc-bell-popover{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(320px, calc(100vw - 24px));
  background:#fff;
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  box-shadow:0 18px 48px rgba(15,23,42,.18);
  overflow:hidden;
  z-index:2101;
}
.cc-bell-popover::before{
  content:"";
  position:absolute;
  right:16px;
  top:-7px;
  width:14px;
  height:14px;
  background:#fff;
  transform:rotate(45deg);
  border-left:1px solid rgba(15,23,42,.10);
  border-top:1px solid rgba(15,23,42,.10);
}
.cc-bell-head{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid rgba(15,23,42,.08);}
.cc-bell-actions{display:flex;gap:8px;align-items:center;}
.cc-bell-actions .btn{white-space:nowrap;}
@media (max-width: 420px){.cc-bell-title{font-size:.92rem;} .cc-bell-actions .btn{padding:.25rem .5rem; font-size:.78rem;}}
.cc-bell-title{ font-weight:700; }
.cc-bell-list{ max-height:360px; overflow:auto; }
.cc-bell-item{display:flex;gap:10px;padding:10px 12px;border-bottom:1px solid rgba(15,23,42,.06);}
.cc-bell-item:last-child{ border-bottom:none; }
.cc-bell-dot{width:8px;height:8px;border-radius:999px;background:#ef4444;flex:0 0 auto;margin-top:6px;}
.cc-bell-item.is-read .cc-bell-dot{ background:rgba(148,163,184,.75); }
.cc-bell-text{ font-size:.92rem; line-height:1.25rem; }
.cc-bell-time{ font-size:.78rem; color:#64748b; margin-top:2px; }

/* ===== Wizard (step-by-step) =====
   Important: only the active step should be visible. */
.cc-wizard-step{ display:none; }
.cc-wizard-step.is-active{ display:block; }

.cc-wizard-footer{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1200;
  background: rgba(247,248,251,.92);
  border-top: 1px solid rgba(15,23,42,.10);
  backdrop-filter: blur(10px);
}
.cc-wizard-footer-inner{
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  gap:10px;
}
.cc-wizard-mid{ flex:1 1 auto; text-align:center; min-width:0; }
.cc-wizard-stepcount{ font-weight:800; font-size:.95rem; }
.cc-wizard-hint{ color: rgba(15,23,42,.62); font-size:.85rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* reserve space under fixed footer */
body{ padding-bottom: 86px; }



/* ===== Wizard thumbs (fix) ===== */
.cc-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
}
.cc-strip .cc-thumb{
  position:relative;
  width:120px;
  height:90px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.cc-strip .cc-thumb a{display:block;width:100%;height:100%;}
.cc-strip .cc-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.cc-del{
  position:absolute;
  top:6px; right:6px;
  width:28px; height:28px;
  border-radius:10px;
  border:1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  color:#0b1020;
  font-weight:900;
  line-height:1;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 24px rgba(15,23,42,.10);
}
.cc-del:hover{background:#fff;}

/* ===== Center upload box inside card ===== */
.cc-upload-wrap{max-width:720px;margin:0 auto;}
.cc-upload-card{max-width:640px;margin:0 auto;}

/* ===== Titles ===== */
.cc-report-title{font-weight:800;font-size:1.05rem;}
.cc-title{font-weight:800;font-size:1.02rem;}


/* app thumbs (gallery) */
.app-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.15rem .55rem;
  border-radius:999px;
  font-size:.82rem;
  font-weight:600;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.78);
}
.app-count.ok{
  border-color: rgba(16,185,129,.30);
  background: rgba(16,185,129,.10);
  color: rgba(5,150,105,.95);
}
.app-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}
.app-thumb{
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  display:block;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
.app-thumb:hover{
  border-color: rgba(124,92,255,.35);
  box-shadow: 0 12px 26px rgba(124,92,255,.12);
}
.app-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
@media (min-width: 768px){
  .app-thumb{ width:110px; height:110px; }
}


@media (max-width: 768px){
  .cc-bell-popover{
    position: fixed;
    left: 12px;
    right: 12px;
    top: 72px;
    width: auto;
    max-width: none;
  }
  .cc-bell-popover::before{ display:none; }
}
