* { box-sizing: border-box; }
html { max-width: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body.toolbox-site {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--tb-ink);
  background: #fbfbfd;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.toolbox-site a { color: inherit; text-decoration: none; }
.toolbox-site button, .toolbox-site input { font: inherit; }
.toolbox-site button { cursor: pointer; }
.toolbox-site :focus-visible { outline: 3px solid rgba(71, 140, 255, .38); outline-offset: 3px; }

.toolbox-navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--tb-nav-height);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.toolbox-navbar.is-scrolled,
.toolbox-navbar.is-open {
  border-bottom-color: rgba(20, 20, 24, .08);
  background: rgba(251, 251, 253, .78);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
}
.toolbox-navbar-inner {
  width: min(var(--tb-max), calc(100% - 48px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.toolbox-brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; }
.toolbox-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 12px;
  background: #111114;
}
.toolbox-brand-mark svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; }
.toolbox-brand strong, .toolbox-brand small { display: block; }
.toolbox-brand strong { font-size: 17px; line-height: 1.1; letter-spacing: -.02em; }
.toolbox-brand small { margin-top: 2px; color: var(--tb-muted); font-size: 10px; }
.toolbox-desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.toolbox-desktop-nav a, .toolbox-login-link, .toolbox-nav-admin {
  padding: 9px 12px;
  color: #5d5d66;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease, background-color .2s ease;
}
.toolbox-desktop-nav a:hover, .toolbox-desktop-nav a.active { color: var(--tb-ink); background: rgba(20, 20, 24, .055); }
.toolbox-navbar-actions { display: flex; align-items: center; gap: 8px; }
.toolbox-user-chip {
  min-height: 42px;
  padding: 5px 11px 5px 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--tb-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, .62);
}
.toolbox-user-chip span { width: 30px; height: 30px; display: grid; place-items: center; color: white; border-radius: 9px; background: #16161a; font-weight: 750; }
.toolbox-user-chip b { max-width: 110px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.toolbox-desktop-logout button { min-height: 40px; padding: 7px 8px; color: var(--tb-muted); border: 0; background: transparent; font-size: 12px; }
.toolbox-desktop-logout button:hover { color: var(--tb-ink); }
.toolbox-button {
  min-height: 44px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 720;
  transition: transform .25s var(--tb-ease), background-color .25s ease, border-color .25s ease;
}
.toolbox-button:hover { transform: translateY(-2px); }
.toolbox-site .toolbox-button-dark, .toolbox-site .toolbox-button-primary { color: white; background: #151519; }
.toolbox-button-light { color: #141418; background: white; }
.toolbox-button-secondary { border-color: var(--tb-line); background: white; }
.toolbox-button-glass { border-color: rgba(20, 20, 24, .09); background: rgba(255, 255, 255, .58); backdrop-filter: blur(14px); }
.toolbox-button-large { min-height: 52px; padding: 13px 21px; border-radius: 15px; font-size: 14px; }
.toolbox-menu-button { position: relative; width: 44px; height: 44px; padding: 0; display: none; place-items: center; border: 0; border-radius: 12px; background: rgba(20,20,24,.055); }
.toolbox-menu-button span { position: absolute; width: 18px; border-top: 1.8px solid #161619; transition: transform .25s ease; }
.toolbox-menu-button span:first-child { transform: translateY(-4px); }
.toolbox-menu-button span:last-child { transform: translateY(4px); }
.toolbox-menu-button[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.toolbox-menu-button[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.toolbox-mobile-nav { position: absolute; top: 100%; left: 12px; right: 12px; padding: 10px; border: 1px solid var(--tb-line); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(20,20,30,.12); }
.toolbox-mobile-nav[hidden] { display: none; }
.toolbox-mobile-nav a, .toolbox-mobile-nav button { width: 100%; min-height: 48px; padding: 11px 13px; display: flex; align-items: center; color: var(--tb-ink); border: 0; border-radius: 11px; background: transparent; font-size: 14px; font-weight: 650; text-align: left; }
.toolbox-mobile-nav a:hover, .toolbox-mobile-nav button:hover { background: var(--tb-soft); }
.toolbox-mobile-nav form { margin: 5px 0 0; padding-top: 5px; border-top: 1px solid var(--tb-line); }

.toolbox-section { width: min(var(--tb-max), calc(100% - 48px)); margin: auto; }
.section-kicker { color: #6c5ce7; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.toolbox-footer {
  width: min(var(--tb-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 38px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 26px;
  color: var(--tb-muted);
  border-top: 1px solid var(--tb-line);
}
.toolbox-footer-brand { color: var(--tb-ink); font-size: 21px; font-weight: 780; letter-spacing: -.03em; }
.toolbox-footer p { max-width: 460px; margin: 7px 0 0; font-size: 13px; }
.toolbox-footer nav { display: flex; gap: 18px; font-size: 12px; }
.toolbox-footer nav a:hover { color: var(--tb-ink); }
.toolbox-footer small { grid-column: 1 / -1; font-size: 10px; }

.toolbox-announcement { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; background: transparent; }
.toolbox-announcement::backdrop { background: rgba(13,13,16,.46); backdrop-filter: blur(8px); }
.toolbox-announcement-card { padding: 30px; border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 30px 90px rgba(24,20,45,.20); backdrop-filter: blur(22px); }
.toolbox-announcement-card h2 { margin: 9px 0 15px; font-size: 28px; line-height: 1.25; letter-spacing: -.03em; }
.toolbox-announcement-content { max-height: 38vh; padding: 16px; overflow: auto; border-radius: 14px; background: var(--tb-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.toolbox-announcement-time, .announcement-error { color: var(--tb-muted); font-size: 11px; }
.announcement-error { color: #b63c50; }
.announcement-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 9px; }

@media (max-width: 820px) {
  .toolbox-navbar-inner { width: calc(100% - 28px); }
  .toolbox-desktop-nav, .toolbox-nav-register, .toolbox-login-link, .toolbox-nav-admin, .toolbox-user-chip b, .toolbox-desktop-logout { display: none; }
  .toolbox-navbar-actions { margin-left: auto; }
  .toolbox-user-chip { padding: 5px; border: 0; background: transparent; }
  .toolbox-menu-button { display: grid; }
  .toolbox-section, .toolbox-footer { width: calc(100% - 28px); }
  .toolbox-footer { grid-template-columns: 1fr; align-items: start; }
  .toolbox-footer nav { flex-wrap: wrap; }
  .toolbox-announcement-card { padding: 22px 18px; border-radius: 19px; }
  .toolbox-announcement-card h2 { font-size: 24px; }
  .announcement-actions { display: grid; grid-template-columns: 1fr 1fr; }
}
