.top-bar {
  min-height: 44px;
  width: 100%;
  background: #073464;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 30;
}

.top-bar-inner {
  width: min(1100px, 96%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.top-bar-right,
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-right {
  position: relative;
}

.top-bar-menu-btn {
  width: 38px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(186, 210, 237, 0.45);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.top-bar-notify-btn {
  position: relative;
  width: 38px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(186, 210, 237, 0.45);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-bar-notify-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.top-bar-theme-btn {
  min-width: 78px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(186, 210, 237, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #ecf5ff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 10px;
  line-height: 1;
}

.top-bar-theme-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.top-bar-notify-icon {
  font-size: 15px;
  line-height: 1;
}

.top-bar-notify-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #f24d4d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.top-notify-panel {
  position: absolute;
  top: 38px;
  right: 0;
  width: min(360px, 92vw);
  max-height: 420px;
  overflow: hidden;
  border: 1px solid #d7e3f0;
  border-radius: 12px;
  background: #f9fcff;
  box-shadow: 0 12px 30px rgba(5, 27, 49, 0.25);
  z-index: 90;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.top-notify-head {
  padding: 10px;
  border-bottom: 1px solid #deebf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-notify-head strong {
  color: #173f67;
  font-size: 15px;
}

.top-notify-read-all {
  border: 1px solid #c8d8ea;
  background: #fff;
  border-radius: 8px;
  height: 30px;
  padding: 0 10px;
  font-family: inherit;
  color: #2c557d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.top-notify-read-all:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.top-notify-status {
  margin: 0;
  padding: 6px 10px 0;
  min-height: 20px;
  color: #607e9d;
  font-size: 12px;
}

.top-notify-list {
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.top-notify-item {
  border: 1px solid #d6e4f2;
  border-radius: 10px;
  background: #fff;
  padding: 9px;
  display: grid;
  gap: 5px;
  text-align: right;
  cursor: pointer;
  color: #1d4166;
}

.top-notify-item strong {
  font-size: 13px;
  color: #173d64;
}

.top-notify-item span {
  font-size: 12px;
  color: #355c83;
  line-height: 1.4;
}

.top-notify-item small {
  font-size: 11px;
  color: #6f87a1;
}

.top-notify-item.is-unread {
  border-color: #9ac2e8;
  background: #eef6ff;
}

.top-notify-empty {
  margin: 0;
  padding: 10px;
  border-top: 1px solid #deebf7;
  color: #6b839d;
  font-size: 13px;
}

.top-bar-menu-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.top-bar-menu-btn-line {
  width: 16px;
  height: 2px;
  border-radius: 10px;
  background: #ecf5ff;
}

.top-bar-home-btn {
  min-width: 100px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(186, 210, 237, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #ecf5ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-bar-home-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.top-bar-login-btn {
  min-width: 108px;
  height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #31d5c9;
  background: linear-gradient(135deg, #1fd6b9, #26cdd6);
  color: #08375a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-bar-login-btn:hover {
  filter: brightness(1.05);
}

.top-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
}

.top-drawer-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(6, 24, 41, 0.4);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.top-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 86vw);
  background: #f7fbff;
  border-left: 1px solid #dce5ef;
  box-shadow: -10px 0 32px rgba(8, 31, 51, 0.2);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  display: flex;
  flex-direction: column;
}

.top-drawer.is-open {
  pointer-events: auto;
}

.top-drawer.is-open .top-drawer-overlay {
  opacity: 1;
}

.top-drawer.is-open .top-drawer-panel {
  transform: translateX(0);
}

.top-drawer-head {
  min-height: 58px;
  padding: 12px;
  border-bottom: 1px solid #dce5ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.top-drawer-head h2 {
  margin: 0;
  color: #1a3d60;
  font-size: 21px;
}

.top-drawer-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #cfdae6;
  background: #fff;
  color: #3b5a78;
  font-size: 16px;
  cursor: pointer;
}

.top-drawer-nav {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.top-drawer-item {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #d5e0ec;
  background: #fff;
  color: #264868;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  cursor: pointer;
}

.top-drawer-item:hover {
  background: #edf6ff;
}

.top-drawer-item.is-active {
  border-color: #8eb9df;
  background: #deeeff;
  color: #123a61;
}

.top-drawer-item.logout {
  color: #9f2f2f;
  border-color: #f0c7c7;
  background: #fff8f8;
}

body.no-scroll {
  overflow: hidden;
}
