    /* ---------- APP SHELL ---------- */
    .app-shell {
      display: flex;
      min-height: 100vh;
      align-items: stretch;
      background: var(--canvas);
    }

    .app-main {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .app-content {
      max-width: 1620px;
      width: 100%;
      margin: 0 auto;
      padding: 22px 28px 60px;
    }

    /* ---------- SIDEBAR ---------- */
    .sidebar {
      width: 150px;
      flex: 0 0 auto;
      background: var(--panel);
      border-right: 1px solid var(--line);
      padding: 10px 8px;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-card);
    }

    .sidebar-brand {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 6px 10px 22px;
    }

    .sidebar-logo {
      width: 48px;
      height: 48px;
      border-radius: 9px;
      color: var(--brass);
      display: flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
    }

    .sidebar-brand-name {
      font-family: var(--font-display);
      font-size: 17px;
      font-weight: 700;
      color: var(--ink);
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 2px;
      flex: 1;
    }

    .sidebar-group {
      margin-bottom: 14px;
    }

    .sidebar-group-label {
      font-family: var(--font-body);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 0 12px 8px;
      padding-left: 5px;
    }

    .page-nav-btn {
      display: flex;
      align-items: center;
      gap: 11px;
      text-align: left;
      background: none;
      border: none;
      color: var(--ink-dim);
      font-size: 13.5px;
      font-weight: 500;
      padding: 5px;
      border-radius: var(--radius-s);
      width: 100%;
      height: 34px;
      margin-bottom: 10px;
    }

    .page-nav-btn .nav-icon {
      font-size: 16px;
      flex: 0 0 auto;
      width: 20px;
      text-align: center;
    }

    .page-nav-btn .nav-icon svg {
      width: 20px;
      height: 20px;
      vertical-align: -3px;
    }

    .page-nav-btn:hover {
      background: var(--panel-alt);
      color: var(--ink);
    }

    .page-nav-btn.active {
      background: var(--brass);
      color: #fff;
      font-weight: 600;
      box-shadow: 0 6px 14px rgba(124, 92, 252, 0.28);
    }

    .page {
      display: none;
    }

    .page.active {
      display: block;
    }

    @media (max-width:900px) {
      .app-shell {
        flex-direction: column;
      }

      .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: auto;
        padding: 14px;
        border-right: none;
        border-bottom: 1px solid var(--line);
      }

      .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
      }

      .sidebar-group {
        display: flex;
        flex-direction: column;
        width: auto;
        margin-bottom: 0;
      }

      .page-nav-btn {
        width: auto;
        padding: 8px 12px;
      }
    }

    /* ---------- TOPBAR ---------- */
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 28px;
      gap: 20px;
      flex-wrap: wrap;
      background: var(--panel);
      border-bottom: 1px solid var(--line);
      cursor: default;
      ;
    }

    .brand {
      display: flex;
      flex-direction: column;
      gap: 2px
    }

    .brand .eyebrow {
      font-family: var(--font-body);
      font-size: 11px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 600;
    }

    .brand h1 {
      font-size: 24px;
      font-weight: 600;
      color: var(--ink);
    }

    .brand h1 em {
      font-style: normal;
      color: var(--brass);
    }

    .clock-block {
      text-align: right;
    }

    .clock-time {
      font-family: var(--font-mono);
      font-size: 25px;
      font-weight: 700;
      letter-spacing: 0.01em;
      color: var(--ink);
      line-height: 1;
      font-variant-numeric: tabular-nums;
    }

    .clock-time span {
      color: var(--brass);
    }

    .clock-meta {
      font-family: var(--font-body);
      font-size: 12px;
      color: var(--muted);
      margin-top: 5px;
      text-transform: capitalize;
    }

    .clock-meta b {
      color: var(--ink-dim);
      font-weight: 600;
    }

