  * { box-sizing: border-box; }
  body { font-family: system-ui, sans-serif; margin: 0; background: #f1f5f9; color: #0f172a; }
  header {
    display: flex;
    align-items: stretch;
    min-height: 0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    border-bottom: 3px solid #7aad00;
    background: #1e293b;
  }
  .header-brand {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #b5e020 0%, #9ecc00 45%, #8ab800 100%);
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  }
  .brand-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
  }
  .brand-company,
  .brand-product {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
    line-height: 1.12;
  }
  .brand-company { letter-spacing: 0.03em; }
  .brand-product { text-transform: uppercase; }
  .brand-domain {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.03em;
  }
  .header-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(125deg, #1e293b 0%, #334155 55%, #3d4f6a 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 18px 100%);
    margin-left: -1px;
    position: relative;
  }
  .header-panel-text { flex: 1; min-width: 0; }
  .header-title-row {
    display: flex;
    align-items: center;
    min-width: 0;
  }
  .header-aside {
    flex-shrink: 0;
    margin-left: auto;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    padding-top: 0.1rem;
    max-width: min(32ch, 42%);
    text-align: right;
  }
  .header-site-name {
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f8fafc;
    text-align: right;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .header-logo {
    flex-shrink: 0;
    height: calc((0.88rem * 1.12 * 2 + 0.68rem + 0.15rem) * 2.0);
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  }
  .site-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  .site-title em { font-style: normal; color: #c6e04a; }
  .site-meta {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.82);
    line-height: 1.3;
  }
  .site-meta a {
    color: #c6e04a;
    text-decoration: none;
    font-weight: 600;
  }
  .site-meta a:hover { text-decoration: underline; }
  .site-nav {
    margin: 0.4rem 0 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #f8fafc;
  }
  .site-nav a {
    color: #c6e04a;
    text-decoration: none;
    font-weight: 700;
  }
  .site-nav a:hover { text-decoration: underline; }
  .header-user {
    font-size: 0.78rem;
    color: rgba(248, 250, 252, 0.9);
    text-align: right;
    white-space: nowrap;
    line-height: 1.35;
  }
  .header-user strong {
    color: #c6e04a;
    font-weight: 700;
  }
  .header-user a.header-logout {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.35rem;
  }
  .header-user a.header-logout:hover {
    color: #f8fafc;
    text-decoration: underline;
  }
  .page-main { max-width: 1280px; margin: 0 auto; padding: 1rem 1.25rem 2rem; }
  @media (max-width: 600px) {
    header { flex-direction: column; min-height: 0; }
    .header-brand { justify-content: center; padding: 0.45rem 0.85rem; }
    .brand-lockup { align-items: center; text-align: center; }
    .header-panel {
      flex-direction: column;
      clip-path: none;
      padding: 0.55rem 0.85rem;
      text-align: center;
      gap: 0.5rem;
    }
    .header-aside {
      margin-left: 0;
      align-self: center;
      align-items: center;
      width: 100%;
      max-width: 100%;
      text-align: center;
    }
    .header-logo {
      height: calc((0.88rem * 1.12 * 2 + 0.68rem + 0.15rem) * 1.75);
    }
    .header-user {
      white-space: normal;
      text-align: center;
    }
    .header-title-row {
      align-items: center;
    }
    .header-site-name {
      text-align: center;
      font-size: 1.1rem;
    }
    .site-title { font-size: 1.1rem; }
    .site-nav {
      font-size: 1.1rem;
      line-height: 1.45;
    }
  }
