/* =========================================================
   DANA SOSIAL ENGINEERING — V6.3 / STAGE 4
   Perbaikan organisasi, manajemen peserta, dokumentasi foto
========================================================= */

/* ---------- 1. Perbaikan jarak struktur organisasi ---------- */
@media (max-width: 720px) {
  .org-chart-web .org-row {
    margin-top: 20px;
    gap: 20px;
  }

  .org-chart-web .org-person {
    min-height: 0;
  }
}

/* ---------- 2. Aksi peserta ---------- */
.participant-field-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.participant-manage-btn {
  min-width: 128px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid rgba(6, 78, 59, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(6, 78, 59, .98), rgba(5, 150, 105, .93));
  color: #fff;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(6, 78, 59, .16);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.participant-manage-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(6, 78, 59, .22);
}

.participant-manage-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.participant-helper {
  display: block;
  margin-top: 7px;
  color: #71847c;
  font-size: .62rem;
  line-height: 1.5;
}

/* ---------- 3. Modal premium ---------- */
.v63-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 24, 18, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.v63-modal.is-open {
  display: flex;
  animation: v63FadeIn .22s ease both;
}

.v63-modal-panel {
  width: min(100%, 860px);
  max-height: min(90vh, 880px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,250,247,.92));
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.v63-modal-panel.is-small {
  width: min(100%, 560px);
}

.v63-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(6, 78, 59, .10);
  background: linear-gradient(135deg, rgba(6,78,59,.98), rgba(5,150,105,.93));
  color: #fff;
}

.v63-modal-header span {
  display: block;
  margin-bottom: 3px;
  color: #f6d979;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.v63-modal-header h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.v63-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 13px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.v63-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
}

.v63-modal-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 22px 19px;
  border-top: 1px solid rgba(6,78,59,.08);
  background: rgba(255,255,255,.72);
}

.v63-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.v63-field {
  margin-bottom: 14px;
}

.v63-field label {
  display: block;
  margin-bottom: 7px;
  color: #214f42;
  font-size: .72rem;
  font-weight: 700;
}

.v63-input,
.v63-textarea,
.v63-select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(6,78,59,.15);
  border-radius: 13px;
  outline: none;
  background: rgba(255,255,255,.90);
  color: #183d33;
  font: inherit;
  font-size: .78rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.v63-textarea {
  min-height: 105px;
  resize: vertical;
}

.v63-input:focus,
.v63-textarea:focus,
.v63-select:focus {
  border-color: rgba(5,150,105,.65);
  box-shadow: 0 0 0 4px rgba(5,150,105,.09);
}

.v63-btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
}

.v63-btn-primary {
  background: linear-gradient(135deg, #065f46, #059669);
  color: #fff;
  box-shadow: 0 9px 20px rgba(6,78,59,.16);
}

.v63-btn-gold {
  background: linear-gradient(135deg, #c99a20, #f1cf64);
  color: #153d32;
}

.v63-btn-soft {
  border: 1px solid rgba(6,78,59,.12);
  background: #eef6f2;
  color: #315f52;
}

.v63-btn-danger {
  background: #fff0f0;
  color: #b42318;
}

.v63-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

/* ---------- 4. Manajemen peserta ---------- */
.participant-editor {
  padding: 17px;
  border: 1px solid rgba(6,78,59,.10);
  border-radius: 18px;
  background: rgba(235,247,241,.60);
}

.participant-editor-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.participant-editor-title h4 {
  margin: 0;
  color: #064e3b;
  font-size: .94rem;
}

.participant-editor-title small {
  color: #7b8f87;
  font-size: .62rem;
}

.participant-list-wrap {
  margin-top: 18px;
}

.participant-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.participant-list-head h4 {
  margin: 0;
  color: #064e3b;
  font-size: .9rem;
}

.participant-count-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(5,150,105,.10);
  color: #047857;
  font-size: .61rem;
  font-weight: 800;
}

.participant-manager-list {
  display: grid;
  gap: 8px;
}

.participant-manager-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid rgba(6,78,59,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.78);
}

