/* SHIPA branding. Medical status colours retain their existing meanings. */
:root{--blue:#2468CC;--shipa-accent:#2468CC;--focus:0 0 0 3px #2468cc30}
.shipa-emblem{display:block;object-fit:contain;object-position:center;width:auto;height:auto;max-width:100%;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;box-shadow:none!important;filter:none!important;flex-shrink:0}
.shipa-owner{display:block;font-size:11px;line-height:1.25;letter-spacing:.16em;font-weight:normal;margin-top:5px;opacity:.72}
.login{background:radial-gradient(ellipse at 45% 74%,#2468cc55,transparent 50%),linear-gradient(125deg,#091e3b,#143b6a 65%,#174b85)}
.login-brand>.shipa-login-brand{display:flex;align-items:center;gap:24px;max-width:650px}
.shipa-login-brand .login-emblem{width:124px;height:124px;margin:0;object-position:center}
.shipa-login-copy{min-width:0}
.login-brand .shipa-login-copy h1{font-size:clamp(44px,4.7vw,64px);line-height:1;letter-spacing:.065em;margin:0 0 10px;max-width:none}
.login-brand .shipa-login-copy p{font-size:clamp(18px,1.8vw,25px);line-height:1.25;margin:0;padding:0;max-width:none;color:#e3efff}
.shipa-login-copy .shipa-owner{font-size:13px;margin-top:12px;color:#d8e8ff}
.side{background:linear-gradient(165deg,#0d284cf5,#163f73f2)}
.side .shipa-side-brand{grid-template-columns:53px minmax(0,1fr);gap:10px;padding:2px 6px 18px}
.shipa-side-brand .brand-logo{width:53px;height:62px}
.shipa-side-brand b{font-size:24px;letter-spacing:.06em}
.shipa-side-brand small{font-size:13px;line-height:1.2;color:#d7e6ff}
.shipa-side-brand .shipa-owner{color:#d7e6ff;font-size:10px}
.nav button.active{box-shadow:inset 3px 0 #7eafff,0 5px 12px #001f3022}
.shipa-top-brand,.shipa-referral-brand{display:flex;align-items:center;gap:10px;color:#173b6f;min-width:0}
.shipa-top-brand{flex:0 0 204px}
.shipa-top-brand .shipa-emblem{width:44px;height:46px}
.shipa-top-brand>div{min-width:0}
.shipa-top-brand b,.shipa-referral-brand b{display:block;font-size:22px;line-height:1;letter-spacing:.065em}
.shipa-top-brand small{display:block;font-size:12px;line-height:1.2;margin-top:4px;max-width:150px}
.shipa-top-brand .shipa-owner{font-size:9px;line-height:1;margin-top:3px}
.top #topTitle{font-size:20px;min-width:0;flex:1;max-width:none}
.top-user-text{max-width:190px}
.primary,.login-card .primary,.language-switch button.active,.tabs button.active,.duty-tabs button.active,.view-switch button.active{background:linear-gradient(135deg,#2468CC,#1d54a5);color:#fff}
.top-avatar{background:linear-gradient(135deg,#2468CC,#4a8be8)}
.shipa-referral-brand{max-width:1160px;margin:20px auto 0;padding:0 24px;font-family:"Times New Roman",Times,serif}
.shipa-referral-brand .shipa-emblem{width:60px;height:60px}
.shipa-referral-brand small{display:block;font-size:15px;margin-top:5px}
@media(min-width:801px) and (max-width:1200px){.shipa-top-brand{flex-basis:176px;gap:8px}.shipa-top-brand .shipa-emblem{width:36px;height:44px}.shipa-top-brand small{max-width:130px;font-size:11px}.top-user-text{max-width:145px}.top{gap:9px;padding-inline:14px}.top #topTitle{font-size:18px}}
@media(max-width:800px){
  .login{padding-top:70px}
  .login-brand>.shipa-login-brand{gap:15px;max-width:100%}
  .shipa-login-brand .login-emblem{width:87px;height:91px}
  .login-brand .shipa-login-copy h1{font-size:41px;margin-bottom:7px}
  .login-brand .shipa-login-copy p{font-size:19px;max-width:220px}
  .shipa-login-copy .shipa-owner{font-size:11px;margin-top:8px}
  .login-brand{min-height:360px}
  .top{display:grid;grid-template-columns:38px minmax(0,1fr) auto 42px;grid-template-rows:auto auto;height:auto;min-height:92px;gap:4px 7px;padding:8px 10px}
  .top .mobile-menu{grid-column:1;grid-row:1;min-width:38px;min-height:44px}
  .shipa-top-brand{grid-column:2;grid-row:1;gap:7px}
  .shipa-top-brand .shipa-emblem{width:32px;height:38px}
  .shipa-top-brand b{font-size:20px}
  .shipa-top-brand small{font-size:11px;max-width:145px}
  .shipa-top-brand .shipa-owner{font-size:8px;letter-spacing:.1em}
  .top .top-language{grid-column:3;grid-row:1;margin:0}
  .top .top-language button{min-height:40px;min-width:34px}
  .top .top-user{grid-column:4;grid-row:1}
  .top #topTitle{grid-column:2/-1;grid-row:2;font-size:17px;width:100%;padding:2px 0;line-height:1.25}
  .shipa-referral-brand{margin-top:12px;padding-inline:16px}
}
@media(max-width:360px){.shipa-top-brand .shipa-emblem{width:26px;height:34px}.shipa-top-brand{gap:5px}.shipa-top-brand b{font-size:18px}.shipa-top-brand small{font-size:10px}.top{gap:4px}.shipa-login-brand .login-emblem{width:72px;height:80px}.login-brand .shipa-login-copy h1{font-size:35px}.login-brand .shipa-login-copy p{font-size:17px}}
@media print{.shipa-referral-brand{display:none}}
