/* P1 sheets: signup, create, studio, workbench, garden. Dark glass to match the planet room. */
body.ws-open { overflow: hidden; }
.ws[hidden] { display: none; }
.ws {
  position: fixed; inset: 0; z-index: 105; display: flex; justify-content: flex-end;
  --ws-ink: #fff5ea; --ws-muted: #c9c5d8; --ws-line: rgba(240, 199, 231, .23); --ws-accent: #f1c9db;
}
.ws-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 12, .62); }
.ws-panel {
  position: relative; width: min(640px, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px clamp(16px, 4vw, 30px) 48px; color: var(--ws-ink);
  background: linear-gradient(180deg, rgba(24, 18, 38, .97), rgba(12, 9, 22, .98));
  border-left: 1px solid var(--ws-line); box-shadow: -24px 0 60px rgba(0, 0, 0, .45);
  font: 400 14px/1.6 inherit;
}
.ws-panel:focus { outline: none; }
.ws-head { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.ws-close, .ws-back {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--ws-line); border-radius: 999px;
  background: transparent; color: var(--ws-muted); cursor: pointer; font: inherit; font-size: 13px;
}
.ws-close:hover, .ws-back:hover { color: var(--ws-ink); border-color: var(--ws-accent); }
.ws-title { margin: 10px 0 6px; font: 600 clamp(22px, 3vw, 28px)/1.4 "Noto Serif KR", Georgia, serif; }
.ws-title:focus { outline: none; }
.ws-lead { margin: 0 0 16px; color: var(--ws-muted); }
.ws-body { display: grid; gap: 14px; }
.ws-sub { margin: 10px 0 0; font: 600 16px/1.5 inherit; display: flex; gap: 8px; align-items: baseline; }
.ws-sub small { color: var(--ws-muted); font-weight: 400; font-size: 12px; }

.ws-form { display: grid; gap: 14px; }
.ws-field { display: grid; gap: 5px; }
.ws-field > span { font-size: 13px; color: var(--ws-ink); }
.ws-field em { margin-left: 6px; color: var(--ws-muted); font-style: normal; font-size: 12px; }
.ws-field small { color: var(--ws-muted); font-size: 12px; }
.ws-panel input[type="text"], .ws-panel input:not([type]), .ws-panel select, .ws-panel textarea {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--ws-line); border-radius: 12px;
  background: rgba(255, 255, 255, .045); color: var(--ws-ink); font: inherit; font-size: 14px;
}
.ws-panel textarea { resize: vertical; min-height: 64px; }
.ws-panel select option { background: #1a1428; color: #fff5ea; }
.ws-panel input:focus-visible, .ws-panel select:focus-visible, .ws-panel textarea:focus-visible,
.ws-panel button:focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-panel textarea[readonly] { opacity: .7; }
.ws-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ws-muted); cursor: pointer; }
.ws-check input { margin-top: 3px; flex: 0 0 auto; accent-color: var(--ws-accent); }
.ws-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-panel .room-action { min-height: 40px; }
.ws-danger { color: #ffb4b4; }
.ws-note { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ws-line); color: var(--ws-muted); font-size: 13px; }
.ws-link { display: inline; margin-left: 6px; padding: 0; border: 0; background: none; color: var(--ws-accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.ws-msg { margin: 0; min-height: 0; font-size: 13px; }
.ws-msg:empty { display: none; }
.ws-msg[data-kind="error"] { color: #ffb4b4; }
.ws-msg[data-kind="ok"] { color: #b9efc9; }
.ws-empty { margin: 0; padding: 18px 14px; border: 1px dashed var(--ws-line); border-radius: 14px; color: var(--ws-muted); text-align: center; }

.ws-stages { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; min-width: 0; }
.ws-stages legend { padding: 0; margin-bottom: 6px; font-size: 13px; }
.ws-stages--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ws-stages--compact legend { grid-column: 1 / -1; }
.ws-stage { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--ws-line); border-radius: 12px; cursor: pointer; }
.ws-stage:has(input:checked) { border-color: var(--ws-accent); background: rgba(241, 201, 219, .08); }
.ws-stage input { margin-top: 3px; accent-color: var(--ws-accent); }
.ws-stage span { display: grid; gap: 2px; }
.ws-stage small { color: var(--ws-muted); font-size: 12px; }

.ws-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--ws-line); }
.ws-tabs button { padding: 9px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ws-muted); cursor: pointer; font: inherit; }
.ws-tabs button[aria-selected="true"] { color: var(--ws-ink); border-bottom-color: var(--ws-accent); }
.ws-banner { padding: 12px 14px; border: 1px solid var(--ws-line); border-radius: 14px; display: grid; gap: 8px; }
.ws-banner p { margin: 0; color: var(--ws-muted); font-size: 13px; }
.ws-list { display: grid; gap: 10px; }
.ws-idea { padding: 14px; border: 1px solid var(--ws-line); border-radius: 16px; background: rgba(255, 255, 255, .03); display: grid; gap: 10px; }
.ws-idea h3 { margin: 0; font: 600 16px/1.5 inherit; overflow-wrap: anywhere; }
.ws-idea-top { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-idea-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-tag { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--ws-line); font-size: 12px; color: var(--ws-ink); }
.ws-tag--published { border-color: rgba(185, 239, 201, .55); color: #b9efc9; }
.ws-tag--quiet { color: var(--ws-muted); }

.ws-publish { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.ws-publish .ws-check { flex: 1 1 260px; }
.ws-cell { padding: 14px; border: 1px solid var(--ws-line); border-radius: 16px; display: grid; gap: 8px; }
.ws-cell--next { border-color: var(--ws-accent); box-shadow: 0 0 0 1px rgba(241, 201, 219, .25); }
.ws-cell header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ws-cell h4 { margin: 0; font: 600 15px/1.4 inherit; }
.ws-hint { margin: 0; color: var(--ws-muted); font-size: 12.5px; }
.ws-cell-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-vis { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ws-muted); }
.ws-vis select { width: auto; padding: 6px 10px; font-size: 13px; }
.ws-saved { font-size: 12px; color: var(--ws-muted); }
.ws-saved[data-kind="ok"] { color: #b9efc9; }
.ws-saved[data-kind="error"] { color: #ffb4b4; }

.ws-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-badges li { padding: 6px 12px; border: 1px solid var(--ws-line); border-radius: 999px; display: grid; }
.ws-badges small { color: var(--ws-muted); font-size: 11px; }
.ws-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-chip { cursor: pointer; }
.ws-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ws-chip span { display: inline-block; padding: 8px 13px; border: 1px solid var(--ws-line); border-radius: 999px; font-size: 13px; }
.ws-chip input:checked + span { border-color: var(--ws-accent); background: rgba(241, 201, 219, .1); }
.ws-chip input:focus-visible + span { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-requests { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ws-requests li { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--ws-line); border-radius: 12px; }
.ws-requests li > span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ws-requests small { color: var(--ws-muted); font-size: 12px; }

@media (max-width: 640px) {
  .ws-panel { border-left: 0; padding-top: 14px; }
  .ws-stages--compact { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .ws-panel { animation: ws-in .18s ease-out; }
  @keyframes ws-in { from { transform: translateX(14px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* One-screen hypothesis card */
.ws-preview { padding: 12px 14px; border: 1px solid var(--ws-line); border-radius: 14px; background: rgba(241, 201, 219, .06); }
.ws-preview small { color: var(--ws-muted); font-size: 12px; }
.ws-preview p { margin: 4px 0 0; font: 500 15px/1.6 inherit; overflow-wrap: anywhere; }
.ws-preview-empty { color: var(--ws-muted); font-weight: 400; }
.ws-core textarea { min-height: 0; }
.ws-core .ws-saved { min-height: 16px; }
.ws-more { border: 1px solid var(--ws-line); border-radius: 14px; padding: 0 14px; }
.ws-more[open] { padding-bottom: 14px; display: grid; gap: 12px; }
.ws-more > summary { cursor: pointer; padding: 12px 0; list-style: none; display: flex; gap: 8px; align-items: baseline; color: var(--ws-ink); }
.ws-more > summary::-webkit-details-marker { display: none; }
.ws-more > summary::before { content: "＋"; color: var(--ws-accent); }
.ws-more[open] > summary::before { content: "－"; }
.ws-more > summary small { color: var(--ws-muted); font-size: 12px; }
.ws-soft { margin: 0; font-size: 12px; color: var(--ws-muted); }
.ws-visrows { display: grid; gap: 8px; }
.ws-vis--row { justify-content: space-between; }
.ws-vis--row span { flex: 1 1 auto; min-width: 0; }

/* Sentence-style hypothesis form: "[situation] 상황에서 [who]가 겪고 있는 [problem]의 문제를 해결하기 위한 [solution] 기능·기술·서비스" */
.ws-sentence { display: grid; gap: 14px; }
.ws-row { display: grid; gap: 6px; }
.ws-chiptag { justify-self: start; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--ws-line); font-size: 12px; color: var(--ws-accent); }
.ws-inline { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ws-inline input[type="text"] { flex: 1 1 200px; min-width: 0; width: auto; }
.ws-suffix { flex: 0 0 auto; font-style: normal; font-size: 13px; color: var(--ws-muted); }
.ws-types { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-type { cursor: pointer; }
.ws-type input { position: absolute; opacity: 0; pointer-events: none; }
.ws-type span { display: inline-block; padding: 7px 13px; border: 1px solid var(--ws-line); border-radius: 999px; font-size: 13px; color: var(--ws-muted); }
.ws-type input:checked + span { color: var(--ws-ink); border-color: var(--ws-accent); background: rgba(241, 201, 219, .12); }
.ws-type input:focus-visible + span { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
.ws-blank { background: none; color: var(--ws-muted); border-bottom: 1px dashed var(--ws-muted); padding: 0 4px; font-weight: 400; }
.ws-preview p { font-size: 16px; line-height: 1.75; }
.ws-soft[data-kind="ok"] { color: #b9efc9; }
.ws-soft[data-kind="error"] { color: #ffb4b4; }
