/* Guided settings, owned bot cards and per-cabinet applications, v10. */
.protection-v10{max-width:1100px;margin:0 auto}.protection-intro,.bot-catalog-head,.apps-section-head,.bot-section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:15px}.protection-intro h3,.apps-intro h3,.bot-catalog-head h3{margin:0 0 5px;font-size:17px}.protection-intro p,.bot-catalog-head p,.apps-intro p{font-size:12px;line-height:1.5;color:var(--muted);margin:0}.protection-mode{display:flex;gap:18px;align-items:center;margin-bottom:14px}.protection-mode .field{flex:1}.rule-presets{display:grid;gap:8px}.rule-preset{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}.rule-preset.enabled{background:#f0f7f2;border-color:#a4c8b1}.rule-check input,.rule-switch input{width:17px;height:17px;accent-color:#23543d}.rule-switch{grid-column:1/3;display:flex;gap:12px;align-items:center;font-weight:600}.rule-preset:first-child>div{grid-column:1/3}.rule-preset:first-child>button{grid-column:3;grid-row:1/3}.rule-title{border:0;background:transparent;font-weight:650;padding:0;font-size:13px;text-align:left}.rule-title span{font-weight:400;color:var(--muted);margin-left:4px}.rule-description p,.rule-preset p{font-size:12px;color:var(--muted);margin:4px 0}.rule-summary{font-size:11px;color:#3e674e}.warning-editor{border-top:1px solid var(--line);margin-top:18px;padding-top:14px}.warning-editor h3{font-size:15px;margin:0 0 7px}.warning-editor p{font-size:12px;color:var(--muted);line-height:1.5}.warning-editor textarea{width:100%;min-height:65px}.warning-preview{background:#eef5f0;padding:11px;border-radius:10px;font-size:12px;white-space:pre-wrap;margin:6px 0 12px}.protection-footer{position:sticky;bottom:-15px;padding:12px 0 5px;background:#fff;border-top:1px solid var(--line);margin-top:16px;z-index:2}.protection-footer small{display:block;color:var(--muted);margin-top:6px;font-size:11px}
.rule-help-dialog{width:min(760px,94vw);max-width:760px;padding:0;max-height:90dvh}.rule-help-dialog[open],.bot-manager-dialog[open]{display:flex;flex-direction:column}.rule-help-dialog header,.bot-manager-dialog>header{padding:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);flex-shrink:0}.rule-help-dialog header h2,.bot-manager-dialog header h2{margin:0;font-size:19px}.rule-help-dialog header button,.bot-manager-dialog header>button{font-size:20px;padding:4px 10px}.rule-help-content{padding:18px 20px;overflow:auto;min-height:0;font-size:13px;line-height:1.5}.rule-examples{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.rule-examples>div{background:#f3f7f4;border-radius:10px;padding:12px}.rule-examples h3{font-size:13px;margin:0 0 8px}.rule-examples p{margin:6px 0}.rule-consequences{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.rule-consequences .check{margin:10px 0}.rule-help-dialog footer,.bot-manager-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:9px;border-top:1px solid var(--line);padding:12px 20px;flex-shrink:0}.rule-help-dialog input,.rule-help-dialog textarea,.rule-help-dialog select,.bot-manager-dialog input:not([type=checkbox]),.bot-manager-dialog textarea,.bot-manager-dialog select{width:100%;padding:9px;border:1px solid var(--line);border-radius:8px;font:inherit}.rule-help-dialog textarea{resize:vertical}.protection-v10 select{padding:8px;font-size:12px}
.bot-card-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:stretch}.bot-card{border:1px solid var(--line);border-radius:13px;padding:14px 12px;display:flex;flex-direction:column;gap:6px;min-width:0;background:white;transition:box-shadow .16s,transform .16s}.bot-card:hover{box-shadow:0 7px 24px #233e3012;transform:translateY(-1px)}.bot-avatar{width:44px;height:44px;border-radius:12px;background:#e5f0e9;color:#28523d;display:grid;place-items:center;font-size:22px;font-weight:700;margin-bottom:5px}.bot-card>strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-card>small{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-card-status{font-size:10px;color:#3d674f}.bot-card-groups{margin-top:auto;min-height:20px;padding-top:9px}.bot-card>button{margin-top:4px;width:100%}.bot-manager-dialog{width:min(1000px,94vw);max-width:1000px;height:min(760px,90dvh);padding:0;overflow:hidden}.bot-manager-dialog small{font-size:11px;color:var(--muted)}.bot-modal-body{flex:1;min-height:0;overflow:auto;padding:18px 20px}.bot-modal-body section+section{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.bot-manager-dialog .studio-tabs{padding-left:20px}.bot-rights-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.bot-manager-dialog form{display:flex;flex-direction:column;flex:1;min-height:0}.bot-manager-dialog footer #bm-message{font-size:12px;color:var(--muted);max-width:80%;overflow-wrap:anywhere}.destructive-notice{padding:18px;background:#fff6f3;border:1px solid #e3c6bf;border-radius:12px}.destructive-notice h3{color:#993a2e}.bot-section-heading h3,.bot-add-section h3{margin-top:0;font-size:15px}.bot-manager-dialog .studio-row>select{flex:1;min-width:0}.bot-manager-dialog .studio-row>button{flex-shrink:0}
.application-catalog{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:16px 0 22px}.application-card{display:grid;grid-template-columns:45px 1fr;gap:12px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fbf9}.application-card button{grid-column:2;justify-self:start}.application-card h3,.app-instance strong{font-size:15px;margin:0 0 8px}.application-card p,.template-grid p{font-size:12px;color:var(--muted);line-height:1.5;margin:0 0 5px}.app-icon{font-size:27px;color:#316148}.app-instance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.app-instance{border:1px solid var(--line);border-radius:12px;padding:15px;display:flex;flex-direction:column;gap:8px;min-width:0}.app-instance small,.app-instance span{font-size:11px;color:var(--muted)}.app-instance button{margin-top:auto}.legacy-app{margin-top:20px;border-top:1px solid var(--line);padding-top:15px;font-size:12px}.legacy-app p{color:var(--muted)}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.template-grid article{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:12px;padding:20px}.template-grid button{margin-top:auto}.template-grid h3{font-size:16px;margin:0}
.studio-body.is-app-editor{display:flex;flex-direction:column;overflow:hidden;padding:0}.app-editor-head{display:flex;align-items:center;gap:15px;flex-shrink:0;padding:10px 15px;border-bottom:1px solid var(--line)}.app-editor-head h3{margin:0;font-size:15px}.app-editor-head small{font-size:10px;color:var(--muted)}.app-editor-head>span{margin-left:auto;max-width:35%;white-space:normal}.app-sections{display:flex;gap:5px;padding:8px 15px;border-bottom:1px solid var(--line);flex-shrink:0;overflow-x:auto}.app-sections button{font-size:11px;padding:6px 8px;white-space:nowrap}.app-sections .active{background:#e9f3ed;border-color:#9dbba8}.app-editor-body{min-height:0;flex:1;overflow:auto;padding:15px;scrollbar-width:thin}.app-editor-footer{padding:10px 15px;border-top:1px solid var(--line);background:white;flex-shrink:0}.app-editor-footer small{font-size:10px;color:var(--muted);display:block;margin-top:5px}.app-editor-body .field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#4e6154}.app-editor-body input:not([type=checkbox]),.app-editor-body textarea,.app-editor-body select{width:100%;padding:8px;border:1px solid var(--line);border-radius:8px;font:inherit;background:white}.app-editor-body textarea{resize:vertical;min-height:58px}.app-config-top{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:15px;align-items:end}.app-config-top>.studio-actions{grid-column:1/3}.app-config-top>small{font-size:11px;color:var(--muted);grid-column:1/3}.app-config-top>.field:last-child{grid-column:1/3}.carousel-designer{display:grid;grid-template-columns:145px minmax(200px,1fr) minmax(205px,.8fr);gap:13px;align-items:start}.app-slides{display:flex;flex-direction:column;gap:10px;position:sticky;top:0;min-width:0}.app-slides small{font-size:10px;color:var(--muted);line-height:1.5}#app-slide-list{display:flex;flex-direction:column;gap:5px;max-height:270px;overflow:auto}#app-slide-list button{display:flex;gap:7px;font-size:11px;text-align:left;min-width:0;padding:8px}#app-slide-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#app-slide-list .active{background:#e9f4ed;border-color:#92bca2}.app-slide-form{display:flex;flex-direction:column;gap:10px;min-width:0}.slide-heading{display:flex;justify-content:space-between;gap:7px;align-items:center}.slide-heading h3{font-size:13px;margin:0}.slide-heading .studio-actions{gap:3px}.slide-heading button{font-size:10px;padding:5px}.app-slide-form small{font-size:10px;color:var(--muted);line-height:1.4}.app-slide-form h4{font-size:12px;margin:7px 0 0}.slide-media-list>div{display:flex;align-items:center;justify-content:space-between;font-size:11px;gap:7px}.slide-media-list span{overflow:hidden;text-overflow:ellipsis}.file-picker{border:1px dashed #9abcaa;border-radius:8px;padding:9px;font-size:12px;cursor:pointer;display:block}.file-picker input{display:none}.slide-button-row{display:grid;grid-template-columns:1fr 1.2fr 24px;gap:4px;margin-bottom:7px}.slide-button-row button{padding:0}.app-preview{position:sticky;top:0;padding:13px;border:1px solid #d5e3d9;background:#f0f6f2;border-radius:13px;min-width:0}.app-preview h3{font-size:13px;margin:0 0 5px}.app-preview>small{font-size:10px;color:var(--muted);display:block;margin-bottom:10px}.app-preview .preview-message{min-height:95px;padding:12px;font-size:12px}.app-preview img{width:100%;max-height:190px;object-fit:contain;border-radius:9px}.preview-links{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:6px 0 10px}.preview-links button{font-size:11px;color:#2b6343;opacity:1!important;cursor:default!important;overflow-wrap:anywhere}.preview-controls button{padding:6px;font-size:11px}.media-placeholder{padding:30px;text-align:center;color:var(--muted)}.app-common{border-top:1px solid var(--line);margin-top:18px;padding-top:12px;font-size:12px}.app-common .field{margin-top:10px}.schedule-layout,.reviews-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.schedule-layout h3,.reviews-layout h3{font-size:15px}.schedule-layout small,.reviews-layout small{color:var(--muted);font-size:11px;line-height:1.5}.schedule-preview{background:#f1f6f3;border:1px solid var(--line);border-radius:12px;padding:20px;font-size:12px;line-height:1.6}.schedule-preview>div{margin-bottom:8px}.schedule-preview p{color:var(--muted)}.app-editor-body .db-table{table-layout:auto}.app-editor-body .db-table th{width:auto}.app-editor-body .db-table-wrap{padding:0}
@media(max-width:1250px){.bot-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.carousel-designer{grid-template-columns:115px minmax(190px,1fr) minmax(175px,.8fr)}.bot-card{padding:12px 9px}.app-sections button{font-size:10px}.app-editor-head .text-button{font-size:10px}.app-editor-head h3{font-size:13px}}
@media(max-width:1050px){.bot-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.carousel-designer{grid-template-columns:105px minmax(0,1fr)}.app-preview{grid-column:2;position:static}.schedule-layout,.reviews-layout{grid-template-columns:1fr}.app-instance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.application-catalog{grid-template-columns:1fr}.bot-manager-dialog{height:90dvh}}
@media(max-width:700px){.bot-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-grid,.app-instance-grid,.rule-examples,.bot-rights-grid{grid-template-columns:1fr}.app-config-top{grid-template-columns:1fr}.app-config-top>*{grid-column:1!important}.rule-preset{padding:10px;gap:8px}.bot-catalog-head{flex-wrap:wrap}.protection-intro{display:block}}
@media(prefers-reduced-motion:reduce){.bot-card{transition:none}.bot-card:hover{transform:none}}
/* Dense desktop layouts without hiding navigation or destructive confirmations. */
@media(min-width:1120px){.rule-presets{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-preset:first-child{grid-column:1/-1}.rule-preset{padding:10px;gap:9px}.rule-title{font-size:12px}.rule-description p{font-size:11px}.rule-preset>button{font-size:11px;padding:7px 9px}}
.protection-intro{margin-bottom:10px}.protection-mode{margin-bottom:10px}.studio-panel:has(.is-app-editor)>.studio-head{display:none}
@media(min-width:1051px){.app-config-top{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.app-config-top>.field:first-child{grid-column:1;grid-row:1}.app-config-top>.field:nth-child(2){grid-column:2;grid-row:1}.app-config-top>.field:last-child{grid-column:3;grid-row:1}.app-config-top>.studio-actions{grid-column:1/4;grid-row:2}.app-config-top>small{grid-column:1/4;grid-row:3}}
