/* ============================================================
   Moonya v2 — Automatizacije
   Izvor: design-previews/moonya-automations-screenshot-concept.html
   View-scoped (#v-automacije …): ne curi u druge ekrane.
   Tokeni iz hq-moonya-v2.css (docs/MOONYA-UI-DESIGN-SYSTEM.md).
   ============================================================ */

#v-automacije .auv2-page{max-width:1450px;margin:0 auto;min-width:0}
#v-automacije .auv2-page *,#v-automacije .auv2-page *::before,#v-automacije .auv2-page *::after{box-sizing:border-box!important}

/* ---- Command header ---- */
#v-automacije .auv2-command{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:12px 0 22px}
#v-automacije .auv2-command-copy{min-width:0}
#v-automacije .auv2-eyebrow{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:#17a87a;font:700 9.5px "Space Mono",monospace;letter-spacing:.12em;text-transform:uppercase}
#v-automacije .auv2-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:#32dc9f;box-shadow:0 0 0 5px rgba(50,220,159,.11);flex:0 0 auto}
#v-automacije .auv2-eyebrow.is-off{color:#8a6413}
#v-automacije .auv2-eyebrow.is-off::before{background:var(--moonya-warning);box-shadow:0 0 0 5px rgba(242,159,61,.12)}
#v-automacije .auv2-eyebrow-sep{color:#9aa7bd}
#v-automacije .auv2-title{margin:0;font:800 clamp(36px,4vw,58px)/.95 "Bricolage Grotesque",sans-serif;letter-spacing:-.05em;color:var(--moonya-navy-950)}
#v-automacije .auv2-desc{margin:12px 0 0;color:var(--moonya-muted);font-size:13px;line-height:1.55;max-width:640px}
#v-automacije .auv2-actions{display:flex;gap:9px;flex:0 0 auto}
#v-automacije .auv2-btn{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border:1px solid var(--moonya-line);border-radius:12px;background:#fff;color:var(--moonya-navy-900);font-size:12px;font-weight:800;white-space:nowrap;font-family:inherit;cursor:pointer;text-decoration:none;box-shadow:0 3px 12px rgba(4,21,63,.04)}
#v-automacije .auv2-btn:hover{border-color:#cfd9ef;background:#fafdff}
#v-automacije .auv2-btn.primary{border:0;color:#fff;background:linear-gradient(115deg,#12449c,#1d60c7 55%,#7d4de0);box-shadow:0 10px 22px rgba(33,91,195,.2)}
#v-automacije .auv2-btn.primary:hover{filter:brightness(1.06)}
#v-automacije .auv2-btn:disabled{cursor:not-allowed;border-color:#dfe4ed;background:#eef1f5;color:#7e8999;box-shadow:none;filter:none;opacity:1}
#v-automacije .auv2-btn.primary:disabled:hover{border-color:#dfe4ed;background:#eef1f5;filter:none}
#v-automacije .auv2-capacity{display:flex;align-items:center;gap:13px;margin:-8px 0 18px;padding:14px 15px;border:1px solid #f0c77e;border-radius:16px;background:#fff9ec;color:#704b0a;box-shadow:0 8px 24px rgba(112,75,10,.06)}
#v-automacije .auv2-capacity[hidden]{display:none!important}
#v-automacije .auv2-capacity-icon{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:11px;background:#f7d98e;color:#674207;font:900 15px "Space Mono",monospace}
#v-automacije .auv2-capacity-copy{min-width:0;flex:1}
#v-automacije .auv2-capacity-copy b{display:block;color:#593b08;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#v-automacije .auv2-capacity-copy p{margin:4px 0 0;color:#7c5b1d;font-size:10.5px;line-height:1.55;overflow-wrap:anywhere}
#v-automacije .auv2-capacity .auv2-btn{flex:0 0 auto;border-color:#dfbd79;background:#fff;color:#64440b;box-shadow:none}
#v-automacije .auv2-capacity .auv2-btn:hover{border-color:#b78936;background:#fffdf7}
#v-automacije .auv2-capacity:focus-visible{outline:3px solid rgba(242,159,61,.35);outline-offset:3px}

