.riley-input,.riley-textarea{width:100%;border:1px solid rgba(148,163,184,.3);background:hsla(0,0%,100%,.92);color:var(--text-primary,#0f172a);font:inherit;font-size:.92rem;padding:10px 12px;border-radius:12px;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;box-sizing:border-box}.riley-textarea{resize:vertical;min-height:84px;line-height:1.55}.riley-input:focus,.riley-textarea:focus{outline:none;border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.18);background:#fff}.riley-input::placeholder,.riley-textarea::placeholder{color:#94a3b8}.studio.theme-dark .riley-input,.studio.theme-dark .riley-textarea{background:rgba(15,16,22,.72);color:#e2e8f0;border-color:rgba(148,163,184,.22)}.riley-button-ghost{background:transparent;border:1px solid rgba(148,163,184,.32);color:var(--text-secondary,#475569);padding:8px 14px;border-radius:10px;font:inherit;font-size:.86rem;cursor:pointer;transition:background .14s ease,border-color .14s ease}.riley-button-ghost:hover{background:rgba(168,85,247,.06);border-color:rgba(168,85,247,.42)}.riley-form{display:grid;grid-gap:22px;gap:22px;padding:4px 0}.riley-form-progress{height:4px;border-radius:999px;background:rgba(148,163,184,.18);overflow:hidden}.riley-form-progress-bar{height:100%;background:linear-gradient(90deg,#a855f7,#ec4899);border-radius:inherit;transition:width .28s ease}.riley-form-progress-label{display:flex;align-items:center;gap:10px;font-size:11.5px;color:var(--text-secondary,#64748b);text-transform:uppercase;font-weight:700;letter-spacing:.16em;margin-top:-10px}.riley-form-saved-pill{display:inline-flex;align-items:center;font-size:10px;font-weight:800;letter-spacing:.18em;padding:2px 8px;border-radius:999px;background:rgba(34,197,94,.14);color:#15803d;border:1px solid rgba(34,197,94,.32);text-transform:uppercase}.riley-row{display:grid;grid-gap:6px;gap:6px}.riley-row-label{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--text-secondary,#64748b)}.riley-row-required{color:#ec4899;margin-left:4px}.riley-row-hint{margin:0 0 4px;font-size:12.5px;line-height:1.5;color:var(--text-secondary,#64748b)}.riley-row-control{display:grid;grid-gap:8px;gap:8px}.riley-chip-row{display:flex;flex-wrap:wrap;gap:8px}.riley-chip{padding:7px 12px;border-radius:999px;border:1px solid rgba(148,163,184,.32);background:hsla(0,0%,100%,.86);color:var(--text-primary,#0f172a);font-size:12.5px;font-weight:600;cursor:pointer;transition:border-color .14s ease,background .14s ease,color .14s ease,transform .12s ease}.riley-chip:hover{border-color:#a855f7;transform:translateY(-1px)}.riley-chip.active{background:linear-gradient(135deg,rgba(168,85,247,.14),rgba(236,72,153,.14));border-color:rgba(168,85,247,.55);color:#6b21a8;box-shadow:0 4px 12px -8px rgba(168,85,247,.4)}.studio.theme-dark .riley-chip{background:rgba(15,16,22,.62);color:#e2e8f0}.studio.theme-dark .riley-chip.active{color:#f5d0fe}.riley-color-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));grid-gap:12px;gap:12px}.riley-color-field{display:grid;grid-gap:6px;gap:6px}.riley-color-field-label{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--text-secondary,#94a3b8)}.riley-color-field-input{display:flex;align-items:center;gap:8px}.riley-color-swatch{width:36px;height:36px;border-radius:10px;border:1px solid rgba(148,163,184,.3);flex-shrink:0;box-shadow:inset 0 1px 0 hsla(0,0%,100%,.4)}.riley-list-editor{display:grid;grid-gap:8px;gap:8px}.riley-list-editor-row{display:grid;grid-template-columns:1fr auto;grid-gap:8px;gap:8px}.riley-list-add{padding:0 14px;border-radius:10px;border:1px solid rgba(168,85,247,.45);background:linear-gradient(135deg,rgba(168,85,247,.1),rgba(236,72,153,.1));color:#6b21a8;font:inherit;font-weight:700;font-size:13px;cursor:pointer;transition:background .14s ease,transform .12s ease}.riley-list-add:disabled{opacity:.5;cursor:not-allowed}.riley-list-add:not(:disabled):hover{transform:translateY(-1px)}.riley-list{list-style:none;margin:0;padding:0;display:grid;grid-gap:6px;gap:6px}.riley-list-item{display:grid;grid-template-columns:1fr auto;align-items:center;grid-gap:10px;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(168,85,247,.06);border:1px solid rgba(168,85,247,.18);font-size:13px;color:var(--text-primary,#0f172a)}.riley-list-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.riley-list-remove{width:22px;height:22px;border-radius:50%;border:none;background:rgba(15,23,42,.06);color:var(--text-secondary,#64748b);cursor:pointer;font-size:15px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.riley-list-remove:hover{background:rgba(236,72,153,.15);color:#be185d}.riley-form-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:8px}.riley-form-footer-hint{font-size:12px;color:var(--text-secondary,#64748b)}.riley-chat{display:flex;flex-direction:column;min-height:480px;max-height:720px}.riley-chat-scroll{flex:1 1;overflow-y:auto;padding:16px 4px 12px;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.32) transparent}.riley-chat-scroll::-webkit-scrollbar{width:6px}.riley-chat-scroll::-webkit-scrollbar-thumb{background:rgba(148,163,184,.3);border-radius:999px}.riley-chat-empty{text-align:center;padding:60px 20px;color:var(--text-secondary,#64748b)}.riley-chat-empty-glyph{display:inline-flex;width:48px;height:48px;border-radius:50%;align-items:center;justify-content:center;font-size:24px;background:linear-gradient(135deg,rgba(168,85,247,.14),rgba(236,72,153,.14));color:#a855f7;margin-bottom:14px}.riley-chat-empty h4{margin:0 0 6px;font-size:16px;color:var(--text-primary,#0f172a);font-weight:700}.riley-chat-empty p{margin:0;max-width:42ch;margin-inline:auto;font-size:13.5px;line-height:1.6}.riley-chat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.riley-chat-bubble{display:flex;gap:10px;max-width:92%}.riley-chat-bubble--user{align-self:flex-end;flex-direction:row-reverse}.riley-chat-bubble--riley{align-self:flex-start}.riley-chat-bubble--system{align-self:center;max-width:80%;font-size:12px;color:var(--text-secondary,#64748b);font-style:italic}.riley-chat-avatar{width:32px;height:32px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:13px;flex-shrink:0;box-shadow:0 4px 12px -6px rgba(168,85,247,.55)}.riley-chat-bubble-body{padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.55;background:hsla(0,0%,100%,.96);border:1px solid rgba(148,163,184,.22);color:var(--text-primary,#0f172a)}.riley-chat-bubble--user .riley-chat-bubble-body{background:linear-gradient(135deg,#a855f7,#ec4899);color:#fff;border-color:transparent;border-bottom-right-radius:6px}.riley-chat-bubble--riley .riley-chat-bubble-body{border-bottom-left-radius:6px}.studio.theme-dark .riley-chat-bubble--riley .riley-chat-bubble-body{background:rgba(20,22,30,.85);color:#e2e8f0;border-color:rgba(148,163,184,.18)}.riley-chat-bubble-text{white-space:pre-wrap;word-break:break-word}.riley-chat-foundry-pending{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#b45309;padding:4px 10px;border-radius:999px;background:rgba(245,158,11,.14);border:1px solid rgba(245,158,11,.3)}.riley-chat-foundry-dot{width:6px;height:6px;border-radius:50%;background:#f59e0b;animation:riley-pulse 1.6s ease-in-out infinite}@keyframes riley-pulse{0%,to{opacity:.4;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}.riley-chat-form{display:flex;gap:8px;padding:10px 4px 4px;border-top:1px solid rgba(148,163,184,.16);margin-top:8px}.riley-chat-input{flex:1 1;min-width:0;padding:12px 14px;border-radius:999px;border:1px solid rgba(148,163,184,.3);background:hsla(0,0%,100%,.96);font:inherit;font-size:14px;color:var(--text-primary,#0f172a)}.riley-chat-input:focus{outline:none;border-color:#a855f7;box-shadow:0 0 0 3px rgba(168,85,247,.18)}.riley-chat-send{width:44px;height:44px;border-radius:50%;border:none;color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 24px -10px rgba(236,72,153,.55);transition:transform .14s ease}.riley-chat-send:disabled{opacity:.5;cursor:not-allowed}.riley-chat-send:not(:disabled):hover{transform:translateY(-1px) rotate(-6deg)}.riley-chat-spinner{width:16px;height:16px;border-radius:50%;border:2px solid hsla(0,0%,100%,.35);border-top-color:#fff;animation:riley-spin .72s linear infinite}@keyframes riley-spin{to{transform:rotate(1turn)}}.riley-book-progress{display:inline-flex;padding:4px 12px;border-radius:999px;background:rgba(148,163,184,.12);font-size:11.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--text-secondary,#475569)}.riley-book-stage{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;padding:28px 16px 12px;min-height:540px;perspective:2400px}.riley-book-empty,.riley-book-loading{width:100%;text-align:center;font-size:14px;color:var(--text-secondary,#64748b);padding:60px 20px}.riley-book{display:flex;width:min(960px,100%);aspect-ratio:4/3;filter:drop-shadow(0 28px 50px rgba(15,23,42,.22))}.riley-book,.riley-book-spread{position:relative;transform-style:preserve-3d}.riley-book-spread{display:grid;grid-template-columns:1fr 1fr;width:100%;height:100%;border-radius:16px;overflow:hidden;background:#fff}.riley-book-spine{position:absolute;top:0;bottom:0;left:50%;width:2px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.18),transparent);z-index:2;pointer-events:none}.riley-book-page{position:relative;height:100%;background:radial-gradient(circle at 30% 0,rgba(168,85,247,.04),transparent 60%),linear-gradient(180deg,#fefefe,#f9f9fc);background-image:radial-gradient(circle at 1px 1px,rgba(15,23,42,.02) 1px,transparent 0),linear-gradient(180deg,#fefefe,#f9f9fc);background-size:4px 4px,100% 100%;padding:36px 38px 28px;display:flex;flex-direction:column;gap:16px;color:#1e1b29;overflow:hidden}.riley-book-page.left{border-right:1px solid rgba(15,23,42,.06)}.riley-book-page.right{border-left:1px solid rgba(15,23,42,.06)}.riley-book-page.empty{background:linear-gradient(180deg,#f4f4f7,#ececf0)}.riley-book-page.is-cover{align-items:center;justify-content:center;text-align:center}.riley-book-page.is-cover:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 0,hsla(0,0%,100%,.18),transparent 50%);pointer-events:none}.studio.theme-dark .riley-book-page{background:radial-gradient(circle at 30% 0,rgba(168,85,247,.16),transparent 60%),linear-gradient(180deg,#14141a,#0d0d12);color:#e2e8f0}.riley-book-page-head{display:grid;grid-gap:4px;gap:4px}.riley-book-page-kind{font-size:10px;letter-spacing:.28em;text-transform:uppercase;font-weight:800;color:rgba(168,85,247,.85)}.riley-book-page.is-cover .riley-book-page-kind{color:hsla(0,0%,100%,.7)}.riley-book-page-head h3{margin:0;font-size:28px;font-weight:800;letter-spacing:-.02em;line-height:1.05}.riley-book-page-head p{margin:4px 0 0;font-size:13.5px;color:rgba(30,27,41,.65);line-height:1.55}.riley-book-page.is-cover .riley-book-page-head p{color:hsla(0,0%,100%,.78)}.studio.theme-dark .riley-book-page-head p{color:rgba(226,232,240,.7)}.riley-book-page-body{flex:1 1;min-height:0;overflow:auto;scrollbar-width:thin}.riley-book-page-body::-webkit-scrollbar{width:4px}.riley-book-page-body::-webkit-scrollbar-thumb{background:rgba(168,85,247,.3);border-radius:999px}.riley-book-page-foot{display:flex;justify-content:flex-end;font-size:11px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:rgba(30,27,41,.42)}.riley-book-page.is-cover .riley-book-page-foot{color:hsla(0,0%,100%,.55)}.studio.theme-dark .riley-book-page-foot{color:rgba(226,232,240,.4)}.riley-book-cover{display:flex;flex-direction:column;align-items:center;gap:12px}.riley-book-cover-mark{font-size:48px;line-height:1;color:hsla(0,0%,100%,.9);text-shadow:0 4px 20px rgba(0,0,0,.2)}.riley-book-cover p{margin:0;color:hsla(0,0%,100%,.8);font-size:13px}.riley-book-steps{list-style:none;margin:0;padding:0;display:grid;grid-gap:16px;gap:16px;counter-reset:riley-step}.riley-book-steps li{display:grid;grid-template-columns:32px 1fr;grid-gap:12px;gap:12px;font-size:13.5px;counter-increment:riley-step}.riley-book-steps li:before{content:counter(riley-step,decimal-leading-zero);font-size:11px;font-weight:800;color:rgba(168,85,247,.7);letter-spacing:.1em;padding-top:2px}.riley-book-steps li strong{display:block;font-size:14px;font-weight:700;margin-bottom:2px}.riley-book-steps li span{color:rgba(30,27,41,.65);line-height:1.55}.studio.theme-dark .riley-book-steps li span{color:rgba(226,232,240,.6)}.riley-book-palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));grid-gap:10px;gap:10px}.riley-book-swatch{aspect-ratio:1/1.1;border-radius:12px;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;padding:10px;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.4);box-shadow:inset 0 1px 0 hsla(0,0%,100%,.2)}.riley-book-swatch span{font-size:11.5px;font-weight:700;letter-spacing:.06em}.riley-book-swatch small{font-size:10.5px;opacity:.8;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.riley-book-type{display:grid;grid-gap:14px;gap:14px}.riley-book-type-row{display:grid;grid-template-columns:80px 1fr;align-items:center;grid-gap:12px;gap:12px;padding-bottom:12px;border-bottom:1px dashed rgba(168,85,247,.2)}.riley-book-type-row:last-child{border-bottom:none}.riley-book-type-label{font-size:10.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:rgba(168,85,247,.7)}.riley-book-type-sample{font-size:22px;line-height:1.2}.riley-book-type-row small{grid-column:2;font-size:11px;color:rgba(30,27,41,.5);letter-spacing:.06em}.riley-book-voice .riley-book-voice-lede{font-size:16px;line-height:1.6;margin:0 0 14px}.riley-book-voice ul{list-style:none;margin:0;padding:0;display:grid;grid-gap:8px;gap:8px}.riley-book-voice li{position:relative;padding-left:18px;font-size:13px;color:rgba(30,27,41,.7)}.riley-book-voice li:before{content:"✦";position:absolute;left:0;color:rgba(168,85,247,.7)}.riley-book-components{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));grid-gap:10px;gap:10px}.riley-book-component{padding:12px;border-radius:12px;border:1px solid;background:rgba(168,85,247,.04);display:grid;grid-gap:4px;gap:4px}.riley-book-component strong{font-size:12.5px;font-weight:700}.riley-book-component span{font-size:11.5px;color:rgba(30,27,41,.6);line-height:1.45}.riley-book-pending{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:rgba(30,27,41,.42);text-align:center}.riley-book-pending-glyph{font-size:32px;color:rgba(168,85,247,.4);animation:riley-pulse 2.8s ease-in-out infinite}.riley-book-pending p{margin:0;max-width:28ch;font-size:13px;line-height:1.55}.riley-book-arrow{width:44px;height:44px;border-radius:50%;border:1px solid rgba(148,163,184,.28);background:hsla(0,0%,100%,.92);color:var(--text-primary,#0f172a);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:background .14s ease,transform .14s ease,border-color .14s ease,opacity .14s ease;box-shadow:0 8px 20px -12px rgba(15,23,42,.28)}.riley-book-arrow:hover:not(.disabled){border-color:#a855f7;background:linear-gradient(135deg,#a855f7,#ec4899);color:#fff;transform:scale(1.05)}.riley-book-arrow.disabled{opacity:.35;cursor:not-allowed}.studio.theme-dark .riley-book-arrow{background:rgba(20,22,30,.85);color:#e2e8f0;border-color:rgba(148,163,184,.18)}.riley-book-thumbs{display:flex;gap:6px;overflow-x:auto;padding:14px 4px 4px;margin-top:14px;border-top:1px solid rgba(148,163,184,.14);scrollbar-width:thin}.riley-book-thumb{flex-shrink:0;min-width:120px;padding:8px 12px;border-radius:10px;border:1px solid rgba(148,163,184,.22);background:hsla(0,0%,100%,.86);text-align:left;cursor:pointer;display:grid;grid-gap:2px;gap:2px;transition:border-color .14s ease,background .14s ease}.riley-book-thumb:hover{border-color:rgba(168,85,247,.45)}.riley-book-thumb.active,.riley-book-thumb.facing{background:linear-gradient(135deg,rgba(168,85,247,.12),rgba(236,72,153,.1));border-color:rgba(168,85,247,.55)}.riley-book-thumb-index{font-size:9.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:rgba(168,85,247,.8)}.riley-book-thumb-label{font-size:11.5px;font-weight:600;color:var(--text-primary,#0f172a);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.studio.theme-dark .riley-book-thumb{background:rgba(20,22,30,.7)}.studio.theme-dark .riley-book-thumb-label{color:#e2e8f0}@media (max-width:880px){.riley-book-stage{padding:20px 4px 8px;min-height:0}.riley-book{aspect-ratio:3/4.6}.riley-book-spread{grid-template-columns:1fr}.riley-book-page.right{display:none}.riley-book-page.left{border-right:none}.riley-book-arrow{width:40px;height:40px}.riley-book-page-head h3{font-size:22px}}.riley-project-create{display:grid;grid-gap:10px;gap:10px;padding:14px;margin-bottom:14px;border-radius:14px;background:linear-gradient(135deg,rgba(168,85,247,.06),rgba(236,72,153,.04));border:1px solid rgba(168,85,247,.22)}.riley-project-create-row{display:grid;grid-template-columns:1fr minmax(160px,.4fr);grid-gap:10px;gap:10px}.riley-project-create-actions{display:flex;gap:10px;align-items:center}.riley-projects-empty,.riley-projects-loading{text-align:center;padding:60px 20px;color:var(--text-secondary,#64748b)}.riley-projects-empty-glyph{display:inline-flex;width:56px;height:56px;border-radius:50%;align-items:center;justify-content:center;font-size:28px;background:linear-gradient(135deg,rgba(168,85,247,.14),rgba(236,72,153,.14));color:#a855f7;margin-bottom:14px}.riley-projects-empty h4{margin:0 0 6px;font-size:16px;color:var(--text-primary,#0f172a);font-weight:700}.riley-projects-empty p{margin:0 0 16px;max-width:44ch;margin-inline:auto;font-size:13.5px;line-height:1.6}.riley-projects-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));grid-gap:14px;gap:14px}.riley-project-card{display:flex;flex-direction:column;background:hsla(0,0%,100%,.92);border:1px solid rgba(148,163,184,.18);border-radius:16px;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.riley-project-card:hover{transform:translateY(-2px);border-color:rgba(168,85,247,.5);box-shadow:0 14px 32px -16px rgba(168,85,247,.3)}.riley-project-card-cover{height:100px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.riley-project-card-cover:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 100%,hsla(0,0%,100%,.2),transparent 60%),radial-gradient(circle at 20% 0,hsla(0,0%,100%,.1),transparent 60%);pointer-events:none}.riley-project-card-emoji{position:relative;font-size:32px;line-height:1;filter:drop-shadow(0 2px 6px rgba(0,0,0,.18))}.riley-project-card-body{padding:14px 16px 12px;display:grid;grid-gap:8px;gap:8px;flex:1 1}.riley-project-card-body header{display:grid;grid-gap:2px;gap:2px}.riley-project-card-kind{font-size:10px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:rgba(168,85,247,.78)}.riley-project-card-body h4{margin:0;font-size:15px;font-weight:700;letter-spacing:-.01em;color:var(--text-primary,#0f172a)}.riley-project-card-desc{margin:0;font-size:12.5px;line-height:1.55;color:var(--text-secondary,#64748b);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.riley-project-card-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px}.riley-project-status{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid;padding:5px 26px 5px 12px;border-radius:999px;font:inherit;font-size:11.5px;font-weight:700;letter-spacing:.04em;cursor:pointer}.riley-project-card-time{font-size:11px;color:var(--text-secondary,#94a3b8);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.studio.theme-dark .riley-project-card{background:rgba(20,22,30,.85);border-color:rgba(148,163,184,.18)}.studio.theme-dark .riley-project-card-body h4{color:#f5f5f7}