.participant-manager-item.is-inactive {
  opacity: .62;
  background: rgba(245,245,245,.70);
}

.participant-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #064e3b, #059669);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.participant-manager-item strong {
  display: block;
  color: #16483a;
  font-size: .76rem;
}

.participant-manager-item small {
  color: #789087;
  font-size: .58rem;
}

.participant-actions {
  display: flex;
  gap: 6px;
}

.participant-icon-btn {
  min-width: 35px;
  height: 35px;
  padding: 0 9px;
  border: 1px solid rgba(6,78,59,.10);
  border-radius: 10px;
  background: #f2f8f5;
  color: #256354;
  font-family: inherit;
  font-size: .6rem;
  font-weight: 700;
  cursor: pointer;
}

.participant-icon-btn.danger {
  background: #fff0f0;
  color: #b42318;
}

/* ---------- 5. Dokumentasi ---------- */
.documentation-toolbar .btn-premium:not(:disabled) {
  cursor: pointer;
}

.documentation-upload-btn {
  background: linear-gradient(135deg, #c99a20, #f5d76e) !important;
  color: #173e33 !important;
  border: 0 !important;
}

.documentation-upload-zone {
  position: relative;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 1.5px dashed rgba(6,78,59,.28);
  border-radius: 18px;
  background: rgba(239,248,244,.70);
  text-align: center;
  cursor: pointer;
}

.documentation-upload-zone:hover,
.documentation-upload-zone.is-dragover {
  border-color: #059669;
  background: rgba(209,250,229,.62);
}

.documentation-upload-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.documentation-upload-zone svg {
  width: 34px;
  height: 34px;
  fill: #047857;
}

.documentation-upload-zone strong {
  color: #155744;
  font-size: .78rem;
}

.documentation-upload-zone small {
  max-width: 520px;
  color: #71847c;
  font-size: .61rem;
  line-height: 1.5;
}

.documentation-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.documentation-preview:empty {
  display: none;
}

.documentation-preview-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 13px;
  background: #e5f0eb;
}

.documentation-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documentation-preview-item span {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  overflow: hidden;
  padding: 4px 6px;
  border-radius: 7px;
  background: rgba(0,0,0,.52);
  color: #fff;
  font-size: .48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress-box {
  display: none;
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  background: #edf7f2;
}

.upload-progress-box.is-visible {
  display: block;
}

.upload-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #315f52;
  font-size: .62rem;
  font-weight: 700;
}

.upload-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(6,78,59,.10);
}

.upload-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #059669, #f1c75b);
  transition: width .18s ease;
}

.documentation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.documentation-grid .documentation-empty {
  grid-column: 1 / -1;
}

.documentation-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.80);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 38px rgba(2,44,34,.09);
}

.documentation-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dcece4;
}

.documentation-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.documentation-card:hover .documentation-cover img {
  transform: scale(1.035);
}

.documentation-photo-count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(3,47,36,.80);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  backdrop-filter: blur(7px);
}

.documentation-cover-button {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.documentation-card-body {
  padding: 17px;
}

.documentation-card-kicker {
  color: #b68a20;
  font-size: .57rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.documentation-card h3 {
  margin: 5px 0 8px;
  color: #064e3b;
  font-size: 1rem;
  line-height: 1.35;
}

.documentation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.documentation-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf6f2;
  color: #37685b;
  font-size: .55rem;
  font-weight: 700;
}

.documentation-card p {
  margin: 0;
  color: #6c8078;
  font-size: .64rem;
  line-height: 1.6;
}

.documentation-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 12px;
}

.documentation-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #dcece4;
  cursor: zoom-in;
}

.documentation-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documentation-thumb.more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2,44,34,.72);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
}

.documentation-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
}

/* ---------- 6. Lightbox ---------- */
.v63-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.88);
}

.v63-lightbox.is-open {
  display: flex;
}