/* ---- Overview: hero + system ---- */
#v-automacije .auv2-overview{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;margin-bottom:16px}
#v-automacije .auv2-hero{position:relative;min-height:180px;padding:26px 28px;border-radius:22px;color:#fff;overflow:hidden;background:linear-gradient(135deg,#0b3d8d,#0b286f 55%,#4b2694);box-shadow:0 18px 44px rgba(7,34,94,.2)}
#v-automacije .auv2-hero::after{content:"";position:absolute;right:-50px;bottom:-110px;width:290px;height:290px;border:1px solid rgba(138,222,246,.2);border-radius:50%;box-shadow:0 0 0 40px rgba(162,84,233,.055),0 0 0 80px rgba(162,84,233,.035);pointer-events:none}
#v-automacije .auv2-hero-top{display:flex;justify-content:space-between;gap:15px;color:#9edff2;font:700 9px "Space Mono",monospace;letter-spacing:.12em;text-transform:uppercase}
#v-automacije .auv2-hero-time{padding:6px 10px;border-radius:999px;background:rgba(36,203,226,.12);white-space:nowrap}
#v-automacije .auv2-hero h3{position:relative;z-index:1;margin:22px 0 5px;font:800 26px/1.08 "Bricolage Grotesque",sans-serif!important;letter-spacing:-.025em;color:#fff!important;overflow-wrap:anywhere}
#v-automacije .auv2-hero p{position:relative;z-index:1;margin:0 0 52px;color:#b5c7ea!important;font-size:11px;line-height:1.5;max-width:520px;display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#v-automacije .auv2-hero-bottom{position:absolute;z-index:2;left:28px;right:28px;bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
#v-automacije .auv2-hero-tags{display:flex;gap:7px;min-width:0;flex-wrap:wrap}
#v-automacije .auv2-hero-tags span{padding:7px 10px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(255,255,255,.05);font-size:9px;font-weight:700;white-space:nowrap}
#v-automacije .auv2-hero-open{min-height:38px;display:inline-flex;align-items:center;gap:7px;padding:0 14px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:rgba(255,255,255,.11);color:#fff;font-size:11px;font-weight:800;cursor:pointer;font-family:inherit;flex:0 0 auto}
#v-automacije .auv2-hero-open:hover{background:rgba(255,255,255,.18)}
#v-automacije .auv2-system{padding:22px;border:1px solid var(--moonya-line);border-radius:22px;background:#fff;box-shadow:var(--moonya-shadow)}
#v-automacije .auv2-mono{color:#78869d;font:700 8.5px "Space Mono",monospace;letter-spacing:.13em;text-transform:uppercase}
#v-automacije .auv2-system-big{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px 0 15px}
#v-automacije .auv2-system-big>b{font:800 42px/1 "Bricolage Grotesque",sans-serif;color:var(--moonya-navy-950)}
#v-automacije .auv2-health{padding:6px 9px;border-radius:999px;background:#e9f8f2;color:#17805e;font-size:9px;font-weight:800;white-space:nowrap}
#v-automacije .auv2-health.is-err{background:#fdecef;color:#b8435a}
#v-automacije .auv2-system-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
#v-automacije .auv2-system-grid>div{min-width:0;padding:11px 9px;border-radius:11px;background:#f5f7fb}
#v-automacije .auv2-system-grid b{display:block;font-size:14px;color:var(--moonya-ink)}
#v-automacije .auv2-system-grid span{color:#8490a3;font-size:8.5px}

/* ---- Filter bar ---- */
#v-automacije .auv2-filterbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px;padding:10px 12px;border:1px solid var(--moonya-line);border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(4,21,63,.04)}
#v-automacije .auv2-tabs{display:flex;gap:4px;padding:4px;border-radius:11px;background:#f0f3f9}
#v-automacije .auv2-tabs button{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 13px;border:0;border-radius:9px;background:transparent;color:#748097;font-size:10.5px;font-weight:800;font-family:inherit;cursor:pointer}
#v-automacije .auv2-tabs button b{font-weight:800;opacity:.7}
#v-automacije .auv2-tabs button.on{background:#1555b5;color:#fff;box-shadow:0 5px 12px rgba(21,85,181,.2)}
#v-automacije .auv2-tabs button.on b{opacity:.85}
#v-automacije .auv2-search{height:38px!important;min-height:38px!important;width:min(280px,100%);border:1px solid var(--moonya-line);border-radius:10px!important;background:#fff;color:#3c4b66;font-size:11px!important;line-height:1.3!important;padding:0 12px!important;outline:0;font-family:inherit}
#v-automacije .auv2-search:focus{border-color:#31c5e7;box-shadow:0 0 0 3px rgba(18,200,242,.12)}

