:root {
  --shell-brand-gap: 3px;
  --shell-brand-margin-bottom: 6px;
  --shell-brand-font-size: 13px;
  --shell-brand-font-weight: 800;
  --shell-brand-letter-spacing: 0.08em;
  --shell-brand-color: #155e75;
  --shell-brand-pin-size: 10px;
  --shell-brand-pin-margin-left: 2px;
  --shell-brand-pin-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);

  --shell-header-bg: linear-gradient(135deg, #111827 0%, #1f2937 55%, #155e75 100%);
  --shell-header-radius: 14px;
  --shell-header-color: #fff;
  --shell-header-padding: 11px 14px;
  --shell-header-margin-bottom: 10px;
  --shell-header-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);

  --shell-title-margin: 0 0 2px;
  --shell-title-size: 24px;
  --shell-title-line-height: 1.1;

  --shell-sub-margin: 0 0 8px;
  --shell-sub-size: 12px;
  --shell-sub-opacity: 0.92;

  --shell-auth-gap: 10px;
  --shell-auth-margin-bottom: 12px;
  --shell-auth-banner-bg: #ecfeff;
  --shell-auth-banner-border: #a5f3fc;
  --shell-auth-banner-color: #155e75;
  --shell-auth-card-bg: #ffffff;
  --shell-auth-card-border: #dbe4ee;
  --shell-auth-card-shadow: 0 8px 24px rgba(148, 163, 184, 0.1);

  --pc-top-nav-display: none;
  --pc-top-nav-space: 0px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--shell-brand-gap);
  width: 100%;
  margin-bottom: var(--shell-brand-margin-bottom);
  font-size: var(--shell-brand-font-size);
  font-weight: var(--shell-brand-font-weight);
  letter-spacing: var(--shell-brand-letter-spacing);
  color: var(--shell-brand-color);
}

.brand-mark::after {
  content: "";
  width: var(--shell-brand-pin-size);
  height: var(--shell-brand-pin-size);
  margin-left: var(--shell-brand-pin-margin-left);
  border-radius: 10px 10px 10px 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: var(--shell-brand-pin-shadow);
}

.page-header {
  background: var(--shell-header-bg);
  border-radius: var(--shell-header-radius);
  color: var(--shell-header-color);
  padding: var(--shell-header-padding);
  margin-bottom: var(--shell-header-margin-bottom);
  box-shadow: var(--shell-header-shadow);
}

.page-title {
  margin: var(--shell-title-margin);
  font-size: var(--shell-title-size);
  line-height: var(--shell-title-line-height);
}

.header-sub {
  margin: var(--shell-sub-margin);
  font-size: var(--shell-sub-size);
  opacity: var(--shell-sub-opacity);
}

.auth-panel {
  display: grid;
  gap: var(--shell-auth-gap);
  margin-bottom: var(--shell-auth-margin-bottom);
}

.auth-mode-banner {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--shell-auth-banner-border);
  background: var(--shell-auth-banner-bg);
  color: var(--shell-auth-banner-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-mode-banner.show {
  display: block;
}

.auth-session-box {
  display: grid;
  gap: 10px;
}

.auth-session-card {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--shell-auth-card-border);
  border-radius: 14px;
  background: var(--shell-auth-card-bg);
  box-shadow: var(--shell-auth-card-shadow);
}

.auth-session-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.auth-session-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
}

.auth-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.auth-user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e2e8f0;
  object-fit: cover;
  flex: 0 0 auto;
}

.auth-avatar.fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
}

.auth-user-text {
  min-width: 0;
}

.auth-user-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.auth-user-email {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-logout-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-logout-btn:hover {
  background: #f8fafc;
}

.auth-mode-link {
  color: #155e75;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.auth-mode-link:hover {
  text-decoration: underline;
}

.auth-google-slot {
  min-height: 40px;
}

.auth-google-hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.pc-top-nav {
  display: var(--pc-top-nav-display);
  margin: 8px 12px 12px;
}

.pc-top-nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.pc-top-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--shell-brand-color);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pc-top-nav__logo::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 10px 10px 10px 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: var(--shell-brand-pin-shadow);
}

.pc-top-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.pc-top-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #475569;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.pc-top-nav__link:hover {
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
}

.pc-top-nav__link.is-active {
  background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

@media (min-width: 1024px) {
  :root {
    --pc-top-nav-display: block;
    --pc-top-nav-space: 72px;
  }

  .brand-mark {
    display: none;
  }
}
