:root {
      --primary: #7c3aed;
      --primary-hover: #6d28d9;
      --sidebar-width: 15%;
    }
    body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; }
    [data-topnav] {
      background: #fff;
      border-bottom: 1px solid var(--border);
      padding: 0.75rem 1rem;
      display: flex;
      align-items: center;
      gap: 1rem;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    [data-topnav] .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-weight: 700;
      font-size: 1.125rem;
      color: var(--foreground);
      text-decoration: none;
      flex-shrink: 0;
    }
    [data-topnav] .logo img {
      height: 28px;
    }
    .search-container {
      flex: 1;
      max-width: 400px;
      position: relative;
    }
    .search-container input {
      width: 100%;
      padding: 0.5rem 1rem 0.5rem 2.5rem;
      border: 1px solid var(--border);
      border-radius: 0.5rem;
      font-size: 0.875rem;
      background: var(--background-alt);
    }
    .search-container input:focus {
      outline: none;
      border-color: var(--primary);
      background: #fff;
    }
    .search-container::before {
      content: "🔍";
      position: absolute;
      left: 0.75rem;
      top: 50%;
      transform: translateY(-50%);
      font-size: 0.875rem;
    }
    .nav-links {
      display: flex;
      gap: 1rem;
      margin-left: auto;
    }
    .nav-links a {
      color: var(--foreground-light);
      font-size: 0.875rem;
      text-decoration: none;
      white-space: nowrap;
    }
    .nav-links a:hover {
      color: var(--foreground);
    }
    .nav-links a.active {
      color: var(--foreground);
      font-weight: 500;
    }
    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      padding: 0.25rem;
      color: var(--foreground);
    }
    .search-toggle-btn {
      display: none;
      background: none;
      border: none;
      font-size: 1rem;
      cursor: pointer;
      padding: 0.25rem;
    }
    .account-menu {
      position: relative;
    }
    .account-btn {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      border-radius: 50%;
    }
    .account-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: block;
    }
    .account-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 0.5rem;
      padding: 0.5rem;
      min-width: 180px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      z-index: 102;
    }
    .account-dropdown a {
      display: block;
      padding: 0.5rem 0.75rem;
      color: var(--foreground);
      text-decoration: none;
      font-size: 0.875rem;
      border-radius: 0.25rem;
    }
    .account-dropdown a:hover {
      background: var(--border);
    }
    .account-menu.open .account-dropdown {
      display: block;
    }
    .layout-container {
      display: flex;
      min-height: auto;
    }
    [data-sidebar] {
      width: var(--sidebar-width);
      background: #f9fafb;
      padding: 1.5rem 1rem;
      border-right: 1px solid var(--border);
      flex-shrink: 0;
      position: relative;
    }
    .close-sidebar-btn {
      display: none;
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: none;
      border: none;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--foreground);
      z-index: 201;
    }
    [data-sidebar] header {
      font-weight: 600;
      font-size: 0.6875rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--foreground-light);
      margin-bottom: 0.5rem;
      padding: 0 0.75rem;
    }
    [data-sidebar] ul {
      list-style: none;
      padding: 0;
      margin: 0 0 1.25rem 0;
    }
    [data-sidebar] li {
      margin: 0.125rem 0;
    }
    [data-sidebar] > ul > li > a {
      display: block;
      padding: 0.375rem 0.75rem;
      border-radius: 0.375rem;
      color: var(--foreground);
      text-decoration: none;
      font-size: 0.8125rem;
    }
    [data-sidebar] a:hover {
      background: var(--border);
    }
    [data-sidebar] a[aria-current="page"] {
      background: var(--primary);
      color: #fff;
    }
    [data-sidebar] details summary {
      padding: 0.375rem 0.75rem;
      cursor: pointer;
      font-size: 0.8125rem;
      border-radius: 0.375rem;
      color: var(--foreground);
    }
    [data-sidebar] details[open] summary {
      background: var(--border);
    }
    [data-sidebar] details ul {
      margin: 0.25rem 0 0.5rem 1rem;
    }
    [data-sidebar] details ul a {
      font-size: 0.75rem;
      padding: 0.25rem 0.75rem;
    }
    main {
      flex: 1;
      padding: 2rem;
      min-width: 0;
    }
    [data-right-sidebar] {
      width: var(--sidebar-width);
      padding: 1.5rem 1rem;
      border-left: 1px solid var(--border);
      flex-shrink: 0;
    }
    [data-right-sidebar] header {
      font-weight: 600;
      font-size: 0.6875rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--foreground-light);
      margin-bottom: 0.75rem;
    }
    [data-right-sidebar] ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    [data-right-sidebar] li {
      margin: 0.375rem 0;
    }
    [data-right-sidebar] a {
      font-size: 0.8125rem;
      color: var(--foreground-light);
      text-decoration: none;
    }
    [data-right-sidebar] a:hover {
      color: var(--foreground);
    }
    [data-right-sidebar] .active {
      color: var(--foreground);
      font-weight: 500;
    }
    .hero {
      text-align: center;
      padding: 2rem 1rem;
    }
    .hero h1 {
      font-size: 2rem;
      margin-bottom: 0.75rem;
    }
    .hero p {
      font-size: 1rem;
      color: var(--foreground-light);
      max-width: 560px;
      margin: 0 auto 1.5rem;
      line-height: 1.6;
    }
    .card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
      margin: 1.5rem 0;
    }
    .card-grid.cols-3 {
      grid-template-columns: repeat(3, 1fr);
    }
    .feature-card {
      border: 1px solid var(--border);
      border-radius: 0.5rem;
      padding: 1rem;
      text-decoration: none;
      color: inherit;
      display: block;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .feature-card:hover {
      border-color: var(--primary);
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    .feature-card img {
      width: 100%;
      height: 80px;
      object-fit: cover;
      border-radius: 0.25rem;
      margin-bottom: 0.75rem;
    }
    .feature-card h4 {
      margin: 0 0 0.25rem;
      font-size: 0.9375rem;
    }
    .feature-card p {
      margin: 0;
      font-size: 0.8125rem;
      color: var(--foreground-light);
      line-height: 1.5;
    }
    .link-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.5rem 2rem;
      margin: 1rem 0;
    }
    .link-grid a {
      font-size: 0.875rem;
      color: var(--primary);
    }
    h3 {
      font-size: 1.25rem;
      margin: 2rem 0 1rem;
    }
    h4 {
      font-size: 1rem;
      margin: 1.5rem 0 0.75rem;
      color: var(--foreground);
    }
    ul {
      margin: 0.75rem 0;
      padding-left: 1.25rem;
    }
    li {
      margin: 0.375rem 0;
      line-height: 1.6;
    }
    pre {
      background: var(--background-alt);
      padding: 1rem;
      border-radius: 0.5rem;
      overflow-x: auto;
      margin: 0.75rem 0;
    }
    code {
      font-size: 0.875rem;
    }
    p {
      line-height: 1.7;
      margin: 0.75rem 0;
    }
    a {
      color: var(--primary);
      text-decoration: none;
    }
    a.button {
      color: var(--primary-foreground);
    }
    a:hover {
      text-decoration: underline;
    }
    a.button:hover {
      text-decoration: none;
    }
    footer {
      background: #1a1a2e;
      color: #fff;
      padding: 2rem 1rem;
      margin-top: auto;
      width: 100%;
    }
    footer .footer-content {
      display: flex;
      justify-content: space-between;
      max-width: 1200px;
      margin: 0 auto;
      gap: 2rem;
      flex-wrap: wrap;
    }
    footer .footer-brand {
      max-width: 280px;
    }
    footer .footer-brand p {
      color: rgba(255,255,255,0.6);
      font-size: 0.875rem;
      margin-top: 0.75rem;
    }
    footer .footer-links {
      display: flex;
      gap: 2rem;
      flex-wrap: wrap;
    }
    footer .footer-links > div {
      min-width: 120px;
    }
    footer .footer-links h5 {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: rgba(255,255,255,0.4);
      margin-bottom: 1rem;
    }
    footer .footer-links ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    footer .footer-links li {
      margin: 0.5rem 0;
    }
    footer .footer-links a {
      color: rgba(255,255,255,0.8);
      font-size: 0.875rem;
    }
    footer .footer-links a:hover {
      color: #fff;
    }
    footer .footer-bottom {
      max-width: 1200px;
      margin: 1.5rem auto 0;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(255,255,255,0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
      font-size: 0.8125rem;
      color: rgba(255,255,255,0.5);
    }
    footer .footer-bottom a {
      color: rgba(255,255,255,0.6);
    }

    @media (max-width: 1024px) {
      [data-right-sidebar] {
        display: none;
      }
      main {
        max-width: 100%;
      }
    }

    @media (max-width: 768px) {
      [data-topnav] {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
      }
      .search-toggle-btn {
        display: block;
      }
      .search-container {
        display: none;
        order: 5;
        max-width: 100%;
        width: 100%;
        flex-basis: 100%;
      }
      .search-container.search-open {
        display: block;
      }
      .search-container input {
        width: 100%;
      }
      .right-menu-btn {
        margin-left: auto;
      }
      .account-menu {
        margin-left: 0.5rem;
      }
      .nav-links {
        display: none;
      }
      .mobile-menu-btn {
        display: block;
      }
      [data-right-sidebar].mobile-open {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        z-index: 200;
        background: #fff;
        box-shadow: -2px 0 8px rgba(0,0,0,0.1);
      }
      [data-right-sidebar].mobile-open::before {
        content: "✕";
        position: absolute;
        top: 1rem;
        left: 1rem;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--foreground);
        z-index: 201;
      }
      [data-right-sidebar].mobile-open > *:not(header:first-child) {
        padding-left: 1rem;
      }
      .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        gap: 0.75rem;
        z-index: 101;
      }
      [data-sidebar] {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 200;
        background: #fff;
        padding-top: 4rem;
      }
      [data-sidebar].mobile-open {
        display: block;
      }
      [data-sidebar].mobile-open::before {
        display: none;
      }
      [data-sidebar].mobile-open > .close-sidebar-btn {
        display: block;
      }
      .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 150;
      }
      .sidebar-overlay.active {
        display: block;
      }
      main {
        padding: 1.5rem 1rem;
        width: 100%;
      }
      .hero {
        padding: 1.5rem 0.5rem;
      }
      .hero h1 {
        font-size: 1.5rem;
      }
      .hero p {
        font-size: 0.9375rem;
      }
      .card-grid {
        grid-template-columns: 1fr;
      }
      .card-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
      }
      .feature-card img {
        height: 60px;
      }
      .link-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
      }
      footer .footer-content {
        flex-direction: column;
        gap: 1.5rem;
      }
      footer .footer-brand {
        max-width: 100%;
      }
      footer .footer-links {
        gap: 1.5rem;
      }
      menu.buttons {
        flex-direction: column;
        align-items: stretch;
      }
      menu.buttons li {
        list-style: none;
      }
      menu.buttons a {
        display: block;
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .card-grid.cols-3 {
        grid-template-columns: 1fr;
      }
      [data-topnav] {
        padding: 0.5rem 0.75rem;
      }
      .hero h1 {
        font-size: 1.375rem;
      }
      .feature-card img {
        height: 50px;
      }
      footer .footer-links {
        flex-direction: column;
        gap: 1.25rem;
      }
      footer .footer-bottom {
        flex-direction: column;
        text-align: center;
      }
    }