/* App controls keep their authored pressed/selected state without browser tap
   flashes or a focus ring caused by touching a dialog's close button. */
html {
  -webkit-tap-highlight-color: transparent;
}

html[data-input-mode="pointer"] :is(:focus, :focus-visible),
html[data-input-mode="pointer"] :is(.choice, .stage-choice) input:is(:focus, :focus-visible) + span {
  outline: none !important;
}

/* Keep keyboard navigation visible, including focusable scroll regions.
   Existing component-specific focus offsets still apply where provided. */
html[data-input-mode="keyboard"] :where(button, a[href], input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
}

/* Chrome and control captions are actions, not selectable document text. */
:is(.sidebar, .topbar, button, [role="button"], .btn, .choice, .stage-choice, label) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Preserve editing, caret placement and native copy/paste inside chrome too.
   Page content and contact information retain normal selection/copy behavior. */
:is(input, textarea, [contenteditable]:not([contenteditable="false"])),
[contenteditable]:not([contenteditable="false"]) * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* Source setup stays within the existing light, lime product surface. */
.source-group{margin-top:28px}.source-group-title{font-size:14px;color:var(--muted,#676767);margin:0 0 8px}.source-row h4{font-size:15px;font-weight:650;margin:0}.source-info{min-width:0;flex:1}.source-last{display:block;margin-top:7px;color:var(--muted,#676767)}.source-actions{display:flex;flex-direction:column;gap:8px;flex-shrink:0}.source-info p,.source-setup,.field-help{overflow-wrap:anywhere}.source-setup{white-space:pre-line;line-height:1.6}.field-help{font-size:13px;color:var(--muted,#676767);margin:-6px 0 16px}.source-error{font-size:13px}.source-settings .setting-row{align-items:flex-start}.source-settings .badge{white-space:normal}
.notification-preferences-summary{display:grid;gap:14px;margin-top:20px}.notification-preferences-summary>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid var(--line)}.notification-preferences-summary strong{overflow-wrap:anywhere}.notification-preferences-summary span,.notification-company-name{font-size:12px;color:var(--muted)}.notification-company-name{display:block;margin-bottom:6px}.notification-company{min-width:0;border:1px solid var(--line);border-radius:20px;padding:16px;margin:18px 0}.notification-company legend{font-weight:650;padding:0 6px;overflow-wrap:anywhere;max-width:100%}.notification-company .check{min-height:44px;margin:10px 0;align-items:flex-start}.notification-company .check input{margin-top:4px;flex-shrink:0}.notification-scope{padding-left:8px}.notification-scope small{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}.notification-scope:has(input:disabled){opacity:.6}.notification-company p{font-size:13px}
@media(max-width:480px){.source-row{flex-wrap:wrap}.source-info{flex-basis:100%}.source-actions{flex-direction:row;flex-wrap:wrap;width:100%}.source-actions .btn{flex:1;min-height:44px}.source-group{margin-top:24px}}
