/* Ruction Elements v0.4.26 — shared, presentation-only Modern Experience layer.
   Source-only. This sheet never changes module positions, editable controls, layout IDs,
   network behavior, stored data, or permissions. Existing black shell remains intact. */
#appShell {
  --re426-blue: #128fd1;
  --re426-blue-strong: #087bb8;
  --re426-teal: #087e86;
  --re426-text: #172b41;
  --re426-muted: #587085;
  --re426-border: #dbe5ee;
  --re426-surface: #ffffff;
  --re426-soft: #f4f8fb;
  --re426-input: #ffffff;
  --re426-focus: rgba(18,143,209,.22);
  --re426-shadow: 0 9px 26px rgba(10,34,56,.055), 0 2px 7px rgba(10,34,56,.03);
}
#appShell[data-theme="dark"] {
  --re426-blue: #43c1f1;
  --re426-blue-strong: #139dd8;
  --re426-teal: #62d8c6;
  --re426-text: #eef7fc;
  --re426-muted: #adc0ce;
  --re426-border: #304552;
  --re426-surface: #121b22;
  --re426-soft: #172631;
  --re426-input: #152430;
  --re426-focus: rgba(51,187,243,.3);
  --re426-shadow: 0 12px 28px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.08);
}
/* Quiet, shared visual polish across primary dashboard cards. Does not touch layout, size or handles. */
#appShell :is(#businessOutcomesView .re355-business-card,
              #conversionGoalsView .re355-module,
              #performanceDashboardView .re355-performance-hero,
              #changesView .re317-panel,
              #teamView .re309-card,
              #overviewView .re423-growth-card) {
  border-radius: 17px!important;
  box-shadow: var(--re426-shadow)!important;
  transition: box-shadow .18s ease,border-color .18s ease;
}
#appShell :is(#businessOutcomesView .re355-business-card,
              #conversionGoalsView .re355-module):focus-within {
  border-color: color-mix(in srgb,var(--re426-blue) 48%,var(--re426-border))!important;
}
#appShell #conversionGoalsView .re355-module {
  border-color:var(--re426-border)!important;
  background:var(--re426-surface)!important;
  color:var(--re426-text);
  padding:45px 20px 20px!important; /* Retain safe top clearance for four existing module controls. */
}
#appShell #conversionGoalsView .re355-module>h2,
#appShell #conversionGoalsView .re355-module>h3,
#appShell #conversionGoalsView .re355-module .re426-panel-heading h2 {
  color:var(--re426-text)!important;
  font-size:17px;
  font-weight:730;
  letter-spacing:-.03em;
  line-height:1.3;
}
#appShell #conversionGoalsView .re355-module :is(input,select,textarea) {
  background:var(--re426-input)!important;
  color:var(--re426-text)!important;
  border:1px solid var(--re426-border)!important;
  border-radius:11px;
  min-height:42px;
  font:inherit;
  font-size:13px;
  box-sizing:border-box;
}
#appShell #conversionGoalsView .re355-module textarea {padding:12px 13px;line-height:1.55;resize:vertical}
#appShell #conversionGoalsView .re355-module :is(input,select,textarea):focus-visible {
  outline:2px solid var(--re426-blue);
  outline-offset:1px;
  border-color:var(--re426-blue)!important;
  box-shadow:0 0 0 4px var(--re426-focus);
}
#appShell #conversionGoalsView .re355-module :is(input,textarea)::placeholder {color:var(--re426-muted);opacity:.84}
#appShell #conversionGoalsView .re355-module :is(label,.re359-field-label) {color:var(--re426-text);font-weight:650}
#appShell #conversionGoalsView .re355-module button:not(.re329-control):not([class*="re329-"]):not([class*="re376-"]):not([class*="re387-"]):not(.re329-drag-handle) {
  min-height:37px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:650;
  transition:background .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
