/* Shared Hansora Automation header, used by every Automation page. Colours come from automation-ui.css tokens. */
[data-automation-header]{position:sticky;top:0;z-index:50}
.auto-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;height:60px;padding:0 24px;border-bottom:1px solid var(--border,rgba(255,255,255,.07));background:var(--glass,rgba(8,9,11,.72));backdrop-filter:saturate(1.4) blur(16px);-webkit-backdrop-filter:saturate(1.4) blur(16px);font-family:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.auto-brand{display:flex;align-items:center;gap:10px;color:var(--text,#f5f5f6);text-decoration:none;white-space:nowrap}
.auto-brand>span{font-family:Georgia,'Times New Roman',serif;font-size:21px;letter-spacing:-.8px}
.auto-brand i{font-style:normal;color:var(--text-3,#50535b);font-size:18px}
.auto-brand small{padding:3px 7px;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:6px;color:var(--text-2,#a3a6ad);font-size:10px;font-weight:600;letter-spacing:.12em}
.auto-header nav{display:flex;align-items:center;gap:4px}
.auto-header nav>a{display:inline-flex;align-items:center;height:32px;padding:0 10px;border-radius:8px;color:var(--text-2,#a3a6ad);font-size:13px;font-weight:500;text-decoration:none;white-space:nowrap;transition:color .15s,background .15s}
.auto-header nav>a:hover{color:var(--text,#f5f5f6);background:var(--surface-2,rgba(255,255,255,.05))}
.auto-header nav>a[aria-current=page]{color:var(--text,#f5f5f6)}
.auto-header nav .auto-divider{width:1px;height:18px;margin:0 8px;background:var(--border-2,rgba(255,255,255,.1))}
.auto-header nav .auto-cta{margin-left:6px;height:32px;padding:0 12px;background:var(--text,#f5f5f6);color:var(--on-primary,#0a0a0b);font-weight:600;box-shadow:0 0 0 1px var(--border-2,rgba(255,255,255,.1)),0 4px 14px -6px var(--primary-glow,rgba(255,255,255,.35));transition:background .15s,box-shadow .15s,transform .1s}
.auto-header nav .auto-cta:hover{background:var(--primary-hover,#fff);color:var(--on-primary,#0a0a0b)}
.auto-header nav .auto-cta:active{transform:translateY(1px)}
.auto-theme{position:relative;display:grid;place-items:center;width:32px;height:32px;margin-left:4px;padding:0;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:8px;background:transparent;color:var(--text-2,#a3a6ad);cursor:pointer;overflow:hidden;transition:color .15s,background .15s,border-color .15s}
.auto-theme:hover{color:var(--text,#f5f5f6);background:var(--surface-2,rgba(255,255,255,.05))}
.auto-theme svg{position:absolute;width:16px;height:16px;transition:transform .45s cubic-bezier(.2,.7,.2,1),opacity .3s}
.auto-theme .sun{transform:translateY(22px) rotate(-90deg);opacity:0}
:root[data-theme=light] .auto-theme .sun{transform:none;opacity:1}
:root[data-theme=light] .auto-theme .moon{transform:translateY(-22px) rotate(90deg);opacity:0}
.auto-theme-label{display:none}
.auto-header-tools{display:flex;align-items:center;gap:6px}
.auto-menu-toggle{display:none;width:36px;height:36px;padding:0;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:8px;background:transparent;cursor:pointer}
.auto-menu-toggle span{display:block;width:14px;height:1.5px;margin:4px auto;background:var(--text,#f5f5f6);border-radius:2px;transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.menu-open .auto-menu-toggle span:first-child{transform:translateY(2.75px) rotate(45deg)}
.menu-open .auto-menu-toggle span:last-child{transform:translateY(-2.75px) rotate(-45deg)}
.auto-header :focus-visible{outline:2px solid var(--accent,#4c8dff);outline-offset:2px}
@media(max-width:760px){
  .auto-header{padding:0 16px}
  .auto-menu-toggle{display:block}
  .auto-header nav{position:absolute;top:60px;left:0;right:0;display:grid;gap:2px;padding:10px 12px 14px;border-bottom:1px solid var(--border,rgba(255,255,255,.08));background:var(--glass-strong,rgba(8,9,11,.96));backdrop-filter:blur(16px);transform:translateY(-8px);opacity:0;visibility:hidden;transition:opacity .2s,transform .25s cubic-bezier(.2,.7,.2,1),visibility .2s}
  .menu-open .auto-header nav{opacity:1;visibility:visible;transform:none}
  .auto-header nav>a{height:44px;font-size:15px}
  .auto-header nav .auto-divider,.auto-header nav .auto-theme{display:none}
  .auto-header nav .auto-cta{justify-content:center;margin:8px 0 0}
}
@media(min-width:761px){.auto-header-tools .auto-theme{display:none}}

/* Shared left sidebar (signed-in Automation pages) */
.auto-sidebar{position:fixed;top:61px;left:0;bottom:0;z-index:40;display:flex;flex-direction:column;justify-content:space-between;width:232px;padding:14px 10px;border-right:1px solid var(--border,rgba(255,255,255,.07));background:var(--bg-soft,#0c0d10);font-family:'Inter',ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;transition:width .25s cubic-bezier(.2,.7,.2,1)}
.auto-sidebar nav,.auto-side-foot{display:grid;gap:2px}
.auto-side-foot{padding-top:10px;border-top:1px solid var(--border,rgba(255,255,255,.07))}
.auto-side-link{display:flex;align-items:center;gap:11px;height:38px;padding:0 11px;border:0;border-radius:9px;background:none;color:var(--text-2,#a3a6ad);font-family:inherit;font-size:13.5px;font-weight:500;line-height:1;text-decoration:none;white-space:nowrap;overflow:hidden;cursor:pointer;transition:background .15s,color .15s}
.auto-side-link svg{flex:none;width:17px;height:17px}
.auto-side-link:hover{background:var(--hover,rgba(255,255,255,.04));color:var(--text,#f5f5f6)}
.auto-side-link.active{background:var(--surface-3,#1b1c21);color:var(--text,#f5f5f6);box-shadow:inset 3px 0 0 var(--accent,#4c8dff)}
.auto-side-link.active svg{color:var(--accent-2,#79aaff)}
.auto-side-link.disabled{opacity:.4;cursor:not-allowed}
.auto-side-collapse svg{transform:rotate(180deg);transition:transform .25s}
body.has-auto-sidebar{padding-left:232px;transition:padding-left .25s cubic-bezier(.2,.7,.2,1)}
body.auto-sidebar-collapsed{padding-left:64px}
body.auto-sidebar-collapsed .auto-sidebar{width:64px}
body.auto-sidebar-collapsed .auto-side-link span{opacity:0}
body.auto-sidebar-collapsed .auto-side-collapse svg{transform:none}
body.has-auto-sidebar [data-automation-header]{margin-left:-232px}
body.auto-sidebar-collapsed [data-automation-header]{margin-left:-64px}
.auto-mobile-sections{display:none}
@media(max-width:900px){
  body.has-auto-sidebar,body.auto-sidebar-collapsed{padding-left:0}
  body.has-auto-sidebar [data-automation-header]{margin-left:0}
  .auto-sidebar{display:none}
  .auto-mobile-sections{display:grid;gap:2px;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--border,rgba(255,255,255,.08))}
  .auto-mobile-sections .auto-side-link{height:44px;font-size:15px}
}
/* Account area shared with the Hansora Creative header (login window, credits, photo). */
body[data-automation-page]{padding-top:0!important}
.auto-account{display:inline-flex;align-items:center;gap:8px;margin-left:8px}
.auto-header .auto-auth-link{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:8px;background:none;color:var(--text,#f5f5f6);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.auto-header .auto-auth-link:hover{background:var(--surface-2,rgba(255,255,255,.05))}
.auto-credits{align-items:center;height:30px;padding:0 10px;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:999px;color:var(--text,#f5f5f6);font-size:12.5px;font-weight:600;white-space:nowrap}
.auto-avatar{align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--border-2,rgba(255,255,255,.14));border-radius:50%;background:var(--surface-2,#1a1b1f);overflow:hidden;cursor:pointer}
.auto-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.auto-user-menu{position:fixed;top:58px;right:16px;z-index:120;display:none;min-width:190px;padding:6px;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:12px;background:var(--surface,#111214);box-shadow:0 18px 40px -12px rgba(0,0,0,.6)}
.auto-user-menu.is-open{display:grid}
.auto-user-menu a,.auto-user-menu button{display:block;padding:9px 11px;border:0;border-radius:8px;background:none;color:var(--text,#f5f5f6);font:inherit;font-size:13.5px;text-align:left;text-decoration:none;cursor:pointer}
.auto-user-menu a:hover,.auto-user-menu button:hover{background:var(--surface-2,rgba(255,255,255,.06))}
@media(max-width:860px){.auto-account{margin:8px 0 0}.auto-user-menu{top:64px;right:12px}}
/* Phones: credits and photo sit in the header next to the light/dark switch on every page. */
@media(max-width:760px){
  .auto-header-tools .auto-account{display:inline-flex;margin:0 0 0 4px;gap:6px}
  .auto-header-tools .auto-credits{height:30px;padding:0 9px}
  .auto-header{gap:10px}.auto-brand{min-width:0;flex-shrink:1;overflow:hidden}
  /* The landing page keeps its light/dark switch in the header even with the bottom bar. */
  body[data-automation-page="landing"].has-auto-bottom-nav .auto-header-tools .auto-theme{display:grid}
  body[data-automation-page="landing"].has-auto-bottom-nav .auto-menu-toggle{display:block}
  /* No empty pill while the credits are still loading. */
  .auto-credits:empty{display:none!important}
}
@media(max-width:430px){.auto-brand small,.auto-brand i{display:none}}

/* "Hansora Creative" stands out so people can always find their way back. */
.auto-header .auto-back{display:inline-flex;align-items:center;height:32px;padding:0 12px;border-radius:999px;border:1px solid transparent;background:linear-gradient(var(--bg,#08090b),var(--bg,#08090b)) padding-box,linear-gradient(120deg,#8b5cf6,#4f9cff 55%,#22d3ee) border-box;color:var(--text,#f5f5f6);font-weight:600}
.auto-header .auto-back:hover{background:linear-gradient(120deg,rgba(139,92,246,.18),rgba(79,156,255,.18)) padding-box,linear-gradient(120deg,#8b5cf6,#4f9cff 55%,#22d3ee) border-box}
.auto-header .auto-back::before{content:"";width:7px;height:7px;margin-right:8px;border-radius:50%;background:linear-gradient(135deg,#8b5cf6,#22d3ee);box-shadow:0 0 10px rgba(79,156,255,.8)}

/* Phone bottom bar (signed-in pages) */
.auto-bottom-nav{display:none}
@media(max-width:760px){
  body.has-auto-bottom-nav{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  body.has-auto-bottom-nav .auto-menu-toggle{display:none}
  /* Phone header keeps only what fits: brand, credits, photo. The light/dark switch moves into the Menu. */
  body.has-auto-bottom-nav .auto-header-tools .auto-theme{display:none}
  body.has-auto-bottom-nav .auto-header nav .auto-theme{display:inline-flex;justify-self:start;margin:6px 0 0}
  body.has-auto-bottom-nav .auto-brand{min-width:0;flex-shrink:1;overflow:hidden}
  body.has-auto-bottom-nav .auto-header{gap:10px}
  body.has-auto-bottom-nav .auto-header-tools{min-width:0;flex-shrink:0}
  @media(max-width:360px){body.has-auto-bottom-nav .auto-brand small{display:none}}
  body.has-auto-bottom-nav .auto-header-tools .auto-account{display:inline-flex;margin:0 0 0 6px}
  body.has-auto-bottom-nav .auto-header nav{max-height:calc(100vh - 60px - 72px - env(safe-area-inset-bottom,0px));overflow:auto;background:var(--bg,#08090b);box-shadow:0 24px 48px -12px rgba(0,0,0,.6)}
  /* The open menu fills the screen down to the bottom bar, so the page does not show through under it. */
  body.has-auto-bottom-nav .auto-header nav{min-height:calc(100vh - 60px - 72px - env(safe-area-inset-bottom,0px));align-content:start}
  /* The landing page already has the light/dark switch in its header: no second one in the menu. */
  body[data-automation-page="landing"].has-auto-bottom-nav .auto-header nav .auto-theme{display:none}
  /* While typing, the keyboard would push the bottom bar up over the page: hide it until typing ends. */
  body.has-auto-bottom-nav.auto-typing .auto-bottom-nav{display:none}
  .auto-bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--border,rgba(255,255,255,.08));background:var(--glass-strong,rgba(8,9,11,.96));backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .auto-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:56px;border:0;border-radius:14px;background:transparent;color:var(--text-3,#8b8d96);font:600 11.5px/1 inherit;text-decoration:none;cursor:pointer;transition:background .15s,color .15s,transform .12s}
  .auto-tab svg{width:22px;height:22px}
  .auto-tab:active{transform:scale(.94);background:var(--surface-2,rgba(255,255,255,.06))}
  .auto-tab.active,.auto-tab[aria-expanded="true"]{color:var(--text,#f5f5f6)}
  .auto-tab.active svg{color:var(--accent,#4c8dff)}
  .auto-tab-burger{display:grid;align-content:center;gap:4px;width:20px;height:22px}
  .auto-tab-burger i{display:block;height:2px;border-radius:2px;background:currentColor}
}

/* AI employee switcher (top of the sidebar and of the phone menu) */
.auto-switch{position:relative;margin:0 0 10px}
.auto-switch-button{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;padding:7px 10px;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:12px;background:var(--surface-2,#15161a);color:var(--text,#f5f5f6);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,transform .12s}
.auto-switch-button:hover{border-color:var(--border-3,rgba(255,255,255,.22))}
.auto-switch-button:active{transform:scale(.98)}
.auto-switch-ig{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#f58529,#dd2a7b 45%,#8134af 75%,#515bd4);color:#fff}
.auto-switch-ig svg{width:18px;height:18px}
.auto-switch-ig.sm{width:26px;height:26px;border-radius:7px}.auto-switch-ig.sm svg{width:15px;height:15px}
.auto-switch-text{display:grid;min-width:0;flex:1;line-height:1.2}
.auto-switch-text b,.auto-switch-menu b{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.auto-switch-text small,.auto-switch-menu small{overflow:hidden;color:var(--text-3,#8b8d96);font-size:11.5px;text-overflow:ellipsis;white-space:nowrap}
.auto-switch-chev{flex:none;color:var(--text-3,#8b8d96);transition:transform .2s}
.auto-switch.open .auto-switch-chev{transform:rotate(180deg)}
.auto-switch-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:70;display:grid;gap:2px;max-height:320px;overflow:auto;padding:6px;border:1px solid var(--border-2,rgba(255,255,255,.12));border-radius:12px;background:var(--surface,#101114);box-shadow:0 24px 60px -20px rgba(0,0,0,.7);animation:auto-switch-in .16s cubic-bezier(.2,.7,.2,1)}
@keyframes auto-switch-in{from{opacity:0;transform:translateY(-4px)}}
.auto-switch-menu a{display:flex;align-items:center;gap:10px;padding:8px;border-radius:9px;color:var(--text,#f5f5f6);text-decoration:none}
.auto-switch-menu a>span:not(.auto-switch-ig){display:grid;min-width:0;flex:1}
.auto-switch-menu a:hover,.auto-switch-menu a.current{background:var(--surface-2,#15161a)}
.auto-switch-menu a i{color:var(--accent,#4c8dff);font-style:normal}
.auto-switch-menu .auto-switch-new{justify-content:center;margin-top:4px;border-top:1px solid var(--border,rgba(255,255,255,.08));border-radius:0 0 9px 9px;color:var(--text-2,#a3a6ad);font-size:13px}
body.auto-sidebar-collapsed .auto-sidebar .auto-switch-text,body.auto-sidebar-collapsed .auto-sidebar .auto-switch-chev{display:none}
body.auto-sidebar-collapsed .auto-sidebar .auto-switch-button{justify-content:center;padding:7px 0}
body.auto-sidebar-collapsed .auto-sidebar .auto-switch-menu{left:0;right:auto;width:240px}
.auto-mobile-sections .auto-switch{margin:0 0 8px}
/* Inbox: red number of chats waiting for the team */
.auto-side-link,.auto-tab{position:relative}
.auto-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:auto;padding:0 5px;border-radius:9px;background:#ef4444;color:#fff;font:700 11px/1 inherit;font-style:normal}
body.auto-sidebar-collapsed .auto-side-link .auto-badge{position:absolute;left:24px;top:4px;min-width:16px;height:16px;padding:0 4px;font-size:10px}
.auto-tab .auto-badge{position:absolute;top:6px;left:calc(50% + 4px);margin:0;min-width:17px;height:17px;font-size:10.5px}

/* "Need help?" in the header and its popup. */
.auto-header .auto-help{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid var(--border-2,rgba(255,255,255,.14));border-radius:999px;background:transparent;color:var(--text,#f5f5f6);font:inherit;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
.auto-header .auto-help:hover{background:var(--surface-2,rgba(255,255,255,.06))}
.auto-help-dialog{width:min(460px,calc(100vw - 32px))}
.auto-help-form{display:grid;gap:12px;padding:20px}
.auto-help-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auto-help-head h2{margin:0;font-size:19px}
.auto-help-intro{margin:0;color:var(--text-2);font-size:14px;line-height:1.5}
.auto-help-row{display:flex;gap:8px}.auto-help-row select{flex:none;width:auto;min-width:128px}.auto-help-row input{flex:1;min-width:0}
.auto-help-error{margin:0;color:#f87171;font-size:13px}
.auto-help-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.auto-help-actions .ui-link{font-size:13px}
@media(max-width:480px){.auto-help-row{flex-direction:column}.auto-help-row select{width:100%}}

/* Pricing with the sale badge, like the Hansora Creative header. */
.auto-header .auto-pricing{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;line-height:1.1}
.auto-header .auto-pricing em{padding:1px 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:9.5px;font-style:normal;font-weight:800;letter-spacing:.04em}
@media(max-width:900px){.auto-header .auto-pricing{flex-direction:row;gap:8px}}
@media(max-width:760px){.auto-header nav>a.auto-pricing{justify-content:flex-start}.auto-header nav .auto-help{margin-top:10px}}
/* Language picker (EN / ՀԱՅ / РУ) next to the theme switch */
.auto-lang{height:34px;padding:0 6px;border:1px solid var(--border-2,rgba(255,255,255,.14));border-radius:999px;background:transparent;color:var(--text,#f5f5f6);font:600 12px/1 inherit;cursor:pointer}
.auto-lang option{color:#111;background:#fff}
.auto-header-tools .auto-lang{display:none}
/* Longer words in Armenian and Russian: menu links never wrap onto two lines */
.auto-header nav > a,.auto-side-link span{white-space:nowrap}
.auto-tab span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
/* Language in the account menu */
.auto-user-menu .auto-lang-item{display:flex;align-items:center;justify-content:space-between;gap:14px}
.auto-lang-value{color:var(--text-2,#a3a6ad);font-size:12.5px;white-space:nowrap}
.auto-lang-list{display:grid;gap:2px;margin:0 0 4px;padding:4px;border-radius:9px;background:var(--surface-2,rgba(255,255,255,.05))}
.auto-lang-list[hidden]{display:none}
.auto-lang-list button{display:flex;justify-content:space-between}
.auto-lang-list button.current{font-weight:600}
.auto-lang-list i{font-style:normal;color:#34c759}