.v63-lightbox-inner {
  width: min(100%, 1100px);
  height: min(88vh, 850px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.v63-lightbox-image-wrap {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v63-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.v63-lightbox-close,
.v63-lightbox-nav {
  position: absolute;
  z-index: 2;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.v63-lightbox-close {
  top: 0;
  right: 0;
}

.v63-lightbox-nav.prev { left: 0; top: 50%; transform: translateY(-50%); }
.v63-lightbox-nav.next { right: 0; top: 50%; transform: translateY(-50%); }

.v63-lightbox-caption {
  color: rgba(255,255,255,.88);
  text-align: center;
  font-size: .72rem;
}

/* ---------- 7. Toast ---------- */
.v63-toast-wrap {
  position: fixed;
  z-index: 10200;
  right: 16px;
  bottom: 92px;
  display: grid;
  gap: 8px;
}

.v63-toast {
  width: min(88vw, 360px);
  padding: 12px 14px;
  border-radius: 13px;
  background: #073d2e;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.23);
  font-size: .68rem;
  line-height: 1.5;
  animation: v63ToastIn .25s ease both;
}

.v63-toast.error { background: #8f241c; }
.v63-toast.warning { background: #7a5813; }

@keyframes v63FadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes v63ToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .participant-field-wrap {
    grid-template-columns: 1fr;
  }

  .participant-manage-btn {
    width: 100%;
  }

  .v63-modal {
    padding: 8px;
    align-items: flex-end;
  }

  .v63-modal-panel,
  .v63-modal-panel.is-small {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 12px 12px;
  }

  .v63-modal-header,
  .v63-modal-body,
  .v63-modal-footer {
    padding-left: 17px;
    padding-right: 17px;
  }

  .v63-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .participant-manager-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .participant-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .documentation-grid {
    grid-template-columns: 1fr;
  }

  .documentation-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .v63-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .v63-toast-wrap {
    left: 12px;
    right: 12px;
    bottom: 88px;
  }

  .v63-toast {
    width: 100%;
  }
}

/* =========================================================
   V6.3 / STAGE 4 — FIX MODAL UPLOAD DOKUMENTASI DI HP
   Footer aksi selalu terlihat dan isi modal dapat digulir.
========================================================= */

/* Form di dalam modal wajib menjadi flex container agar body
   yang panjang tidak mendorong tombol aksi keluar layar. */
.v63-modal-panel > form {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Khusus modal dokumentasi: body menggulir, footer tetap terlihat. */
#documentationModal .v63-modal-panel {
  height: min(92dvh, 880px);
  max-height: min(92vh, 880px);
}

#documentationModal .v63-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: 110px;
}

#documentationModal .v63-modal-footer {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
  box-shadow: 0 -12px 32px rgba(3, 47, 36, .10);
}

#documentationModal .v63-btn-gold {
  min-width: 180px;
}

/* Memberi tanda bahwa isi di atas dapat digulir. */
#documentationModal .v63-modal-body::-webkit-scrollbar {
  width: 6px;
}

#documentationModal .v63-modal-body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(6, 78, 59, .24);
}

@media (max-width: 760px) {
  /* Modal dokumentasi dibuat full-screen di HP supaya tidak terpotong
     oleh browser bar, keyboard, maupun bottom navigation aplikasi. */
  #documentationModal.v63-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  #documentationModal .v63-modal-panel {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  #documentationModal .v63-modal-header {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  #documentationModal .v63-modal-body {
    padding-top: 18px;
    padding-bottom: 30px;
    scroll-padding-bottom: 125px;
  }

  #documentationModal .v63-modal-footer {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.45fr);
    gap: 10px;
    padding-top: 12px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  #documentationModal .v63-modal-footer .v63-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 11px 10px;
    font-size: .72rem;
  }

  #documentationModal .documentation-upload-zone {
    min-height: 118px;
  }

  #documentationModal .documentation-preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  #documentationModal .v63-modal-header h3 {
    font-size: 1rem;
  }

  #documentationModal .v63-modal-footer {
    grid-template-columns: .72fr 1.55fr;
  }

  #documentationModal .v63-modal-footer .v63-btn {
    font-size: .66rem;
  }
}

