:root{--navy:#182033;--navy-2:#253044;--teal:#0f766e;--teal-soft:#e9f6f3;--paper:#f5f7f9;--white:#fff;--line:#dce2e8;--muted:#667085;--danger:#b42318;--radius:8px}*{box-sizing:border-box}html{background:var(--paper);color:var(--navy);font-family:Arial,Helvetica,sans-serif}body{min-height:100vh;margin:0}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button{cursor:pointer}.app-shell{grid-template-columns:250px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--navy);color:#fff;flex-direction:column;gap:28px;height:100vh;padding:24px 18px;display:flex;position:sticky;top:0}.brand{align-items:center;gap:11px;display:flex}.brand span:last-child{letter-spacing:.02em;flex-direction:column;display:flex}.brand small{color:#aab4c3;margin-top:2px;font-size:11px}.logo-mark{width:38px;height:38px;color:var(--teal);background:#fff;border:1px solid #c9d3d9;border-radius:50%;place-items:center;font-size:22px;font-weight:800;display:grid}.sidebar nav{flex-direction:column;gap:6px;display:flex}.sidebar nav a,.nav-disabled{border-radius:var(--radius);color:#dbe2eb;align-items:center;gap:10px;min-height:42px;padding:10px 11px;display:flex}.sidebar nav a:hover{color:#fff;background:#253149}.nav-disabled{opacity:.5;cursor:not-allowed}.nav-disabled small{text-transform:uppercase;margin-left:auto;font-size:9px}.sidebar-user{grid-template-columns:36px 1fr;align-items:center;gap:9px;margin-top:auto;display:grid;overflow:hidden}.sidebar-user div{flex-direction:column;min-width:0;display:flex}.sidebar-user strong,.sidebar-user small{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sidebar-user strong{font-size:13px}.sidebar-user small{color:#aab4c3;font-size:11px}.avatar{background:var(--teal);border-radius:50%;place-items:center;width:36px;height:36px;font-weight:700;display:grid}.link-button{color:#dbe2eb;background:0 0;border:0;align-items:center;gap:8px;padding:4px;display:flex}.main-content{min-width:0;padding:42px clamp(24px,5vw,72px) 72px}.page-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:30px;display:flex}.page-header.compact{margin-top:16px}.page-header h1{letter-spacing:-.035em;max-width:850px;margin:8px 0;font-size:clamp(28px,4vw,42px);line-height:1.08}.page-header p{color:var(--muted);max-width:760px;margin:0;line-height:1.55}.eyebrow{color:var(--teal);text-transform:uppercase;letter-spacing:.08em;align-items:center;gap:6px;font-size:12px;font-weight:800;display:inline-flex}.button{border-radius:var(--radius);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 16px;font-weight:700;transition:all .15s;display:inline-flex}.button.primary{background:var(--teal);color:#fff}.button.primary:hover{background:#0b625c}.button.secondary{border-color:var(--line);color:var(--navy);background:#fff}.button:disabled{opacity:.5;cursor:not-allowed}.button.wide{width:100%}.stats-grid{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:38px;display:grid}.stats-grid.four{grid-template-columns:repeat(4,1fr)}.stats-grid article{border:1px solid var(--line);border-radius:var(--radius);background:#fff;align-items:center;gap:14px;padding:20px;display:flex}.stats-grid article>span{width:42px;height:42px;color:var(--teal);background:var(--teal-soft);border-radius:var(--radius);place-items:center;display:grid}.stats-grid div{flex-direction:column;display:flex}.stats-grid small{color:var(--muted)}.stats-grid strong{margin-top:3px;font-size:24px}.section-heading{justify-content:space-between;align-items:flex-end;margin:28px 0 15px;display:flex}.section-heading h2{margin:0 0 4px;font-size:21px}.section-heading p{color:var(--muted);margin:0;font-size:14px}.project-grid{grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:18px;display:grid}.project-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;transition:all .15s;overflow:hidden}.project-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px #18203312}.project-preview{color:#fff;background:linear-gradient(145deg,#182033,#0f766e);place-items:center;height:150px;display:grid;position:relative}.project-preview svg{opacity:.82;width:42px;height:42px}.project-preview span{background:#0007;border-radius:4px;padding:4px 7px;font-size:11px;position:absolute;bottom:9px;right:10px}.project-card-body{padding:16px}.project-card h3{margin:11px 0 6px;font-size:17px}.project-card p{color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:13px;line-height:1.4;display:-webkit-box;overflow:hidden}.project-card footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;margin-top:14px;padding-top:12px;font-size:11px;display:flex}.status{text-transform:uppercase;letter-spacing:.05em;color:#475467;background:#eef1f4;border-radius:999px;width:max-content;padding:5px 8px;font-size:10px;font-weight:800;display:inline-flex}.status-script_ready,.status-succeeded,.status-approved,.status-published{color:#067647;background:#e7f6ef}.status-running,.status-rendering,.status-script_generating{color:#175cd3;background:#e8f0fe}.status-failed,.status-dead_letter{color:#b42318;background:#feeceb}.status-review_required{color:#b54708;background:#fff4e5}.empty-state,.empty-inline{border-radius:var(--radius);text-align:center;background:#fff;border:1px dashed #bdc7d1;flex-direction:column;align-items:center;gap:9px;padding:54px 24px;display:flex}.empty-state svg,.empty-inline svg{color:var(--teal);width:36px;height:36px}.empty-state h2,.empty-inline h3{margin:4px 0 0}.empty-state p,.empty-inline p{color:var(--muted);margin:0 0 10px}.content-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:clamp(20px,3vw,34px)}.back-link{color:var(--muted);align-items:center;gap:3px;font-size:13px;display:inline-flex}.back-link:hover{color:var(--teal)}.studio-form{flex-direction:column;gap:22px;display:flex}.field-grid{grid-template-columns:repeat(2,1fr);gap:18px;display:grid}.field-grid.three{grid-template-columns:repeat(3,1fr)}.studio-form label:not(.check-row){flex-direction:column;gap:7px;display:flex}.studio-form label>span{font-size:13px;font-weight:700}.studio-form input,.studio-form select,.studio-form textarea{border-radius:var(--radius);color:var(--navy);background:#fff;border:1px solid #bdc7d1;padding:11px 12px}.studio-form input:focus,.studio-form select:focus,.studio-form textarea:focus{border-color:var(--teal);outline:3px solid #0f766e22}.studio-form small{color:var(--muted);line-height:1.4}.check-row{align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;display:flex}.check-row input{accent-color:var(--teal);margin-top:3px}.form-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;padding-top:20px;display:flex}.form-footer p{color:var(--muted);font-size:13px}.alert{border-radius:var(--radius);padding:12px 14px;font-size:13px}.alert.error{color:var(--danger);background:#fff1f0;border:1px solid #fecdca}.error-text{color:var(--danger)!important}.notice{color:#067647;font-size:13px}.action-row{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:9px;max-width:570px;display:flex}.editor-grid{grid-template-columns:minmax(270px,420px) minmax(0,1fr);align-items:start;gap:28px;display:grid}.preview-panel{position:sticky;top:24px}.video-stage{color:#d0d5dd;aspect-ratio:9/16;text-align:center;border-radius:var(--radius);background:#101828;flex-direction:column;justify-content:center;align-items:center;gap:8px;width:100%;max-height:590px;margin-bottom:14px;display:flex;overflow:hidden}.video-stage.ratio-16-9{aspect-ratio:16/9}.video-stage.ratio-1-1{aspect-ratio:1}.video-stage.ratio-4-5{aspect-ratio:4/5}.video-stage video{object-fit:contain;width:100%;height:100%}.video-stage svg{width:44px;height:44px}.video-stage small{color:#98a2b3}.project-meta{flex-wrap:wrap;gap:10px;margin-top:16px;display:flex}.project-meta span{color:var(--muted);align-items:center;gap:5px;font-size:11px;display:flex}.project-meta svg{width:14px;height:14px}.scene-list{flex-direction:column;gap:12px;display:flex}.scene-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;grid-template-columns:36px 1fr;gap:13px;padding:17px;display:grid}.scene-number{background:var(--teal-soft);width:32px;height:32px;color:var(--teal);border-radius:50%;place-items:center;font-weight:800;display:grid}.scene-heading{justify-content:space-between;gap:12px;display:flex}.scene-heading h3{margin:4px 0 12px}.scene-heading small{color:var(--muted);white-space:nowrap}.scene-card strong{text-transform:uppercase;color:var(--muted);letter-spacing:.05em;font-size:11px}.scene-card p{margin:4px 0 13px;font-size:14px;line-height:1.5}.scene-card summary{color:var(--teal);cursor:pointer;font-size:13px}.scene-editor{flex-direction:column;gap:12px;display:flex}.editor-toolbar{color:#067647;justify-content:space-between;align-items:center;gap:12px;min-height:42px;font-size:13px;display:flex}.scene-card.editable label{flex-direction:column;gap:5px;margin-top:11px;display:flex}.scene-card.editable label>span{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;font-size:10px;font-weight:800}.scene-card.editable input,.scene-card.editable textarea{border:1px solid var(--line);resize:vertical;width:100%;color:var(--navy);border-radius:6px;padding:9px}.scene-heading>input{font-size:16px;font-weight:800}.scene-tools{gap:4px;display:flex}.scene-tools button,.mini-button{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:6px;align-items:center;gap:4px;padding:5px 7px;font-size:10px;display:inline-flex}.scene-tools svg,.mini-button svg{width:14px;height:14px}.scene-tools button:disabled{opacity:.35}.scene-options{grid-template-columns:120px 1fr;align-items:end;gap:12px;display:grid}.upload-button{min-height:38px;color:var(--teal);cursor:pointer;border:1px dashed #98a2b3;border-radius:6px;justify-content:center;align-items:center;padding:8px;overflow:hidden;flex-direction:row!important;display:flex!important}.upload-button input{display:none}.review-actions{border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:var(--radius);background:#fff;margin-top:28px;padding:20px}.review-actions h3{margin:0 0 5px}.review-actions p{color:var(--muted);font-size:13px}.review-actions>div{flex-wrap:wrap;gap:8px;display:flex}.button.danger{color:var(--danger);background:#fff;border-color:#fda29b}.review-actions small{color:var(--teal);margin-top:9px;display:block}.job-status{align-items:center;gap:6px;display:flex}.audio-uploader{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.audio-uploader h3{margin:0 0 4px;font-size:15px}.audio-uploader p{color:var(--muted);font-size:11px;line-height:1.4}.audio-uploader>div{gap:7px;display:grid}.audio-uploader label{color:var(--teal);cursor:pointer;border:1px dashed #98a2b3;border-radius:6px;align-items:center;gap:7px;padding:8px;font-size:11px;display:flex;overflow:hidden}.audio-uploader label svg{width:15px}.audio-uploader input{display:none}.audio-uploader small{color:var(--teal);margin-top:7px;display:block}.quality-report{border:1px solid var(--line);border-radius:var(--radius);background:#fff;margin-top:14px;padding:18px 20px}.quality-report>div{justify-content:space-between;align-items:center;gap:12px;display:flex}.quality-report h3{margin:0}.quality-report p,.quality-report li{color:var(--muted);font-size:12px;line-height:1.5}.quality-report ul{margin-bottom:0;padding-left:20px}.subtitle-download{margin-top:8px}.media-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;display:grid}.media-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;grid-template-columns:50px 1fr;gap:13px;padding:16px;display:grid}.media-icon{background:var(--teal-soft);width:48px;height:48px;color:var(--teal);border-radius:var(--radius);place-items:center;display:grid}.media-card h3{overflow-wrap:anywhere;margin:9px 0 3px;font-size:14px}.media-card p,.media-card small{color:var(--muted);font-size:11px}.media-card small{margin-bottom:12px;line-height:1.5;display:block}.dual-forms,.library-columns,.social-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.compact-form{border:1px solid var(--line);border-radius:var(--radius);background:#fff;flex-direction:column;gap:12px;padding:20px;display:flex}.compact-form h3{margin:0 0 4px}.compact-form input,.compact-form select,.compact-form textarea{border-radius:var(--radius);color:var(--navy);border:1px solid #bdc7d1;padding:10px}.colour-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.colour-row label{justify-content:space-between;align-items:center;font-size:12px;display:flex}.colour-row input{width:50px;padding:2px}.library-columns{margin-top:30px}.list-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;margin-bottom:10px;padding:15px}.list-card h3{margin:9px 0 4px}.list-card p,.muted{color:var(--muted);line-height:1.5}.timeline-list{flex-direction:column;gap:9px;display:flex}.timeline-list article{border:1px solid var(--line);border-radius:var(--radius);background:#fff;grid-template-columns:190px 1fr;gap:18px;padding:16px;display:grid}.timeline-list time{color:var(--teal);font-weight:700}.timeline-list h3{margin:8px 0 3px}.timeline-list p{color:var(--muted);margin:0}.gate-banner{border-radius:var(--radius);color:#93370d;background:#fff4e5;border:1px solid #fedf89;margin-bottom:18px;padding:16px 18px}.gate-banner p{margin:5px 0 0;font-size:13px;line-height:1.5}.social-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.social-grid>article>svg{width:34px;height:34px;color:var(--teal)}.social-grid h2{margin-bottom:4px}.social-grid p{color:var(--muted)}.account-row{border-top:1px solid var(--line);flex-direction:column;padding:9px 0;display:flex}.account-row small{color:var(--muted)}.automation-form{margin-bottom:26px}.jobs-section{margin-top:38px}.job-list{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;display:grid}.job-list article{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:15px}.job-list header{justify-content:space-between;gap:10px;display:flex}.job-list header div{flex-direction:column;gap:3px;display:flex}.job-list header small{color:var(--muted);font-size:10px}.progress{background:#e7ebef;border-radius:9px;height:6px;margin:13px 0;overflow:hidden}.progress span{background:var(--teal);height:100%;display:block}.job-steps{flex-wrap:wrap;gap:5px;display:flex}.job-steps span{color:var(--muted);background:#eef1f4;border-radius:4px;padding:4px 6px;font-size:9px}.job-steps .succeeded{color:#067647;background:#e7f6ef}.job-steps .running{color:#175cd3;background:#e8f0fe}.login-page{grid-template-columns:1.15fr .85fr;min-height:100vh;display:grid}.login-panel{color:#fff;background:linear-gradient(145deg,#182033 15%,#243550 68%,#0f766e);flex-direction:column;padding:clamp(30px,6vw,90px);display:flex}.brand-dark small{color:#c4cbd5}.login-copy{max-width:680px;margin:auto 0}.login-copy .eyebrow{color:#71d6cc}.login-copy h1{letter-spacing:-.055em;margin:18px 0 25px;font-size:clamp(42px,6vw,74px);line-height:.98}.login-copy p{color:#ced5df;max-width:590px;font-size:18px;line-height:1.6}.login-features{color:#d9e2ea;gap:25px;font-size:13px;display:flex}.login-features span{align-items:center;gap:7px;display:flex}.login-features svg{width:18px}.login-card-wrap{background:#fff;place-items:center;padding:30px;display:grid}.login-card{flex-direction:column;gap:14px;width:100%;max-width:400px;display:flex}.login-card h2{letter-spacing:-.03em;margin:0;font-size:30px}.login-card p{color:var(--muted);margin:0;line-height:1.55}.login-card>small{text-align:center;color:var(--muted);line-height:1.4}.lock-icon{border-radius:var(--radius);background:var(--teal-soft);width:48px;height:48px;color:var(--teal);place-items:center;display:grid}.spin{animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width:1100px){.stats-grid.four{grid-template-columns:repeat(2,1fr)}}@media (max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{flex-flow:wrap;align-items:center;height:auto;padding:14px 18px;position:static}.sidebar nav{flex-direction:row;order:3;width:100%;overflow:auto}.sidebar-user{margin:0 0 0 auto}.sidebar form{display:none}.editor-grid,.social-grid,.dual-forms,.library-columns{grid-template-columns:1fr}.preview-panel{position:static}.login-page{grid-template-columns:1fr}.login-panel{min-height:48vh}.login-features{display:none}}@media (max-width:640px){.main-content{padding:26px 16px 50px}.page-header{flex-direction:column}.stats-grid,.field-grid,.field-grid.three{grid-template-columns:1fr}.stats-grid{gap:9px}.form-footer{flex-direction:column;align-items:stretch}.sidebar-user,.sidebar nav .nav-disabled{display:none}.login-panel{padding:28px 22px}.login-copy h1{font-size:42px}.login-card-wrap{padding:38px 22px}.action-row{justify-content:flex-start}.scene-heading{flex-direction:column}.timeline-list article{grid-template-columns:1fr;gap:8px}.colour-row{grid-template-columns:1fr}}img[src*=rimays-logo\.png]{clip-path:inset(0 0 1px);box-shadow:none!important;object-fit:contain!important;object-position:center top!important;background:0 0!important;border-radius:0!important}.brand-mark{clip-path:inset(0 0 1px);box-shadow:none!important;background-position:top!important;background-repeat:no-repeat!important;background-size:contain!important;border-radius:0!important}
