.work-role, .panel-role {
  color: #666;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.work-open {
  font: inherit;
  color: inherit;
  text-align: left;
  border: 0;
  background: none;
  cursor: pointer;
}
.work-open:focus-visible, .project-card:focus-visible {
  outline: 2px solid #555;
  outline-offset: 4px;
}
.work-thumb .month:empty { display: none; }
.type-only { color: #333; }
.visual-label {
  position: absolute;
  inset: 36px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.work-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 32px;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-overlay:not([open]) { display: none; }
.work-overlay::backdrop {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(6px);
}
.work-overlay .panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(88dvh, calc(100dvh - 64px));
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}
.panel-thumb {
  height: min(260px, 30dvh);
  flex-shrink: 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.panel-month, .panel-award {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.panel-month:empty { display: none; }
.panel-award { left: auto; right: 56px; }
.panel-body {
  padding: 28px 32px 32px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.panel-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}
.panel-desc, .panel-details p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 18px;
  white-space: pre-wrap;
}
.panel-contributions { margin: 24px 0; }
.panel-contributions h3 { font-size: 13px; margin-bottom: 12px; }
.panel-contributions ul { padding-left: 20px; }
.panel-contributions li { margin-bottom: 10px; line-height: 1.7; }
.panel-contributions a {
  font-size: 13px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.panel-tags, .panel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-tags { margin-bottom: 18px; }
.panel-tags span {
  font-size: 11px;
  padding: 4px 10px;
  background: #f4f3ee;
  border-radius: 999px;
  color: #666;
}
.panel-links { gap: 12px 20px; padding-top: 16px; border-top: 1px solid #eee; }
.panel-links:empty { display: none; }
.panel-links a { font-size: 13px; color: #1a1a1a; text-decoration: none; line-height: 1.8; }
.panel-links a::after { content: ' →'; }
.panel-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #1a1a1a;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}
body.modal-open { overflow: hidden; }
@media (max-width: 768px) {
  .work-overlay { padding: 12px; }
  .work-overlay .panel { max-height: calc(100dvh - 24px); border-radius: 12px; }
  .panel-thumb { height: min(180px, 25dvh); }
  .panel-body { padding: 22px 20px 28px; }
  .panel-title { font-size: 20px; }
}