#appShell #conversionGoalsView .re355-module button:not([class*="re376-"]):not([class*="re329-"]):focus-visible,
#appShell #conversionGoalsView .re426-help:focus-visible {
  outline:2px solid var(--re426-blue)!important;outline-offset:3px;
}
#appShell #conversionGoalsView .re355-module :is(.primary,.re426-primary-action){
  background:#0c95d2!important;border:1px solid #0c95d2!important;color:#fff!important;
  box-shadow:0 2px 8px rgba(5,140,207,.14);
}
#appShell #conversionGoalsView .re355-module :is(.primary,.re426-primary-action):hover {
  background:#067cb8!important;border-color:#067cb8!important;
}
#appShell #conversionGoalsView .re355-module :is(.re426-secondary-action,.re426-text-action){
  background:var(--re426-soft)!important;
  color:var(--re426-blue)!important;
  border:1px solid var(--re426-border)!important;
  padding:9px 13px;
  cursor:pointer;
}
#appShell #conversionGoalsView .re355-module .re426-text-action {border-color:transparent!important;background:transparent!important;padding:7px 9px;white-space:nowrap}
#appShell #conversionGoalsView .re355-module :is(.re426-secondary-action,.re426-text-action):hover {background:var(--re426-soft)!important;border-color:var(--re426-blue)!important}
#appShell #conversionGoalsView .re355-module :is(details>summary) {cursor:pointer}
#appShell #conversionGoalsView .re355-module :is(details>summary):focus-visible {outline:2px solid var(--re426-blue);outline-offset:3px;border-radius:5px}
#appShell #conversionGoalsView .re355-module .re355-subtle,
#appShell #conversionGoalsView .re355-module .cev-muted {color:var(--re426-muted)!important}
/* Lead quality is a clearly delineated workspace inside the original source-review module. */
#appShell #conversionGoalsView .re426-sources .re426-panel-heading {
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding-bottom:6px;
}
#appShell #conversionGoalsView .re426-eyebrow {display:block;font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--re426-blue);margin:0 0 6px}
#appShell #conversionGoalsView .re426-panel-heading h2 {display:flex;align-items:center;gap:8px;margin:0 0 3px!important}
#appShell #conversionGoalsView .re426-intro {font-size:12.5px!important;margin:0!important;color:var(--re426-muted)!important}
#appShell #conversionGoalsView .re426-inline-status {margin:5px 0 12px!important;color:var(--re426-muted)!important;font-size:12px!important}
#appShell #conversionGoalsView .re426-source-results {padding-bottom:2px}
/* Tooltips are focusable notes, not inert action buttons. Contents remain readable with keyboard. */
#appShell .re426-help {position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:19px;height:19px;flex-shrink:0;border-radius:100%;border:1px solid var(--re426-border);
  background:var(--re426-soft);color:var(--re426-muted);font-size:11px;line-height:1;font-weight:800;
  cursor:help;vertical-align:middle;user-select:none;
}
#appShell .re426-help [role="tooltip"] {display:none;position:absolute;z-index:160;bottom:calc(100% + 12px);left:50%;transform:translateX(-50%);
  width:min(252px,70vw);padding:12px 14px;border-radius:11px;background:#07131d;color:#ebf9ff;
  border:1px solid #3a687e;box-shadow:0 12px 30px #0005;font-size:12px;font-weight:450;letter-spacing:0;line-height:1.5;
  white-space:normal;text-align:left;pointer-events:none;
}
#appShell .re426-help:is(:hover,:focus,[data-open="true"]) [role="tooltip"] {display:block}
#appShell .re426-help:focus-visible {outline:2px solid var(--re426-blue);outline-offset:3px}
/* Source-safe advanced details are collapsed; critical preview state stays exposed. */
#appShell #conversionGoalsView .re426-information {margin:12px 0 0;border-top:1px solid var(--re426-border);padding:10px 0 0}
#appShell #conversionGoalsView .re426-information>summary {color:var(--re426-muted)!important;font-size:12px;font-weight:650;padding:4px 0}
#appShell #conversionGoalsView .re426-information>p {color:var(--re426-muted)!important;font-size:12px!important;line-height:1.6!important;margin:10px 0 2px!important}
#appShell #conversionGoalsView .re426-lead-quality {
  margin:18px 0 0;padding:0!important;border:1px solid var(--re426-border)!important;
  background:var(--re426-soft);border-radius:15px;overflow:visible;
}
#appShell #conversionGoalsView .re426-lead-quality>summary {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:15px 16px!important;margin:0!important;list-style:none;
  color:var(--re426-text)!important;font-weight:760!important;font-size:15px!important;
}
#appShell #conversionGoalsView .re426-lead-quality>summary::-webkit-details-marker {display:none}
#appShell #conversionGoalsView .re426-lead-title {display:flex;align-items:center;gap:10px;min-width:0}
#appShell #conversionGoalsView .re426-leading-icon {display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;
  flex-shrink:0;border-radius:10px;background:rgba(18,143,209,.11);color:var(--re426-blue);font-size:20px}
#appShell #conversionGoalsView .re426-preview-badge {display:inline-flex;align-items:center;white-space:nowrap;
  padding:5px 9px;border-radius:999px;border:1px solid var(--re426-border);
  background:var(--re426-surface);font-size:10px;font-weight:750;letter-spacing:.035em;color:var(--re426-muted)}
#appShell #conversionGoalsView .re426-lead-quality:not([open])>summary {border-radius:15px}
#appShell #conversionGoalsView .re426-quality-body {padding:0 16px 17px}
#appShell #conversionGoalsView .re426-quality-head p {font-size:12px!important;margin:0 0 13px!important;color:var(--re426-muted)!important}
#appShell #conversionGoalsView .re426-evidence-row {display:flex;align-items:center;gap:9px;
  flex-wrap:wrap;padding:10px 12px;border-radius:11px;
  border:1px solid var(--re426-border);background:var(--re426-surface);font-size:12px;color:var(--re426-muted);line-height:1.45}
