.panel[data-panel=automation]{width:620px;max-width:calc(100vw - 24px);top:150px;max-height:calc(100dvh - 166px);border-color:#78bdce;background:#fffef6}
.automation-center{color:#29495e;font-size:.88rem;line-height:1.55;overflow-wrap:anywhere}
.automation-center h3{margin:0 0 12px;color:#25647a;font-size:1rem}.automation-center h4{margin:0 0 8px;font-size:.95rem}
.automation-center p{margin:8px 0}.automation-center button,.automation-center input,.automation-center select,.automation-center summary{min-height:44px}.automation-center button{font-size:.82rem;white-space:normal}.automation-center :focus-visible,.automation-hud :focus-visible{outline:3px solid #287ec0;outline-offset:2px}
.automation-hero{padding:14px;border:1px solid #7cc5ca;border-radius:12px;background:linear-gradient(120deg,#d9f8f0,#ecf8ff 65%,#fff2cf);box-shadow:0 3px 0 #b4dadd}.automation-status{font-size:1.1rem;color:#185c62}.automation-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.automation-actions button{flex:1 1 110px}.automation-hero .automation-actions{margin:12px 0}.automation-hero #automation-start{background:#c2f1d7;border-color:#64aa88}.automation-hero #automation-recommended{background:#ffe7a8;border-color:#c9a557}.automation-hero #automation-stop{background:#ffe3db;border-color:#d89685}.automation-metrics{font-weight:600}.automation-runtime-queue{max-height:90px;overflow:auto}
.automation-note{font-size:.78rem;color:#526878}.automation-settings,.automation-queue,.automation-browser{margin-top:16px;padding:14px;border:1px solid #c6dce3;border-radius:10px;background:#fff}.automation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.automation-field{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0 0 10px;font-size:.8rem}.automation-field input,.automation-field select{width:100%;min-width:0;color:#29495e;background:#fffef9}.automation-field:has(input[type=checkbox]){flex-direction:row;align-items:center;justify-content:space-between;background:#f0f8fa;border-radius:7px;padding:7px 10px}.automation-field input[type=checkbox],.automation-skill input{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:#278680}.automation-skill{display:flex;align-items:center;gap:10px;min-height:44px;margin:6px 0}
.automation-details{margin-top:12px;border:1px solid #d1dce1;border-radius:7px;padding:0 10px;background:#f8fbfc}.automation-details summary{cursor:pointer;align-content:center;font-size:.83rem;color:#325e73;font-weight:600}.automation-details[open]{padding-bottom:10px}.automation-queue-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #e1ebef}.automation-queue-row>span{flex:1 1 180px}.automation-queue-row button{padding:5px 10px}.automation-quest{margin-top:12px;border:1px solid #d8d9c2;border-left:4px solid #8bc9b0;border-radius:8px;padding:12px;background:#fffdf1}.automation-badge{display:inline-block;padding:3px 8px;border-radius:5px;font-size:.75rem;background:#def3e9;color:#265e47}.automation-quest[data-status=locked]{border-left-color:#d5b366}.automation-quest[data-status=locked] .automation-badge{background:#ffedbd;color:#755322}.automation-quest[data-status=unsupported]{border-left-color:#b6a5c4;background:#f9f7fc}.automation-quest[data-status=unsupported] .automation-badge{background:#eae0f4;color:#654c76}.automation-quest[data-status=completed]{border-left-color:#93b4ce}.automation-quest[data-status=completed] .automation-badge{background:#dfeefa;color:#345b7d}.automation-reason{color:#805039;font-size:.8rem}.automation-requirements{padding-left:22px}
.automation-hud{position:fixed;z-index:26;left:max(12px,env(safe-area-inset-left));top:151px;width:310px;max-width:calc(100vw - 24px);display:flex;align-items:center;gap:5px;padding:5px;background:#f2fffa;border:1px solid #8dbfb9;box-shadow:0 2px 8px #335c6a33}.automation-hud button{min-height:44px;padding:5px 9px;font-size:.76rem;flex-shrink:0}.automation-hud #automation-hud-open{flex:1;min-width:0;text-align:left;background:transparent;border-color:transparent;padding:4px}.automation-hud-status{overflow-wrap:anywhere}#automation-hud-status{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35}.automation-hud[data-status=running]{background:#dbf9eb;border-color:#5dba8b}#automation-hud-stop{background:#ffe5dc;border-color:#d89c89}
@media(min-width:751px) and (max-width:999px) and (min-height:521px){.panel[data-panel=automation]{top:195px;max-height:calc(100dvh - 211px)}}
@media(max-width:750px){.automation-hud{top:196px;left:8px;width:300px}.panel[data-panel=automation]{top:255px;right:8px;max-height:calc(100dvh - 267px);max-width:calc(100vw - 16px)}}
@media(max-width:480px){.panel[data-panel=automation]{width:calc(100vw - 16px)}.automation-grid{grid-template-columns:1fr 1fr;gap:8px}.automation-settings,.automation-queue,.automation-browser{padding:10px}.automation-hero{padding:10px}.automation-actions{gap:6px}.automation-center button{font-size:.76rem}.automation-field{font-size:.75rem}.automation-hud{width:calc(100vw - 16px);max-width:none}.automation-queue-row>span{flex-basis:100%}}
@media(max-height:520px) and (orientation:landscape){.panel[data-panel=automation]{top:64px;right:8px;width:calc(100vw - 244px);max-height:calc(100dvh - 76px)}.automation-hud{top:190px;left:8px;width:218px;flex-wrap:wrap;gap:4px}.automation-hud #automation-hud-open{flex-basis:100%;min-height:36px}.automation-hud>button:not(#automation-hud-open){flex:1;min-height:38px}.automation-hero{padding:10px}.automation-grid{gap:8px}.automation-actions button{flex-basis:110px}}
