[data-icon] { display: inline-flex; flex: 0 0 auto; }
[data-icon] > svg { display: block; width: 17px; height: 17px; }
.app-sidebar .nav-button { text-decoration: none; white-space: normal; line-height: 1.45; }
.language-control { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0 0 4px; color: var(--muted); font-size: 11px; }
.language-control select { min-width: 0; padding: 7px 22px 7px 9px; border: 1px solid var(--line); border-radius: 5px; background-color: #fbfcf9; color: var(--ink); font: inherit; cursor: pointer; }
.language-control select:focus-visible { outline: 2px solid #7d9c66; outline-offset: 3px; }
.session-logout { order: 3; }
.sidebar-foot .language-control { order: 2; margin-top: 6px; }
html[lang="en"] .page-heading h1 { letter-spacing: -1px; }
html[lang="en"] .list-layout .card-metrics small { font-size: 9px; }
body > header .language-control { width: auto; margin: 0 0 0 auto; order: 3; padding-left: 24px; }
.fn-loading {
  --loading-ink: var(--accent-dark, #527358);
  color: var(--muted, #788477);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.fn-loading--block, .fn-loading--page {
  position: relative;
  display: grid;
  place-items: center;
  grid-column: 1 / -1;
  min-height: 180px;
  padding: 32px 20px;
  border: 1px solid var(--line, #e1e7dc);
  border-radius: 12px;
  background: var(--paper, #fbfcf9);
  overflow: hidden;
}
.fn-loading-content { position: relative; display: inline-flex; align-items: center; gap: 12px; }
.fn-loading--block .fn-loading-content, .fn-loading--page .fn-loading-content { flex-direction: column; gap: 18px; text-align: center; }
.fn-loading--inline { display: inline-flex; vertical-align: middle; color: inherit; font: inherit; }
.fn-loading--inline .fn-loading-content { gap: 9px; }
.fn-loading-dots { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 20px; flex: 0 0 auto; }
.fn-loading-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--loading-ink);
  animation: fn-dot-hop 1.1s cubic-bezier(.45, 0, .35, 1) infinite;
}
.fn-loading-dots i:nth-child(2) { animation-delay: 120ms; }
.fn-loading-dots i:nth-child(3) { animation-delay: 240ms; }
.fn-loading--inline .fn-loading-dots { gap: 3px; height: 16px; }
.fn-loading--inline .fn-loading-dots i { width: 4px; height: 4px; background: currentColor; }
@keyframes fn-dot-hop {
  0%, 60%, 100% { transform: translateY(0); opacity: .38; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.fn-loading--page { min-height: 360px; background: transparent; }
.fn-loading-layout { position: absolute; inset: 20px; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 70px 1fr; gap: 12px; opacity: .6; }
.fn-loading-layout span { grid-column: span 2; border: 1px solid var(--line, #e1e7dc); border-radius: 8px; background: linear-gradient(135deg, #eef2e9, #f9faf6); }
.fn-loading-layout span:nth-child(n+4) { grid-column: span 3; }
.fn-loading--page .fn-loading-content { padding: 24px 36px; border: 1px solid var(--line, #e1e7dc); border-radius: 12px; background: #fbfcf9; box-shadow: 0 8px 28px #33452e06; }
.fn-busy-region { position: relative; }
.fn-region-status { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 7px 12px; border: 1px solid var(--line, #e1e7dc); border-radius: 20px; background: #fbfcf9; box-shadow: 0 3px 12px #33452e08; pointer-events: none; }
button[aria-busy="true"] { cursor: wait; }
button[aria-busy="true"] .fn-loading { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .fn-loading-dots i { animation: none; opacity: .65; transform: none; }
}
@media (max-width:760px) {
  .fn-loading--page { min-height: 280px; }
  .fn-loading-layout { inset: 12px; gap: 8px; }
  .fn-loading--page .fn-loading-content { padding: 20px; }
  .app-sidebar .brand { max-width: none; }
  .app-sidebar .brand small { display: none; }
  .app-sidebar .primary-nav .nav-button { flex: 0 0 auto; white-space: nowrap; }
  .sidebar-foot { position: static; max-width: none; width: 100%; margin: 12px 0; flex-direction: row; align-items: center; gap: 12px; }
  .sidebar-foot .sidebar-config { display: flex; width: auto; padding: 6px; font-size: 10px; }
  .sidebar-foot .language-control { width: auto; margin: 0 0 0 auto; }
  .sidebar-foot .language-label { display: none; }
  .language-control select { width: 100%; font-size: 11px; padding-top: 6px; padding-bottom: 6px; }
  .sidebar-foot .session-logout { padding: 6px; background: none; font-size: 10px; }
  body > header .language-label, body > header > span { display: none; }
  .topbar { flex-wrap: wrap; }
}