/* ---- Flows panel + redovi ---- */
#v-automacije .auv2-flows{padding:16px;border:1px solid var(--moonya-line);border-radius:22px;background:#fff;box-shadow:var(--moonya-shadow)}
#v-automacije .auv2-flows-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 4px 13px}
#v-automacije .auv2-flows-head h3{margin:0;font:800 17px "Bricolage Grotesque",sans-serif;color:var(--moonya-navy-950)}
#v-automacije .auv2-flows-head small{color:#8190a8;font:700 8px "Space Mono",monospace;letter-spacing:.1em;text-transform:uppercase}
#v-automacije .auv2-list{display:grid;gap:10px}
#v-automacije .auv2-row{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(3,minmax(118px,.75fr)) minmax(330px,auto);gap:9px;align-items:center;padding:13px 14px;border:1px solid var(--moonya-line);border-radius:16px;background:#fbfcff}
#v-automacije .auv2-row-id{min-width:0;display:flex;align-items:center;gap:11px}
#v-automacije .auv2-row-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;color:#2457b0;background:linear-gradient(145deg,#e6f8fc,#eeeaff)}
#v-automacije .auv2-row-icon svg{width:19px;height:19px}
#v-automacije .auv2-row-copy{min-width:0}
#v-automacije .auv2-row-copy b{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--moonya-ink);min-width:0}
#v-automacije .auv2-row-copy b>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#v-automacije .auv2-row-copy p{margin:4px 0 0;color:#7a879b;font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#v-automacije .auv2-chip{padding:4px 7px;border-radius:999px;background:#e7f7f0;color:#16825e;font-size:8px;font-weight:800;flex:0 0 auto;white-space:nowrap}
#v-automacije .auv2-chip.is-paused{background:#fff1d6;color:#98630d}
#v-automacije .auv2-chip.is-err{background:#fdecef;color:#b8435a}
#v-automacije .auv2-metric{min-width:0;padding:10px;border-radius:11px;background:#f2f5fa}
#v-automacije .auv2-metric.next{background:linear-gradient(135deg,#edf9fc,#f2efff)}
#v-automacije .auv2-metric span{display:block;color:#8793a6;font:700 8px "Space Mono",monospace;letter-spacing:.08em;text-transform:uppercase}
#v-automacije .auv2-metric b{display:block;margin-top:5px;color:var(--moonya-ink);font-size:9.5px;line-height:1.35;overflow-wrap:anywhere}
#v-automacije .auv2-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
#v-automacije .auv2-row-actions .auv2-btn{min-height:38px;font-size:9.5px;padding:0 11px}
#v-automacije .auv2-status{display:flex;align-items:center;gap:7px;margin-right:2px;color:#6e7b91;font-size:8.5px;font-weight:800;white-space:nowrap}
#v-automacije .auv2-del{width:40px;min-height:38px;display:grid;place-items:center;padding:0;border:1px solid #f0d5db;border-radius:12px;background:#fff;color:#b8435a;cursor:pointer}
#v-automacije .auv2-del:hover{background:#fff1f3;color:var(--moonya-danger)}
#v-automacije .auv2-row-err{grid-column:1/-1;display:flex;align-items:center;gap:8px;margin-top:2px;padding:8px 11px;border:1px solid #f3cdd4;border-radius:10px;background:#fdf4f5;color:#9c3a4d;font-size:10px;line-height:1.45}
#v-automacije .auv2-empty{padding:46px 24px;border:1px dashed #bfcde3;border-radius:18px;background:#fbfcff;text-align:center}
#v-automacije .auv2-empty h3{margin:0 0 6px;font:800 20px "Bricolage Grotesque",sans-serif;color:var(--moonya-navy-950)}
#v-automacije .auv2-empty p{margin:0 auto 16px;max-width:380px;color:#728097;font-size:11.5px;line-height:1.55}

