/* A quiet, composer-first entry point for the existing Machine workflows. */
body.machine-home{background:#faf9f6}
body.machine-home main{max-width:960px;padding:30px 32px 64px;min-height:calc(100svh - 150px)}
.machine-welcome{text-align:center;padding:clamp(20px,7vh,72px) 0 22px}
.machine-welcome>img{display:block;margin:0 auto 18px;border-radius:13px}
.machine-welcome .eyebrow{margin:0 0 12px}
body.machine-home .machine-welcome h1{font-size:clamp(26px,3vw,38px);letter-spacing:-1.2px;line-height:1.2;margin:0 0 12px}
.machine-welcome>p:last-child{font-size:15px;color:var(--muted);margin:0}
body.machine-home .machine-modes{justify-content:center;margin:4px 0 22px;gap:6px;padding:4px;overflow:visible;flex-wrap:wrap}
body.machine-home .machine-modes button{min-height:40px;padding:9px 15px;font-size:13px;border-radius:999px}
body.machine-home .machine-modes button[aria-selected=true]{background:#fff0df;border:1px solid #efd2b6;color:#9d480e}
body.machine-home .workspace-panel{padding:0;background:transparent;border:0;box-shadow:none}
.chat-composer{background:#fff;border:1px solid #dedbd5;border-radius:26px;padding:8px;box-shadow:0 6px 22px #252a3408}
.chat-composer:focus-within{border-color:#d39361;box-shadow:0 0 0 3px #e8772010}
body.machine-home .chat-composer>textarea{display:block;min-height:134px;max-height:360px;margin:0;padding:17px 19px;resize:vertical;background:transparent;border:0;border-radius:18px;font-size:16px;line-height:1.7;box-shadow:none;outline:none}
.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:6px}
.composer-tools,.composer-submit{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
body.machine-home .composer-tools button{background:#fff;border:1px solid #e5e1dc;color:#5c6068;padding:9px 12px;font-size:12px;min-height:40px;border-radius:999px}
body.machine-home .composer-toolbar>button,body.machine-home #review-task{min-height:42px;padding:10px 17px;border-radius:999px;font-size:13px;background:#e87720;color:#20170f;border:1px solid #de741f}
.composer-price{font-size:11px;color:#757983;display:grid;gap:1px}
.composer-price strong{font-size:12px;color:#414751;max-width:130px;overflow-wrap:anywhere}
.composer-note{text-align:center;font-size:11px;color:#7a7d83;margin:12px 0 16px}
.task-suggestions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:0 0 22px}
body.machine-home .task-suggestions button{padding:9px 13px;font-size:12px;border-radius:999px;min-height:40px;background:transparent;border:1px solid #e4e0d9;color:#626670}
body.machine-home .task-settings{margin:18px 0;padding:15px 18px;border:1px solid #e5e1db;background:#fff;border-radius:15px}
.task-settings>summary{font-size:13px;font-weight:600;color:#606571}
.task-settings>summary>span{float:right;font-size:11px;font-weight:400;margin-left:10px}
.task-settings[open]>summary{margin-bottom:22px}
.task-settings #budget{max-width:200px}
.machine-account-summary{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-size:12px;color:#747982;margin-bottom:20px}
.machine-account-summary strong{color:#303640;margin-left:5px}
.machine-access{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:14px 0}
.machine-access .notice{font-size:12px;margin:0;min-height:0}
.machine-access .notice:empty{display:none}
.machine-access #signin{font-size:12px;min-height:40px;border-radius:999px}
body.machine-home #task-reference,body.machine-home #monid-reference{background:#fff;border:1px solid #e5e1db;margin:18px 0;border-radius:15px}
#task-reference:not([open]),#monid-reference:not([open]){display:none}
body.machine-home #monid-tools{background:transparent;scroll-margin-top:130px}
body.machine-home #monid-tools .creative-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:18px 0 10px}
body.machine-home #monid-tools .creative-tool{font-size:12px;min-height:38px;padding:8px 12px;border-radius:999px;background:transparent;border:1px solid #e4e0d9}
body.machine-home #monid-tools .creative-tool.active{outline:none;background:#fff0df;border-color:#e3aa7c;color:#9d480e}
#creative-hint{text-align:center;font-size:11px;margin:12px auto 20px;max-width:650px}
body.machine-home #monid-state{padding:6px 9px;font-size:10px}
body.machine-home #monid-speech-label{display:block;margin:0 18px 12px;font-size:12px}
body.machine-home #monid-speech-label textarea{min-height:90px;font-size:14px}
body.machine-home #job-view{padding-top:30px;margin-top:30px}
body.machine-home #job-title{font-size:17px;font-weight:500;line-height:1.7;letter-spacing:0;white-space:pre-wrap;overflow-wrap:anywhere;padding:18px 22px;background:#f0ece5;border-radius:22px;max-width:100%}
body.machine-home #job-status{font-size:11px}
.job-step-details{padding:12px 16px;border-color:#e5e1db}
body.machine-home #job-summary{background:#fff;border-color:#e3ddd5;box-shadow:none}
body.machine-home .delivery-heading{font-size:14px;margin-top:26px}
body.machine-home .output>summary{font-weight:650;font-size:14px;color:#4f5864}
body.machine-home .output pre{font-size:14px;line-height:1.8}
body.machine-home .control-room{margin:28px 0 18px}
body.machine-home .control-room:not([open]){background:transparent;border-color:#e5e1db;box-shadow:none;border-radius:15px}
body.machine-home .control-room:not([open]) .deck-top{padding:15px 18px;border-bottom:0}
body.machine-home .control-room:not([open]) .deck-top h2{font-size:13px;color:#606571}
body.machine-home .control-room:not([open]) .deck-toggle-hint,body.machine-home .control-room:not([open]) .deck-mode{display:none}
.machine-help{border-color:#e5e1db;border-radius:15px;background:transparent;font-size:12px}
body.machine-home footer{font-size:11px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:600px){
 body.machine-home main{padding:14px 16px 38px}
 .machine-welcome{padding:25px 0 18px}
 .machine-welcome>img{width:40px;height:40px;margin-bottom:14px}
 .machine-welcome>p:last-child{font-size:13px}
 body.machine-home .machine-modes{gap:3px;margin-bottom:16px}
 body.machine-home .machine-modes button{font-size:11px;padding:8px 11px;min-height:40px}
 .chat-composer{border-radius:22px;padding:5px}
 body.machine-home .chat-composer>textarea{padding:13px 14px;min-height:125px}
 .composer-toolbar{gap:12px;padding:5px}
 .composer-submit{justify-content:flex-end;margin-left:auto}
 .composer-tools{gap:5px}
 body.machine-home .composer-tools button{padding:8px 10px;font-size:11px}
 body.machine-home #review-task,body.machine-home #monid-discover{font-size:12px}
 .task-suggestions{gap:6px}
 body.machine-home .task-suggestions button{font-size:11px;padding:8px 10px}
 body.machine-home #monid-tools .creative-tool{font-size:11px;padding:8px 10px}
}

/* Account-backed conversation and daily briefings share the Machine workspace. */
.machine-messages:empty{display:none}
.machine-messages{max-height:55svh;overflow:auto;margin:0 0 24px;scroll-behavior:smooth}
.machine-messages .message{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;margin:14px 0;padding:18px 20px;border-radius:18px;background:#fff;border:1px solid #e5e1db;font-size:14px}
.machine-messages .message.user{background:#f0ece5;margin-left:10%;border-color:transparent}
.machine-messages .message b{display:block;font-size:11px;color:#8c481b;margin-bottom:8px}
.machine-messages .message span{display:block}
#chat .task-settings small{display:block;margin:12px 0}
#chat-options:not([open]),#chat-notes:not([open]){display:none}
#chat-options .inline{flex-wrap:wrap}
#chat-handoff{font-size:12px;overflow-wrap:anywhere}
.memory-template-preview,.away-result-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}
.memory-template-preview{font-size:13px;padding:12px;background:#faf9f6;border-radius:10px}
#schedules>h2{font-size:24px;letter-spacing:-.5px}
#schedules>.eyebrow{font-size:11px}
.away-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.away-fields>*{min-width:0}
#away-jobs article{padding:16px 0;border-bottom:1px solid #e5e1db}
#away-jobs small{display:block;margin:6px 0}
#away-sources a{display:block;overflow-wrap:anywhere}
body #away-confirm{max-width:650px;width:calc(100% - 32px);box-sizing:border-box;max-height:calc(100dvh - 48px);margin:auto;overflow-y:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
#away-confirm-title{margin-top:0;outline:none}
#away-quote-details>small{display:block;margin:6px 0;line-height:1.5}
#away-confirm .inline{display:flex;flex-wrap:wrap;gap:12px}
@media(max-width:600px){.away-fields{grid-template-columns:1fr}.machine-messages .message{padding:14px 16px}.machine-messages .message.user{margin-left:5%}}
@media(prefers-reduced-motion:reduce){.machine-messages{scroll-behavior:auto}}

.monid-video-settings{margin:0 18px 12px;padding:12px 14px;background:#faf9f6;border:1px solid #e5e1db;border-radius:14px}
body.machine-home .monid-video-settings label{font-size:12px}
.monid-video-settings select,.monid-video-settings input{max-width:320px}
body.machine-home #monid-video-hint{font-size:11px;line-height:1.6;margin:8px 0 0}
/* Music video: one optional workspace, separate from the general composer. */
.music-video-nav{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.5rem}.music-video-nav [aria-pressed="true"]{border-color:#c45b12;background:#fff1e2;color:#9b3f00}.music-video-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}.music-video-grid>*{min-width:0}#music-video-panel textarea,#music-video-panel select,#music-video-panel input:not([type="checkbox"]){box-sizing:border-box;width:100%}#music-video-panel label{display:block;margin:.75rem 0}#music-video-panel details{margin:1rem 0}#music-video-panel audio,#music-video-panel video{width:100%;max-width:100%}#music-video-panel img{display:block;max-width:100%;max-height:240px;object-fit:contain;margin:.75rem auto}#music-video-panel pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}#music-video-panel .music-confirm{display:flex;align-items:start;gap:.6rem}#music-video-panel .music-confirm input{margin-top:.3rem}#music-video-result>a{display:inline-block;padding:.8rem 1.2rem;margin-top:.7rem;background:#bd500b;color:white;border-radius:12px}#music-video-history{display:grid;gap:.5rem;margin:1rem 0}#music-video-job-id{overflow-wrap:anywhere}#music-video-panel .monid-workflow{margin:1.2rem 0}@media(max-width:620px){.music-video-grid{grid-template-columns:1fr}.music-video-nav{display:grid;grid-template-columns:1fr 1fr}}

.monid-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:20px 0}.monid-history-card,.monid-history-detail{border:1px solid var(--border,#e5ddd5);border-radius:18px;padding:20px;background:var(--panel,#fff);min-width:0}.monid-history-card p{margin:10px 0}.monid-history-title{width:100%;text-align:left;overflow-wrap:anywhere;white-space:normal}.monid-history-card small{display:block;overflow-wrap:anywhere}.monid-history-detail{margin:20px 0}.monid-history-detail img,.monid-history-detail video{max-width:100%;max-height:600px;object-fit:contain}.monid-history-detail audio{max-width:100%}.monid-history-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:400px;overflow:auto}.monid-history-detail .generated-media{margin:18px 0}.monid-history-detail .generated-media small{display:block}.monid-history-detail .inline{margin-top:20px;flex-wrap:wrap}.monid-history-detail .media-download{display:inline-block;margin:8px 8px 8px 0}.music-video-nav{flex-wrap:wrap}

.media-download-control{display:inline-flex;flex-direction:column;align-items:flex-start;gap:6px;max-width:100%;margin:10px 12px 10px 0;vertical-align:top}.media-download-control .media-download{margin:0;white-space:normal;overflow-wrap:anywhere}.media-download-status{display:block;max-width:42rem;overflow-wrap:anywhere;line-height:1.5}.media-download-status:empty{display:none}.media-download[aria-busy="true"]{opacity:.7;cursor:progress}

.composer-mode-label{display:flex!important;align-items:center;gap:8px;font-size:12px;margin:0!important}.composer-mode-label select{width:auto;margin:0;padding:9px 12px;min-height:44px;background:#fff;border:1px solid #e5ddd5;border-radius:12px;color:inherit;font:inherit}.composer-intent{margin:12px 0 0;font-size:13px;color:#7c4c27}.composer-intent[data-kind=invalid]{color:#b42318}.auto-team-choice{margin:22px 0}.auto-team-choice>label{max-width:360px}.auto-team-choice .inline{align-items:flex-end;flex-wrap:wrap}.auto-team-choice .inline>label{flex:1;min-width:150px}.auto-team-choice input,.auto-team-choice select{width:100%}.studio-media main{max-width:1200px;margin:0 auto;padding:28px 32px 80px}.studio-tool-nav{display:flex;gap:20px;flex-wrap:wrap;margin-bottom:24px;font-size:14px}.studio-media .panel{min-width:0}.studio-media #music-video-panel{margin-top:0}.studio-media .music-video-grid{min-width:0}.studio-media textarea{width:100%;box-sizing:border-box}.studio-media [hidden]{display:none!important}@media(max-width:600px){.studio-media main{padding:20px 16px 100px}.studio-media .panel{padding:18px}.composer-toolbar{flex-wrap:wrap}.composer-tools{flex-wrap:wrap}.composer-mode-label{flex-basis:100%}}

.studio-agents-title{font-size:clamp(30px,4vw,46px);letter-spacing:-1px;margin:18px 0 10px}body[data-workspace="home"] .machine-modes{justify-content:center}

/* Shared chat and creation composer. */
.composer-service{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}.composer-service .badge{white-space:normal;overflow-wrap:anywhere}.composer-service .text-button{min-height:44px}#monid-options:not([open]),#monid-reference:not([open]){display:none}#monid-options .monid-video-settings{margin:12px 0}#monid-options textarea{box-sizing:border-box;width:100%}.unified-creation{min-width:0}#monid-message:empty{display:none}
