/* One visual contract for the learner and Admin top-bar actions.
   Shell layouts remain independent; only shared buttons are styled here. */
:is(.site-header .header-actions, .admin-topbar .admin-nav-actions) .lml-top-action {
  box-sizing: border-box;
  align-items: center;
  display: inline-flex;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--lml-top-border, #d5dce6);
  border-radius: 10px;
  background: var(--lml-top-bg, #fff);
  color: var(--lml-top-color, #0f2341);
  box-shadow: 0 5px 13px rgba(15, 35, 65, .07);
  font: 700 13px/1.25 "Noto Sans Thai", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
:is(.site-header .header-actions, .admin-topbar .admin-nav-actions) .lml-top-action .nav-icon {
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lml-top-action--admin { --lml-top-bg: #fff; --lml-top-border: #d5dce6; --lml-top-color: #0f2341; --lml-top-hover: #f2f6fc; }
.lml-top-action--school { --lml-top-bg: #eee9f8; --lml-top-border: #d8d0eb; --lml-top-color: #514078; --lml-top-hover: #e5dcf6; }
.lml-top-action--overview { --lml-top-bg: #a9ddd1; --lml-top-border: #79bcae; --lml-top-color: #0f2341; --lml-top-hover: #94d3c4; }
.lml-top-action--registry { --lml-top-bg: #f5bc2f; --lml-top-border: #d9a21b; --lml-top-color: #0f2341; --lml-top-hover: #eeb126; }
.lml-top-action--website { --lml-top-bg: #fff; --lml-top-border: #d5dce6; --lml-top-color: #0f2341; --lml-top-hover: #f2f6fc; }
.lml-top-action--logout { --lml-top-bg: #1d5dcd; --lml-top-border: #1d5dcd; --lml-top-color: #fff; --lml-top-hover: #1851b2; }
:is(.site-header .header-actions, .admin-topbar .admin-nav-actions) .lml-top-action:hover,
:is(.site-header .header-actions, .admin-topbar .admin-nav-actions) .lml-top-action:focus-visible {
  background: var(--lml-top-hover, #f2f6fc);
  border-color: var(--lml-top-border, #d5dce6);
  color: var(--lml-top-color, #0f2341);
}
:is(.site-header .header-actions, .admin-topbar .admin-nav-actions) .lml-top-action.is-active {
  box-shadow: inset 0 -3px 0 rgba(15, 35, 65, .38), 0 5px 13px rgba(15, 35, 65, .07);
}
:is(.site-header .header-actions, .admin-topbar .admin-nav-actions) .lml-top-action:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
