/* Summer Hub — matches Timivra Pro section vibe */
#timivra-summer-header-btn {
  display: none;
}
#timivra-summer-header-btn.is-visible {
  display: inline-flex;
}

.timivra-summer-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.timivra-summer-overlay.is-open {
  display: flex;
}
.timivra-summer-panel {
  width: 100%;
  max-width: 52rem;
  margin: 0.5rem auto 2rem;
  background: var(--hf-card, #fff);
  border: 1px solid var(--hf-card-border, #e5e7eb);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.timivra-summer-panel-head {
  padding: 1.25rem 1.25rem 0.75rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hf-accent, #059669) 12%, var(--hf-card)), var(--hf-card));
  border-bottom: 1px solid var(--hf-card-border, #e5e7eb);
}
.timivra-summer-panel-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hf-text, #111827);
  margin: 0 0 0.25rem;
}
.timivra-summer-panel-head p {
  font-size: 0.8125rem;
  color: var(--hf-muted, #6b7280);
  margin: 0;
}
.timivra-summer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hf-card-border, #e5e7eb);
  background: color-mix(in srgb, var(--hf-card) 92%, var(--hf-bg-from, #eff6ff));
}
.timivra-summer-tab {
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--hf-card-border, #e5e7eb);
  background: var(--hf-card, #fff);
  color: var(--hf-text, #374151);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.timivra-summer-tab.is-active {
  background: var(--hf-accent, #059669);
  border-color: var(--hf-accent-strong, #047857);
  color: #fff;
}
.timivra-summer-body {
  padding: 1rem 1.25rem 1.25rem;
  max-height: min(72vh, 36rem);
  overflow-y: auto;
}
.timivra-summer-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--hf-card-border) 40%, transparent);
  color: var(--hf-text);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}
.timivra-summer-panel-head-wrap {
  position: relative;
  padding-right: 2.5rem;
}

.timivra-summer-card {
  border: 1px solid var(--hf-card-border, #e5e7eb);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: color-mix(in srgb, var(--hf-card) 96%, var(--hf-bg-from));
}
.timivra-summer-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hf-text);
  margin: 0 0 0.35rem;
}
.timivra-summer-card p {
  font-size: 0.75rem;
  color: var(--hf-muted);
  margin: 0 0 0.5rem;
}
.timivra-summer-progress {
  height: 6px;
  background: var(--hf-card-border, #e2e8f0);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0.5rem 0;
}
.timivra-summer-progress > span {
  display: block;
  height: 100%;
  background: var(--hf-accent, #059669);
  border-radius: 9999px;
  transition: width 0.3s ease;
}
.timivra-summer-pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}
.timivra-summer-pipeline span {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--hf-card-border) 50%, var(--hf-card));
  color: var(--hf-muted);
}
.timivra-summer-pipeline span.is-current {
  background: color-mix(in srgb, var(--hf-accent) 18%, var(--hf-card));
  color: var(--hf-accent-strong, #047857);
  font-weight: 600;
}
.timivra-summer-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--hf-accent) 15%, var(--hf-card));
  color: var(--hf-accent-strong, #047857);
  font-weight: 600;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.timivra-summer-shelf-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.timivra-summer-shelf-tab {
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid var(--hf-card-border);
  background: var(--hf-card);
  cursor: pointer;
}
.timivra-summer-shelf-tab.is-active {
  border-color: var(--hf-accent);
  color: var(--hf-accent-strong);
  font-weight: 600;
}
.timivra-summer-prep-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hf-card-border);
}
.timivra-summer-prep-item:last-child {
  border-bottom: none;
}
.timivra-summer-prep-item input[type="checkbox"] {
  margin-top: 0.15rem;
  accent-color: var(--hf-accent);
}
.timivra-summer-prep-item label {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--hf-text);
  cursor: pointer;
}
.timivra-summer-prep-item a {
  font-size: 0.7rem;
  color: var(--hf-accent);
  text-decoration: none;
  white-space: nowrap;
}
.timivra-summer-prep-item.is-done label {
  text-decoration: line-through;
  color: var(--hf-muted);
}
.timivra-summer-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--hf-accent) 35%, var(--hf-card-border));
  background: linear-gradient(90deg, color-mix(in srgb, var(--hf-accent) 10%, var(--hf-card)), var(--hf-card));
}
.timivra-summer-banner strong {
  color: var(--hf-text);
  font-size: 0.875rem;
}
.timivra-summer-banner p {
  font-size: 0.75rem;
  color: var(--hf-muted);
  margin: 0.25rem 0 0.5rem;
}
.timivra-summer-field {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--hf-card-border);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  background: var(--hf-card);
  color: var(--hf-text);
}
.timivra-summer-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .timivra-summer-field-row {
    grid-template-columns: 1fr;
  }
}
.timivra-summer-skill-log {
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--hf-card-border) 25%, var(--hf-card));
  font-size: 0.7rem;
  color: var(--hf-muted);
  max-height: 4rem;
  overflow-y: auto;
}
body.hf-dark-mode .timivra-summer-panel,
body.hf-dark-mode .timivra-summer-card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
