@import url("dashboard.css");

.star-picker { display: flex; gap: 8px; font-size: 34px; cursor: pointer; user-select: none; }
.star-picker span { color: var(--g3); transition: transform 0.12s ease, color 0.12s ease; line-height: 1; }
.star-picker span:hover { transform: scale(1.2); }
.star-picker span.on { color: var(--ink); }

.file-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--paper); border: 2px solid var(--ink); padding: 12px 16px; margin-bottom: 10px;
}
.file-thumb {
  width: 52px; height: 40px; object-fit: cover; border: 1.5px solid var(--ink); flex-shrink: 0;
  background: repeating-conic-gradient(var(--g2) 0% 25%, var(--paper) 0% 50%) 50% / 10px 10px;
}
.file-icn {
  width: 52px; height: 40px; border: 1.5px solid var(--ink); flex-shrink: 0;
  display: grid; place-items: center; font-size: 18px; background: var(--g1);
}
.file-info { flex: 1; min-width: 0; }
.file-info b { font-size: 13.5px; display: block; }
.file-info small { font-family: var(--font-mono); font-size: 10px; color: var(--g4); }

.privacy-list li { display: flex; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px dashed var(--g2); }
.privacy-list li::before { content: "→"; font-weight: 700; }

.danger-zone { border-color: #b30000; box-shadow: 6px 6px 0 #b30000; }
.danger-zone .panel-title { background: #b30000; border-color: #b30000; }
.dz-body { padding: 20px 22px 24px; font-size: 13.5px; line-height: 1.7; color: var(--g5); }
.dz-body p { margin-bottom: 16px; }

.proj-card { background: var(--paper); border: 2px solid var(--ink); margin-bottom: 18px; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px 12px; flex-wrap: wrap; }
.proj-head h3 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.5px; }
.proj-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1.5px dashed var(--g3); margin-top: 14px;
}
.pmg-cell { padding: 13px 18px; border-right: 1.5px dashed var(--g3); }
.pmg-cell:last-child { border-right: none; }
.pmg-cell .pmgl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px; color: var(--g4); text-transform: uppercase; margin-bottom: 5px; }
.pmg-cell .pmgv { font-size: 13.5px; font-weight: 600; }
.proj-desc { padding: 0 22px 16px; font-size: 13px; color: var(--g5); line-height: 1.65; }

.cmt-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--g2); }
.cmt-item.mine { background: var(--g1); }
.cmt-bubble { flex: 1; }
.cmt-bubble p { font-size: 13.5px; line-height: 1.65; }
.cmt-bubble time { font-family: var(--font-mono); font-size: 9.5px; color: var(--g4); display: block; margin-top: 5px; }

@media (max-width: 720px) {
  .proj-meta-grid { grid-template-columns: 1fr 1fr; }
  .pmg-cell:nth-child(2n) { border-right: none; }
  .pmg-cell:nth-child(-n+2) { border-bottom: 1.5px dashed var(--g3); }
}

.star-picker { display: flex; gap: 8px; font-size: 34px; cursor: pointer; user-select: none; }
.star-picker span { color: var(--g3); transition: transform 0.12s ease, color 0.12s ease; line-height: 1; }
.star-picker span:hover { transform: scale(1.2); }
.star-picker span.on { color: var(--ink); }
.star-picker span:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.file-info b { overflow-wrap: anywhere; }
.cmt-bubble p { overflow-wrap: anywhere; }
.privacy-list li { display: flex; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px dashed var(--g2); }
.privacy-list li::before { content: "→"; font-weight: 700; }
.danger-zone { border-color: #b30000; box-shadow: 6px 6px 0 #b30000; }
.danger-zone .panel-title { background: #b30000; border-color: #b30000; }
.dz-body { padding: 20px 22px 24px; font-size: 13.5px; line-height: 1.7; color: var(--g5); }
.proj-card { background: var(--paper); border: 2px solid var(--ink); margin-bottom: 18px; }
.proj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px 12px; flex-wrap: wrap; }
.proj-head h3 { font-size: 19px; text-transform: uppercase; letter-spacing: 0.5px; }
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--g2); }
.timeline-item time { font-family: var(--font-mono); font-size: 10px; color: var(--g4); }
.timeline-item p { font-size: 13px; line-height: 1.55; margin-top: 5px; }
.payment-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--g2); font-size: 13px; }
.portal-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.portal-summary .stat-card { box-shadow: none; }

@media (max-width: 720px) {
  .portal-summary { grid-template-columns: 1fr; }
  .file-row { align-items: flex-start; flex-wrap: wrap; }
  .file-info { min-width: calc(100% - 80px); }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .pmg-cell .pmgv, .proj-head h3, .badge, .tag { overflow-wrap: anywhere; }
}

@media (max-width: 640px) {
  .modal-body { overflow-x: clip; }
  .modal-body > .modal-foot { margin-left: -22px; margin-right: -22px; }
}

/* ---------------------------------------------------------- UI AUDIT v1.2 */
.star-picker span { color: var(--g4); } /* unselected stars: 3:1+ (was g3, 1.5:1) */
.star-picker span.on { color: var(--ink); }
/* Meta cells line up with the card title (22px) instead of sitting 4px left of it. */
.pmg-cell { padding: 14px 22px; }
.pmg-cell .pmgl { font-size: 10.5px; }
.cmt-bubble time, .file-info small { font-size: 10.5px; }
/* "YOU" / "PV TEAM" labels share one width so message text starts on one line. */
.cmt-item .tag { min-width: 72px; margin: 0; text-align: center; align-self: flex-start; }
/* Compact two-column details card (project sidebar). */
.proj-meta-grid--2 { grid-template-columns: 1fr 1fr; margin-top: 0; border-top: 0; }
.proj-meta-grid--2 .pmg-cell { padding: 12px 0; border-right: 0; border-bottom: 1px dashed var(--g3); }
.proj-meta-grid--2 .pmg-cell:nth-child(2n) { padding-left: 16px; border-left: 1px dashed var(--g3); }
.proj-meta-grid--2 .pmg-cell:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 720px) {
  .sum-row .stat-card { padding: 14px 16px; }
  .sum-row .stat-card .scv { font-size: 22px; }
  .proj-meta-grid:not(.proj-meta-grid--2) .pmg-cell { padding: 12px 16px; }
}
