/* Ryagram app. Loads after workflow-audit.css and reuses its tokens, header, form and button styles. */
.button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}
.button.secondary:hover{border-color:var(--brand-deep)}
.app-account{display:flex;align-items:center;gap:14px;font-size:.88rem;color:var(--muted);min-width:0}
.app-account span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-account .button{min-height:40px;padding:6px 16px;font-size:.9rem}
.app-main{padding-top:48px;padding-bottom:72px;min-height:calc(100vh - 160px)}
.app-panel{max-width:480px}
.app-panel h1{font-size:clamp(2rem,4vw,2.8rem);margin-bottom:8px}
#library{max-width:none}
.app-status{margin-bottom:24px;padding:14px 18px;border:1px solid var(--line);border-left:3px solid var(--wheat);border-radius:12px;background:var(--paper)}
.app-error{color:#8a2f25}
.ryagram-app .contact-form .button{width:100%}
@media(max-width:520px){.app-main{padding-top:28px}.app-account span{display:none}}
/* Library (2A-2) */
#library h1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#library h1:focus{outline:none}
#library h2{margin-top:36px}
.back{display:inline-block;margin-bottom:14px;font-size:.9rem;text-decoration:none}
.meta{color:var(--muted);font-size:.85rem}
.inline-form{margin:18px 0 28px;max-width:560px}
.inline-form label{display:block;font-weight:700;font-size:.88rem;margin-bottom:6px}
.inline-row{display:flex;gap:10px}
.inline-row input{margin:0;flex:1;min-width:0}
.inline-row .button{flex-shrink:0}
.actions-row{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.button.small{min-height:40px;padding:4px 14px;font-size:.85rem}
.project-list,.version-list,.file-list,.job-list{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.project-list li,.version-list li,.file-list li,.job-list li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:14px 0;margin:0;border-bottom:1px solid var(--line);font-size:.95rem;color:var(--ink)}
.project-list a{font-weight:700;font-size:1.05rem;text-decoration:none;margin-right:auto}
.version-link{display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:1.05rem;text-decoration:none;min-width:40px;min-height:40px}
.version-list .button{margin-left:auto}
.state{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.75rem;font-weight:700;letter-spacing:.02em;background:var(--soft);color:var(--ink);white-space:nowrap}
.state-complete,.job-complete{background:#dcefe9;color:var(--brand-deep)}
.state-failed,.job-failed{background:#f6e0dc;color:#8a2f25}
.state-editorial_action_required,.job-editorial_action_required{background:var(--wheat-soft);color:#6d5427}
.state-queued,.state-rendering,.state-validating,.state-uploading,.job-queued,.job-claimed,.job-running,.job-validating,.job-uploading{background:#e4ecf5;color:#28496b}
h1 .state{font-size:.8rem;vertical-align:middle}
.story{min-height:320px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85rem;line-height:1.5;white-space:pre;tab-size:2}
.story[readonly]{background:var(--soft);color:var(--muted)}
#library form .button[type=submit]{width:auto}
.file-list video,.file-list img{display:block;width:100%;max-width:640px;border-radius:12px;background:var(--dark);flex-basis:100%}
.job-list p{flex-basis:100%;margin:0}
@media(max-width:520px){.inline-row{flex-direction:column}.version-list .button{margin-left:0}}
/* Render panel (2A-3) */
.jobs-panel{margin-top:36px}
.jobs-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.jobs-head h2{margin:0}
.live-note{font-size:.8rem}
.run-controls{display:grid;gap:16px;margin:16px 0 20px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.run-step label,.step-label{display:block;font-weight:700;font-size:.88rem;margin-bottom:6px}
.run-step label span{font-weight:400;color:var(--muted)}
.run-step input{margin:0}
.run-step input[type=number]{max-width:110px}
.run-step .form-note{margin:0 0 8px}
.run-step .button{width:auto}
.job-list progress{flex-basis:100%;width:100%;max-width:420px;height:8px;accent-color:var(--brand)}
.job-problem{color:#8a2f25}
.job-row-editorial_action_required .job-problem{color:#6d5427}
.mock-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 16px;background:#fff7e6;border-top:2px solid var(--wheat);font-size:.85rem}
.mock-bar select{width:auto;min-height:36px;margin:0;padding:4px 8px}
body:has(.mock-bar) .app-main{padding-bottom:120px}
@media(max-width:520px){.run-step .inline-row{flex-direction:row;flex-wrap:wrap}.run-step input[type=number]{max-width:none;flex:1}#run-periods{flex-basis:100%}}
/* Templates */
.template-picker{margin:18px 0 24px;padding:16px 18px;border:1px solid var(--line);border-left:3px solid var(--wheat);border-radius:14px;background:var(--paper)}
.template-picker summary{cursor:pointer;font-weight:700}
.template-picker[open] summary{margin-bottom:8px}
.template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}
.template-card{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;font-size:.88rem;color:var(--muted)}
.template-card strong{color:var(--ink);font-size:1rem}
.template-card input{position:absolute;opacity:0;width:1px;height:1px}
.template-card.is-chosen{border-color:var(--brand-deep);box-shadow:inset 0 0 0 1px var(--brand-deep);background:#f4faf8}
.template-card:focus-within{outline:3px solid var(--brand);outline-offset:2px}
.template-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.template-fields label{display:block;font-weight:700;font-size:.88rem;margin-bottom:6px}
.template-form .button[type=submit]{width:auto;margin-top:6px}
@media(max-width:860px){.template-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.template-fields{grid-template-columns:1fr}}
/* Editor chat */
.chat-panel{margin:18px 0 24px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
.chat-panel h2{margin:0 0 4px}
.chat-log{display:grid;gap:10px;max-height:360px;overflow-y:auto;margin:12px 0}
.chat-msg{padding:10px 12px;border-radius:12px;background:var(--soft);font-size:.92rem}
.chat-msg p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-user{background:#eef5f3}
.chat-who{font-weight:700;font-size:.78rem;color:var(--muted)}
.chat-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}
.chat-form textarea{margin:0;min-height:48px}
.chat-form .app-error{grid-column:1/-1}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:520px){.chat-form{grid-template-columns:1fr}}
/* Credits */
.credit-balance{margin:4px 0 16px;color:var(--muted);font-size:.92rem}
.credit-line{font-weight:700;color:var(--brand-deep)}
.offer-list{list-style:none;margin:8px 0;padding:0;border-top:1px solid var(--line)}
.offer{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:12px 0;border-bottom:1px solid var(--line)}
.offer strong{min-width:5.5em}
.offer .meta{flex:1 1 12em}
.plan-now{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0 16px}
.plan-now p{margin:0}
.credit-thanks{color:var(--brand-deep);font-weight:700}
.share-link{overflow-wrap:anywhere;font-weight:700}
.share-panel label{display:block;margin-top:12px}
.app-account a{color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* A button that is off for a reason shows the not-allowed cursor (the reason is its tooltip); the wait cursor is only for a button that is busy */
.button[data-locked]:disabled{cursor:not-allowed}
.job-progress .working{margin:6px 0;font-weight:700}
.job-help{margin:6px 0}.job-help summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.job-help code{display:block;white-space:pre-wrap;word-break:break-word;margin:6px 0}
.link-button{padding:0;border:0;background:none;color:var(--brand-deep);font:inherit;text-decoration:underline;cursor:pointer}
.account-section{margin:28px 0;padding-top:20px;border-top:1px solid var(--line)}
.account-section h2{margin:0 0 10px;font-size:1.2rem}
.choices{margin:12px 0;padding:0;border:0}
.choice{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;cursor:pointer}
.choice input{margin-top:4px}
/* BYOD audit: a radio or tick box is a small control (the global input rule had made it full width and 44 px tall, which pushed its words off to the far side) */
.choice input[type=radio],.choice input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none;margin:2px 0 0}
.byod-hint{margin:10px 0}.byod-hint summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}.byod-example{border-collapse:collapse;margin:8px 0;font-size:.9rem}.byod-example th,.byod-example td{border:1px solid var(--line);padding:4px 10px;text-align:left}.byod-pointer{margin:10px 0 0}
.prov-fields{border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin:14px 0}.prov-fields legend{font-weight:700;padding:0 6px}.prov-placeholder{font-weight:700}.prov-card{margin:6px 0 0;padding-left:20px}
.choice-text{display:block;color:var(--muted);font-size:.92rem}
.button.danger{background:#9b2c2c;border-color:#9b2c2c;color:#fff}
.account-danger p{max-width:60ch}
.job-progress{flex-basis:100%;width:100%;margin:6px 0 2px}
.job-progress .job-stage{margin:0 0 4px;font-size:.92rem}
.job-progress progress{display:block;width:100%;height:10px}
.job-progress .form-note{margin:4px 0 0}
.progress-fields{display:grid;grid-template-columns:max-content 1fr;gap:2px 14px;margin:8px 0 0;font-size:.9rem}
.progress-fields dt{color:var(--muted)}
.progress-fields dd{margin:0;font-variant-numeric:tabular-nums}
.admin-links{margin:-8px 0 16px}
.admin-table{width:100%;border-collapse:collapse;margin:8px 0 20px;font-size:.92rem}
.admin-table th,.admin-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;overflow-wrap:anywhere}
.admin-table th{color:var(--muted);font-weight:700}
.admin-table .num{text-align:right;font-variant-numeric:tabular-nums}
.source-cards{list-style:none;margin:8px 0;padding:0;border-top:1px solid var(--line)}
.source-card{padding:12px 0;border-bottom:1px solid var(--line)}
.source-card p{margin:2px 0}
.source-licence-full{margin:6px 0 2px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fafaf8;font-size:.9rem}
.source-licence-full p{margin:4px 0}
.app-foot{display:flex;flex-wrap:wrap;gap:6px 20px;max-width:1120px;margin:32px auto 0;padding:18px 18px 28px;border-top:1px solid var(--line);font-size:.85rem;color:var(--muted)}
.app-foot a{color:inherit}
body:has(.mock-bar) .app-foot{padding-bottom:120px}
.hp-field{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.contact-form .choices{border:0;padding:0;margin:12px 0}.contact-form .choices legend{font-weight:700;margin-bottom:6px;padding:0}.contact-form .choice{display:flex;align-items:center;gap:8px;margin:4px 0;font-weight:400}.contact-form .choice input{width:auto;min-width:0;margin:0}
.invite-panel{margin:12px 0;padding:14px 16px;border:2px solid var(--brand-deep,#0a6);border-radius:10px;background:#f2fbf6}.invite-panel code{font-size:1.05rem;font-weight:700;user-select:all}.request-list .project-list p{margin:6px 0}
.ops-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:10px 0}.ops-field{display:grid;gap:4px;font-size:.88rem;font-weight:700}.ops-field input,.ops-field select{min-height:44px;padding:8px 10px;font:inherit;border:1px solid var(--line);border-radius:8px}.ops-details{margin:8px 0 14px}.ops-details summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.ops-section{margin:0 0 28px}.ops-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}.ops-list li{padding:12px 0;border-bottom:1px solid var(--line);font-size:.95rem}.ops-list p{margin:6px 0}.credit-returned{color:var(--brand-deep)}
/* The guided builder (#/build, assets/app-builder.js) */
.builder-steps{display:flex;flex-wrap:wrap;gap:6px 14px;list-style:none;margin:0 0 18px;padding:0;counter-reset:bd}.builder-steps li{counter-increment:bd;color:var(--muted);font-size:.9rem}.builder-steps li::before{content:counter(bd) ". "}.builder-steps .is-current{color:var(--ink);font-weight:700}.builder-steps .is-done{color:var(--brand-deep,#0a6)}
.builder-list{display:grid;gap:10px;margin:12px 0}.builder-card{display:grid;gap:2px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;cursor:pointer;background:var(--paper)}.builder-card.is-chosen{border-color:var(--brand-deep,#0a6);box-shadow:0 0 0 2px rgba(0,120,90,.15)}
.builder-card input[type=radio]{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.builder-card:focus-within{outline:2px solid var(--brand-deep,#0a6)}
.builder-source{margin:18px 0;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:rgba(0,0,0,.02)}.builder-source h3{margin:0 0 6px}
.builder-years{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center}.builder-years input{max-width:140px}
.builder-breaks{margin:14px 0;padding:10px 14px;border-left:3px solid #c8a96b;background:rgba(200,169,107,.08)}.builder-breaks h3{margin:0 0 6px;font-size:1rem}
.builder-problems{margin:8px 0;padding-left:18px;color:#a11}.builder-warning{color:#8a5a00}.builder-summary{display:grid;grid-template-columns:max-content 1fr;gap:4px 14px;margin:10px 0}.builder-summary dt{font-weight:700}.builder-summary dd{margin:0}
.builder-advanced textarea{width:100%;font-family:ui-monospace,Consolas,monospace;font-size:.85rem}.builder-nav{margin-top:16px}
/* "Your look" (the profile editor, assets/app-looks.js) */
.look-layout{display:grid;gap:28px;grid-template-columns:minmax(0,1fr);align-items:start}
@media(min-width:960px){.look-layout{grid-template-columns:minmax(0,3fr) minmax(300px,2fr)}.look-side{position:sticky;top:16px}}
.look-section{border:1px solid var(--line);border-radius:14px;padding:12px 16px 4px;margin:0 0 18px}.look-section legend{font-weight:700;padding:0 8px}
.look-later{opacity:.8;background:rgba(0,0,0,.02)}
.look-field,.look-row{display:grid;gap:4px;margin:0 0 14px;align-content:start}
.look-label{font-weight:700;font-size:.9rem}
.look-radios{display:flex;flex-wrap:wrap;gap:6px 18px}
.look-radios .choice{margin:0;align-items:center}
.look-form input[type=radio],.look-form input[type=checkbox]{width:20px;min-height:20px;height:20px;padding:0;margin:0;flex:none}
.look-colour{display:flex;gap:10px;align-items:center}
.look-colour-text{max-width:150px;font-family:ui-monospace,Consolas,monospace}
.look-colour-picker{width:56px;min-height:44px;height:44px;padding:2px;flex:none;border-radius:10px}
.look-field input[type=number]{max-width:160px}.look-field select{max-width:260px}
.look-field-error{margin:0}
.look-presets-row{margin:0 0 18px}.look-presets-row .button.is-chosen{background:var(--brand-deep,#0a6);color:#fff}
.look-quick{display:grid;gap:10px;margin:0 0 18px}
.look-swatch{display:inline-flex;flex-direction:column;justify-content:center;min-width:44px;min-height:44px;border:1px solid rgba(0,0,0,.15);border-radius:8px;padding:6px 8px;font-size:.75rem}
.look-quick-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.look-quick-card{display:grid;gap:4px;padding:14px 12px;min-width:200px}.look-quick-title{font-size:1.15rem}.look-quick-sub{font-size:.8rem;opacity:.75}
.look-dot{display:inline-block;width:22px;height:22px;border-radius:50%;outline:2px solid transparent}
.look-swatch-label{font-size:.7rem;margin-top:2px}
.look-sheet{max-width:100%;height:auto;border:1px solid var(--line);border-radius:10px}
.look-problems{margin:6px 0;padding-left:18px;color:#a11}.look-warnings{margin:6px 0;padding-left:18px;color:#8a5a00}
.look-locked{margin:14px 0}.look-list li,.look-presets li{padding:10px 0}.look-apply{margin:18px 0}.look-diff ul{margin:8px 0;padding-left:18px}
/* Connecting an AI: the consent page and the Connected AIs list (assets/app-connect.js) */
.consent-where,.consent-can,.consent-always{margin:18px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.consent-where h2,.consent-can h2,.consent-always h2{margin:0 0 8px;font-size:1.05rem}
.consent-uri{margin:6px 0;word-break:break-all}.consent-uri code{font-size:.95rem}.consent-scopes{list-style:none;margin:0;padding:0}.consent-scopes li{margin:0 0 8px}.consent-scopes input[type=checkbox]{width:20px;min-height:20px;height:20px;flex:none}
.connected-list li{padding:12px 0}
.consent-expiry-warn{font-weight:700;color:var(--danger,#9b1c1c)}
.consent-who{font-size:clamp(1.8rem,5vw,2.4rem)}.consent-calls-itself{margin-top:-6px;word-break:break-word}
.device-expiry-warn{font-weight:700;color:var(--danger,#9b1c1c)}.device-tester{border:2px solid var(--border,currentColor);border-radius:10px;padding:10px 14px;margin:12px 0}.windows-card .windows-facts dt{font-weight:700;margin-top:8px}.windows-card .windows-facts dd{margin:0;word-break:break-all}.windows-card .windows-steps li{margin:8px 0}.device-warn{border:2px solid var(--border,currentColor);border-radius:10px;padding:10px 14px;margin:12px 0}.device-facts dt{font-weight:700;margin-top:8px}.device-facts dd{margin:0;word-break:break-word}
/* Header and sign-in basics (consumer audit): Help and Account are words, links are comfortable to tap, the sign-in page has a way forward */
.app-nav-link{padding:10px 4px;min-height:40px;display:inline-flex;align-items:center}
@media(max-width:520px){.nav.has-admin{flex-wrap:wrap;row-gap:4px}.nav.has-admin .app-account{flex:1 0 100%;justify-content:flex-end;flex-wrap:wrap}.nav.has-admin .app-account .button{white-space:nowrap}}
.app-foot a,.sign-in-help a,.form-intro a{display:inline-block;padding:10px 2px}
.app-foot a{display:inline-flex;align-items:center;min-height:44px;min-width:44px;box-sizing:border-box}
.sign-in-help .help-line{display:block;margin:2px 0}
.link-button{min-height:40px;padding:10px 2px}
.sign-in-help{margin:18px 0}
@media(max-width:760px){.app-account{gap:8px}.app-account #account-email{display:none}}
/* Consumer audit: stacked link lines keep their spacing; the folded Advanced panel on a version page */
.app-main p.meta + p.meta{margin-top:10px}.admin-links{line-height:2}
.advanced-panel{margin:28px 0;border:1px solid var(--line);border-radius:12px;padding:6px 16px}.advanced-panel>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.app-main .form-note + p.meta{margin-top:12px}
/* Consumer audit round 2: comfortable back links, and a loading line that moves (still, for people who ask for less motion) */
.back{display:inline-flex;align-items:center;min-height:44px;padding:6px 0;margin-bottom:6px}
.loading{display:flex;align-items:center;gap:10px}.spinner{width:18px;height:18px;border:3px solid var(--line);border-top-color:var(--brand-deep);border-radius:50%;animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation:none}}
/* Funnel on #/admin/ops: the wide tables scroll sideways inside themselves on a phone instead of squeezing every word */
.funnel-sources,.funnel-weeks{display:block;overflow-x:auto;max-width:100%}.funnel-sources th,.funnel-weeks th{min-width:84px}.funnel-sources td:first-child,.funnel-weeks td:first-child{white-space:nowrap}.funnel-side td{color:var(--muted)}
/* Accessibility pass (2026-10-18): a folded section's summary is a comfortable tap target */
:where(.ryagram-app details)>summary{min-height:44px;padding:8px 0;box-sizing:border-box;cursor:pointer}
@media(max-width:520px){.ryagram-app summary,.ryagram-app .link-button,.ryagram-app .button.small{min-height:44px}}
/* First run at phone width (2026-10-19, tools/check-first-run-phone.py): the project name and the file's Open link are comfortable to tap, and the story box is 16px so iOS does not zoom in when it is focused */
.project-list a{display:flex;align-items:center;min-height:44px}.file-list a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
@media(max-width:520px){.story,.builder-advanced textarea{font-size:16px}}
/* Whole-app pass (2026-10-19, tools/audit-app-pass.py): on a phone every text field is 16px, so iOS does not zoom in when it is focused */
@media(max-width:520px){.ryagram-app :is(input,select,textarea){font-size:16px}}
/* Whole-app pass: the footer's text and links sit on one line (the links have padding the text does not), and an admin link is never split across two lines */
.app-foot{align-items:center}.admin-links a{white-space:nowrap}
/* phone: every tap target is 44 px (NEXT-WEB 130) */
@media(max-width:520px){.button.small,.version-link,.job-help summary,.byod-hint summary,.link-button,.back,.file-list a,:where(.ryagram-app details)>summary{min-height:44px}.version-link{min-width:44px}.app-account .button,.button,.app-nav-link,.project-list a,.app-foot a,.sign-in-help a,.form-intro a{min-height:44px;box-sizing:border-box}.app-nav-link,.project-list a,.app-foot a{display:inline-flex;align-items:center}.app-foot{gap:0 20px}.brand,.rg-brand{min-height:44px}}
/* guided first film (NEXT-WEB 132) */
.builder-ready{margin:0 0 28px}.builder-start{display:grid;gap:2px;text-align:left;font:inherit;color:inherit;cursor:pointer;min-height:44px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.builder-start:hover,.builder-start:focus-visible{border-color:var(--brand-deep,#0a6)}
.next-strip{margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-left:3px solid var(--brand-deep,#0a6);border-radius:10px;background:var(--paper)}.next-strip a{display:inline-block;padding:10px 4px;min-height:44px;box-sizing:border-box}
.first-film{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:8px 0 18px}.first-film .button{min-height:48px}
/* The AI-first front door (#/start, aiFirst): the lines, their three buttons, the strip on the library, the connected pill. Phone first: buttons are 44 px tall and wrap. */
.start-lines{list-style:none;margin:12px 0;padding:0}.start-line{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:0 0 10px;padding:12px;border:1px solid var(--line,#3a3a44);border-radius:12px;background:var(--soft,#23232d)}
.start-text{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}.start-buttons{display:flex;flex-wrap:wrap;gap:8px}.start-buttons .button{min-height:44px;display:inline-flex;align-items:center}
.start-pill{display:inline-block;margin:0 0 10px;padding:2px 12px;border:1px solid var(--brand,#6fd1bd);border-radius:99px;color:var(--brand-deep,#8fe0cf)}
.start-step{margin:14px 0 6px}.start-bar{margin:0 0 12px;padding:0;border:1px solid var(--line,#3a3a44);border-radius:10px}.start-bar a{display:flex;align-items:center;min-height:44px;padding:0 12px}
.start-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}.start-pill-link{display:inline-flex;align-items:center;min-height:44px;padding:6px 12px;border:1px solid var(--line,#3a3a44);border-radius:99px;overflow-wrap:anywhere}
.start-copybox{width:100%;max-width:100%;min-height:44px;box-sizing:border-box}.linklike{background:none;border:0;padding:0;min-height:44px;color:var(--brand-deep,#8fe0cf);text-decoration:underline;font:inherit;cursor:pointer}
/* The trust label on every upload (RULINGS 2026-10-26): the box on the confirm screen, and the chip on each uploaded dataset. */
.trust-box{margin:14px 0;padding:12px 14px;border:2px solid var(--wheat,#c9a66b);border-radius:12px;background:var(--wheat-soft,#33291a)}.trust-box legend{padding:0 6px;font-weight:700}
.trust-label{margin:0 0 6px;font-size:1.05rem}.trust-warning{margin:0 0 8px}.trust-chip{display:inline-block;padding:1px 10px;border:1px solid var(--wheat,#c9a66b);border-radius:99px;color:var(--wheat,#c9a66b);font-size:.85rem}
/* Departments in the top bar (NEXT-WEB 147, flag `departments`): the bar in the header's slot, the Coming soon group, the Menu button on a phone, and the Coming soon page. 44 px targets. */
.dept-slot{flex:1 1 auto;min-width:0;margin:0 12px}.dept-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dept-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:2px;align-items:center}
.dept-list a,.dept-list summary{display:inline-flex;align-items:center;min-height:44px;padding:6px 12px;border-radius:10px;text-decoration:none;cursor:pointer}.dept-list a[aria-current=page]{background:var(--soft,#23232d);border:1px solid var(--line,#3a3a44)}
.dept-card-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}.dept-card{border:1px solid var(--line,#3a3a35);border-radius:12px;padding:12px 14px}.dept-card a{font-weight:600;display:inline-block;min-height:24px;line-height:24px}.dept-card p{margin:6px 0 0}.dept-card-open{color:var(--wheat,#c9a66b)}.dept-cards{margin:20px 0}
.dept-menu{display:none;min-height:44px}.soon-group summary{color:var(--wheat,#c9a66b);list-style:none}.soon-group[open]{position:relative}.soon-group ul{list-style:none;margin:4px 0 0;padding:6px;position:absolute;z-index:5;min-width:280px;background:var(--paper,#1b1b23);border:1px solid var(--line,#3a3a44);border-radius:12px}
.soon-group ul li{display:flex;align-items:center}.soon-tag{align-self:center;white-space:nowrap}.dept-extra{display:none}.soon-group ul a{flex:1;justify-content:space-between}.soon-tag{display:inline-block;margin-left:8px;padding:1px 8px;border:1px solid #c9a66b;border-radius:99px;background:#10121a;color:#ffb27a;opacity:1;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase}
.soon-tag-big{display:block;width:fit-content;margin:4px 0 8px}.soon-stills{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0}.soon-still{margin:0}.soon-still img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line,#3a3a44)}.soon-picture{margin:12px 0;padding:12px;border:1px dashed var(--line,#3a3a44);border-radius:12px;background:var(--soft,#23232d)}.soon-picture p{margin:0 0 6px;overflow-wrap:anywhere}.soon-draft{margin-top:14px}
@media(max-width:700px){.dept-slot{flex:0 0 auto;margin:0 0 0 auto}.dept-menu{display:inline-flex;align-items:center}.dept-bar{position:relative}.dept-list{display:none;position:absolute;right:0;top:100%;z-index:6;flex-direction:column;align-items:stretch;min-width:240px;margin-top:6px;padding:8px;background:var(--paper,#1b1b23);border:1px solid var(--line,#3a3a44);border-radius:12px}
.dept-bar.open .dept-list{display:flex;flex-wrap:nowrap;max-height:75vh;overflow-y:auto}.has-departments .app-account a.app-nav-link,.has-departments #account-email{display:none}.dept-extra{display:block}.soon-group summary{pointer-events:none;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;min-height:36px}.dept-list li,.dept-list a,.dept-list summary{width:100%}.dept-list a,.dept-list summary{min-height:48px}.soon-group ul{position:static;border:0;padding:0;min-width:0}}
.connect-address code{overflow-wrap:anywhere;word-break:break-all;display:inline-block;max-width:100%}.connect-how{margin:10px 0}.connect-how ol{padding-left:1.3em}.connect-app summary{min-height:44px;display:flex;align-items:center;font-weight:700;cursor:pointer}
/* One font for every control (King's Island W7): a button, input, select and textarea take the page's own font stack, not the browser's default for controls (it drew serif in a WebKit build without the system UI font). */
button,input,select,textarea{font-family:inherit}
.wiz-steps{list-style:none;margin:16px 0;padding:0;display:grid;gap:14px}.wiz-step{border:1px solid var(--line,#3a3a44);border-radius:10px;padding:12px 14px}.wiz-steps .wiz-step h2{margin:0 0 4px;padding:0;font-size:1.1rem}.wiz-step p{margin:6px 0}.wiz-step .button{margin-top:6px}.wiz-done{opacity:.8}.wiz-now{border-color:var(--accent,#6fd1bd);box-shadow:0 0 0 1px var(--accent,#6fd1bd)}
/* Option B: a WAITING account sees one page; the nav shows only the account and sign-out (NEXT-WEB waiting pages) */
body.is-waiting .dept-slot,body.is-waiting .app-account .app-nav-link:not([href="#/account"]){display:none!important}
.wl-list{list-style:none;margin:12px 0;padding:0}.wl-row{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line,#3a3a44)}.wl-who{display:flex;flex-direction:column;min-width:0;overflow-wrap:anywhere}.wl-row .button{min-height:44px}
/* the top bar at in-between widths (WEB 11-17, Q636 dry run): Help and Account keep their whole words (the email gives way first), and an admin account's bar folds its departments behind the Menu button up to 980 px instead of stacking them four rows tall */
.app-account a.app-nav-link{flex:0 0 auto;overflow:visible}
@media(min-width:701px) and (max-width:980px){.nav.has-admin .dept-slot{flex:0 0 auto;margin:0 0 0 auto}.nav.has-admin .dept-menu{display:inline-flex;align-items:center}.nav.has-admin .dept-bar{position:relative}.nav.has-admin .dept-list{display:none;position:absolute;right:0;top:100%;z-index:6;flex-direction:column;align-items:stretch;min-width:240px;margin-top:6px;padding:8px;background:var(--paper,#1b1b23);border:1px solid var(--line,#3a3a44);border-radius:12px}.nav.has-admin .dept-bar.open .dept-list{display:flex;flex-wrap:nowrap;max-height:75vh;overflow-y:auto}.has-departments .nav.has-admin .app-account a.app-nav-link,.has-departments .nav.has-admin #account-email{display:none}.nav.has-admin .dept-extra{display:block}.nav.has-admin .soon-group summary{pointer-events:none;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;min-height:36px}.nav.has-admin .dept-list li,.nav.has-admin .dept-list a,.nav.has-admin .dept-list summary{width:100%}.nav.has-admin .dept-list a,.nav.has-admin .dept-list summary{min-height:48px}.nav.has-admin .soon-group ul{position:static;border:0;padding:0;min-width:0}}
/* the in-page confirm for spending clicks (WEB 11-18): a plain box under the button's row, two big buttons, no pop-up that a pane can auto-answer */
.inpage-confirm{margin:12px 0;padding:14px 16px;border:2px solid var(--ring,#ff8a3d);border-radius:12px;background:var(--paper,#1b1b23)}.inpage-confirm p{margin:0 0 10px;font-weight:600}.inpage-confirm .actions-row{margin:0}.inpage-confirm .button{min-height:44px}
.age-choice input[type=checkbox]{width:24px;height:24px;min-height:24px;margin:0}.age-choice{align-items:center;min-height:44px;margin:12px 0 8px}.age-choice span{padding:8px 0}
/* One shared gap for every button in the app (WEB 11-26, Ryan's fix): at least 12 px between neighbouring buttons, stacked or side by side, wrapped or not. Margin, not per-page gaps, so a new page gets it too. */
.app-main .button{margin-right:12px}
.app-main p:has(>.button:only-child)+p:has(>.button:only-child){margin-top:12px}
.app-main .contact-form .button,.app-main .inline-confirm .button{margin-right:0}
.app-main .actions-row .button,.app-main .start-buttons .button{margin:0}
.start-outs{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.start-outs .button{margin:0}
.ops-list{margin-top:14px}
body.ryagram-app.ryagram-ds.ryagram-look .flip-tabs,body.ryagram-app.ryagram-ds .builder-list,.ryagram-app .start-buttons,.ryagram-app .start-strip,.ryagram-app .dept-bar{gap:12px}
.ops-list .button{margin:0 12px 12px 0}
/* Film page tabs on a wide screen (Claude's walk, WEB 11-26): plain tabs in a row, no sideways scroller, arrows or dots; a phone keeps the swipe strip */
@media(min-width:900px){body.ryagram-app.ryagram-ds.ryagram-look .flip-plain .flip-tabs{overflow:visible;flex-wrap:wrap;justify-content:flex-start}body.ryagram-app.ryagram-ds.ryagram-look .flip-plain .flip-arrow,body.ryagram-app.ryagram-ds.ryagram-look .flip-plain .flip-dots,body.ryagram-app.ryagram-ds.ryagram-look .flip-plain .flip-where{display:none}}
.file-list video{max-width:480px;max-height:42vh;object-fit:contain}
#run-periods{padding-left:12px;padding-right:12px;font-size:.92rem;text-overflow:clip}
/* Phone: the preview seconds boxes keep room for their number (FACES 18:05 MEDIUM); the years box fits its short placeholder beside its button */
@media(max-width:520px){:is(body.ryagram-ds.ryagram-look,body) .app-main:has(.make-it) .jobs-panel .run-controls>.run-step.run-step input[type=number]{min-width:56px;padding-left:12px;padding-right:12px}}
@media(max-width:400px){:is(body.ryagram-ds.ryagram-look,body) .app-main:has(.make-it) .jobs-panel .run-controls>.run-step.run-step #run-periods{min-width:96px}:is(body.ryagram-ds.ryagram-look,body) .app-main:has(.make-it) .jobs-panel .run-controls>.run-step.run-step:first-of-type .inline-row .button{flex-shrink:1;min-width:0;line-height:1.2}}
/* The delivered film (Ryan 11-26 22:42): fit the page, never the native 1920x1080 running off the right edge; the whole film and its controls show */
.delivery-video{display:block;width:100%;height:auto;max-width:100%;max-height:70vh;object-fit:contain;margin:0 auto 16px;background:#000;border-radius:12px}
.comp-link{display:inline-block;padding:12px 0;margin:-12px 0}
/* A long unbroken phrase or title wraps inside its row, never pushes a phone sideways (CC1 09:58) */
.comp-rows,.comp-rows li,.comp-rows strong,.comp-rows .meta,.comp-run,.comp-noapp{overflow-wrap:anywhere;min-width:0;max-width:100%}
/* Tap targets (WEB 11-27): every link-as-button is at least 44 px high on a wide screen too */
.ryagram-app .button.small{min-height:44px}
