/* final polish */
.rail-label { font-size: 12px; }
.rail-bot { width: 40px; height: 40px; }
.slot { width: 92px; }
.slot-label { white-space: nowrap; }
.module-thumb { width: 34px; height: 40px; }
.module-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-preview .preview-body, .hub-preview .preview-body { justify-content: center; }
.preview-body { padding-top: 10px; }

/* home rhythm */
.home-stage { padding-top: 108px; padding-bottom: 48px; }
.home-title { font-size: 36px; }
.home-composer { margin-top: 54px; }
.tool-row { margin-top: 44px; }
.goal-section { margin-top: 62px; }
.goal-art { height: 196px; }
.goal-card { border-radius: 15px; }
.goal-meta { padding: 12px 14px 14px; }
.goal-title { font-size: 13px; }
.goal-desc { font-size: 11px; }

/* canvas: actions above node */
.canvas-area { padding-bottom: 96px; }
.node-actions { position: static; margin-bottom: 42px; }
.canvas-prompt { padding: 16px 18px 10px; }
.canvas-prompt textarea { min-height: 92px; }
.ct-item { font-size: 9.5px; }
.ct-item .icon { width: 18px; height: 18px; }
.canvas-name { font-size: 13px; }

/* asset search */
.asset-search { border: 1px solid #E9ECF1; border-radius: 8px; height: 34px; padding: 0 10px; background: #fff; }
.asset-search:focus-within { border-color: #C9D4E7; }

/* chat composer proportion */
.chat-composer { padding: 14px; border-radius: 18px; max-width: 900px; }
.cc-plus { width: 84px; height: 84px; border-radius: 14px; }
.cc-plus .icon { width: 24px; height: 24px; }
.cc-field textarea { min-height: 54px; font-size: 13px; }
.chat-disclaimer { font-size: 10px; }
.chat-hero { margin-top: 7vh; }
.chat-hero h1 { font-size: 28px; }

/* picker modal */
.picker-modal { width: min(1080px, 94vw); display: flex; flex-direction: column; max-height: 88vh; padding: 0; overflow: hidden; }
.picker-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 16px; }
.picker-up { width: 34px; height: 34px; border: 0; background: none; color: #2E333B; display: grid; place-items: center; padding: 0; margin-top: 2px; }
.picker-up .icon { width: 20px; height: 20px; }
.picker-copy h2 { font-size: 20px; font-weight: 600; letter-spacing: -.2px; }
.picker-copy p { font-size: 11.5px; color: #9AA0AA; margin-top: 4px; }
.picker-count { margin-left: auto; background: #F3F5F8; border-radius: 999px; padding: 7px 13px; font-size: 11px; color: #6E7480; white-space: nowrap; }
.picker-count b { color: #15171B; }
.picker-tabs { display: flex; gap: 26px; padding: 0 24px; border-bottom: 1px solid #F1F3F6; }
.picker-tabs button { border: 0; background: none; padding: 11px 0 12px; font-size: 12.5px; color: #6E7480; position: relative; }
.picker-tabs button.is-active { color: #15171B; font-weight: 500; }
.picker-tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #15171B; border-radius: 2px; }
.picker-filters { display: flex; gap: 10px; padding: 16px 24px 0; }
.picker-select { height: 38px; border: 1px solid #E9ECF1; border-radius: 9px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; background: #fff; color: #3F4550; min-width: 178px; }
.picker-select .icon { width: 14px; height: 14px; }
.picker-search { flex: 1; height: 38px; border: 1px solid #E9ECF1; border-radius: 9px; display: flex; align-items: center; gap: 7px; padding: 0 12px; color: #A9AEB8; background: #fff; }
.picker-search input { border: 0; outline: 0; width: 100%; font-size: 11.5px; background: transparent; }
.picker-sub { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px 10px; }
.picker-sub b { font-size: 12px; font-weight: 500; color: #3F4550; }
.picker-seg { display: flex; gap: 3px; background: #F4F5F7; padding: 3px; border-radius: 8px; }
.picker-seg button { border: 0; background: none; padding: 5px 11px; font-size: 10.5px; color: #6E7480; border-radius: 6px; }
.picker-seg button.is-active { background: #fff; color: #15171B; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.picker-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 0 24px 20px; overflow-y: auto; flex: 1; align-content: start; }
.pick-upload {
  aspect-ratio: 3 / 4; border: 1px dashed #DDE2E9; border-radius: 10px; background: #FAFBFC;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #A9AEB8;
}
.pick-upload:hover { border-color: #C3CCDA; background: #F7F9FB; }
.pu-icon { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #EDEFF3; display: grid; place-items: center; margin-bottom: 7px; color: #6E7480; }
.pu-icon .icon { width: 17px; height: 17px; }
.pick-upload b { font-size: 11.5px; font-weight: 500; color: #3F4550; }
.pick-upload small { font-size: 9.5px; color: #A9AEB8; }
.pick-upload em { font-style: normal; font-size: 10px; color: #6E7480; margin-top: 9px; padding-top: 8px; border-top: 1px solid #EDEFF3; width: 72%; text-align: center; }
.pick-item { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent; background: #F4F5F7; }
.pick-item img { width: 100%; height: 100%; object-fit: cover; }
.pick-item:hover { border-color: #C9D3E5; }
.pick-item.is-picked { border-color: #17181C; }
.pick-check { position: absolute; top: 8px; right: 8px; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(23, 24, 28, .3); color: transparent; display: grid; place-items: center; }
.pick-check .icon { width: 10px; height: 10px; }
.pick-item.is-picked .pick-check { background: #17181C; color: #fff; border-color: #17181C; }
.pick-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 9px 7px; background: linear-gradient(transparent, rgba(15, 16, 19, .62)); color: #fff; font-size: 9px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-top: 1px solid #F1F3F6; background: #fff; }
.picker-all { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #6E7480; }
.picker-actions { display: flex; gap: 9px; }
.picker-actions .primary-btn { height: 38px; }
.picker-actions .ghost-btn { height: 38px; }

@media (max-height: 820px) {
  .home-stage { padding-top: 56px; }
  .home-title { font-size: 30px; }
  .home-composer { margin-top: 30px; }
  .tool-row { margin-top: 26px; }
  .goal-section { margin-top: 34px; }
  .goal-art { height: 160px; }
}