/* ---- Wizard chrome ---- */
#v-automacije .auv2-wiz-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:12px 0 18px}
#v-automacije .auv2-back{margin:0 0 12px;border:0;background:none;color:#4970a5;font-size:10.5px;font-weight:700;padding:0;cursor:pointer;font-family:inherit}
#v-automacije .auv2-back:hover{color:#1854bb}
#v-automacije .auv2-wiz-head .auv2-eyebrow{color:#215bc3}
#v-automacije .auv2-wiz-head .auv2-eyebrow::before{background:linear-gradient(90deg,var(--moonya-cyan),var(--moonya-violet));width:22px;height:2px;border-radius:5px;box-shadow:none}
#v-automacije .auv2-wiz-head .auv2-title{font-size:clamp(32px,3.6vw,48px)}
#v-automacije .auv2-draft-pill{align-self:center;display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid var(--moonya-line);border-radius:12px;background:#fff;color:#52617a;font-size:10px;font-weight:700;box-shadow:0 3px 12px rgba(4,21,63,.03);white-space:nowrap}
#v-automacije .auv2-draft-pill i{width:8px;height:8px;border-radius:50%;background:#31e9a8;box-shadow:0 0 0 4px rgba(49,233,168,.12)}
#v-automacije .auv2-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px;padding:7px;border:1px solid var(--moonya-line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(4,21,63,.04)}
#v-automacije .auv2-steps .aw-step{display:flex;align-items:center;gap:11px;min-width:0;padding:12px;border:1px solid transparent;border-radius:13px;background:transparent;text-align:left;cursor:pointer;font-family:inherit}
#v-automacije .auv2-steps .aw-step i{width:31px;height:31px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#eef2f8;color:#71809a;font-style:normal;font:800 10px "Space Mono",monospace}
#v-automacije .auv2-step-copy{min-width:0}
#v-automacije .auv2-step-copy b{display:block;font-size:11.5px;color:var(--moonya-ink)}
#v-automacije .auv2-step-copy small{display:block;margin-top:3px;color:#8792a5;font-size:8.5px}
#v-automacije .auv2-steps .aw-step.on{border-color:#cfe0fa;background:#eef5ff}
#v-automacije .auv2-steps .aw-step.on i{color:#fff;background:linear-gradient(135deg,#1854bb,#7d4de0)}
#v-automacije .auv2-steps .aw-step.done .auv2-step-copy b{color:#16825e}
#v-automacije .auv2-steps .aw-step.done i{color:#16825e;background:#e8f8f1}
#v-automacije .auv2-page .au-create-sheet{padding:8px;border:1px solid #dce4f3;border-radius:24px;background:#e7edf8;box-shadow:var(--moonya-shadow)}
#v-automacije .auv2-page .aw-panel{border:1px solid var(--moonya-line);border-radius:18px;background:#fff;padding:22px}
#v-automacije .auv2-work{display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
#v-automacije .auv2-work-main{min-width:0}
#v-automacije .auv2-foot{position:sticky;bottom:10px;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:10px;padding:11px 14px;border:1px solid var(--moonya-line);border-radius:15px;background:rgba(255,255,255,.94);box-shadow:0 14px 35px rgba(5,32,85,.12);backdrop-filter:blur(12px)}
#v-automacije .auv2-foot .au-create-footer-note{color:#6f7c92;font-size:10px}
#v-automacije .auv2-foot-action-zone{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:0;margin-left:auto}
#v-automacije .auv2-foot-action-zone .au-create-footer-actions{margin-left:0}
#v-automacije .auv2-save-error{width:100%;max-width:560px;padding:10px 12px;border:1px solid #f4b8c1;border-radius:11px;background:#fff1f3;color:#a9364a;font-size:12px;font-weight:750;line-height:1.45;overflow-wrap:anywhere;box-shadow:0 6px 18px rgba(169,54,74,.08)}
#v-automacije .auv2-save-error:focus-visible{outline:3px solid rgba(18,200,242,.45);outline-offset:3px}

