:root {
  --lm-header-height: 76px;
  --lm-blue: #506F85;
  --lm-green: #309850;
  --lm-mint-light: #E4F7EF;
  --lm-orange: #FF7000;
  --lm-secondary: #707070;
}
.lm-header { background: #fff; position: sticky; top: 0; z-index: 100; }
.lm-header-inner { box-sizing: border-box; position: relative; min-height: var(--lm-header-height); max-width: 1080px; margin-inline: auto; display: flex; align-items: center; gap: 10px; padding: 0 24px; }
.lm-header::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right,#506F85 0 20%,var(--lm-orange) 20% 40%,#FFB870 40% 60%,#40B880 60% 80%,#80E0B8 80% 100%); }
.lm-header-logo { display: block; width: 180px; max-width: 100%; height: auto; }
.lm-header-actions { display: flex; align-items: center; gap: 10px; }
.lm-header-button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--lm-blue); cursor: pointer; }

.lm-header-button:focus-visible { outline: 2px solid var(--lm-blue); outline-offset: 2px; }


.lm-header-home { display: block; min-width: 0; }
.lm-header-button { flex-shrink: 0; }
.lm-header-button:disabled { opacity: .65; cursor: default; }


.app-header-space-group { position: relative; top: 4px; min-width: 0; margin-inline-start: auto; padding-inline: 4px 10px; text-align: right; font-family: system-ui, sans-serif; line-height: 1.35; }
.app-header-space { color: var(--lm-orange); font-size: 1.0625rem; font-weight: 700; overflow-wrap: anywhere; }
.app-header-date { color: var(--lm-secondary); font-size: .75rem; font-weight: 400; }



@media (min-width: 601px) {
  .lm-header-brand { transform: translateY(8px); }
  .lm-header-actions { transform: translateY(6px); }
}

.lm-header-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.lm-header-apps { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lm-app-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 38px; height: 38px; padding: 4px; border: 1px solid #DCE3E8; border-radius: 8px; background: #FFFFFF; text-decoration: none; }
.lm-app-icon { display: block; width: 19px; height: 19px; flex: 0 0 19px; aspect-ratio: 1; }

.lm-app-link:focus-visible { outline: 2px solid #20354F; outline-offset: 4px; }
.lm-app-link:disabled { cursor: default; }



.lm-app-link { color: var(--lm-blue); }




.lm-header-apps, .lm-header-actions { gap: 7px; }
.lm-app-link, .lm-header-button { box-sizing: border-box; flex-shrink: 0; width: 34px; height: 34px; padding: 0; border: 1px solid #e2e7ea; border-radius: 10px; background: #fff; transition: background-color .18s ease, border-color .18s ease; }
.lm-app-icon, .lm-header-button img { display: block; width: 19px; height: 19px; flex: 0 0 19px; object-fit: contain; }
.lm-header-actions { padding-left: 17px; border-left: 1px solid #e3e8ec; }

.lm-header-button:disabled { opacity: 1; }
.lm-app-link:disabled img, .lm-header-button:disabled img { filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='disabled'%3E%3CfeFlood flood-color='%23e2e7ea'/%3E%3CfeComposite in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3C/svg%3E#disabled"); opacity: 1; }

.lm-header-button.lm-user-button:disabled img { filter: none; }

.lm-header-apps .lm-app-active img { filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='active'%3E%3CfeFlood flood-color='%235b9bd5'/%3E%3CfeComposite in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3C/svg%3E#active"); opacity: 1; }
.lm-header-apps .lm-app-inactive img { filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='inactive'%3E%3CfeFlood flood-color='%23e2e7ea'/%3E%3CfeComposite in2='SourceAlpha' operator='in'/%3E%3C/filter%3E%3C/svg%3E#inactive"); opacity: 1; }

.lm-header-logout { display: flex; margin: 0; }
