[hidden] {
  display: none !important;
}
.app-tools {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.app-tools a,
.app-tools button {
  min-height: 44px;
  font-size: 14px;
  padding: 10px 14px;
}
.app-tools button {
  background: var(--surface, #23252a);
  color: var(--fg, #f2f3f5);
  border: 1px solid var(--control, #797f8a);
}
.app-tools kbd {
  font: 12px system-ui;
  margin-left: 8px;
  color: var(--muted, #afb3bb);
}
@media (max-width: 740px) {
  .app-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .app-tools a,
  .app-tools button {
    padding: 8px 10px;
  }
}

/* Keep public app identity and everyday controls in one compact row. */
header.app-header{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px}
header.app-header .app-tools{width:auto;flex-wrap:nowrap;margin-left:auto;gap:4px;justify-content:flex-end}
header.app-header>nav:not(.app-tools){order:3;width:100%;gap:8px 20px}
@media(max-width:700px){header.app-header{padding-block:12px}header.app-header>.brand,header.app-header>strong,header.app-header>a>strong{font-size:20px}header.app-header .brand img{width:28px;height:28px}header.app-header .app-tools [data-open-apps]{padding-inline:10px}}

@media(max-width:700px){header.app-header .app-tools kbd{display:none}}
