/* geofrey · operações guiadas */
.ops-mt{margin-top:12px}
.ops-form:not(.guided-form),.ops-send-form{display:grid;gap:16px}
.ops-form .flow-step-fields>:not(.field){grid-column:1/-1}
.ops-form .flow-step-fields>.field.full{grid-column:1/-1}
.ops-form .flow-review-content{display:grid;gap:16px}
.ops-form .flow-review-content>.context-card{margin:0}
.ops-form .form-section:last-of-type{margin-bottom:0}
.ops-subheading{font-size:15px;font-weight:var(--weight-medium);margin-bottom:6px}
.ops-form .choice-card strong,.ops-checkbox strong{font-size:14px;font-weight:var(--weight-medium);line-height:1.5}
.ops-form .choice-card small,.ops-checkbox small{display:block;font-size:13px;color:var(--text-muted);line-height:1.6;margin-top:3px}
.ops-list-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;color:var(--text-muted);margin-bottom:12px}
.ops-list-caption>span:first-child{font-weight:var(--weight-medium);color:var(--text)}
.ops-automation-list{overflow:hidden;padding:0}
.ops-automation{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:14px;align-items:start;padding:18px 20px;border-bottom:1px solid var(--border);transition:background .18s}
.ops-automation:last-child{border-bottom:0}
.ops-automation:hover{background:var(--surface-soft)}
.ops-automation-icon,.ops-activity-icon{display:inline-flex;align-items:center;justify-content:center;background:var(--surface-soft);color:var(--text-muted);width:36px;height:36px;border:1px solid var(--border);border-radius:10px;flex-shrink:0}
.ops-automation-icon svg{width:18px;height:18px}
.ops-automation .list-main{min-width:0}
.ops-automation .card-title{font-size:16px;line-height:1.4;letter-spacing:-.02em}
.ops-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.ops-rule{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:6px 0;font-size:14px;line-height:1.6;color:var(--text-muted)}
.ops-rule>svg{width:13px;height:13px;transform:rotate(-90deg);color:var(--text-muted)}
.ops-row-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;line-height:1.65;color:var(--text-muted)}
.ops-toggle{position:relative;display:inline-flex;align-items:center;width:44px;height:40px;flex-shrink:0}
.ops-toggle>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0;z-index:1}
.ops-toggle>span{position:absolute;left:0;top:8px;width:42px;height:24px;background:var(--surface);border:1px solid var(--border-control);border-radius:30px;pointer-events:none;transition:background var(--duration-normal)}
.ops-toggle>span:before{content:"";position:absolute;left:2px;top:2px;width:18px;height:18px;background:var(--border-control);border-radius:50%;transition:transform var(--duration-normal)}
.ops-toggle>input:checked+span{background:var(--accent);border-color:var(--accent)}
.ops-toggle>input:checked+span:before{transform:translateX(18px);background:var(--on-strong)}
.ops-toggle>input:focus-visible+span{outline:3px solid var(--focus);outline-offset:3px}
.ops-actions .ops-toggle{margin-right:7px}
.ops-checkbox,.ops-check-item{display:flex;align-items:flex-start;gap:11px;line-height:1.5}
.ops-checkbox>input,.ops-check-item>input,.ops-template-check>input{width:18px;height:18px;min-width:18px;margin-top:3px;accent-color:var(--accent)}
.ops-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.ops-check-item{padding:13px;font-size:14px;cursor:pointer;min-width:0}
.ops-check-item strong{display:block;font-size:14px;font-weight:var(--weight-medium)}
.ops-check-item small{display:block;font-size:13px;color:var(--text-muted);margin-top:4px;line-height:1.5}
.ops-profile-choices{grid-template-columns:1fr;margin-top:12px}
.ops-search{display:flex;align-items:center;gap:8px;min-width:210px}
.ops-search>svg{width:18px;height:18px;flex-shrink:0;color:var(--text-muted)}
.ops-task-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}
.ops-task-column{min-width:0;background:var(--surface-soft);border:1px solid var(--border);border-radius:13px;padding:13px}
.ops-task-column>.row .section-title{font-size:15px}
.ops-task-column .task-card{background:var(--surface);border:1px solid var(--border);border-radius:11px;padding:14px;transition:border-color .18s,box-shadow .18s,transform .18s}
.ops-task-column .task-card:hover{border-color:var(--border-control);box-shadow:0 3px 10px #1e293506;transform:translateY(-1px)}
.ops-task-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin-bottom:6px}
.ops-task-heading .card-title{font-size:15px;line-height:1.5;font-weight:var(--weight-medium);letter-spacing:-.015em}
.ops-task-heading .icon-btn{width:40px;height:40px;min-width:40px;min-height:40px;padding:8px;margin-top:0}
.ops-task-heading .icon-btn svg{width:16px;height:16px}
.ops-task-meta{display:grid;gap:5px;margin:12px 0;color:var(--text-muted);font-size:13px}
.ops-task-meta span{display:flex;align-items:center;gap:7px}
.ops-task-meta svg{width:15px;height:15px;flex-shrink:0;color:var(--text-muted)}
.ops-task-state{display:block}
.ops-task-state .select{width:100%;font-size:13px;min-height:40px;padding:7px 10px;background:var(--surface-soft)}
.ops-column-empty{padding:24px 5px;text-align:center;color:var(--text-muted);font-size:13px}
.ops-task-form .form-section-grid{gap:15px}
.ops-timeline-item{display:flex;align-items:flex-start;gap:13px;padding:14px 0;border-bottom:1px solid var(--border)}
.ops-timeline-item:first-child{padding-top:0}.ops-timeline-item:last-child{border-bottom:0;padding-bottom:0}
.ops-timeline-item .ops-activity-icon{width:32px;height:32px;border-radius:9px}
.ops-timeline-item .ops-activity-icon svg{width:16px;height:16px}
.ops-timeline-item .list-main>p{font-size:14px;line-height:1.7}
.ops-timeline-item .ops-mt{margin-top:5px}
.ops-integration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ops-integration-grid .integration-card{display:flex;flex-direction:column;gap:13px;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:13px;min-width:0;transition:border-color .18s}
.ops-integration-grid .integration-card:hover{border-color:var(--border-control)}
.ops-integration-header{display:flex;align-items:center;gap:11px}
.ops-integration-header>div{flex:1;min-width:0}
.ops-integration-header .card-title{font-size:17px;line-height:1.4}
.ops-integration-header>.badge{margin-left:auto;white-space:nowrap}
.ops-integration-description{font-size:14px;color:var(--text-muted);line-height:1.65}
.ops-integration-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid var(--border);margin-top:auto}
.ops-integration-footer>.ops-row-meta{max-width:55%}
.ops-integration-footer>.row{gap:5px;flex-shrink:0}
.ops-capabilities{margin-top:12px;border:1px solid var(--border);border-radius:11px;overflow:hidden}
.ops-capabilities .permission-row{display:flex;justify-content:space-between;gap:18px;padding:12px 13px;border-bottom:1px solid var(--border);font-size:14px;line-height:1.55}
.ops-capabilities .permission-row:last-child{border:0}
.ops-capabilities .permission-row>strong{font-size:14px;font-weight:var(--weight-medium);max-width:50%}
.ops-capabilities .permission-row>span{font-size:13px;color:var(--text-muted);text-align:right;max-width:52%}
.ops-template-option{border:1px solid var(--border);border-radius:11px;background:var(--surface);overflow:hidden}
.ops-template-option:has(input:checked){border-color:var(--accent)}
.ops-template-check{display:flex;align-items:flex-start;gap:11px;padding:13px;cursor:pointer}
.ops-template-check>span:nth-child(2){flex:1;min-width:0}
.ops-template-check strong{display:block;font-weight:var(--weight-medium);font-size:14px;line-height:1.5}
.ops-template-check small{display:block;color:var(--text-muted);font-size:13px;margin-top:4px;line-height:1.5}
.ops-template-check:has(input:disabled){cursor:default;background:var(--surface-soft)}
.ops-template-detail{padding:0 13px 11px 42px}
.ops-template-detail>summary{font-size:13px;color:var(--text-muted);cursor:pointer;width:fit-content}
.ops-template-detail>p{white-space:pre-line;font-size:14px;line-height:1.65;background:var(--surface-soft);border-radius:8px;padding:12px;margin-top:9px;color:var(--text-muted)}
.ops-more-options{border-top:1px solid var(--border);padding-top:13px;margin-top:2px}
.ops-more-options>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;color:var(--text-muted);list-style:none;font-weight:var(--weight-medium);line-height:1.6}
.ops-more-options>summary::-webkit-details-marker{display:none}
.ops-more-options>summary:after{content:"+";font-size:18px;font-weight:var(--weight-body);color:var(--text-muted);line-height:1;margin-left:auto}
.ops-more-options[open]>summary:after{content:"−"}
.ops-more-options>summary~*{margin-top:12px}
.ops-more-options[open]>summary~*{animation:ops-reveal .18s ease both}
.ops-summary-count{display:inline-grid;place-items:center;padding:1px 7px;background:var(--surface-soft);border-radius:6px;color:var(--text-muted);font-size:13px;font-variant-numeric:tabular-nums}
.ops-credential-steps{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:0}
.ops-credential-steps li{padding:12px 0;border-bottom:1px solid var(--border)}
.ops-credential-steps li:last-child{border:0;padding-bottom:0}
.ops-credential-steps strong{font-size:14px;font-weight:var(--weight-medium)}
.ops-credential-steps small{display:block;font-size:13px;color:var(--text-muted);margin-top:4px;line-height:1.6}
.ops-definition{margin:0;display:grid;gap:0;border:1px solid var(--border);border-radius:11px;overflow:hidden}
.ops-definition>div{display:flex;justify-content:space-between;gap:18px;padding:13px;border-bottom:1px solid var(--border);font-size:14px}
.ops-definition>div:last-child{border:0}.ops-definition dt{color:var(--text-muted);flex:1}.ops-definition dd{margin:0;text-align:right;font-weight:var(--weight-medium);max-width:65%;overflow-wrap:anywhere}
.ops-definition dd small{display:block;font-size:13px;font-weight:var(--weight-body);color:var(--text-muted);margin-top:5px}
.ops-message-preview{background:var(--surface-soft);border:1px solid var(--border);border-radius:12px;padding:15px;white-space:pre-line;font-size:14px;line-height:1.75;color:var(--text);overflow-wrap:anywhere}
.ops-live-preview{display:grid;gap:8px}
.ops-preview-label{font-size:13px;font-weight:var(--weight-medium);color:var(--text-muted)}
.ops-role-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:4px 0}
.ops-role-grid p{margin-top:6px;font-size:14px;line-height:1.65;color:var(--text-muted)}
.ops-role-grid strong{font-size:15px;font-weight:var(--weight-medium)}
.ops-team-list{padding:0;overflow:hidden}
.ops-team-list .list-row{padding:16px 18px}
.ops-team-list .list-title{font-size:16px}
.ops-team-list .list-main>.ops-row-meta{margin-top:3px}
.ops-team-list .list-end{gap:12px}
.ops-usage{display:grid;gap:8px;padding:6px 0}
.ops-usage progress{height:7px;border:0;border-radius:12px;width:100%;overflow:hidden;accent-color:var(--accent)}
.ops-usage progress::-webkit-progress-bar{background:var(--surface-soft);border-radius:12px}
.ops-usage progress::-webkit-progress-value{background:var(--accent);border-radius:12px}
.ops-usage progress::-moz-progress-bar{background:var(--accent);border-radius:12px}
.ops-license-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.ops-license-grid h3{margin:12px 0 7px;font-size:16px}
.ops-license-grid p{font-size:14px;line-height:1.7}
.ops-onboard-connection{align-items:center;padding:14px;gap:10px}
/* Real integration identifiers on the list and configuration steps. */
.integration-brand {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
}
.integration-brand > img {
  display: block;
  width: 36px;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
}
.ops-onboard-connection .integration-brand {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 8px;
}
.ops-onboard-connection .integration-brand > img {
  width: 30px;
  height: 30px;
}
.context-card > .integration-brand { width: 42px; height: 42px; flex-basis: 42px; }
.context-card > .integration-brand > img { width: 34px; height: 34px; }
.ops-access-detail{display:grid;gap:17px}
.ops-access-detail>.detail-hero{margin:0;padding-bottom:15px}
.ops-access-detail .detail-hero h3{font-size:21px}
.ops-detail-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft);color:var(--text-muted);flex-shrink:0}
.ops-detail-icon svg{width:22px;height:22px}
.ops-lock-status{display:grid;grid-template-columns:.6fr .8fr 1.5fr;gap:18px}
.ops-lock-status .detail-stat{font-size:13px;gap:5px}
.ops-lock-status .detail-stat>strong{font-size:15px;line-height:1.6;font-weight:var(--weight-medium)}
.ops-lock-status .detail-stat:nth-child(-n+2)>strong{font-size:19px}
.ops-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.ops-section-heading h3{font-size:16px}
.ops-section-heading p{font-size:13px;line-height:1.6;color:var(--text-muted);margin-top:4px}
.ops-access-detail .detail-section{padding:16px}
.ops-access-list{display:grid;gap:0}
.ops-access-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:13px;padding:14px 0;border-top:1px solid var(--border)}
.ops-access-person{display:flex;align-items:center;gap:10px;min-width:0;flex:1 1 240px}
.ops-access-person>div{min-width:0}
.ops-access-person strong{font-size:14px;font-weight:var(--weight-medium);line-height:1.6}
.ops-access-person .row{gap:8px}
.ops-access-person .ops-row-meta{margin-top:3px;font-size:13px}
.ops-small-avatar{display:grid;place-items:center;width:33px;height:33px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;flex-shrink:0;font-size:13px;color:var(--text-muted);font-weight:var(--weight-medium)}
.ops-access-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ops-access-actions .btn{font-size:13px}
.ops-access-actions .icon-btn{width:40px;height:40px;min-width:40px;min-height:40px;padding:8px}
.ops-access-actions .icon-btn svg{width:16px;height:16px}
.ops-pin-toggle{background:var(--surface-soft);display:inline-flex;align-items:center;gap:8px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:15px;padding:8px 10px;border:1px solid var(--border);border-radius:9px;white-space:nowrap;cursor:pointer;min-height:40px;color:var(--text-muted)}
.ops-pin-toggle svg{width:15px;height:15px;color:var(--text-muted)}
.ops-pending-note{flex-basis:100%;margin-left:43px}
.ops-empty-access{display:flex;align-items:center;gap:12px;padding:18px 2px 8px;color:var(--text-muted)}
.ops-empty-access svg{width:21px;height:21px;flex-shrink:0}
.ops-empty-access p{font-size:14px;line-height:1.6}
.ops-lock-settings{max-width:470px}
.ops-monospace{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.06em}
.ops-recipient{display:flex;align-items:center;gap:10px;padding-bottom:15px;border-bottom:1px solid var(--border)}
.ops-recipient>div{min-width:0;flex:1}
.ops-recipient strong{font-size:15px;font-weight:var(--weight-medium)}
.ops-recipient p{font-size:13px;color:var(--text-muted);line-height:1.6;margin-top:3px}
.ops-recipient>.badge{margin-left:auto;max-width:120px;text-align:center}
.ops-send-form>.form-grid{align-items:start}
.ops-send-form #opsAccessTemplate{min-width:0}
.ops-delivery-preview{border:1px solid var(--border);border-radius:13px;overflow:hidden;background:var(--surface-soft)}
.ops-delivery-header{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--border);background:var(--surface)}
.ops-chat-mark{display:grid;place-items:center;width:29px;height:32px;overflow:hidden}
.ops-chat-mark .brand-symbol{transform:scale(.55);transform-origin:center}
.ops-delivery-header strong{display:block;font-size:15px;font-weight:var(--weight-medium);letter-spacing:-.025em}
.ops-delivery-header span:not(.ops-chat-mark):not(.brand-symbol){font-size:13px;color:var(--text-muted)}
.ops-delivery-body{padding:16px;display:grid;gap:7px}
.ops-delivery-body>.ops-message-preview{background:var(--surface);border:1px solid var(--border);border-radius:4px 13px 13px 13px;box-shadow:0 2px 4px #15223603;font-size:14px;padding:14px;line-height:1.75}
.ops-delivery-body>.ops-message-preview.is-empty{color:var(--text-muted);background:var(--surface-soft);border-style:dashed}
.ops-message-caption{font-size:13px;color:var(--text-muted);padding-left:3px;line-height:1.6}
.ops-settings-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;align-items:start}
.ops-settings-grid .panel-head{padding-bottom:12px}
.ops-settings-grid .panel-head>.ops-row-meta{margin-top:5px}
.ops-preferences .switch-row{gap:18px;padding:14px 0}
.ops-preferences .switch-row:first-child{padding-top:0}
.ops-preferences .switch-row:last-child{padding-bottom:0}
.ops-preferences .switch-row strong{font-size:14px;font-weight:var(--weight-medium)}
.ops-preferences .switch-row small{display:block;font-size:13px;color:var(--text-muted);line-height:1.6;margin-top:4px}
.ops-preferences-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
@keyframes ops-reveal{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.ops-task-board{gap:10px}.ops-task-column{padding:10px}.ops-task-column .task-card{padding:12px}.ops-settings-grid{grid-template-columns:1fr}.ops-integration-footer{align-items:flex-start;flex-wrap:wrap}.ops-integration-footer>.ops-row-meta{max-width:100%;flex:1 1 160px}}
@media(max-width:900px){.ops-automation{grid-template-columns:32px minmax(0,1fr);gap:11px;padding:16px}.ops-automation-icon{width:32px;height:32px}.ops-automation>.ops-actions{grid-column:2;justify-self:start;margin-top:1px}.ops-role-grid{gap:15px}.ops-integration-header{flex-wrap:wrap}.ops-integration-header>.badge{margin-left:47px}.ops-integration-header>div{flex-basis:calc(100% - 48px)}.ops-task-heading .card-title{font-size:14px}.ops-access-actions{margin-left:43px}.ops-access-row{justify-content:flex-start}}
@media(max-width:700px){.ops-integration-grid,.ops-task-board,.ops-role-grid,.ops-license-grid{grid-template-columns:1fr}.ops-task-column{padding:13px}.ops-task-column .task-card{padding:15px}.ops-task-heading .card-title{font-size:15px}.ops-check-grid,.ops-connection-choices{grid-template-columns:1fr}.ops-integration-header{flex-wrap:nowrap}.ops-integration-header>div{flex-basis:auto}.ops-integration-header>.badge{margin-left:auto}.ops-integration-footer{flex-wrap:nowrap;align-items:center}.ops-integration-footer>.ops-row-meta{flex-basis:auto;max-width:56%}.ops-integration-grid .integration-card{padding:16px}.ops-list-caption>span:last-child{display:none}.ops-automation .card-title{font-size:15px}.ops-rule{font-size:13px;gap:6px}.ops-row-meta{font-size:13px}.ops-search{min-width:180px;width:100%}.ops-capabilities .permission-row{flex-direction:column;gap:5px}.ops-capabilities .permission-row>strong,.ops-capabilities .permission-row>span{max-width:100%;text-align:left}.ops-template-check{flex-wrap:wrap}.ops-template-check>.badge{margin-left:29px}.ops-definition>div{gap:12px}.ops-definition dd{max-width:63%}.ops-lock-status{grid-template-columns:1fr 1fr;gap:14px}.ops-lock-status>.detail-stat:last-child{grid-column:1/-1;border-top:1px solid var(--border);padding-top:12px}.ops-section-heading{align-items:flex-start}.ops-section-heading>div{max-width:58%}.ops-section-heading>.btn{white-space:nowrap;font-size:13px}.ops-access-detail .detail-section{padding:14px}.ops-access-actions{margin-left:0}.ops-access-person{flex-basis:100%}.ops-pending-note{margin-left:0}.ops-recipient{flex-wrap:wrap}.ops-recipient>.badge{margin-left:43px;max-width:none}.ops-recipient>div{flex-basis:calc(100% - 43px)}.ops-delivery-body{padding:13px}.ops-team-list .list-row{flex-wrap:wrap;padding:15px}.ops-team-list .list-end{margin-left:47px;gap:10px}.ops-team-list .list-main{min-width:180px}.ops-team-list .list-title{font-size:15px}.ops-preferences-actions{align-items:stretch}.ops-preferences-actions .primary{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.ops-automation,.ops-task-column .task-card,.ops-integration-grid .integration-card,.ops-toggle>span,.ops-toggle>span:before{transition:none}.ops-task-column .task-card:hover{transform:none}.ops-more-options[open]>summary~*{animation:none}}

/* Controles, recuperação e estados após a auditoria de experiência. */
.ops-choice-fieldset{min-width:0;border:0;margin:0;padding:0}
.ops-choice-fieldset.panel-body{padding:20px}
.ops-choice-fieldset>legend:not(.sr-only){padding:0;margin-bottom:6px}
.ops-form .ops-choice-fieldset .choice-grid{margin-top:0}
.ops-choice-fieldset:has(>label)>.ops-check-grid{margin-top:12px}
.ops-choice-fieldset .choice-card:has(input:disabled){opacity:1;cursor:default}
.ops-choice-fieldset .choice-card:has(input:disabled) strong,.ops-choice-fieldset .choice-card:has(input:disabled) small{color:var(--text-muted)}
.ops-form .choice-card,.ops-template-option{border-color:var(--border-control)}
.ops-form .choice-card:has(input:checked),.ops-template-option:has(input:checked){border-color:var(--accent)}
.ops-automation .ops-actions .btn,.ops-access-actions .btn,.ops-integration-footer .btn,.ops-team-list .btn{min-height:40px}
.ops-access-name{padding:4px 0;min-height:40px;max-width:100%;font:inherit;font-size:14px;line-height:1.6;font-weight:var(--weight-medium);color:var(--text);background:transparent;border:0;cursor:pointer;text-align:left;text-decoration:underline;text-decoration-color:var(--border-control);text-underline-offset:3px;overflow-wrap:anywhere}
.ops-access-name:hover{text-decoration-color:var(--text)}
.ops-access-name:focus-visible,.ops-pin-toggle:focus-visible,.ops-more-options>summary:focus-visible,.ops-template-detail>summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:5px}
.ops-more-options>summary,.ops-template-detail>summary{min-height:40px;display:flex;align-items:center}
.ops-template-detail>summary{width:100%;gap:8px}
.ops-template-detail>summary:before{content:"+";font-weight:var(--weight-medium)}
.ops-template-detail[open]>summary:before{content:"−"}
.ops-template-detail>summary::-webkit-details-marker{display:none}
.ops-template-detail>summary{list-style:none}
.ops-pin-toggle{border-color:var(--border-control)}
.ops-recovery-actions{gap:8px;margin-top:10px}
.ops-code-reason{flex-basis:100%;margin-left:43px;color:var(--text-muted)}
.ops-rule-issue{font-size:13px;line-height:1.65;color:var(--warning);margin-top:6px;overflow-wrap:anywhere}
.ops-task-preparation{font-size:13px;line-height:1.65;color:var(--text-muted);margin:0 0 10px}
.ops-availability-ready{display:flex;align-items:center;gap:8px;color:var(--success);font-size:14px;line-height:1.6}
.ops-availability-ready svg{width:18px;height:18px;flex-shrink:0}
.ops-draft-notice{color:var(--text-muted);font-size:14px;line-height:1.65;padding:12px 15px;margin-bottom:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface-soft)}
.ops-preferences-actions>.row{gap:10px}
.ops-form .field-note,.ops-form .inline-help,.ops-access-detail .inline-help{color:var(--text-muted)}
.ops-template-check small,.ops-recipient p,.ops-message-caption{color:var(--text-muted)}
.ops-task-meta span{flex-wrap:wrap}
.ops-task-heading .card-title,.ops-automation .card-title,.ops-team-list .list-title,.ops-integration-header .card-title{overflow-wrap:anywhere}
.ops-search input{min-width:0;width:100%}
.ops-check-item>span,.ops-checkbox>span{min-width:0;overflow-wrap:anywhere}
.ops-preferences .switch-row{min-height:44px}
.ops-preferences .ops-toggle{flex-shrink:0}
.ops-preferences [hidden],.ops-form [hidden],.ops-send-form [hidden]{display:none!important}
@media(pointer:coarse){
 .ops-toggle{height:44px}.ops-toggle>span{top:10px}
 .ops-task-heading .icon-btn,.ops-access-actions .icon-btn{width:44px;height:44px;min-width:44px;min-height:44px}
 .ops-task-state .select,.ops-pin-toggle,.ops-access-name,.ops-more-options>summary,.ops-template-detail>summary,.ops-automation .ops-actions .btn,.ops-access-actions .btn,.ops-integration-footer .btn,.ops-team-list .btn{min-height:44px}
}
@media(max-width:700px){.ops-code-reason{margin-left:0}.ops-preferences-actions>.row{width:100%;justify-content:flex-end}.ops-section-heading{flex-wrap:wrap}.ops-section-heading>div{max-width:100%}.ops-integration-footer{flex-wrap:wrap}.ops-integration-footer>.ops-row-meta{max-width:100%}.ops-integration-header{flex-wrap:wrap}.ops-integration-header>.badge{margin-left:0}.ops-recipient strong{overflow-wrap:anywhere}}

