:root{
  --k-primary:#173A57;
  --k-primary-dark:#102B43;
  --k-bg:#F6F3ED;
  --k-surface:#FFFDF9;
  --k-text:#26292C;
  --k-muted:#6F7479;
  --k-border:#D9D5CC;
  --k-accent:#8D7863;
  --k-brand:#0A4C3E;
  --k-success:#376B54;
  --k-warning:#A06E32;
  --k-error:#A64A43;
  --k-radius-sm:6px;
  --k-radius:10px;
  --k-radius-lg:14px;
  --k-focus:0 0 0 3px rgba(23,58,87,.22);
  --kshell-height:82px;
  --kshell-width:1320px;
}

.kontaro-frontend-shell-active .kshell,
.kontaro-frontend-shell-active .kshell-footer{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

.kshell{
  position:fixed;
  z-index:99999;
  top:0;
  left:0;
  right:0;
  height:var(--kshell-height);
  display:flex;
  align-items:center;
  color:var(--k-text);
  background:transparent;
  border-bottom:1px solid transparent;
  transition:transform .26s cubic-bezier(.2,.8,.2,1),background-color .2s ease,border-color .2s ease,box-shadow .2s ease,backdrop-filter .2s ease;
}

.kshell.is-hidden{transform:translateY(calc(-1 * var(--kshell-height) - 8px))}
.kshell.is-solid,
.kshell.menu-open{
  background:rgba(255,253,249,.93);
  border-color:rgba(217,213,204,.82);
  box-shadow:0 10px 30px rgba(16,43,67,.055);
  backdrop-filter:blur(16px) saturate(130%);
  -webkit-backdrop-filter:blur(16px) saturate(130%);
}

.kshell-inner{
  width:min(var(--kshell-width),calc(100% - 56px));
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}

.kshell-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:max-content;
  color:var(--k-text);
  text-decoration:none;
  font-weight:700;
  letter-spacing:-.025em;
}
.kshell-brand:focus-visible,.kshell-nav a:focus-visible,.kshell-menu:focus-visible{outline:none;box-shadow:var(--k-focus)}
.kshell-mark{display:block;width:40px;height:40px;flex:0 0 40px}
.kshell-mark img{display:block;width:100%;height:100%;object-fit:contain}
.kshell-wordmark{font-size:18px;line-height:1}

