.automation-page {max-width:1100px;margin:0 auto;padding:20px;overflow-wrap:anywhere;line-height:1.5}
.automation-page h2 {font-size:1.75rem;margin:0}
.automation-page h3 {font-size:1.2rem}
.automation-page h4,.automation-page h5 {font-size:1rem;margin:0 0 8px}
.automation-info,.automation-card,.automation-create {padding:20px;margin:20px 0;border:1px solid var(--line,#dce3e7);border-radius:12px;background:var(--panel,#fff)}
.automation-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.automation-page label {display:flex;flex-direction:column;gap:6px;margin-bottom:14px;min-width:0}
.automation-page input,.automation-page select {box-sizing:border-box;width:100%;min-width:0;font:inherit;padding:10px}
.automation-page fieldset {min-width:0;margin:16px 0;padding:16px;border:1px solid var(--line,#dce3e7);border-radius:8px}
.automation-page button {min-height:44px;white-space:normal}
.automation-actions {display:flex;gap:12px;flex-wrap:wrap}
.automation-page .automation-review {flex-direction:row;align-items:flex-start;margin:24px 0 12px;gap:12px}
.automation-review input {width:20px;height:20px;flex:none;margin-top:3px}
.automation-history:empty {display:none}
.automation-history {margin-top:20px;border-top:1px solid var(--line,#dce3e7);padding-top:16px}
.automation-run {padding:16px 0;border-bottom:1px solid var(--line,#dce3e7)}
.automation-page [hidden] {display:none}
@media(max-width:600px){.automation-page{padding:12px}.automation-fields{grid-template-columns:1fr}.automation-info,.automation-card,.automation-create{padding:14px}}
.automation-app {border-top:1px solid var(--line,#dce3e7);padding:12px 0}
.automation-app summary {cursor:pointer;min-height:44px}
.automation-page pre {white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}
.automation-page form,.automation-page article {min-width:0}
.automation-page select {text-overflow:ellipsis}

/* CL-27: Put scheduled work first and keep phone forms and run history readable. */
@media(max-width:600px){
  .automation-page {display:grid;grid-template-columns:minmax(0,1fr);font-size:16px}
  .automation-page > * {min-width:0}
  .automation-page .automation-info {order:1}
  .automation-page .automation-create {order:2}
  .automation-page .automation-card,
  .automation-page .automation-info,
  .automation-page .automation-create {margin:12px 0}
  .automation-page h3 {margin:12px 0}
  .automation-page .eyebrow {font-size:14px}
  .automation-page label,
  .automation-page input {font-size:16px}
  .automation-page button {font-size:16px;min-height:44px;max-width:100%}
  .automation-page input:not([type="checkbox"]),
  .automation-page select {font-size:16px;min-height:44px}
  .automation-page summary {min-height:44px;padding:10px 0}
  .automation-page .automation-review {min-height:44px}
  .automation-page fieldset {padding:10px}
  .automation-page ol,
  .automation-page ul {padding-inline-start:24px}
}
