/* Wandering Whims shared Journal / Worldbuilding cloud panel */
.ww-studio-cloud{border:1px solid #c4a35a;border-radius:16px;background:#faf6ed;color:#183d30;padding:22px;max-width:100%;box-sizing:border-box}
.ww-studio-cloud h3,.ww-studio-cloud h4{color:#183d30;margin:16px 0 12px}
.ww-studio-cloud-status{border:1px solid #c4a35a;background:#ede7d8;padding:12px;border-radius:10px;line-height:1.55}
.ww-studio-cloud-status[data-error="true"]{border-color:#a15d52}
.ww-studio-cloud-tools,.ww-studio-cloud-item-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:12px 0}
.ww-studio-cloud-local,.ww-studio-cloud-remote{display:grid;gap:10px}
.ww-studio-cloud-item{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:center;border:1px solid #d8bf88;border-radius:12px;padding:14px;background:#fffaf1}
.ww-studio-cloud-item strong{display:block;color:#183d30;overflow-wrap:anywhere}.ww-studio-cloud-item small{display:block;color:#496352;margin-top:5px}
.ww-studio-cloud-item button{border:1px solid #c4a35a;background:#fffaf1;color:#183d30;border-radius:24px;padding:9px 13px;font:600 13px Georgia,serif;cursor:pointer}
.ww-studio-cloud-item button:first-child{background:#183d30;color:white}.ww-studio-cloud-item button:disabled{opacity:.48;cursor:not-allowed}
.ww-studio-cloud-dialog{border:1px solid #c4a35a;border-radius:18px;background:#f5f0e5;color:#183d30;padding:0;max-width:min(92vw,480px);box-shadow:0 15px 55px #0005}
.ww-studio-cloud-dialog::backdrop{background:#142b25a8}.ww-studio-cloud-modal{padding:24px 28px;text-align:center}.ww-studio-cloud-modal>span{color:#ad873e;font-size:26px}.ww-studio-cloud-modal h3{font:700 24px Georgia,serif;margin:6px 0 14px;color:#183d30}.ww-studio-cloud-modal p{line-height:1.65;white-space:pre-wrap}
.ww-studio-cloud-modal-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:18px}.ww-studio-cloud-modal-actions button{border-radius:25px;padding:11px 20px;cursor:pointer;border:1px solid #b99a57;background:transparent;color:#183d30;font-weight:700}.ww-studio-cloud-modal-actions button[data-yes]{background:#183d30;color:white}
@media(max-width:640px){.ww-studio-cloud{padding:14px}.ww-studio-cloud-item{align-items:stretch}.ww-studio-cloud-item-actions{width:100%}}
/* Shared tools used by the Character and Palette cloud collections. */
.ww-studio-cloud-tools button{border:1px solid #c4a35a;background:#183d30;color:#fff;border-radius:24px;padding:10px 15px;font:600 13px Georgia,serif;cursor:pointer}
.ww-studio-cloud-tools button:hover,.ww-studio-cloud-tools button:focus-visible{background:#315b43}

/* F10.4 — Portfolio, CAS Challenge and Fashion Lookbook cloud toolbar.
   These three panels use the -actions class rather than the earlier -tools class. */
.ww-studio-cloud-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
}
.ww-studio-cloud-actions button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid #c4a35a;
  border-radius: 999px;
  background: #183d30;
  color: #fffaf1;
  font: 600 14px Georgia, 'Times New Roman', serif;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.ww-studio-cloud-actions button.ww-studio-cloud-backup {
  background: #fffaf1;
  color: #183d30;
}
.ww-studio-cloud-actions button:hover:not(:disabled) {
  background: #315b43;
  color: white;
}
.ww-studio-cloud-actions button:focus-visible {
  outline: 3px solid #c4a35a;
  outline-offset: 3px;
}
.ww-studio-cloud-actions button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
@media (max-width: 480px) {
  .ww-studio-cloud-actions button { flex: 1 1 190px; }
}

/* Legacy, architectural favorites, and creative sparks collection controls */
[data-minor-cloud] .ww-studio-cloud-tools{justify-content:center;gap:12px;margin:16px 0 18px}
[data-minor-cloud] .ww-studio-cloud-item-actions{justify-content:flex-end;gap:10px;margin:0}
[data-minor-cloud] .ww-studio-cloud-item-actions button{min-height:40px;padding:10px 17px;border:1px solid #c4a35a;border-radius:999px;font:600 13px Georgia,serif;cursor:pointer;transition:background .15s ease}
[data-minor-cloud] .ww-studio-cloud-item-actions .ww-cloud-primary{background:#183d30;color:#fffaf1}
[data-minor-cloud] .ww-studio-cloud-item-actions .ww-cloud-secondary{background:#fffaf1;color:#183d30}
[data-minor-cloud] .ww-studio-cloud-item-actions button:hover:not(:disabled){background:#315b43;color:#fff}
[data-minor-cloud] button:focus-visible{outline:3px solid #c4a35a;outline-offset:3px}
[data-minor-cloud] .ww-studio-cloud-item-actions button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:640px){[data-minor-cloud] .ww-studio-cloud-item-actions{width:100%;justify-content:flex-start}}

/* Legacy, architectural favorites, and creative sparks collection controls */
[data-minor-cloud] .ww-studio-cloud-tools{justify-content:center;gap:12px;margin:16px 0 18px}
[data-minor-cloud] .ww-studio-cloud-item-actions{justify-content:flex-end;gap:10px;margin:0}
[data-minor-cloud] .ww-studio-cloud-item-actions button{min-height:40px;padding:10px 17px;border:1px solid #c4a35a;border-radius:999px;font:600 13px Georgia,serif;cursor:pointer;transition:background .15s ease}
[data-minor-cloud] .ww-studio-cloud-item-actions .ww-cloud-primary{background:#183d30;color:#fffaf1}
[data-minor-cloud] .ww-studio-cloud-item-actions .ww-cloud-secondary{background:#fffaf1;color:#183d30}
[data-minor-cloud] .ww-studio-cloud-item-actions button:hover:not(:disabled){background:#315b43;color:#fff}
[data-minor-cloud] button:focus-visible{outline:3px solid #c4a35a;outline-offset:3px}
[data-minor-cloud] .ww-studio-cloud-item-actions button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:640px){[data-minor-cloud] .ww-studio-cloud-item-actions{width:100%;justify-content:flex-start}}

[data-minor-cloud] .ww-minor-save-guidance{max-width:720px;margin:10px auto 18px;text-align:center;color:#315b43;font-size:.95rem;line-height:1.55}

/* F10.4 — private community drafts and creator inspiration notes. */
.ww-studio-cloud.ww-community-cloud{margin:28px auto;max-width:1200px;text-align:left;}
.ww-community-cloud > h2{text-align:center;margin:0 0 12px;color:#183d30;font:700 clamp(1.5rem,3vw,2.1rem) Georgia,serif;}
.ww-community-cloud > p{text-align:center;max-width:850px;margin:0 auto 12px;line-height:1.65;}
.ww-community-cloud .ww-studio-cloud-tools{justify-content:center;margin:18px 0;}
.ww-community-cloud .ww-studio-cloud-local,.ww-community-cloud .ww-studio-cloud-remote{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.ww-community-cloud .ww-studio-cloud-item{min-width:0;}
.ww-community-cloud button{cursor:pointer;}
.ww-community-cloud button:focus-visible{outline:3px solid #c4a35a;outline-offset:2px;}

/* Unified save area for Original Challenge planners (first standardization batch). */
.ww-unified-save-collection{margin:18px 0 24px;border:1px solid #c4a35a;background:#faf6ed;padding:20px;border-radius:16px;color:#183d30;}
.ww-unified-save-collection h3,.ww-unified-save-collection h4{color:#183d30;}
.ww-unified-save-collection .ww-studio-cloud-tools{justify-content:center;}
.ww-unified-save-collection .ww-studio-cloud-status{font-size:.91rem;}
#ww-primary-save{background:#183d30;color:#fffaf1;border:1px solid #c4a35a;min-height:44px;border-radius:999px;padding:10px 20px;cursor:pointer;}
#ww-primary-save:hover,#ww-primary-save:focus-visible{background:#315b43;color:#fff;}
#ww-primary-save:focus-visible{outline:3px solid #c4a35a;outline-offset:3px;}
#oc-save[hidden]{display:none!important;}
@media(max-width:600px){.ww-unified-save-collection{padding:14px;}#ww-primary-save{width:100%;}}

/* Unified saving — project planners. All saved items are next to the Save control. */
#project-exports #project-planner-cloud,.cpj-section #project-planner-cloud{margin:1rem 0 0;max-width:100%;}
#project-exports #project-planner-cloud .ww-studio-cloud,.cpj-section #project-planner-cloud .ww-studio-cloud{margin:0;}
.ww-project-browser-manage{border:1px solid #dac59b;border-radius:12px;background:#f8f1e5;padding:.35rem .9rem;margin:.9rem 0;}
.ww-project-browser-manage>summary{cursor:pointer;color:#183d30;font-weight:700;padding:.5rem 0;}
.ww-project-browser-manage[open]>summary{margin-bottom:.5rem;}

/* One nearby saved-work collection for room and architectural reference planning */
#room-planner #room-reference-cloud,#reference-saves #room-reference-cloud{max-width:100%;margin:1rem 0 0;}
#room-planner #room-reference-cloud .ww-studio-cloud,#reference-saves #room-reference-cloud .ww-studio-cloud{margin:0;}
#room-planner .ww-studio-cloud-item-actions button:first-child,#reference-saves .ww-studio-cloud-item-actions button:first-child{font-weight:600;}