#appShell #conversionGoalsView .re426-evidence-row [role="status"] {min-width:0;flex:1 1 175px;overflow-wrap:anywhere}
#appShell #conversionGoalsView .re426-evidence-dot {width:8px;height:8px;flex:none;border-radius:50%;background:#d7a14b;box-shadow:0 0 0 3px rgba(215,161,75,.13)}
#appShell #conversionGoalsView .re426-quality-fields,
#appShell #conversionGoalsView .re426-advanced-fields {display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin:14px 0}
#appShell #conversionGoalsView .re426-field {min-width:0}
#appShell #conversionGoalsView .re426-field label {display:block;margin:0 0 7px!important;font-size:12px!important;font-weight:690!important}
#appShell #conversionGoalsView .re426-field :is(input,select,textarea) {width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
#appShell #conversionGoalsView .re426-field textarea {min-height:96px;max-height:230px}
#appShell #conversionGoalsView .re426-quality-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:1px 0 12px}
#appShell #conversionGoalsView .re426-quality-actions #re424Check {margin:0}
#appShell #conversionGoalsView .re426-check-status {font-size:12px!important;line-height:1.5!important;
  margin:4px 0!important;color:var(--re426-muted)!important;overflow-wrap:anywhere}
#appShell #conversionGoalsView .re426-safety-status {display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;
  padding:9px 11px;border-radius:10px;border:1px solid color-mix(in srgb,#d6a44b 40%,var(--re426-border));
  background:color-mix(in srgb,#d6a44b 9%,var(--re426-surface));
  color:var(--re426-text)!important;font-size:11.5px!important;line-height:1.45!important;margin:6px 0 2px!important;}
#appShell #conversionGoalsView .re426-safety-status>span {color:#d6a44b;font-size:10px}
#appShell #conversionGoalsView .re426-safety-status strong {color:inherit}
#appShell #conversionGoalsView .re426-advanced {border-top:1px solid var(--re426-border);margin:14px 0 0;padding:13px 0 0}
#appShell #conversionGoalsView .re426-advanced>summary {display:flex;justify-content:space-between;gap:9px;align-items:center;
  color:var(--re426-text)!important;font-size:13px!important;font-weight:725!important;list-style-position:inside}
#appShell #conversionGoalsView .re426-advanced-hint {color:var(--re426-muted);font-weight:450;font-size:11px;text-align:right}
#appShell #conversionGoalsView .re426-advanced-content {padding:15px 0 0}
#appShell #conversionGoalsView .re426-advanced-head {display:flex;align-items:center;gap:7px;justify-content:space-between;margin:4px 0 10px;color:var(--re426-text);font-size:13px}
#appShell #conversionGoalsView .re426-experiment {background:var(--re426-surface);border:1px solid var(--re426-border);
  border-radius:12px;padding:13px;margin:13px 0}
#appShell #conversionGoalsView .re426-experiment button {margin:0 0 7px!important}
/* Modern spacing/typography for reusable Conversion Goals cards, without touching their structure. */
#appShell #conversionGoalsView #newConversionGoal {gap:13px}
#appShell #conversionGoalsView #newConversionGoal label {gap:7px}
#appShell #conversionGoalsView #conversionGoalsList>div {border-bottom:1px solid var(--re426-border)}
#appShell #conversionGoalsView .re355-module :is(.re355-security,.re355-setup-details,.re355-analysis-details)>summary {color:var(--re426-blue);font-size:12.5px}
#appShell #conversionGoalsView .re355-module p {line-height:1.55}
@container (min-width: 600px) {
  #appShell #conversionGoalsView .re426-quality-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
  #appShell #conversionGoalsView .re426-advanced-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
}
#appShell #conversionGoalsView .re426-sources {container-type:inline-size}
/* The six-cell editor can narrow a module to a small column: avoid clipped controls/text. */
@media (max-width:680px) {
  #appShell #conversionGoalsView .re355-module {padding-inline:14px!important}
  #appShell #conversionGoalsView .re426-panel-heading {display:block}
  #appShell #conversionGoalsView .re426-panel-heading>button {margin-top:9px}
  #appShell #conversionGoalsView .re426-advanced-hint {display:none}
  #appShell #conversionGoalsView .re426-quality-body {padding:0 12px 13px}
  #appShell #conversionGoalsView .re426-lead-quality>summary {padding:12px!important}
}
@media (prefers-reduced-motion:reduce) {
  #appShell #conversionGoalsView .re355-module button {transition:none!important}
  #appShell #conversionGoalsView .re355-module {transition:none!important}
}