/* ---- Responsive ---- */
@media(max-width:1350px){
  #v-automacije .auv2-row{grid-template-columns:minmax(210px,1.4fr) repeat(3,minmax(100px,.7fr))}
  #v-automacije .auv2-row-actions{grid-column:1/-1}
  #v-automacije .auv2-overview{grid-template-columns:minmax(0,1fr) 280px}
}
@media(max-width:1120px){
  #v-automacije .auv2-work{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:900px){
  #v-automacije .auv2-command,#v-automacije .auv2-wiz-head,#v-automacije .auv2-filterbar{align-items:flex-start;flex-direction:column}
  #v-automacije .auv2-overview{grid-template-columns:1fr}
  #v-automacije .auv2-search{width:100%}
  #v-automacije .auv2-row{grid-template-columns:1fr 1fr}
  #v-automacije .auv2-row-id{grid-column:1/-1}
}
@media(max-width:620px){
  #v-automacije .auv2-actions{width:100%}
  #v-automacije .auv2-actions>*{flex:1}
  #v-automacije .auv2-capacity{align-items:stretch;flex-direction:column}
  #v-automacije .auv2-capacity .auv2-btn{width:100%;white-space:normal}
  #v-automacije .auv2-steps{grid-template-columns:1fr}
  #v-automacije .auv2-step-copy small{display:none}
  #v-automacije .auv2-row{grid-template-columns:1fr}
  #v-automacije .auv2-row-actions{justify-content:stretch}
  #v-automacije .auv2-row-actions .auv2-btn:not(.auv2-del){flex:1}
  #v-automacije .auv2-hero-tags{display:none}
  #v-automacije .auv2-page .aw-panel{padding:15px}
  #v-automacije .auv2-foot{align-items:stretch;flex-direction:column}
  #v-automacije .auv2-foot-action-zone{width:100%;align-items:stretch;margin-left:0}
  #v-automacije .auv2-foot .auv2-foot-action-zone .au-create-footer-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-left:0}
  #v-automacije .auv2-foot .au-create-footer-actions #awSave{grid-column:1/-1;min-width:0!important;white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  #v-automacije *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}


/* ---- Korak 2/3 po konceptu ---- */
#v-automacije .auv2-sec-title{margin:0 0 4px;font-size:13px;font-weight:800;color:var(--moonya-ink)}
#v-automacije .auv2-sec-sub{margin:0 0 12px;color:#7d899d;font-size:10px}
#v-automacije .auv2-sec-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#v-automacije .auv2-layout-hint{color:#7b879b!important;font-size:9.5px!important;white-space:nowrap}
#v-automacije .auv2-format-row{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:9px!important}
#v-automacije .auv2-format-row .au-format-chip{
  display:flex!important;align-items:center!important;gap:10px!important;min-width:0;padding:13px!important;
  border:1px solid var(--moonya-line)!important;border-radius:13px!important;background:#fff!important;
  text-align:left!important;box-shadow:none!important;
}
#v-automacije .auv2-format-row .au-format-chip.on{border-color:#49c7e3!important;background:#f1fbfe!important;box-shadow:0 0 0 3px rgba(18,200,242,.1)!important}
#v-automacije .auv2-fmt-copy{min-width:0}
#v-automacije .auv2-fmt-copy b{display:block;font-size:11px;color:var(--moonya-ink)}
#v-automacije .auv2-fmt-copy small{display:block;margin-top:3px;color:#8591a4;font-size:8.5px}
#v-automacije .auv2-templates{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
#v-automacije .auv2-templates .au-layout-pill{
  position:relative;display:grid!important;gap:8px!important;min-width:0;min-height:0!important;overflow:hidden!important;
  padding:7px!important;border:1px solid var(--moonya-line)!important;border-radius:14px!important;background:#fff!important;
  color:var(--moonya-ink)!important;font-size:10px!important;font-weight:800!important;text-align:left!important;box-shadow:none!important;
}
#v-automacije .auv2-templates .au-layout-engine{
  position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;border:1px solid #e4e9f2;border-radius:10px;background:#f7f8fb;
}
#v-automacije .auv2-templates .au-layout-engine.is-story{aspect-ratio:9/16}
#v-automacije .auv2-templates .au-layout-pill.on{border-color:#215bc3!important;background:#f0f5ff!important;box-shadow:0 0 0 3px rgba(18,200,242,.22),0 14px 30px rgba(9,43,120,.1)!important}
#v-automacije .au-layout-selected-badge,#v-automacije .aw-custom-template-selected{position:absolute;z-index:4;top:14px;left:14px;max-width:calc(100% - 58px);overflow:hidden;padding:5px 6px;border-radius:8px;background:#143e91;color:#fff;font-size:7px;font-weight:850;letter-spacing:.02em;line-height:1;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap;box-shadow:0 7px 16px rgba(20,62,145,.24)}
#v-automacije .auv2-templates .au-layout-pill-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 3px 2px}
#v-automacije .auv2-templates .au-layout-custom{align-content:center;min-height:170px!important;background:linear-gradient(150deg,#fbfbff,#f3f1ff)!important}
#v-automacije .auv2-templates .au-layout-custom-art{
  display:grid;place-items:center;width:48px;height:48px;margin:auto;border:1px dashed #8c80ed;border-radius:14px;
  color:#5547df;background:#fff;font-size:28px;font-weight:500;line-height:1;
}
#v-automacije .auv2-templates .au-layout-custom .au-layout-pill-name{text-align:center;white-space:normal;line-height:1.3;color:#4a3fca}
#v-automacije .aw-custom-template-group{grid-column:1/-1;min-width:0;margin-top:8px;padding-top:22px;border-top:1px solid #e8edf7}
#v-automacije .aw-custom-template-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}
#v-automacije .aw-custom-template-head>div{min-width:0}
#v-automacije .aw-custom-template-head b{display:block;color:#101828;font-size:15px;letter-spacing:-.02em}
#v-automacije .aw-custom-template-head span{display:block;max-width:680px;margin-top:4px;color:#667085;font-size:11px;line-height:1.5}
#v-automacije .aw-custom-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#v-automacije .aw-custom-template-card{position:relative;min-width:0;overflow:hidden;border:1px solid #e4e9f3;border-radius:16px;background:#fff;box-shadow:0 9px 24px rgba(9,43,120,.04);transition:border-color .2s,box-shadow .2s,transform .2s}
#v-automacije .aw-custom-template-card:hover{transform:translateY(-2px);border-color:#9fc8ec;box-shadow:0 16px 34px rgba(9,43,120,.09)}
#v-automacije .aw-custom-template-card.is-selected{border-color:#215bc3;box-shadow:0 0 0 3px rgba(18,200,242,.24),0 16px 34px rgba(9,43,120,.13)}
#v-automacije .aw-custom-template-card.is-pending{background:#f8faff}
#v-automacije .aw-custom-template-select{display:block;width:100%;padding:10px 10px 13px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
#v-automacije .aw-custom-template-select:disabled{cursor:not-allowed;opacity:.68}
#v-automacije .aw-custom-template-media{display:grid;position:relative;aspect-ratio:4/5;overflow:hidden;place-items:center;border-radius:11px;background:linear-gradient(145deg,#eef8ff,#f4efff);color:#6554df;font-size:28px}
#v-automacije .aw-custom-template-media.is-story{aspect-ratio:9/16}
#v-automacije .aw-custom-template-media img{display:block;width:100%;height:100%;object-fit:cover}
#v-automacije .aw-custom-template-copy{display:block;min-width:0;padding:10px 2px 0}
#v-automacije .aw-custom-template-copy b{display:block;overflow:hidden;color:#101828;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
#v-automacije .aw-custom-template-copy small{display:block;margin-top:4px;color:#667085;font-size:9.5px;line-height:1.35}
#v-automacije .aw-custom-template-delete{display:grid;position:absolute;z-index:2;top:17px;right:17px;width:34px;height:34px;place-items:center;border:1px solid rgba(228,84,103,.22);border-radius:10px;background:rgba(255,255,255,.94);color:#c83f55;box-shadow:0 6px 16px rgba(16,24,40,.12);cursor:pointer}
#v-automacije .aw-custom-template-delete svg{width:16px;height:16px}
#v-automacije .aw-custom-template-delete:hover{background:#fff1f3}
#v-automacije .aw-custom-template-select:focus-visible,#v-automacije .aw-custom-template-delete:focus-visible{outline:3px solid rgba(18,200,242,.45);outline-offset:3px}
@media(max-width:1180px){#v-automacije .aw-custom-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){#v-automacije .aw-custom-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){#v-automacije .aw-custom-template-grid{grid-template-columns:1fr 1fr;gap:10px}#v-automacije .aw-custom-template-delete{top:15px;right:15px}}
#v-automacije .auv2-photo-mode{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-bottom:11px}
#v-automacije .auv2-photo-mode button{
  min-width:0;padding:12px;border:1px solid var(--moonya-line);border-radius:12px;background:#fff;
  text-align:left;cursor:pointer;font-family:inherit;
}
#v-automacije .auv2-photo-mode button b{display:block;font-size:10.5px;color:var(--moonya-ink)}
#v-automacije .auv2-photo-mode button small{display:block;margin-top:4px;color:#8792a5;font-size:8.5px}
#v-automacije .auv2-photo-mode button.on{border-color:#55a7ef;background:#f1f6ff;box-shadow:0 0 0 3px rgba(61,128,230,.1)}
#v-automacije .auv2-src-card{margin-top:2px}
#v-automacije #aw_ai_source .au-look-toggle-row{display:none!important}
#v-automacije .auv2-schedule-card{margin-top:4px;padding:18px;border:1px solid #dce5f3;border-radius:18px;background:linear-gradient(145deg,#fbfdff,#f7f5ff);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
#v-automacije .auv2-schedule-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
#v-automacije .auv2-schedule-head>div{min-width:0}
#v-automacije .auv2-schedule-safe{display:inline-flex;align-items:center;gap:7px;flex:0 0 auto;min-height:32px;padding:7px 10px;border:1px solid #cceee2;border-radius:999px;background:#edf9f5;color:#147557;font-size:10.5px;font-weight:800;white-space:nowrap}
#v-automacije .auv2-weekday-fieldset{min-width:0;margin:0;padding:0;border:0}
#v-automacije .auv2-weekday-fieldset legend{padding:0;color:var(--moonya-ink);font-size:11px;font-weight:800}
#v-automacije .auv2-weekday-fieldset>p{margin:4px 0 10px;color:#68768c;font-size:12px;line-height:1.5}
#v-automacije .auv2-weekday-options{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
#v-automacije .auv2-day-chip{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:48px;padding:0 9px;overflow:hidden;border:1px solid #dbe3ef;border-radius:13px;background:#fff;color:#60708a;font-size:10.5px;font-weight:800;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
#v-automacije .auv2-day-chip:hover{border-color:#8fc6ed;background:#f7fbff;transform:translateY(-1px)}
#v-automacije .auv2-day-chip input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#v-automacije .auv2-day-chip i{display:none;width:17px;height:17px;place-items:center;border-radius:50%;background:#fff;color:#1854bb;font-size:10px;font-style:normal;box-shadow:0 2px 6px rgba(9,43,120,.14)}
#v-automacije .auv2-day-chip.on{border-color:#4d9fe4;background:linear-gradient(135deg,#eaf8fc,#eef0ff);color:#143e91;box-shadow:0 0 0 3px rgba(18,200,242,.1)}
#v-automacije .auv2-day-chip.on i{display:grid}
#v-automacije .auv2-day-chip:focus-within{outline:3px solid rgba(18,200,242,.38);outline-offset:2px}
#v-automacije .auv2-rhythm{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;max-width:none!important;margin-top:14px!important}
#v-automacije .auv2-rhythm .au-field{min-width:0}
#v-automacije .auv2-rhythm .au-field>small{display:block;min-height:36px;margin:4px 0 7px;color:#68768c;font-size:12px;line-height:1.5}
#v-automacije .auv2-schedule-summary{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:11px 12px;border:1px solid #cfe1f7;border-radius:13px;background:#eef6ff;color:#345276;font-size:12px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
#v-automacije .auv2-schedule-summary-icon{display:grid;place-items:center;flex:0 0 auto;width:28px;height:28px;border-radius:9px;background:#fff;color:#215bc3;box-shadow:0 3px 10px rgba(9,43,120,.08)}
#v-automacije .aw-network-head{align-items:flex-start;margin-bottom:10px}
#v-automacije .aw-network-head .btn{flex:0 0 auto}
#v-automacije .aw-network-mode{margin:0 0 12px;padding:12px 14px;border:1px solid #e1e7f0;border-radius:14px;background:#f8faff}
#v-automacije .aw-networks{display:flex;flex-wrap:wrap;gap:8px;outline:none}
#v-automacije .aw-network-chip{
  display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 11px;
  border:1px solid var(--moonya-line);border-radius:999px;background:#fff;color:var(--moonya-ink);
  font:inherit;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