/* =========================================================
   DANA SOSIAL ENGINEERING V7.0 — SECURITY / INSTALL / AUDIT
========================================================= */

.install-choice {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 44, 34, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.install-choice[hidden] { display: none !important; }

.install-choice-card {
  width: min(100%, 450px);
  padding: 30px 24px 24px;
  text-align: center;
  color: #164e3e;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 30px;
  box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.install-choice-card > img {
  width: 92px;
  height: 92px;
  margin-bottom: 12px;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 16px 30px rgba(3,105,78,.18);
}

.install-choice-card > span {
  display: block;
  color: #b58a16;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.install-choice-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.2;
}

.install-choice-card p,
.install-choice-card small {
  color: #61766f;
  line-height: 1.65;
}

.install-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0 14px;
}

.install-choice-actions button { min-height: 54px; }

.ios-guide ol {
  margin: 18px 0 22px;
  padding-left: 22px;
  text-align: left;
  color: #50645e;
  line-height: 1.8;
}

.notification-permission-btn {
  position: relative;
}

.notification-permission-btn span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 10px;
  font-weight: 800;
  line-height: 19px;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.activity-summary-grid article {
  padding: 22px;
  border: 1px solid rgba(6,95,70,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 38px rgba(7,67,51,.08);
}

.activity-summary-grid span {
  display: block;
  color: #74847f;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.activity-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #065f46;
  font-size: 2rem;
}

.activity-panel {
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(6,95,70,.12);
  border-radius: 28px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 46px rgba(7,67,51,.09);
}

.activity-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.activity-tabs button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #48635a;
  background: #edf5f1;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.activity-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg,#065f46,#0a8b67);
  box-shadow: 0 10px 24px rgba(6,95,70,.2);
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(6,95,70,.1);
  border-radius: 18px;
  background: rgba(247,251,249,.95);
}

.activity-item-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg,#065f46,#10a37f);
  font-weight: 900;
}

.activity-item strong,
.activity-item span,
.activity-item small { display: block; }
.activity-item strong { color: #0b513e; }
.activity-item span { color: #b28613; font-weight: 700; }
.activity-item small { margin-top: 2px; color: #74847f; line-height: 1.45; }
.activity-empty { padding: 38px; text-align: center; color: #7c8d87; }

.last-input-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  max-width: 100%;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.last-input-badge span { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.last-input-badge strong { color: #f5d76e; }
.last-input-badge small { width: 100%; color: rgba(255,255,255,.72); }

.documentation-preview-item.media-video,
.documentation-preview-item.media-document {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
}

.media-file-icon,
.documentation-document-cover span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg,#065f46,#10a37f);
  font-size: .78rem;
  font-weight: 900;
}

.documentation-cover > video,
.documentation-thumb > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.documentation-document-cover {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 190px;
  padding: 18px;
  color: #476059;
  background: linear-gradient(135deg,#edf8f3,#fff8df);
  text-align: center;
}

.v63-lightbox-video {
  max-width: min(94vw, 1100px);
  max-height: 82vh;
  border-radius: 18px;
  background: #000;
}

.v63-lightbox-document {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(84vw, 420px);
  min-height: 160px;
  padding: 30px;
  border-radius: 24px;
  color: #143f32;
  background: linear-gradient(135deg,#d6b342,#ffe47b);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .install-choice-actions { grid-template-columns: 1fr; }
  .activity-summary-grid { grid-template-columns: 1fr; gap: 10px; }
  .activity-summary-grid article { padding: 17px; }
  .activity-summary-grid strong { font-size: 1.6rem; }
  .activity-panel { padding: 15px; border-radius: 22px; }
  .activity-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .activity-tabs button { padding: 0 8px; font-size: .78rem; }
  .topbar-right .notification-permission-btn { display: inline-grid; }
}

.activity-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 18px;
  background: rgba(255,250,230,.88);
}
.activity-tools small { color: #6f7f79; }
@media (max-width:760px){.activity-tools{align-items:stretch;flex-direction:column}.activity-tools .v63-btn{width:100%}}