.kshell-nav{display:flex;align-items:center;gap:26px}
.kshell-nav a{
  position:relative;
  color:#565B60;
  text-decoration:none;
  font-size:14px;
  line-height:1.2;
  font-weight:620;
  transition:color .15s ease,background-color .15s ease,border-color .15s ease;
}
.kshell-nav>a:not(.kshell-login)::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-8px;
  height:1px;
  background:var(--k-primary);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .16s ease;
}
.kshell-nav>a:not(.kshell-login):hover,
.kshell-nav>a.is-current{color:var(--k-primary-dark)}
.kshell-nav>a:not(.kshell-login):hover::after,
.kshell-nav>a.is-current::after{transform:scaleX(1)}
.kshell-login{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--k-border);
  border-radius:var(--k-radius-sm);
  background:rgba(255,253,249,.64);
  color:var(--k-primary-dark)!important;
}
.kshell-login:hover{background:var(--k-surface);border-color:#BDB7AC}

.kshell-menu{display:none;width:42px;height:42px;padding:9px;border:1px solid transparent;border-radius:var(--k-radius-sm);background:transparent;cursor:pointer}
.kshell-menu span{display:block;width:22px;height:1.5px;margin:5px auto;background:var(--k-primary-dark);transition:transform .18s ease,opacity .18s ease}
.kshell.menu-open .kshell-menu span:first-child{transform:translateY(3.25px) rotate(45deg)}
.kshell.menu-open .kshell-menu span:last-child{transform:translateY(-3.25px) rotate(-45deg)}

/* Booking is a focused flow, but still uses the global brand/header. */
.kontaro-booking-page .kbook{padding-top:calc(var(--kshell-height) + 36px)}
.kontaro-booking-page .kbook-brand{display:none}

.kshell-footer{
  padding:58px 0 22px;
  color:var(--k-text);
  background:#F1EEE7;
  border-top:1px solid var(--k-border);
}
.kshell-footer-inner{
  width:min(1240px,calc(100% - 56px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);
  gap:10vw;
  align-items:start;
}
.kshell-brand-footer{color:var(--k-text)}
.kshell-footer-brand p{max-width:390px;margin:16px 0 0;color:var(--k-muted);font-size:15px;line-height:1.6}
.kshell-footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:38px}
.kshell-footer-links strong{display:block;margin-bottom:14px;color:var(--k-muted);font-size:11px;line-height:1.2;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.kshell-footer-links a{display:block;width:max-content;max-width:100%;margin:10px 0;color:var(--k-text);text-decoration:none;font-size:14px;font-weight:600}
.kshell-footer-links a:hover{color:var(--k-primary)}
.kshell-footer-bottom{
  width:min(1240px,calc(100% - 56px));
  margin:44px auto 0;
  padding-top:18px;
  border-top:1px solid var(--k-border);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:var(--k-muted);
  font-size:12px;
}

@media (max-width:1120px){
  :root{--kshell-height:68px}
  .kshell-inner,.kshell-footer-inner,.kshell-footer-bottom{width:calc(100% - 30px)}
  .kshell-mark{width:36px;height:36px;flex-basis:36px}
  .kshell-wordmark{font-size:17px}
  .kshell-menu{display:block}
  .kshell-nav{
    position:fixed;
    top:calc(var(--kshell-height) + 8px);
    left:15px;
    right:15px;
    display:grid;
    gap:2px;
    padding:10px;
    border:1px solid var(--k-border);
    border-radius:var(--k-radius-lg);
    background:rgba(255,253,249,.985);
    box-shadow:0 22px 54px rgba(16,43,67,.11);
    transform:translateY(-10px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:transform .18s ease,opacity .18s ease,visibility .18s ease;
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
  }
  .kshell.menu-open .kshell-nav{transform:none;opacity:1;visibility:visible;pointer-events:auto}
  .kshell-nav a{padding:12px 11px;border-radius:var(--k-radius-sm)}
  .kshell-nav>a:not(.kshell-login)::after{display:none}
  .kshell-nav a:hover{background:#F2EFE9}
  .kshell-login{margin-top:4px;justify-content:center;background:var(--k-surface)}
  .kontaro-booking-page .kbook{padding-top:calc(var(--kshell-height) + 24px)}
  .kshell-footer{padding-top:42px}
  .kshell-footer-inner{grid-template-columns:1fr;gap:34px}
  .kshell-footer-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .kshell-footer-bottom{margin-top:34px}
}

@media (max-width:620px){
  .kshell-footer-links{grid-template-columns:1fr 1fr;gap:26px}
}

@media (prefers-reduced-motion:reduce){
  .kshell,.kshell-menu span,.kshell-nav,.kshell-nav a,.kshell-nav>a:not(.kshell-login)::after{transition:none!important}
}


/* Platformadmin keeps the native WordPress toolbar across the public Kontaro site.
   Ordinary Kontaro customers do not use WordPress sessions, so this only affects
   authenticated WordPress administrators. */
body.admin-bar .kshell{top:32px}
@media screen and (max-width:782px){
  body.admin-bar .kshell{top:46px}
}

/* 2.7 role-aware operational header */
.kshell-operational{
  background:rgba(255,253,249,.97);
  border-bottom:1px solid var(--k-border);
  box-shadow:none;
}
.kshell-operational.is-hidden{transform:none}
.kshell-operational-inner{max-width:none;width:calc(100% - 40px);gap:18px}
.kshell-start{display:flex;align-items:center;gap:14px;min-width:max-content}
.kshell-back-site{
  display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;
  border-left:1px solid var(--k-border);color:var(--k-muted);font-size:12px;font-weight:650;
  text-decoration:none;white-space:nowrap;
}
.kshell-back-site:hover{color:var(--k-primary-dark)}
.kshell-app-nav{flex:1;justify-content:flex-start;min-width:0;overflow:hidden}
.kshell-app-nav a{padding-left:7px;padding-right:7px;font-size:13px;white-space:nowrap}
.kshell-user-context{
  display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:max-content;
  padding-left:14px;border-left:1px solid var(--k-border);line-height:1.15;
}
.kshell-role{color:var(--k-muted);font-size:11px;font-weight:700;letter-spacing:.02em}
.kshell-user-name{margin-top:3px;color:var(--k-text);font-size:13px;font-weight:700}
.kshell-online-label{margin-left:auto;color:var(--k-muted);font-size:13px;font-weight:700}
body.kontaro-app-page .kshell-operational + main,
body.kontaro-app-page .kshell-operational ~ .kontaro-app,
body.kontaro-app-page .kshell-operational ~ #kontaro-app{scroll-margin-top:var(--kshell-height)}

@media (max-width:1260px){
  .kshell-operational .kshell-menu{display:block}
  .kshell-operational .kshell-app-nav{
    position:fixed;top:calc(var(--kshell-height) + 8px);left:15px;right:15px;display:grid;gap:2px;
    padding:10px;border:1px solid var(--k-border);border-radius:var(--k-radius-lg);background:rgba(255,253,249,.99);
    box-shadow:0 22px 54px rgba(16,43,67,.11);transform:translateY(-10px);opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .18s ease,opacity .18s ease,visibility .18s ease;overflow:visible;
  }
  .kshell-operational.menu-open .kshell-app-nav{transform:none;opacity:1;visibility:visible;pointer-events:auto}
  .kshell-operational .kshell-app-nav a{padding:12px 11px;border-radius:var(--k-radius-sm)}
  .kshell-operational .kshell-app-nav a:hover{background:#F2EFE9}
  .kshell-operational .kshell-user-context{margin-left:auto}
}
@media (max-width:700px){
  .kshell-operational-inner{width:calc(100% - 24px);gap:8px}
  .kshell-back-site span:last-child{display:none}
  .kshell-back-site{padding-right:4px}
  .kshell-user-context{display:none}
  .kshell-operational .kshell-wordmark{display:none}
  .kshell-online .kshell-wordmark{display:inline}
}


/* Shell 2.8 - public conversion header + contextual actions */
.kshell-trial,.kshell-action{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 14px;border:1px solid var(--k-primary);border-radius:var(--k-radius-sm);background:var(--k-primary);color:#fff!important;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap;cursor:pointer}
.kshell-trial:hover,.kshell-action.is-primary:hover{background:var(--k-primary-dark);border-color:var(--k-primary-dark)}
.kshell-context-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.kshell-context-actions form{margin:0}.kshell-action:not(.is-primary){background:var(--k-surface);color:var(--k-primary-dark)!important;border-color:var(--k-border)}
.kshell-operational .kshell-app-nav{flex:1;justify-content:center}.kshell-operational .kshell-user-context{min-width:max-content}
@media(max-width:1120px){.kshell-context-actions{margin-left:auto}.kshell-nav .kshell-trial{width:100%;margin-top:5px}.kshell-operational .kshell-context-actions{order:2}.kshell-user-context{display:none}}

/* Shell 2.9 - guest product mega menu + explicit logout */
.kshell-logout-form{margin:0;display:flex}
.kshell-logout{
  display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;
  border:1px solid var(--k-border);border-radius:var(--k-radius-sm);background:var(--k-surface);
  color:var(--k-primary-dark);font:inherit;font-size:12px;font-weight:750;text-decoration:none;cursor:pointer;white-space:nowrap
}
.kshell-logout:hover{background:#F2EFE9;border-color:#C9C3B8}
.kshell-public-nav{position:relative}
.kshell-mega{position:relative;display:flex;align-items:center}
.kshell-mega-trigger{
  appearance:none;border:0;background:transparent;padding:10px 0;color:#565B60;font:inherit;font-size:14px;
  line-height:1.2;font-weight:650;cursor:pointer;display:inline-flex;align-items:center;gap:5px
}
.kshell-mega-trigger span{font-size:12px;transition:transform .16s ease}
.kshell-mega.is-open .kshell-mega-trigger,.kshell-mega-trigger:hover{color:var(--k-primary-dark)}
.kshell-mega.is-open .kshell-mega-trigger span{transform:rotate(180deg)}
.kshell-mega-panel{
  position:fixed;top:calc(var(--kshell-height) - 4px);left:50%;width:min(920px,calc(100vw - 48px));
  transform:translate(-50%,-8px);display:grid;grid-template-columns:240px 1fr;gap:26px;padding:18px;
  border:1px solid var(--k-border);border-radius:14px;background:rgba(255,253,249,.99);
  box-shadow:0 26px 70px rgba(16,43,67,.14);opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
body.admin-bar .kshell-mega-panel{top:calc(var(--kshell-height) + 28px)}
.kshell-mega.is-open .kshell-mega-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
.kshell-mega-intro{padding:18px;border-radius:10px;background:#F3EFE7;display:flex;flex-direction:column;align-items:flex-start}
.kshell-mega-intro>span{font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--k-accent)}
.kshell-mega-intro strong{margin-top:12px;color:var(--k-primary-dark);font-size:20px;line-height:1.15;letter-spacing:-.025em}
.kshell-mega-intro p{margin:10px 0 18px;color:var(--k-muted);font-size:13px;line-height:1.55}
.kshell-mega-intro a{margin-top:auto;color:var(--k-primary);font-size:13px;font-weight:750;text-decoration:none}
.kshell-mega-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.kshell-mega-grid a{display:flex;flex-direction:column;gap:4px;padding:13px 14px;border-radius:9px;text-decoration:none!important;color:var(--k-text)!important}
.kshell-mega-grid a:hover{background:#F4F1EB}
.kshell-mega-grid b{font-size:13px;color:var(--k-primary-dark)}
.kshell-mega-grid span{font-size:12px;line-height:1.45;color:var(--k-muted);font-weight:500}
.kshell-mega-grid a::after{display:none!important}

@media(max-width:1260px){
  .kshell-operational .kshell-logout{margin-left:auto}
}
@media(max-width:1120px){
  .kshell-public-nav .kshell-mega{display:block}
  .kshell-mega-trigger{width:100%;justify-content:space-between;padding:12px 11px;border-radius:var(--k-radius-sm)}
  .kshell-mega-trigger:hover{background:#F2EFE9}
  .kshell-mega-panel{position:static;width:100%;transform:none!important;display:none;grid-template-columns:1fr;box-shadow:none;border:0;border-radius:8px;padding:8px;background:#F5F1EA;opacity:1;visibility:visible}
  .kshell-mega.is-open .kshell-mega-panel{display:grid}
  .kshell-mega-intro{display:none}
  .kshell-mega-grid{grid-template-columns:1fr}
  .kshell-mega-grid a{padding:11px}
  .kshell-operational .kshell-logout{order:3}
}
@media(max-width:700px){
  .kshell-operational .kshell-logout{padding:7px 9px;font-size:11px}
}

/* Shell 3.0 - compact operational mega menu */
.kshell-operational-inner{gap:16px}
.kshell-operational .kshell-app-nav{justify-content:flex-start;overflow:visible;gap:10px}
.kshell-operational .kshell-app-nav>a{min-height:36px;display:inline-flex;align-items:center;padding:7px 10px;border-radius:8px;font-size:13px;font-weight:720;color:var(--k-primary-dark)}
.kshell-operational .kshell-app-nav>a:hover{background:#F2EFE9}
.kshell-op-mega{position:relative;display:flex;align-items:center}
.kshell-op-mega-trigger{appearance:none;border:1px solid transparent;background:transparent;min-height:36px;padding:7px 10px;border-radius:8px;color:var(--k-muted);font:inherit;font-size:13px;font-weight:720;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.kshell-op-mega-trigger:hover,.kshell-op-mega.is-open .kshell-op-mega-trigger{color:var(--k-primary-dark);background:#F2EFE9;border-color:#E9E4DB}
.kshell-op-mega-trigger span{font-size:11px;transition:transform .16s ease}
.kshell-op-mega.is-open .kshell-op-mega-trigger span{transform:rotate(180deg)}
.kshell-op-mega-panel{position:fixed;z-index:99995;top:calc(var(--kshell-height) - 3px);left:50%;width:min(760px,calc(100vw - 56px));transform:translate(-50%,-7px);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px;border:1px solid var(--k-border);border-radius:14px;background:rgba(255,253,249,.995);box-shadow:0 24px 64px rgba(16,43,67,.13);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,transform .15s ease,visibility .15s ease;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.admin-bar .kshell-op-mega-panel{top:calc(var(--kshell-height) + 29px)}
.kshell-op-mega.is-open .kshell-op-mega-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
.kshell-op-mega-column{min-width:0;padding:4px}
.kshell-op-mega-title{display:block;margin:0 8px 7px;color:var(--k-accent);font-size:10px;font-weight:820;letter-spacing:.09em;text-transform:uppercase}
.kshell-op-mega-column a{display:block!important;margin:1px 0;padding:10px 9px!important;border-radius:8px!important;color:var(--k-text)!important;font-size:13px!important;font-weight:650!important;text-decoration:none!important;white-space:normal!important}
.kshell-op-mega-column a:hover,.kshell-op-mega-column a.is-current{background:#F3EFE7!important;color:var(--k-primary-dark)!important}
.kshell-op-mega-column a::after{display:none!important}
@media(max-width:1260px){
  .kshell-operational .kshell-app-nav{position:static;display:flex;padding:0;border:0;background:transparent;box-shadow:none;transform:none;opacity:1;visibility:visible;pointer-events:auto}
  .kshell-operational .kshell-app-nav>a{display:none}
  .kshell-op-mega-trigger{display:none}
  .kshell-operational.menu-open .kshell-app-nav{position:fixed;top:calc(var(--kshell-height) + 8px);left:15px;right:15px;display:block;padding:10px;border:1px solid var(--k-border);border-radius:14px;background:rgba(255,253,249,.995);box-shadow:0 22px 54px rgba(16,43,67,.11)}
  .kshell-operational.menu-open .kshell-app-nav>a{display:block}
  .kshell-operational.menu-open .kshell-op-mega{display:block}
  .kshell-operational.menu-open .kshell-op-mega-trigger{display:none}
  .kshell-operational.menu-open .kshell-op-mega-panel{position:static;width:100%;transform:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px;border:0;box-shadow:none;opacity:1;visibility:visible;pointer-events:auto;background:transparent}
}
@media(max-width:700px){.kshell-operational.menu-open .kshell-op-mega-panel{grid-template-columns:1fr}.kshell-op-mega-column{padding:2px 0}}
