body.hb { margin: 0; padding: 0; background: #fff; color: #1d1d21; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; display: block; }
.hb *, .hb *::before, .hb *::after { box-sizing: border-box; }
.hb a { text-decoration: none; }

.hb-side { position: fixed; top: 0; left: 0; bottom: 0; width: 220px; background: #fff; border-right: 1px solid #e4e6eb; display: flex; flex-direction: column; padding: 20px 14px; z-index: 5; }
.hb-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; padding: 0 6px; }
.hb-mark { width: 30px; height: 30px; border-radius: 8px; background: #1662dd; color: #fff; font-weight: 700; display: grid; place-items: center; }
.hb-word { font-weight: 700; font-size: 16px; color: #1d1d21; }
.hb-dash { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; padding: 0 10px 8px; }
.hb-nav { display: flex; flex-direction: column; gap: 2px; }
.hb-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #3b4150; font-size: 14px; font-weight: 500; }
.hb-nav a:hover { background: #f3f5f8; }
.hb-nav a.active { background: #e6f0ff; color: #1662dd; }
.hb-foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: #6b7280; display: flex; flex-direction: column; gap: 4px; }

.hb-body { margin-left: 220px; min-height: 100vh; }
.hb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 32px; border-bottom: 1px solid #e4e6eb; }
.hb-search { position: relative; flex: 1; max-width: 520px; color: #6b7280; }
.hb-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hb-search input { width: 100%; height: 40px; padding: 0 16px 0 38px; border: 1px solid #cfd4dc; border-radius: 999px; font-size: 14px; background: #f7f8fa; color: #1d1d21; margin: 0; }
.hb-search input:focus { outline: none; border-color: #1662dd; background: #fff; box-shadow: 0 0 0 3px rgba(22,98,221,.18); }

.hb-user, .hb-sortwrap { position: relative; }
.hb-userbtn, .hb-sort { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid transparent; border-radius: 8px; padding: 8px 10px; font-size: 14px; color: #1d1d21; cursor: pointer; font-family: inherit; }
.hb-userbtn:hover { background: #f3f5f8; }
.hb-sort { border-color: #cfd4dc; }
.hb-sort:hover { background: #f3f5f8; }
.hb-menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 140px; background: #fff; border: 1px solid #e4e6eb; border-radius: 8px; box-shadow: 0 6px 20px rgba(16,24,40,.14); padding: 4px; z-index: 20; display: flex; flex-direction: column; }
.hb-menu[hidden] { display: none; }
.hb-menu a, .hb-menu button { display: block; text-align: left; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; font-size: 13px; color: #1d1d21; cursor: pointer; font-family: inherit; }
.hb-menu a:hover, .hb-menu button:hover { background: #f3f5f8; }

.hb-main { padding: 28px 32px 48px; max-width: none; margin: 0; }
.hb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hb-head h1 { margin: 0; font-size: 24px; font-weight: 600; }
.hb-section { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #3b4150; padding-bottom: 10px; border-bottom: 1px solid #e4e6eb; margin-bottom: 18px; }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, 116px); gap: 16px; }
.hb-tile { position: relative; width: 116px; height: 120px; background: #fff; border: 1px solid #e4e6eb; border-radius: 10px; box-shadow: 0 1px 2px rgba(16,24,40,.06); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px; color: #1d1d21; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hb-tile:hover, .hb-tile:focus-within { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(16,24,40,.14); border-color: #c5ccd8; }
.hb-link { position: absolute; inset: 0; border-radius: 10px; }
.hb-link:focus-visible { outline: 2px solid #1662dd; outline-offset: 2px; }
.hb-logo { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 700; }
.hb-name { font-size: 13px; font-weight: 500; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-more { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; background: none; border-radius: 6px; color: #6b7280; cursor: pointer; font-size: 16px; line-height: 1; opacity: 0; z-index: 2; }
.hb-tile:hover .hb-more, .hb-more:focus, .hb-more[aria-expanded="true"] { opacity: 1; }
.hb-more:hover { background: #eef0f4; }
.hb-tile .hb-menu { top: 28px; right: 4px; z-index: 30; }
.hb-empty { color: #6b7280; font-size: 14px; padding: 24px 0; }
.hb-empty[hidden] { display: none; }

@media (max-width: 800px) {
  .hb-side { position: static; width: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid #e4e6eb; }
  .hb-brand { margin: 0; }
  .hb-dash { display: none; }
  .hb-nav { flex-direction: row; }
  .hb-foot { margin: 0 0 0 auto; text-align: right; }
  .hb-body { margin-left: 0; min-height: 0; }
  .hb-top, .hb-main { padding-left: 16px; padding-right: 16px; }
}
