/* Content calendar tab on member profiles (contentcal.js). Uses the profile's own colours (--p-*) and the XP window bits. */
.ptabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--p-accent); padding: 0 4px; }
.ptabs a { padding: 6px 14px 5px; border: 2px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; text-decoration: none; color: var(--p-text); font-family: var(--p-font); background: color-mix(in srgb, var(--p-card) 70%, transparent); margin-bottom: -2px; }
.ptabs a:hover { border-color: color-mix(in srgb, var(--p-accent) 50%, transparent); }
.ptabs a[aria-current="page"] { background: var(--p-accent); color: var(--p-on-accent); border-color: var(--p-accent); font-weight: bold; }
.pwrap.cc { max-width: 1120px; }
.pwrap.cc .pb { color: var(--ink); font-family: var(--ui); font-size: 13px; }
.cc-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cc-seg { display: inline-flex; gap: 2px; }
.cc-filter { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: bold; color: var(--p-text); }
.cc-filter select { border: 1px solid #7f9db2; border-radius: 3px; padding: 4px 6px; background: #fff; font-weight: normal; color: var(--ink); }
.cc-intro ol { margin: 6px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
.cc-grid .day { min-height: 104px; position: relative; }
.cc-grid .num { display: flex; align-items: center; justify-content: space-between; }
.cc-add { border: 1px solid transparent; background: none; border-radius: 3px; width: 20px; height: 20px; line-height: 1; padding: 0; color: var(--muted); opacity: 0; }
.day:hover .cc-add, .cc-add:focus-visible { opacity: 1; border-color: #7f9db2; background: #fff; }
.ccev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 2px 4px; width: 100%; text-align: left; border: 1px solid #7f9db2; border-left: 5px solid color-mix(in srgb, var(--t) 60%, #6d7f8c); background: linear-gradient(180deg, #fff, var(--t)); font-size: 11px; padding: 2px 4px; border-radius: 3px; cursor: pointer; user-select: none; }
.ccev:hover { border-color: var(--hyves); }
.ccev .cc-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccev .cc-n { font-size: 10px; }
.ccev .cc-st { grid-column: 1 / -1; font-size: 10px; color: #3b4b56; display: flex; align-items: center; gap: 4px; }
.ccev .cc-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--s); border: 1px solid #7f9db2; }
.ccev.done { opacity: .7; }
.ccev.dragging { opacity: .4; }
.cc-over { outline: 2px dashed var(--hyves); outline-offset: -2px; background: var(--hyves-soft) !important; }
.cc-tray { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.cc-tray-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; }
.cc-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.cc-col { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 6px; display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.cc-colh { font-weight: bold; font-size: 12px; padding: 4px 6px; border-radius: 3px; background: linear-gradient(180deg, #fff, var(--s)); border: 1px solid #c3d3de; }
.cc-card { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.cc-list table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cc-list th, .cc-list td { text-align: left; padding: 6px 8px; border-bottom: 1px dotted var(--line); vertical-align: top; }
.cc-list th { background: #f6f9fb; color: var(--luna-3); font-size: 11px; }
.cc-pill { display: inline-block; padding: 1px 7px; border-radius: 3px; background: linear-gradient(180deg, #fff, var(--s)); border: 1px solid #b9cad6; font-size: 11px; font-weight: bold; white-space: nowrap; }
.cc-hook { font-size: 18px; overflow-wrap: anywhere; }
.cc-props { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 5px 14px; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.cc-props > span { color: var(--muted); }
.cc-props > b { font-weight: normal; }
.cc-sec { border: 1px solid var(--line); border-radius: 4px; background: #fff; overflow: hidden; }
.cc-sech { background: linear-gradient(180deg, #f6f9fb, #e3eef5); border-bottom: 1px solid var(--line); padding: 5px 10px; font-weight: bold; font-size: 12px; }
.cc-secb { padding: 8px 10px; overflow-wrap: anywhere; }
.cc-compose { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.cc-compose textarea { border: 1px solid #7f9db2; border-radius: 3px; padding: 6px 8px; min-height: 64px; resize: vertical; width: 100%; background: #fff; }
.cc-suggest { position: absolute; left: 10px; top: 70px; z-index: 5; background: #fff; border: 1px solid var(--luna-3); border-radius: 4px; display: flex; flex-direction: column; min-width: 200px; }
.cc-suggest button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 5px 8px; text-align: left; }
.cc-suggest button:hover, .cc-suggest button:focus-visible { background: var(--hyves-soft); }
.cc-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
@media (max-width: 700px) {
  .cc-grid .day { min-height: 64px; padding: 2px; }
  .ccev { grid-template-columns: minmax(0, 1fr); font-size: 10px; }
  .ccev .cc-ico, .ccev .cc-n, .ccev .cc-st { display: none; }
  .cc-filter { flex: 1 1 140px; }
  .cc-filter select { flex: 1; min-width: 0; }
}