@media(max-width:580px){.ops-usage-heading{flex-direction:column;align-items:flex-start;gap:8px}.ops-usage-heading>.section-title,.ops-usage-heading>p{width:100%;max-width:100%;margin:0}}

/* Painel de regras */
.automation-overview {
  container-type: inline-size;
  color: var(--text);
}
.auto-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.auto-toolbar > .btn { min-height: 44px; }
.auto-filters {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.auto-filters button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  font-size: var(--font-small);
  cursor: pointer;
}
.auto-filters button:hover { color: var(--text); background: var(--surface); }
.auto-filters button[aria-pressed="true"] {
  color: var(--accent-text);
  background: var(--surface);
  border-color: var(--border);
  font-weight: 600;
}
.auto-count {
  min-width: 19px;
  padding: 1px 4px;
  border-radius: 5px;
  background: var(--surface);
  font-size: .72rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.auto-filters [aria-pressed="true"] .auto-count { background: var(--accent-soft); }
.auto-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.auto-card {
  min-width: 0;
  padding: 18px 20px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}
.auto-card-head {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
}
.auto-type {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  background: var(--accent-soft);
}
.auto-type .icon { width: 18px; height: 18px; }
.auto-card h2, .auto-empty h2 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.auto-flow {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: 25px;
  padding: 13px 14px;
  margin: 16px 0 10px;
  background: var(--canvas);
  border-radius: var(--radius-sm);
}
.auto-flow > div { position: relative; min-width: 0; }
.auto-flow > div + div::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid var(--text-subtle);
  border-right: 1.5px solid var(--text-subtle);
  transform: translateY(-50%) rotate(45deg);
}
.auto-flow dt { font-size: var(--font-caption); color: var(--text-muted); }
.auto-flow dd { margin: 3px 0 0; font-size: var(--font-label); line-height: 1.4; overflow-wrap: anywhere; }
.auto-context {
  display: flex;
  align-items: baseline;
  gap: 6px 16px;
  flex-wrap: wrap;
  padding: 2px 0 12px;
  color: var(--text-muted);
  font-size: var(--font-small);
}
.auto-context > span { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.auto-context .icon { align-self: flex-start; margin-top: 3px; width: 14px; height: 14px; flex-shrink: 0; }
.auto-issue {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 7px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border-radius: var(--radius-xs);
  font-size: var(--font-small);
  color: var(--warning);
  background: var(--warning-bg);
}
.auto-issue > .icon { align-self: flex-start; width: 14px; height: 14px; margin-top: 3px; }
.auto-issue > span { flex: 1 1 170px; }
.auto-issue button {
  padding: 2px 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.auto-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding: 3px 0;
}
.auto-actions .btn { min-height: 40px; gap: 6px; padding-inline: 8px; }
.auto-actions > .btn:first-child { margin-left: -8px; }
.auto-actions .btn .icon { width: 14px; height: 14px; }
.auto-enable {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  cursor: pointer;
  font-size: var(--font-small);
  color: var(--text-muted);
}
.auto-enable .ops-toggle { width: 36px; }
.auto-enable .ops-toggle > span { width: 34px; height: 20px; top: calc(50% - 10px); }
.auto-enable .ops-toggle > span::before { width: 14px; height: 14px; }
.auto-enable .ops-toggle > input:checked + span::before { transform: translateX(14px); }
.auto-empty {
  grid-column: 1/-1;
  padding: 36px 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.auto-empty > .icon { width: 24px; height: 24px; color: var(--accent-text); }
.auto-empty p { margin: 0; color: var(--text-muted); }
@container (max-width: 790px) {
  .auto-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 590px) {
  .auto-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  .auto-toolbar > .btn { align-self: flex-start; }
  .auto-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .auto-filters button { min-height: 44px; }
  .auto-actions .btn, .auto-enable { min-height: 44px; }
}
@container (max-width: 410px) {
  .auto-card { padding: 14px 12px 0; }
  .auto-card-head { gap: 7px; }
  .auto-type { width: 28px; height: 28px; }
  .auto-type .icon { width: 15px; height: 15px; }
  .auto-card h2 { font-size: .96rem; }
  .auto-flow { margin-top: 12px; gap: 22px; padding-inline: 10px; }
  .auto-flow > div + div::before { left: -14px; }
}

/* Biblioteca de rotinas e configuração */
.routine-library { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.routine-option {
  position:relative; display:grid; align-content:start; justify-items:start; gap:8px;
  padding:18px; text-align:left; font:inherit; color:var(--text); cursor:pointer;
  border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface);
}
.routine-option:first-child { background:var(--surface-soft); }
.routine-option:hover,.routine-option:focus-visible { border-color:var(--accent); background:var(--accent-soft); }
.routine-option:focus-visible,.routine-details summary:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.routine-symbol {
  display:grid; place-items:center; width:36px; height:36px; border-radius:10px;
  background:var(--accent-soft); color:var(--accent-text); flex-shrink:0;
}
.routine-symbol svg { width:19px; height:19px; }
.routine-option:first-child .routine-symbol { background:var(--accent); color:var(--on-strong); }
.routine-option strong,.routine-summary strong { font-size:1rem; font-weight:var(--weight-medium); }
.routine-option>span:last-of-type,.routine-summary div>span { color:var(--text-muted); font-size:var(--font-small); line-height:1.55; }
.routine-option i { position:absolute; right:16px; top:22px; color:var(--accent-text); }
.routine-option i svg { width:16px; height:16px; }
.routine-form,.routine-fields { display:grid; gap:14px; }
.routine-summary { display:flex; align-items:center; gap:12px; padding:14px; background:var(--surface-soft); border-radius:var(--radius-md); }
.routine-summary div { display:grid; gap:3px; }
.routine-details { min-width:0; padding:0 2px 8px; border-bottom:1px solid var(--border); }
.routine-details summary { display:flex; align-items:center; gap:8px; min-height:40px; cursor:pointer; font-size:var(--font-label); }
.routine-details summary::-webkit-details-marker { display:none; }
.routine-details summary::after { content:''; width:7px; height:7px; border:solid var(--accent-text); border-width:0 1.5px 1.5px 0; transform:rotate(45deg); margin:-3px 5px 0 auto; flex-shrink:0; }
.routine-details[open] summary::after { transform:rotate(225deg); margin-top:4px; }
.routine-details summary>svg { width:16px; height:16px; flex-shrink:0; color:var(--accent-text); }
.routine-details summary>strong { font-size:var(--font-small); font-weight:var(--weight-body); color:var(--text-muted); overflow-wrap:anywhere; }
.routine-details[open]>summary { margin-bottom:8px; }
.routine-approval { align-items:center; padding:10px 12px; cursor:pointer; }
.routine-approval strong { font-size:var(--font-small); font-weight:var(--weight-medium); }
.routine-notice { padding:12px 14px; border-left:3px solid var(--border-control); background:var(--canvas); color:var(--text-muted); font-size:var(--font-small); line-height:1.6; }
.routine-form [hidden] { display:none; }
@media (max-width:560px) {
  .routine-library { grid-template-columns:1fr; gap:8px; }
  .routine-option { grid-template-columns:auto 1fr; column-gap:12px; row-gap:3px; padding:13px 30px 13px 12px; }
  .routine-option .routine-symbol { grid-column:1; grid-row:1 / 3; align-self:center; }
  .routine-option i { right:9px; top:15px; }
}
.routine-back { justify-self:start; padding:4px 0; border:0; background:none; color:var(--accent-text); font:inherit; font-size:var(--font-small); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
