/* PAYA / Welcome Home — workspace and worship design system. */
:root{--paya-ink:#172b46;--paya-muted:#65758b;--paya-line:#dfe5ec;--paya-surface:#fff;--paya-paper:#f4f6f9;--paya-warm:#f7f2eb}
.studio-body{background:var(--paya-paper);color:#243349}
.studio-body .studio-header{height:72px;padding:0 22px;gap:16px;background:#fff;border-bottom:1px solid var(--paya-line)}
.brand-mark{background:#eef2f7;color:#203b61;border:1px solid #dfe6ee;border-radius:11px}.brand strong{letter-spacing:.12em}.brand span{letter-spacing:.13em;font-size:9px}
.studio-header .brand{min-width:174px}.header-title{display:grid;gap:5px;min-width:140px}.header-title strong{font-size:14px;font-weight:650}.header-title .saved{font-size:10px}.studio-header .home-link{font-size:11px;color:#65758b;padding:8px}
.studio-header .top-actions{gap:6px}.studio-header .top-actions button{height:36px;font-size:11px;padding:8px 12px;border-color:#dfe5ed}.studio-header .top-actions #outputButton{background:#1f395b;border-color:#1f395b;color:#fff;padding:8px 18px}.studio-header #undoProject,.studio-header #redoProject{border:0;background:transparent;padding:7px}
.workflow-tools{height:66px;min-height:66px;gap:16px;padding:0 20px;background:white;border-bottom:1px solid var(--paya-line);overflow-x:auto;white-space:nowrap;align-items:center}.workflow-tools>button,.workflow-group button{font-size:11px;padding:7px 9px;border:0;background:transparent;white-space:nowrap;color:#35475e}.workflow-tools .guide-launch{background:#eef2f7;color:#263f60;border:1px solid #dbe3ed;padding:10px}.workflow-group{display:flex;align-items:center;gap:2px;padding-right:14px;border-right:1px solid var(--paya-line)}.workflow-group>span{font-size:9px;color:#8a94a3;font-weight:650;letter-spacing:.04em;margin-right:6px}.workflow-group .ai-launch{background:#edf2f9;color:#203d63}.workflow-group button:hover{background:#edf2f7}.studio-modes{margin-left:auto;display:flex;padding:3px;gap:2px;background:#edf1f6;border-radius:8px;flex-shrink:0}.studio-modes button{padding:7px 11px;background:transparent;border:0;color:#738096;font-size:11px}.studio-modes button.active{background:white;box-shadow:0 1px 4px #213a5c12;color:#1c3556;font-weight:650}
.studio-body .workspace{height:calc(100dvh - 138px);grid-template-columns:224px minmax(0,1fr) 304px;gap:12px;padding:12px;background:#f0f3f7}.sidebar,.main,.inspector{border:1px solid #dce3ec;border-radius:12px;box-shadow:0 2px 8px #19365903}.side-head{padding:16px 13px;border-bottom:1px solid #e9edf3;background:white}.side-head .eyebrow{font-size:8px;color:#8a96a7;letter-spacing:.14em}.side-head h2{font-size:16px;margin-top:6px}.side-head button{font-size:10px}.search{padding:12px}.search input{font-size:11px;background:#f8fafc;border-color:#e3e8ef}.slide-list{padding:0 8px 14px}.group-heading{margin-top:14px;background:#eef2f7;border:0;border-radius:7px;font-weight:650}.slide-row{padding:8px 5px;margin:3px 0;border-radius:8px}.slide-row.selected{background:#e9eff7;border-color:#b6c6dc}.slide-label strong{font-size:11px}.slide-label small{font-size:9px;margin-top:4px;color:#8a95a4}.mini{width:62px;border-color:#d9e0e9}.row-num{color:#8c97a6;font-size:9px;min-width:12px}.side-bottom{padding:10px 12px;background:#fafbfd}.side-bottom button{font-size:10px}.toggle-ref{font-size:10px}
.main{background:#edf1f6;overflow:hidden;position:relative}.main-toolbar{padding:16px 18px;background:#fff;border-bottom:1px solid #e3e8ef;min-height:83px;align-items:center}.main-toolbar .eyebrow{font-size:9px;color:#8b96a6;letter-spacing:.04em}.main-toolbar h1{font-size:15px;margin-top:6px;font-weight:650;line-height:1.45}.main-toolbar small{font-size:9px;color:#8590a1;margin-top:5px;max-width:38vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.toolbar-actions{gap:4px}.toolbar-actions button{font-size:10px;padding:6px 8px;background:white;border-color:#e0e6ee}
.studio-body .preview-zone{padding:18px 20px;min-height:200px;flex:1 1 auto;container-type:size;overflow:hidden}.studio-body .preview-zone .preview-wrap{width:min(100%,max(120px,calc((100cqh - 24px)*16/9)));max-width:1500px}.preview-wrap>.stage,#preview>.stage{box-shadow:0 10px 32px #17345112,0 0 0 1px #293c5618}.preview-caption{padding-top:9px;font-size:9px;color:#8490a1}.preview-caption #previewMatch{color:#345f8b;font-weight:600}
.cue-strip{margin:0 16px 10px;padding:12px 14px;background:#fff;border:1px solid #dce4ee;border-radius:9px}.cue-strip .eyebrow{font-size:8px;letter-spacing:0;color:#8190a2}.cue-strip strong{font-size:11px;line-height:1.5;margin-top:4px}.cue-strip button{font-size:11px;background:#203b60;padding:11px 13px}.delivery-settings{margin:0 16px 9px;padding:9px 12px;background:#e6edf6;border-color:#d9e3f0;font-size:10px}.delivery-settings label,.delivery-settings span{font-size:10px}.delivery-settings select{font-size:11px;background:#fff}.transport{padding:7px 16px 12px;gap:7px}.transport button{font-size:11px;padding:8px 12px}.transport span{font-size:10px}.live-bar{padding:9px 16px;background:#fff;border-top:1px solid #e1e7ef;font-size:10px}.live-bar button{font-size:10px}.studio-body[data-studio-mode="prepare"] .delivery-settings,.studio-body[data-studio-mode="prepare"] .transport{display:none}.studio-body[data-studio-mode="prepare"] .cue-strip{grid-template-columns:minmax(0,1fr) auto;padding:10px 12px;flex-shrink:0}.studio-body[data-studio-mode="prepare"] .cue-strip>div:nth-child(2){display:none}.studio-body[data-studio-mode="prepare"][data-output-connected="false"] .cue-strip{display:none}.studio-body[data-studio-mode="present"] .main{border-color:#94abc6}.studio-body[data-studio-mode="present"] .main-toolbar{box-shadow:inset 3px 0 #375f8c}.studio-body[data-output-connected="true"] #outputButton{box-shadow:0 0 0 3px #dce8f4}
.inspector{background:#fff;padding:18px 16px;overflow-y:auto}.inspector-head{padding:0 0 15px;margin-bottom:12px;border-bottom:1px solid #e5eaf0}.inspector-head strong{font-size:14px}.inspector-head-actions button{font-size:10px}.inspector-section.page-info{margin:0 0 18px;padding:0;border:0;border-bottom:1px solid #edf0f4;border-radius:0;background:#fff}.inspector-section.page-info summary{font-size:10px;padding:10px 0}.page-management{display:grid;gap:6px;padding:10px 0}.page-management button{font-size:10px;text-align:left;background:#f8fafc;border-color:#e4e9ef}.inspector h3{font-size:13px;font-weight:650;display:flex;justify-content:space-between;margin:0 0 15px;padding-bottom:12px;border-bottom:1px solid #e8edf3}.inspector h3 span{font-size:9px;color:#9aa4b3;font-weight:400}.inspector label{font-size:11px;color:#6c7b90;margin-top:15px}.inspector textarea,.inspector input,.inspector select{font-size:12px;line-height:1.8;border-color:#dfe5ed;background:#fbfcfe}.inspector textarea{min-height:150px}.inspector-alignment{background:#f5f7fa;border:1px solid #e4eaf1;padding:10px;border-radius:8px;gap:8px;margin-top:14px}.inspector-alignment label{font-size:10px;margin-top:0}.inspector-alignment select{font-size:11px;background:white}.field-note{font-size:10px;line-height:1.7;color:#8390a2}.rich-toolbar{background:#f5f7fa;border-color:#e1e7ef;padding:6px;gap:4px}.rich-toolbar button{background:white;font-size:10px;padding:5px 7px;border-color:#dce4ed}.rich-color{font-size:9px;color:#6c7b90}.rich-status{background:#f5f7fa;border-color:#e1e7ef;color:#79879b;font-size:10px}.scripture-editor{border-color:#cdd9e7;padding:14px;line-height:1.8;font-size:16px;min-height:210px;max-height:40vh}.rich-bottom{flex-wrap:wrap;gap:5px}.rich-bottom button{font-size:10px}.scripture-purpose{padding:10px 12px;background:#f4f7fb;border:0;border-radius:8px;margin-top:0}.scripture-purpose p{color:#7a889b;line-height:1.6;font-size:10px}.page-settings{margin-top:22px;border-top:1px solid #e5eaf0}.page-settings summary{padding:16px 0;font-size:11px}.inspector-footer{margin-top:16px}
/* A returning user's current service comes before the welcome banner. */
.home-body{background:#f5f6f8}.home-main{display:flex;flex-direction:column;max-width:1280px;padding:0 48px}.home-continue{order:-1;margin-top:36px;padding:30px 34px;background:#203650;color:white;border:0;border-radius:15px;box-shadow:0 12px 35px #142a4210;position:relative;overflow:hidden}.home-continue:after{content:'';position:absolute;right:27%;top:-65%;width:260px;height:400px;border:1px solid #ffffff0d;border-radius:140px 140px 0 0;pointer-events:none}.home-continue .eyebrow{color:#a7bbd3;font-size:9px;letter-spacing:.07em}.home-continue h2{font-size:25px;color:white;letter-spacing:-.035em;margin:10px 0}.home-continue p{font-size:11px;color:#aebdd0}.home-continue button{background:transparent;border-color:#71859f;color:#e7edf5;font-size:12px}.home-continue button.primary{background:#f7f3eb;color:#213955;border-color:#f7f3eb;font-weight:650;padding:14px 24px}.home-preparation-summary{display:flex;gap:8px;margin-top:17px}.home-preparation-summary span{font-size:10px;padding:5px 9px;background:#ffffff0b;border:1px solid #ffffff16;border-radius:5px;color:#c7d4e4}.home-intro{padding:30px 0;grid-template-columns:1fr 260px;gap:40px}.home-intro h1{font-size:27px;line-height:1.35;margin:9px 0 10px}.home-intro p{font-size:12px;line-height:1.7}.home-intro .eyebrow{font-size:8px;color:#9c8d7b}.home-intro-actions{margin-top:16px;gap:7px}.home-intro-actions button{font-size:11px;padding:10px 14px}.home-art{border:1px solid #ede6dc;border-radius:12px;aspect-ratio:16/9;max-height:180px;overflow:hidden;background:#faf6f3}.home-art img{width:100%;height:100%;object-fit:cover}.home-section-title h2{font-size:18px}.home-projects{padding-top:8px}.home-grid{gap:14px}.home-project{background:white;border:1px solid #e1e6ed;border-radius:11px;padding:21px}.home-project h3{font-size:16px}.home-footer{padding:25px 0}
/* A generous, six-screen audition using the service's own content. */
dialog.design-modal{width:min(1380px,96vw);max-width:96vw;padding:24px 28px}.design-studio-head{grid-template-columns:1fr 265px;gap:30px}.design-filters{margin:8px 0 16px}.design-filters button{padding:7px 12px;font-size:11px}.design-picker{grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.design-catalog{display:grid;grid-template-columns:1fr;max-height:64vh;gap:12px;padding:2px 8px 12px 2px}.design-option{padding:0;overflow:hidden;border-radius:9px;min-width:0}.design-option .stage{aspect-ratio:16/9;pointer-events:none}.design-caption strong{font-size:12px}.design-caption small{font-size:10px}.design-option.active{border-color:#244568;box-shadow:0 0 0 2px #24456816}.design-preview-pane{position:sticky;top:0}.collection-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.collection-overview>div{min-width:0}.collection-overview .stage{width:100%;aspect-ratio:16/9}.collection-overview>div>span{display:block;text-align:left;font-size:10px;margin:7px 0 3px;color:#7b8899}.design-preview-caption{font-size:10px;color:#8390a2;line-height:1.7;margin:10px 0}.preview-tabs{margin-top:14px}.design-note{margin:12px 0 4px;color:#405775}.design-actions{background:#fff;position:sticky;bottom:-24px;padding:16px 0 8px;z-index:5;border-top:1px solid #e3e8ef}.design-actions p{font-size:10px}.design-actions .primary{background:#213b5c;color:#fff;padding:12px 24px}
/* Welcome Home: the doorway is the shared architectural motif, never behind reading text. */
.welcome-architecture{display:none;pointer-events:none;position:absolute;z-index:-1}.design-together .collection-photo,.design-together .collection-word,.design-together .collection-index{display:none}.design-together .welcome-architecture{display:block;right:7%;top:12%;width:36%;height:76%;background:url('assets/welcome-portal.svg') center/contain no-repeat;opacity:.9}.design-together.role-title .title-content,.design-together.role-welcome .title-content{inset:25% 44% 21% 8%;align-items:flex-start;text-align:left;justify-content:center;gap:2.5cqw}.design-together.role-title .title-content h2,.design-together.role-welcome .title-content h2{font-size:6.5cqw;line-height:1.13;font-weight:650;letter-spacing:-.065em;color:#203650}.design-together .title-content p{font-size:1.8cqw;line-height:1.65;color:#8e725a}.design-together .theme-ornament{top:15%;left:8%;width:7%;height:2px;background:#b48a65;opacity:.65}.design-together .stage-kicker{left:8%;top:8%;font-size:1cqw;letter-spacing:.15em;color:#93795e}.design-together .stage-foot{left:8%;right:8%;bottom:7%;font-size:.85cqw;opacity:.6}.design-together.role-lyrics .welcome-architecture,.design-together.role-scripture .welcome-architecture,.design-together.role-notice .welcome-architecture{display:none}.design-together.role-lyrics{background:#1d2c3a!important;color:#f5f1e9!important;--slide-accent:#c4ab89!important}.design-together.role-lyrics .lyric{inset:22% 8% 17%;font-weight:550;line-height:1.7;letter-spacing:-.02em;text-align:left;align-items:center;justify-content:flex-start}.design-together.role-lyrics .stage-kicker{color:#bfa98e}.design-together.role-lyrics .theme-ornament{opacity:.25;width:84%;height:1px}.design-together.role-prayer .welcome-architecture{right:36%;top:11%;width:28%;height:38%;opacity:.2}.design-together.role-prayer .title-content{inset:39% 12% 18%;text-align:center;align-items:center}.design-together.role-prayer .title-content h2{font-size:5cqw;font-weight:500;letter-spacing:-.045em;color:#eee7dc}.design-together.role-prayer .title-content p{color:#c8bcae}.design-together.role-prayer .theme-ornament{display:none}
/* Readability is a shared grid. Current verse range is independent of the full reference. */
.stage.role-scripture[class] .scripture-content{inset:17% 8% 11%;gap:1.5cqw}.scripture-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:2cqw;flex:0 0 auto;min-width:0}.stage.role-scripture .scripture-heading h2{font-size:2.45cqw;line-height:1.35;font-weight:600;letter-spacing:-.025em;flex:1 1 auto;min-width:0;padding-bottom:.7cqw;max-height:7cqw}.scripture-range{font-family:var(--body-font);font-size:1.7cqw;line-height:1.4;font-weight:650;color:var(--slide-accent);padding:.45cqw .9cqw;border:1px solid currentColor;border-radius:.35cqw;white-space:nowrap;opacity:.9;flex:0 0 auto}.stage.role-scripture .scripture-content p{line-height:1.6;letter-spacing:-.015em;font-weight:450}.scripture-content .verse-row{padding-left:1.85em}.scripture-content .verse-row+.verse-row{margin-top:.16em}.scripture-content .verse-number{font-size:.74em;top:.15em;line-height:1.6;font-weight:650;opacity:1;color:var(--slide-accent)}
.pro-layout.role-lyrics .lyric{line-height:1.7;letter-spacing:-.02em}.design-axis.role-lyrics .lyric{font-weight:600}.design-paper.role-scripture .scripture-range{border-radius:0;border-width:0 0 2px}.design-horizon.role-scripture .scripture-range{border-color:#9dc6d66b}.design-folio.role-scripture .theme-ornament{opacity:.15}.design-folio.role-lyrics .pro-art i:first-child{left:5.5%;opacity:.25}
/* Seasonal art is a complete composition on opening/transition screens, quiet on reading screens. */
.season-v2:is(.design-feast,.design-gather,.design-noel,.design-starlight) .season-art-main{width:49%;height:88%;right:-1%;top:4%;object-fit:contain;opacity:1}.season-v2:is(.design-feast,.design-gather,.design-noel,.design-starlight).role-title .title-content,.season-v2:is(.design-feast,.design-gather,.design-noel,.design-starlight).role-welcome .title-content{inset:28% 44% 22% 8%;gap:2.7cqw}.season-v2.role-title .title-content h2{font-size:5.6cqw;font-weight:600;line-height:1.2;letter-spacing:-.045em}.season-v2 .season-label{left:8%;top:19%;font-size:1cqw;letter-spacing:.14em}.design-feast .season-label,.design-gather .season-label{color:var(--slide-accent)}.design-feast .pro-art,.design-gather .pro-art{display:none}.design-feast{background:#f5eddf!important}.design-feast .title-content:before{content:'WITH THANKFUL HEARTS';font-size:1.1cqw;font-weight:600;letter-spacing:.19em;color:#9d7144}.design-feast.role-lyrics{background:#302f27!important;color:#f8f0de!important;--slide-accent:#d9b782!important}.design-gather{background:#45382e!important;color:#f8eedb!important;--slide-accent:#ddbd8c!important}.design-gather.role-scripture{background:#f6eedf!important;color:#3e382d!important;--slide-accent:#8d6236!important}.design-noel .pro-art,.design-starlight .pro-art{display:none}.design-noel .title-content h2{color:#264438}.design-noel.role-title .title-content:before{content:'WELCOME HOME · CHRISTMAS';font-size:1cqw;letter-spacing:.14em;color:#a05c48}.design-noel.role-lyrics{background:#16382f!important;color:#f8f2e6!important;--slide-accent:#dfc59a!important}.design-starlight{background:#122238!important;color:#f8f1df!important;--slide-accent:#d9ba82!important}.design-starlight.role-scripture{background:#f4f0e8!important;color:#23344c!important;--slide-accent:#90703c!important}.design-starlight .season-art-main{filter:brightness(1.08)}
.season-v2:is(.design-feast,.design-gather,.design-noel,.design-starlight):is(.role-lyrics,.role-scripture,.role-notice) .season-art-main{width:12%;height:27%;right:-3%;top:auto;bottom:-3%;opacity:.11}.season-v2:is(.role-lyrics,.role-scripture,.role-notice) .season-label{display:none}.season-v2.role-prayer .season-art-main{width:28%;height:65%;right:-4%;top:18%;opacity:.18}.season-v2.role-prayer .title-content{inset:31% 16% 24%;align-items:center;text-align:center}.season-v2.role-prayer .title-content h2{font-size:4.7cqw;font-weight:500}.season-v2.role-prayer .season-label{display:none}
/* An invitation at the table, not another bullet list. */
.stage.role-sharing .sharing-content{inset:18% 8% 12%;grid-template-columns:31% 1fr;gap:8%}.sharing-heading{border-right:0;padding-right:0;position:relative;justify-content:space-between}.sharing-heading:after{content:'';display:block;position:absolute;left:0;bottom:10%;width:75%;height:42%;background:url('assets/welcome-portal.svg') left center/contain no-repeat;opacity:.2;pointer-events:none}.sharing-heading h2{font-size:4.6cqw;font-weight:550;line-height:1.2;letter-spacing:-.045em;margin-top:1.5cqw}.sharing-eyebrow{font-size:.9cqw;letter-spacing:.14em}.sharing-invitation{font-size:1.35cqw;line-height:1.8;max-width:95%;position:relative;z-index:1}.sharing-grid{gap:0}.sharing-card{border:0;border-top:1px solid #68748030;border-radius:0;background:transparent;padding:1.7cqw 0;display:grid;grid-template-columns:3cqw 1fr;gap:1.3cqw;align-items:start}.sharing-card:first-child{border-top:2px solid var(--slide-accent)}.sharing-number{font-size:1.25cqw;font-weight:650;line-height:1.7;padding:0;border:0;background:transparent;color:var(--slide-accent)}.sharing-card p{font-size:var(--body-size);line-height:1.6;font-weight:450;letter-spacing:-.02em}.design-together.role-sharing .collection-photo{display:none}.season-v2.role-sharing .season-art-main{left:-4%;right:auto;top:27%;width:36%;height:57%;opacity:.16}.season-v2.role-sharing .season-label{display:none}.season-v2.role-sharing .sharing-heading:after{display:none}.design-gallery.role-sharing .sharing-card{background:transparent}
@media(min-width:1600px){.studio-body .workspace{grid-template-columns:248px minmax(0,1fr) 340px;gap:16px;padding:16px}.inspector{padding:22px}.studio-body .preview-zone{padding:24px 28px}}
@media(max-width:1200px){.workflow-tools{gap:7px;padding:0 12px}.workflow-group{padding-right:6px}.workflow-group>span{font-size:8px;margin-right:2px}.workflow-group button{font-size:10px;padding:7px}.studio-body .workspace{grid-template-columns:190px minmax(0,1fr) 270px;gap:8px;padding:8px}.studio-header .brand{min-width:140px}.studio-header .top-actions button{font-size:10px;padding:7px 9px}.studio-modes button{padding:7px 8px;font-size:10px}.main-toolbar{padding:13px}.main-toolbar .toolbar-actions #moveUp,.main-toolbar .toolbar-actions #moveDown{display:none}}
@media(max-width:950px){.studio-body .workspace{height:auto;min-height:calc(100dvh - 138px);grid-template-columns:175px minmax(0,1fr)}.studio-body .main{min-height:540px}.studio-body .inspector{grid-column:2;min-height:300px}.studio-body .sidebar{grid-row:1/3;max-height:calc(100dvh - 150px);position:sticky;top:0}.studio-header .brand{min-width:110px}.studio-header .home-link{display:none}.studio-header #undoProject,.studio-header #redoProject{display:none}.studio-header .header-title{min-width:110px}.workflow-group>span{display:none}.design-picker{grid-template-columns:210px minmax(0,1fr);gap:15px}.design-studio-head{grid-template-columns:1fr 220px}.home-main{padding:0 25px}.home-continue{padding:24px}.home-continue h2{font-size:21px}}
@media(max-width:640px){.studio-header .brand{min-width:85px}.studio-header .brand span{font-size:7px}.studio-header .top-actions #projectButton,.studio-header .top-actions #cloudButton{display:none}.studio-body .workspace{grid-template-columns:120px minmax(0,1fr);padding:5px;gap:5px}.studio-body .main{min-height:390px}.studio-body .preview-zone{padding:8px}.main-toolbar .toolbar-actions{display:none}.main-toolbar h1{font-size:12px}.main-toolbar small{font-size:8px;max-width:50vw}.home-intro{grid-template-columns:1fr;padding:25px 0}.home-art{display:none}.home-continue{margin-top:20px;align-items:flex-start;gap:20px}.home-continue h2{font-size:20px}.home-main{padding:0 18px}.home-continue>div:last-child{flex-direction:row}.design-picker{grid-template-columns:1fr}.design-catalog{grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px}.design-preview-pane{position:static}.design-studio-head{grid-template-columns:1fr}.collection-overview{gap:9px}dialog.design-modal{padding:18px}.design-actions{bottom:-18px}.workflow-tools{gap:5px}.workflow-tools>button,.workflow-group button{font-size:10px}.workflow-group{gap:0}.studio-modes{position:sticky;right:0}.inspector{padding:13px}.mini{width:46px}.slide-label strong{font-size:9px}}
.inspector .inspector-section:not(.page-info){border:0;background:transparent;padding:0;border-radius:0}.inspector h3{gap:8px;align-items:baseline;width:100%}.inspector h3 span{margin-left:auto;white-space:nowrap}
dialog.design-modal[open]{height:min(92dvh,950px);max-height:94dvh;display:flex;flex-direction:column;overflow:hidden}.design-modal>.modal-title,.design-modal>.design-studio-head,.design-modal>.design-filters,.design-modal>.design-actions{flex:0 0 auto}.design-modal>.modal-title{margin-bottom:10px}.design-modal .design-studio-head .modal-sub{font-size:11px;margin:6px 0;line-height:1.6}.design-modal .design-studio-head label{font-size:10px}.design-modal>.design-picker{flex:1 1 auto;min-height:0;overflow:hidden;align-items:stretch}.design-modal .design-catalog{max-height:none;height:100%;overflow-y:auto;align-content:start}.design-modal .design-preview-pane{position:static;overflow-y:auto;min-height:0;padding:2px 8px 16px 2px}.design-modal .design-actions{position:static;bottom:auto;padding:12px 0 0;margin-top:12px}.design-modal #designSaveError:empty{display:none}.design-modal .modal-title h2{font-size:18px}
@media(max-width:640px){.design-modal>.design-picker{display:flex;flex-direction:column;gap:12px}.design-modal .design-catalog{height:180px;max-height:180px;flex:0 0 180px}.design-modal .design-preview-pane{flex:1 1 auto}.design-modal .design-studio-head{gap:8px}.design-modal .design-filters{gap:4px}.design-modal .design-filters button{font-size:10px;padding:5px 7px}.design-modal .design-actions p{font-size:9px}.design-modal .design-actions button{padding:10px;font-size:11px}}
.studio-body.focus-editing .workspace{height:auto;min-height:calc(100dvh - 138px);padding:15px;max-width:1100px}.studio-body.focus-editing .inspector{padding:20px 28px;max-height:none}.studio-body.focus-editing .scripture-editor{font-size:24px;min-height:420px;max-height:65dvh;line-height:1.85}.studio-body.focus-editing{overflow-y:auto}
/* Reset legacy absolute positioning before laying out the shared discussion grid. */
.stage.role-sharing[class] .sharing-content{display:grid;inset:18% 8% 12%;grid-template-columns:31% minmax(0,1fr);gap:8%}
.stage.role-sharing[class] .sharing-heading{position:relative;inset:auto;width:auto;height:auto;min-height:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:2cqw;padding:0}
.stage.role-sharing[class] .sharing-heading h2{max-height:none;overflow:visible;font-size:4.6cqw;line-height:1.25;letter-spacing:-.04em}
.stage.role-sharing[class] .sharing-grid{position:relative;inset:auto;width:auto;min-height:0;display:flex;flex-direction:column;gap:0}
.stage.role-sharing[class] .sharing-card{display:grid;grid-template-columns:2.7cqw minmax(0,1fr);align-items:center;gap:1.2cqw;flex:1;min-height:0;padding:.4cqw 0;background:transparent;border:0;border-top:1px solid #6c7b8538;border-radius:0;overflow:visible}
.stage.role-sharing[class] .sharing-card:first-child{border-top:2px solid var(--slide-accent)}
.stage.role-sharing[class] .sharing-card p{min-width:0;min-height:0;max-height:none;height:100%;display:flex;align-items:center;line-height:1.55;margin:0;overflow:hidden}
.stage.role-sharing[class] .sharing-number{font-size:1.25cqw;line-height:1.5;align-self:center;margin:0;padding:0;background:transparent}
.stage.role-sharing[class] .welcome-architecture{display:none}.stage.role-sharing[class] .sharing-content:before{display:none}
.stage.role-sharing[data-vertical-align="top"] .sharing-card p{align-items:flex-start}.stage.role-sharing[data-vertical-align="bottom"] .sharing-card p{align-items:flex-end}.stage.role-sharing[data-vertical-align="middle"] .sharing-card p{align-items:center}
.stage.role-sharing::after{display:none}
.studio-body[data-studio-mode="prepare"][data-output-connected="true"] .delivery-settings{display:flex;align-items:center;gap:10px;padding:8px 12px}.studio-body[data-studio-mode="prepare"][data-output-connected="true"] .delivery-settings>label,.studio-body[data-studio-mode="prepare"][data-output-connected="true"] .delivery-settings>select{display:none}.delivery-settings [data-pending="true"]{color:#9b6222;font-weight:650}.header-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:35vw}

.stage.role-sharing[class] .sharing-number{font-family:var(--body-font);font-size:1.5cqw;font-weight:700;letter-spacing:.02em}

/* Fixed-size formatting controls: generic inspector label/input rules must not stretch this toolbar. */
.studio-body .inspector .rich-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;padding:8px;align-items:center}
.studio-body .inspector .rich-toolbar-basics{display:grid;grid-template-columns:32px 32px minmax(0,1fr) minmax(0,1fr);gap:4px;align-items:center}
.studio-body .inspector .rich-toolbar-color{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:6px;align-items:center}
.studio-body .inspector .rich-toolbar button{height:32px;min-height:32px;min-width:0;box-sizing:border-box;padding:0 6px;font-size:11px;line-height:1;white-space:nowrap;display:flex;align-items:center;justify-content:center;border-radius:5px}
.studio-body .inspector .rich-toolbar .rich-color{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:0 4px;font-size:11px;line-height:1;height:32px;min-width:0}
.studio-body .inspector .rich-toolbar input[type=color]{flex:0 0 32px;width:32px;height:32px;min-height:32px;margin:0;padding:3px;box-sizing:border-box;border-radius:5px;cursor:pointer}
.studio-body .inspector .rich-bottom{display:grid;grid-template-columns:32px 32px minmax(0,1fr) auto;gap:6px;align-items:center}
.studio-body .inspector .rich-bottom button{height:32px;min-height:32px;padding:0 8px;line-height:1;font-size:11px;white-space:nowrap}
.studio-body .inspector .rich-bottom #markUndo,.studio-body .inspector .rich-bottom #markRedo{padding:0;width:32px}
.focus-editing .rich-toolbar{max-width:480px}

/* Operator UI typography. Deliberately scoped away from .stage and exported slides. */
.studio-body{--ui-text:14px;--ui-help:12px}
.studio-body .studio-header{height:80px;gap:12px;padding:0 20px}
.studio-body .studio-header .brand{min-width:145px}.studio-body .brand span{font-size:10px}
.studio-body .header-title strong{font-size:16px}.studio-body .header-title .saved{font-size:12px;color:#53647b}
.studio-body .studio-header .home-link{font-size:14px}.studio-body .studio-header .top-actions button{font-size:14px;min-height:40px;height:auto;padding:9px 12px}
.studio-body .workflow-tools{height:72px;min-height:72px;gap:12px;padding:0 16px}
.studio-body .workflow-tools>button,.studio-body .workflow-group button,.studio-body .studio-modes button{font-size:14px;min-height:38px;padding:8px 10px}
.studio-body .workflow-group>span{font-size:12px;color:#63738a;letter-spacing:0}.studio-body .workflow-group{padding-right:10px}
.studio-body .workspace{height:calc(100dvh - 152px);grid-template-columns:270px minmax(0,1fr) 360px}
.studio-body .side-head .eyebrow,.studio-body .main-toolbar .eyebrow{font-size:12px;color:#607087;letter-spacing:.03em}
.studio-body .side-head h2{font-size:18px}.studio-body .side-head button,.studio-body .side-bottom button,.studio-body .toggle-ref{font-size:13px}
.studio-body .search input{font-size:14px}.studio-body .slide-label strong{font-size:14px;line-height:1.45}.studio-body .slide-label small{font-size:12px;color:#64738a;line-height:1.4}
.studio-body .row-num{font-size:12px;min-width:18px}.studio-body .mini{width:68px}
.studio-body .group-heading{font-size:14px;line-height:1.4}.studio-body .group-heading small,.studio-body .order-moves button{font-size:12px}
.studio-body .order-group{flex-wrap:wrap}.studio-body .order-group .group-heading{flex-basis:110px}.studio-body .order-moves{flex-wrap:wrap;gap:3px;padding:3px}.studio-body .order-moves button{padding:4px;min-height:26px}
.studio-body .main-toolbar h1{font-size:17px}.studio-body .main-toolbar small,.studio-body .preview-caption{font-size:12px;color:#62728a}
.studio-body .toolbar-actions button{font-size:13px;min-height:34px;padding:7px 9px}
.studio-body .inspector-head strong{font-size:17px}.studio-body .inspector-head-actions button{font-size:13px}
.studio-body .inspector h3{font-size:16px}.studio-body .inspector h3 span{font-size:12px;color:#65758b}
.studio-body .inspector .page-info summary,.studio-body .inspector .page-settings summary{font-size:14px}
.studio-body .inspector label,.studio-body .inspector-section>label,.studio-body .inspector-alignment label{font-size:14px;color:#4d5f78}
.studio-body .inspector input,.studio-body .inspector select,.studio-body .inspector textarea{font-size:14px;line-height:1.6}
.studio-body .inspector button,.studio-body .page-management button{font-size:13px;line-height:1.4;min-height:34px}
.studio-body .inspector .field-note,.studio-body .scripture-purpose p,.studio-body .rich-status{font-size:12px;line-height:1.7;color:#596b84}
.studio-body .inspector .scripture-purpose label{font-size:14px}.studio-body .inspector .scripture-purpose select{font-size:14px}
.studio-body .inspector .rich-toolbar-basics{grid-template-columns:36px 36px minmax(0,1fr) minmax(0,1fr)}
.studio-body .inspector .rich-toolbar-color{grid-template-columns:minmax(0,1fr) 80px}
.studio-body .inspector .rich-toolbar button{font-size:13px;height:36px;min-height:36px;padding:0 6px}
.studio-body .inspector .rich-toolbar .rich-color{font-size:13px;height:36px}
.studio-body .inspector .rich-toolbar input[type=color]{width:36px;height:36px;min-height:36px;flex-basis:36px}
.studio-body .inspector .rich-bottom{grid-template-columns:36px 36px minmax(0,1fr) auto;gap:4px}
.studio-body .inspector .rich-bottom button{font-size:12px;height:36px;min-height:36px;padding:0 5px}
.studio-body .inspector .rich-bottom #markUndo,.studio-body .inspector .rich-bottom #markRedo{width:36px}
.studio-body .cue-strip .eyebrow{font-size:12px;color:#62738b}.studio-body .cue-strip strong,.studio-body .cue-strip button{font-size:14px}
.studio-body .delivery-settings,.studio-body .delivery-settings label,.studio-body .delivery-settings span,.studio-body .transport span,.studio-body .live-bar{font-size:12px}
.studio-body .delivery-settings select,.studio-body .delivery-settings button,.studio-body .transport button,.studio-body .live-bar button{font-size:13px}
.studio-body .bulk-selection-panel,.studio-body .bulk-selection-panel button{font-size:13px}
@media(min-width:1600px){.studio-body .workspace{grid-template-columns:300px minmax(0,1fr) 400px}}
@media(max-width:1500px){.studio-header #undoProject,.studio-header #redoProject{display:none}.studio-body .header-title strong{max-width:24vw}}
@media(max-width:1200px){.studio-body .workspace{grid-template-columns:250px minmax(0,1fr);height:auto;min-height:calc(100dvh - 152px)}.studio-body .sidebar{grid-row:1/3;max-height:calc(100dvh - 164px);position:sticky;top:0}.studio-body .main{min-height:520px}.studio-body .inspector{grid-column:2;min-height:300px}.studio-body .workflow-group>span{display:none}}
@media(max-width:800px){.studio-body .studio-header .brand{min-width:100px}.studio-body .studio-header .home-link{display:none}.studio-body .header-title{min-width:100px}.studio-body .studio-header .top-actions #projectButton,.studio-body .studio-header .top-actions #cloudButton{display:none}.studio-body .workspace{grid-template-columns:205px minmax(0,1fr)}.studio-body .main-toolbar{flex-wrap:wrap;gap:10px}.studio-body .main-toolbar small{max-width:45vw}.studio-body .main-toolbar .toolbar-actions{display:flex}.studio-body .mini{width:52px}.studio-body .slide-label strong{font-size:13px}}
@media(max-width:600px){.studio-body .workspace{grid-template-columns:minmax(0,1fr)}.studio-body .sidebar{grid-row:auto;max-height:300px;position:static}.studio-body .inspector{grid-column:1}.studio-body .header-title{display:none}.studio-body .studio-header .brand span{font-size:9px}.studio-body .main-toolbar small{max-width:85vw}}

/* Keep list position stable while selection and thumbnails update. */
.studio-body .slide-list{overflow-anchor:none;scroll-behavior:auto}
.studio-body .slide-row:focus-visible{outline:2px solid #315b87;outline-offset:-2px}

/* Six actual screens always fit in the audition area; advanced options are separate. */
.design-modal .design-preview-pane{display:flex;flex-direction:column;overflow:hidden;padding:0 4px;gap:8px}
.design-modal #designPreview{flex:1 1 auto;min-height:0;container-type:size;display:grid;place-items:center;overflow:hidden}
.design-modal #designPreview>.collection-overview{width:min(100%,calc((100cqh - 54px)*8/3));display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.design-modal .collection-overview>div{min-width:0;min-height:0}
.design-modal .collection-overview>div>span{font-size:12px;line-height:18px;height:18px;margin:4px 0 0;color:#52647c}
.design-modal #designPreview>.stage{width:min(100%,calc(100cqh*16/9));aspect-ratio:16/9}
.design-modal .preview-tabs{flex:0 0 auto;display:flex;flex-wrap:nowrap;overflow-x:auto;margin:0;gap:4px}
.design-modal .preview-tabs button{font-size:12px;white-space:nowrap;padding:6px 9px}
.design-modal .design-preview-caption{font-size:12px;margin:0;line-height:1.5;flex:0 0 auto;color:#617087}
.design-modal .design-note{font-size:13px;margin:0;line-height:1.5;flex:0 0 auto}
.design-modal .design-preview-options{flex:0 0 auto;max-height:22vh;overflow-y:auto;border:1px solid #dce3ed;border-radius:7px;padding:8px 10px;font-size:12px}
.design-modal .design-preview-options summary{cursor:pointer;color:#415773;font-size:13px;font-weight:600}
.design-modal .design-preview-options label{font-size:12px;margin:9px 0}.design-modal .design-preview-options .field-note{font-size:12px}
.design-modal .design-studio-head .modal-sub{font-size:12px}.design-modal .design-filters button{font-size:13px}.design-modal .design-caption strong{font-size:13px}.design-modal .design-caption small{font-size:12px}
.design-modal>.design-studio-head{gap:16px}.design-modal>.design-filters{margin:6px 0 10px}
@media(max-width:950px){.design-modal .design-picker{grid-template-columns:190px minmax(0,1fr);gap:14px}.design-modal #designPreview>.collection-overview{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,calc((100cqh - 82px)*32/27))}}
@media(max-width:640px){dialog.design-modal{height:96dvh;max-height:96dvh;padding:12px}.design-modal .design-studio-head .modal-sub,.design-modal .design-preview-caption{display:none}.design-modal>.design-picker{flex-direction:row;gap:8px}.design-modal .design-catalog{width:110px;flex:0 0 110px;height:100%;max-height:none;grid-template-columns:1fr}.design-modal .design-caption{padding:6px}.design-modal .design-caption small{display:none}.design-modal .design-caption strong{font-size:11px}.design-modal .design-preview-pane{flex:1;min-width:0}.design-modal .design-studio-head{display:block}.design-modal .design-studio-head>div:first-child{display:none}.design-modal .design-studio-head label{display:none}.design-modal .design-filters{flex-wrap:nowrap;overflow-x:auto;gap:2px}.design-modal .design-filters button{font-size:12px;white-space:nowrap}.design-modal .design-actions p{display:none}.design-modal .design-note{font-size:12px}.design-modal .design-preview-options summary{font-size:12px}}
/* Illustrated special-day series, with three title compositions and calm reading canvases. */
.event-v1.pro-layout .theme-ornament{left:8%;top:14%;width:84%;height:1px;opacity:.25}
.event-v1.pro-layout .season-art-main{width:43%;height:80%;right:1%;top:10%;opacity:1;object-fit:contain}
.event-v1.pro-layout .season-art-echo{display:none}
.event-v1.pro-layout .season-label{left:8%;top:22%;font-size:1cqw;letter-spacing:.16em;opacity:.8}
.event-v1.pro-layout:is(.role-title,.role-welcome) .title-content{inset:32% 43% 20% 8%;align-items:flex-start;text-align:left;justify-content:center;gap:2.5cqw}
.event-v1.pro-layout:is(.role-title,.role-welcome) .title-content h2{font-size:5cqw;line-height:1.25;letter-spacing:-.04em}
.event-v1.pro-layout .title-content p{font-size:1.9cqw;line-height:1.6}
.event-v1.event-poster:is(.role-title,.role-welcome) .title-content{inset:25% 45% 17% 8%}
.event-v1.event-poster .season-art-main{right:0;top:5%;width:46%;height:90%}
.event-v1.event-landscape .season-art-main{top:15%;right:-3%;width:50%;height:84%}
.event-v1.event-landscape:is(.role-title,.role-welcome) .title-content{inset:28% 45% 20% 8%}
.event-v1.pro-layout:is(.role-lyrics,.role-scripture,.role-notice) .season-art-main{width:13%;height:24%;right:-2%;top:auto;bottom:-4%;opacity:.13}
.event-v1.pro-layout:is(.role-lyrics,.role-scripture,.role-notice) .season-label{display:none}
.event-v1.pro-layout.role-prayer .season-art-main{right:38%;top:8%;width:24%;height:42%;opacity:.24}
.event-v1.pro-layout.role-prayer .title-content{inset:43% 15% 15%;text-align:center;align-items:center;gap:2cqw}
.event-v1.pro-layout.role-prayer .season-label{display:none}
.event-v1.pro-layout.role-sharing .season-art-main{left:3%;right:auto;top:35%;width:29%;height:47%;opacity:.22}
.event-v1.pro-layout.role-sharing .sharing-heading:after{display:none}.event-v1.pro-layout.role-sharing .season-label{display:none}
.design-group-base .pro-art{position:absolute;inset:19% 7% 15% 63%;border:1px solid currentColor;border-radius:12cqw 12cqw 0 0;opacity:.16}.design-group-base .pro-art:before,.design-group-base .pro-art:after{content:'';position:absolute;inset:9% 13%;border:1px solid currentColor;border-radius:12cqw 12cqw 0 0}.design-group-base .pro-art:after{inset:18% 26%}.design-group-base .pro-art i,.design-group-base .pro-wordmark{display:none}.design-group-base:is(.role-title,.role-welcome) .title-content{inset:27% 38% 22% 8%;align-items:flex-start;text-align:left;gap:2.5cqw}.design-group-base:is(.role-title,.role-welcome) .title-content h2{font-size:5.4cqw}.design-group-base .theme-ornament{height:1px;width:84%;left:8%;top:15%;opacity:.3}.design-group-base:is(.role-lyrics,.role-scripture) .pro-art{display:none}.design-group-base.role-sharing .pro-art{left:7%;right:66%;opacity:.1}.design-group-base.role-prayer .pro-art{inset:20% 36% 42%;opacity:.12}
.design-modal .design-preview-pane{align-self:stretch;height:100%;min-height:0}
.design-modal .collection-overview .stage{max-height:none;width:100%}

/* Home is a working dashboard: broad canvas, readable type and clear actions. */
.home-body{font-size:16px;background:#f3f5f8}
.home-body .home-header,.home-body .home-main{width:min(1920px,calc(100% - 96px));max-width:none;margin-inline:auto;box-sizing:border-box}
.home-body .home-header{height:88px;padding:0 32px;gap:24px}
.home-body .home-header .brand{min-width:180px}.home-body .home-header .brand strong{font-size:21px}.home-body .home-header .brand span{font-size:11px}
.home-body .home-location{font-size:14px;color:#596c85}
.home-body button,.home-body input{font-size:16px;line-height:1.5}
.home-body .home-header>button{font-size:14px;min-height:42px;padding:9px 15px}
.home-body .home-main{padding:0 32px 40px}
.home-body .home-continue{margin-top:36px;padding:36px 40px;gap:32px;min-height:210px;border-radius:16px}
.home-body .home-continue .eyebrow{font-size:14px;color:#c0cede;letter-spacing:0}
.home-body .home-continue h2{font-size:clamp(28px,2vw,38px);line-height:1.35;margin:12px 0;overflow-wrap:anywhere}
.home-body .home-continue p{font-size:16px;line-height:1.6;color:#c5d1e1}
.home-body .home-continue>div:first-child{min-width:0}
.home-body .home-continue button{font-size:16px;min-height:48px;padding:12px 20px}
.home-body .home-continue button.primary{font-size:16px;min-height:48px;padding:12px 24px}
.home-body .home-preparation-summary{gap:10px;flex-wrap:wrap;margin-top:20px}
.home-body .home-preparation-summary span{font-size:14px;line-height:1.5;padding:6px 11px;color:#e1e8f2;background:#ffffff0e}
.home-body .home-intro{padding:36px 0;grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:center}
.home-body .home-intro .eyebrow{font-size:12px;letter-spacing:.1em;color:#776854}
.home-body .home-intro h1{font-size:clamp(30px,2.2vw,42px);line-height:1.3;margin:12px 0 14px}
.home-body .home-intro p{font-size:17px;color:#53667e;line-height:1.7}
.home-body .home-intro-actions{gap:12px;flex-wrap:wrap;margin-top:22px}
.home-body .home-intro-actions button{font-size:16px;min-height:46px;padding:11px 18px}
.home-body .home-art{width:100%;max-height:none;aspect-ratio:16/9;border-radius:12px}
.home-body .home-projects{margin-top:24px;padding-top:0}
.home-body .home-section-title{margin-bottom:22px;gap:24px}
.home-body .home-section-title .eyebrow{font-size:12px;color:#667991;letter-spacing:.1em}
.home-body .home-section-title h2{font-size:26px;margin-top:8px}
.home-body .home-section-title input{width:360px;max-width:45%;font-size:16px;padding:12px 14px}
.home-body .home-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:20px}
.home-body .home-project{padding:26px;border-radius:12px;min-height:220px}
.home-body .project-date{font-size:14px;color:#5e7088;gap:12px}
.home-body .project-date span{font-size:12px;padding:4px 8px;white-space:nowrap}
.home-body .home-project h3{font-size:22px;line-height:1.45;margin:20px 0 10px}
.home-body .home-project p{font-size:14px;line-height:1.6;color:#5e7088}
.home-body .home-project>div:last-child{margin-top:24px;padding-top:16px;gap:12px}
.home-body .home-project button{font-size:15px;min-height:40px;padding:8px 12px}
.home-body .home-footer{padding:24px 0;margin-top:36px;gap:20px;flex-wrap:wrap}
.home-body .home-footer>span{font-size:12px;color:#61738b}
.home-body .home-footer p{font-size:14px;line-height:1.7;color:#53667e;min-width:220px}
.home-body .home-footer button{font-size:14px;min-height:40px}
@media(max-width:1100px){.home-body .home-header,.home-body .home-main{width:calc(100% - 40px);padding-inline:20px}.home-body .home-continue{padding:28px;align-items:flex-start}.home-body .home-continue>div:last-child{flex-direction:column}.home-body .home-intro{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.home-body .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-body .home-project{padding:22px}}
@media(max-width:720px){.home-body .home-header,.home-body .home-main{width:100%;padding-inline:20px}.home-body .home-header{height:auto;min-height:80px;flex-wrap:wrap;padding-block:14px;gap:10px}.home-body .home-header .brand{min-width:130px}.home-body .home-location{display:none}.home-body .home-header>button{margin-left:auto;font-size:13px;padding:8px 10px}.home-body .home-continue{flex-direction:column;padding:24px;margin-top:20px;gap:22px}.home-body .home-continue>div:last-child{flex-direction:row;flex-wrap:wrap}.home-body .home-intro{grid-template-columns:1fr;padding:28px 0}.home-body .home-art{display:none}.home-body .home-section-title{align-items:flex-start;flex-direction:column;gap:16px}.home-body .home-section-title input{width:100%;max-width:none}.home-body .home-grid{grid-template-columns:1fr}.home-body .home-footer p{flex-basis:100%;min-width:0}}

#markAccent{gap:5px}.text-accent-swatch{display:inline-block;width:11px;height:11px;flex:0 0 11px;border:1px solid #0002;border-radius:50%}

/* Persistent local text/highlight palettes. Toolbar mousedown retains text selection. */
.studio-body .inspector .rich-toolbar-color{grid-template-columns:minmax(0,1fr) 66px 64px;gap:5px}
.studio-body .inspector .rich-toolbar .palette-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #dfe5ed;padding-top:7px;margin-top:2px;font-size:12px;color:#596c84}
.studio-body .inspector .rich-toolbar #paletteManage{font-size:12px;height:28px;min-height:28px;padding:0 8px;background:transparent}
.studio-body .inspector .rich-toolbar .saved-palette{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:0 4px 5px;min-height:30px}
.studio-body .inspector .rich-toolbar .color-favorite{width:28px;height:28px;min-height:28px;flex:0 0 28px;padding:3px;border:1px solid #9baabd;background:#fff;border-radius:6px}
.color-favorite span{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border-radius:3px;background:var(--favorite-color);font-size:20px;color:#fff;text-shadow:0 1px 3px #000}
.color-favorite:hover,.color-favorite:focus-visible{outline:2px solid #305b89;outline-offset:1px}.color-favorite.removing{border-color:#b76058}
.palette-empty,.palette-storage-note{font-size:12px;line-height:1.5;color:#64758b}.palette-storage-note{padding:0 4px 3px}

/* Selection status must not move the editor when format feedback becomes shorter. */
.studio-body .inspector .rich-status{min-height:58px;display:flex;align-items:center;overflow-anchor:none}
.studio-body .inspector,.studio-body .scripture-editor{overflow-anchor:none}

.home-remote-launch{font-size:16px;color:#294c77;display:inline-flex;align-items:center;padding:10px 14px;text-decoration:none;border:1px solid #c8d6e8;background:#edf3fb;border-radius:8px;min-height:46px}.phone-remote-link{display:inline-block;margin-top:18px;color:#294d7b;font-size:15px;padding:10px 0}

.score-selected{display:grid;gap:8px;margin:12px 0}.score-file-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #d5dfeb;border-radius:12px;background:#f7f9fc}.score-file-row img{width:48px;height:64px;object-fit:contain;background:white;border:1px solid #dce3ed;border-radius:5px}.score-file-row>div{flex:1;min-width:0}.score-file-row strong{font-size:14px;display:block;overflow-wrap:anywhere}.score-file-row small{display:block;font-size:12px;margin-top:4px;color:#667c97}.score-file-row button{min-width:40px;min-height:44px;padding:8px}.upload-zone.is-dragging{background:#e8eff9;border-color:#305c96}.upload-zone:focus-visible{outline:3px solid #537eae;outline-offset:3px}@media(max-width:500px){.score-file-row{gap:5px}.score-file-row img{width:34px;height:48px}.score-file-row button{min-width:36px}}

/* Recognition review owns its scrolling; actions always remain in view. */
body:has(#modal[open]){overflow:hidden;overscroll-behavior:none}
dialog.ai-review-modal[open]{width:min(1120px,96vw);height:min(92dvh,1000px);max-height:calc(100dvh - 24px);display:flex;flex-direction:column;overflow:hidden;padding:22px 26px;overscroll-behavior:contain}
.ai-review-modal>.modal-title{flex:0 0 auto;margin-bottom:12px}
.ai-review-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 8px 18px 0}
.ai-review-modal .ai-review-layout{align-items:start}
.ai-review-modal .ai-results{max-height:none;overflow:visible;min-width:0}
.ai-review-modal .ai-original{top:0}
.ai-review-modal .score-viewer{max-height:55dvh;overflow:auto;overscroll-behavior:contain}
.ai-review-modal>.ai-footer{flex:0 0 auto;flex-wrap:wrap;margin:0;padding:14px 0 0;border-top:1px solid #d5deea;background:white}
.ai-review-modal>.ai-footer p{margin:0;color:#596b84;font-size:13px}
.ai-review-modal>.ai-footer .field-row{margin:0;flex-wrap:wrap}
.ai-review-modal>.ai-footer button{min-height:44px;white-space:normal}
@media(max-width:800px){dialog.ai-review-modal[open]{padding:16px;width:96vw;height:94dvh}.ai-review-modal .ai-review-layout{grid-template-columns:1fr}.ai-review-modal .ai-original{position:static}.ai-review-modal .score-viewer{max-height:30dvh}.ai-review-modal>.ai-footer{gap:8px}.ai-review-modal>.ai-footer p{display:none}.ai-review-modal>.ai-footer .field-row{width:100%}.ai-review-modal #importRecognized{flex:1}}
@media(max-height:500px){dialog.ai-review-modal[open]{height:96dvh;padding:10px 16px}.ai-review-modal>.ai-footer{padding-top:8px}.ai-review-modal>.ai-footer p{display:none}}

/* Compact library toolbar: search expands, actions keep natural widths. */
#modal .library-search{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin-bottom:10px}
#modal .library-search>input{flex:1 1 180px;min-width:100px;width:auto;margin:0}
#modal .library-search>button{flex:0 0 auto;width:auto;white-space:nowrap;padding:9px 12px;min-height:40px;margin:0}
@media(max-width:540px){#modal .library-search{flex-wrap:wrap}#modal .library-search>input{flex-basis:100%}}