#v-automacije .aw-network-chip span{display:grid;place-items:center;width:17px;height:17px}
#v-automacije .aw-network-chip svg{width:17px;height:17px}
#v-automacije .aw-network-chip b{font-size:10px}
#v-automacije .aw-network-chip small{font-size:8px;color:#8792a5}
#v-automacije .aw-network-chip:hover:not(.is-disabled){border-color:#75bde9;background:#f7fbff}
#v-automacije .aw-network-chip:focus-visible{outline:3px solid rgba(61,128,230,.22);outline-offset:2px}
#v-automacije .aw-network-chip.on{border-color:#55a7ef;background:#f1f6ff;box-shadow:0 0 0 3px rgba(61,128,230,.1)}
#v-automacije .aw-network-chip.is-disabled{cursor:not-allowed;opacity:.58;background:#f8f9fc}
#v-automacije .aw-networks-status{min-height:18px;margin:7px 0 16px;color:#66738b;font-size:9px;font-weight:700}
#v-automacije .aw-networks-status.is-error{color:#b42318}
#v-automacije .auv2-row-networks{display:flex!important;align-items:center;gap:5px!important;margin-top:6px}
#v-automacije .auv2-row-networks span{display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--moonya-line);border-radius:50%;background:#fff;color:#53657e}
#v-automacije .auv2-row-networks svg{width:11px;height:11px}
#v-automacije .auv2-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px;
  padding:13px 14px;border:1px solid var(--moonya-line);border-radius:13px;background:#fff;
}
#v-automacije .auv2-toggle-copy{min-width:0}
#v-automacije .auv2-toggle-copy b{display:block;font-size:11px;color:var(--moonya-ink)}
#v-automacije .auv2-toggle-copy small{display:block;margin-top:3px;color:#8792a5;font-size:9px;line-height:1.45}
#v-automacije .auv2-toggle .sw2{flex:0 0 auto}
#v-automacije .auv2-collab{margin-top:0;border-top:0;padding-top:0}
#v-automacije .au-besttime{margin-top:9px}
@media(max-width:900px){
  #v-automacije .auv2-format-row,#v-automacije .auv2-photo-mode{grid-template-columns:1fr!important}
  #v-automacije .auv2-templates{grid-template-columns:repeat(2,1fr)!important}
}
@media(max-width:620px){
  #v-automacije .auv2-schedule-card{padding:14px}
  #v-automacije .auv2-schedule-head{align-items:flex-start;flex-direction:column;gap:10px}
  #v-automacije .auv2-schedule-safe{white-space:normal}
  #v-automacije .auv2-weekday-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
  #v-automacije .auv2-day-chip{min-height:46px;padding:0 7px}
  #v-automacije .auv2-rhythm{grid-template-columns:1fr!important}
  #v-automacije .auv2-rhythm .au-field>small{min-height:0}
}
@media(max-width:360px){
  #v-automacije .auv2-weekday-options{grid-template-columns:repeat(3,minmax(0,1fr))}
  #v-automacije .auv2-day-chip{gap:4px;padding:0 4px}
  #v-automacije .auv2-day-chip i{width:14px;height:14px;font-size:8px}
}
