.ap-section-note {
      font-size: .8rem;
      color: var(--ap-secondary);
      margin-bottom: 1.1rem;
    }

    /* ===== Avatars ===== */
    .ap-avatar {
      border-radius: 50%;
      object-fit: cover;
      display: inline-block;
      flex-shrink: 0;
    }

    .ap-avatar.square {
      border-radius: var(--ap-radius-sm);
    }

    .ap-avatar-xs {
      width: 24px;
      height: 24px;
    }

    .ap-avatar-sm {
      width: 32px;
      height: 32px;
    }

    .ap-avatar-md {
      width: 44px;
      height: 44px;
    }

    .ap-avatar-lg {
      width: 60px;
      height: 60px;
    }

    .ap-avatar-xl {
      width: 84px;
      height: 84px;
    }

    .ap-avatar-initials {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: var(--ap-primary-100);
      color: var(--ap-primary);
      font-weight: 700;
      flex-shrink: 0;
    }

    .ap-avatar-wrap {
      position: relative;
      display: inline-block;
    }

    .ap-avatar-status {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 11px;
      height: 11px;
      border-radius: 50%;
      border: 2px solid var(--ap-surface);
    }

    .ap-avatar-status.online {
      background: var(--ap-success);
    }

    .ap-avatar-status.away {
      background: var(--ap-warning);
    }

    .ap-avatar-status.offline {
      background: var(--ap-secondary);
    }

    .ap-avatar-group {
      display: flex;
      align-items: center;
    }

    .ap-avatar-group .ap-avatar,
    .ap-avatar-group .ap-avatar-initials {
      margin-left: -10px;
      border: 2px solid var(--ap-surface);
    }

    .ap-avatar-group .ap-avatar:first-child,
    .ap-avatar-group .ap-avatar-initials:first-child {
      margin-left: 0;
    }

    .ap-avatar-group-more {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--ap-bg);
      border: 2px solid var(--ap-surface);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .72rem;
      font-weight: 700;
      color: var(--ap-secondary);
      margin-left: -10px;
    }

    /* ===== Drag and Drop (kanban) ===== */
    .ap-dnd-board {
      display: flex;
      gap: 1rem;
      overflow-x: auto;
      padding-bottom: .25rem;
    }

    .ap-dnd-col {
      background: var(--ap-bg);
      border-radius: var(--ap-radius-sm);
      padding: .85rem;
      width: 240px;
      flex-shrink: 0;
      min-height: 80px;
    }

    .ap-dnd-col-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: .8rem;
      font-weight: 700;
      color: var(--ap-text-strong);
      margin-bottom: .7rem;
    }

    .ap-dnd-count {
      font-size: .68rem;
      font-weight: 700;
      background: var(--ap-border);
      color: var(--ap-text);
      padding: .05rem .45rem;
      border-radius: 20px;
    }

    .ap-dnd-list {
      min-height: 40px;
      display: flex;
      flex-direction: column;
      gap: .55rem;
    }

    .ap-dnd-card {
      background: var(--ap-surface);
      border: 1px solid var(--ap-border);
      border-radius: var(--ap-radius-sm);
      padding: .6rem .7rem;
      font-size: .82rem;
      color: var(--ap-text-strong);
      cursor: grab;
      box-shadow: var(--ap-shadow);
      user-select: none;
    }

    .ap-dnd-card.dragging {
      opacity: .4;
    }

    .ap-dnd-list.drag-over {
      background: var(--ap-primary-100);
      border-radius: var(--ap-radius-sm);
      outline: 2px dashed var(--ap-primary);
    }

    .ap-dnd-tag {
      font-size: .65rem;
      font-weight: 700;
      padding: .12rem .4rem;
      border-radius: 20px;
      display: inline-block;
      margin-bottom: .3rem;
    }

    /* File dropzone */
    .ap-dropzone {
      border: 2px dashed var(--ap-border);
      border-radius: var(--ap-radius);
      padding: 2rem;
      text-align: center;
      color: var(--ap-secondary);
      transition: background .15s ease, border-color .15s ease;
    }

    .ap-dropzone.drag-over {
      background: var(--ap-primary-100);
      border-color: var(--ap-primary);
      color: var(--ap-primary);
    }

    .ap-dropzone i {
      font-size: 1.8rem;
      margin-bottom: .5rem;
      display: block;
    }

    .ap-file-chip {
      display: inline-flex;
      align-items: center;
      gap: .4rem;
      background: var(--ap-bg);
      border: 1px solid var(--ap-border);
      border-radius: 20px;
      padding: .25rem .7rem;
      font-size: .78rem;
      margin: .2rem .3rem .2rem 0;
      color: var(--ap-text-strong);
    }

    .ap-file-chip i.bi-x-lg {
      cursor: pointer;
      color: var(--ap-secondary);
      font-size: .65rem;
    }

    /* ===== Star ratings ===== */
    .ap-star-rating {
      display: inline-flex;
      gap: .15rem;
      font-size: 1.3rem;
      cursor: pointer;
    }

    .ap-star-rating i {
      color: var(--ap-border);
      transition: color .1s ease;
    }

    .ap-star-rating.readonly {
      cursor: default;
    }

    .ap-star-rating .filled {
      color: var(--ap-warning);
    }

    /* ===== Timeline ===== */
    .ap-timeline2 {
      position: relative;
      padding-left: 2rem;
    }

    .ap-timeline2::before {
      content: '';
      position: absolute;
      left: 9px;
      top: 6px;
      bottom: 6px;
      width: 2px;
      background: var(--ap-border);
    }

    .ap-timeline2-item {
      position: relative;
      padding-bottom: 1.5rem;
    }

    .ap-timeline2-item:last-child {
      padding-bottom: 0;
    }

    .ap-timeline2-dot {
      position: absolute;
      left: -2rem;
      top: 0;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .7rem;
      color: #fff;
      border: 3px solid var(--ap-surface);
    }

    .ap-timeline2-time {
      font-size: .72rem;
      color: var(--ap-secondary);
      margin-bottom: .15rem;
    }

    .ap-timeline2-title {
      font-weight: 600;
      color: var(--ap-text-strong);
      font-size: .87rem;
    }

    .ap-timeline2-desc {
      font-size: .8rem;
      color: var(--ap-text);
      margin-top: .15rem;
    }

    /* Horizontal timeline */
    .ap-timeline-h {
      display: flex;
      align-items: flex-start;
      overflow-x: auto;
      padding: 1rem 0;
    }

    .ap-timeline-h-step {
      flex: 1;
      min-width: 150px;
      text-align: center;
      position: relative;
      padding: 0 .5rem;
    }

    .ap-timeline-h-step::before {
      content: '';
      position: absolute;
      top: 16px;
      left: -50%;
      width: 100%;
      height: 2px;
      background: var(--ap-border);
      z-index: 0;
    }

    .ap-timeline-h-step:first-child::before {
      display: none;
    }

    .ap-timeline-h-step.done::before {
      background: var(--ap-success);
    }

    .ap-timeline-h-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--ap-bg);
      border: 2px solid var(--ap-border);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto .6rem;
      position: relative;
      z-index: 1;
      color: var(--ap-secondary);
      font-size: .85rem;
    }

    .ap-timeline-h-step.done .ap-timeline-h-dot {
      background: var(--ap-success);
      border-color: var(--ap-success);
      color: #fff;
    }

    .ap-timeline-h-step.active .ap-timeline-h-dot {
      background: var(--ap-primary);
      border-color: var(--ap-primary);
      color: #fff;
    }

    .ap-timeline-h-label {
      font-size: .78rem;
      font-weight: 600;
      color: var(--ap-text-strong);
    }

    .ap-timeline-h-sub {
      font-size: .7rem;
      color: var(--ap-secondary);
    }

    /* ===== Tour ===== */
    .ap-tour-demo-box {
      border: 1px solid var(--ap-border);
      border-radius: var(--ap-radius-sm);
      padding: 1.25rem;
      background: var(--ap-bg);
      display: flex;
      flex-wrap: wrap;
      gap: .75rem;
      align-items: center;
    }

    .ap-tour-target {
      background: var(--ap-surface);
      border: 1px solid var(--ap-border);
      border-radius: var(--ap-radius-sm);
      padding: .6rem 1rem;
      font-size: .82rem;
      font-weight: 600;
      color: var(--ap-text-strong);
      position: relative;
      z-index: 1;
    }

    .ap-tour-target.ap-tour-active {
      outline: 3px solid var(--ap-primary);
      outline-offset: 2px;
      border-radius: var(--ap-radius-sm);
      position: relative;
      z-index: 1600;
      background: var(--ap-surface);
    }

    #tourOverlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, .55);
      z-index: 1590;
      display: none;
    }

    #tourOverlay.show {
      display: block;
    }

    #tourTooltip {
      position: fixed;
      z-index: 1601;
      background: var(--ap-surface);
      border: 1px solid var(--ap-border);
      border-radius: var(--ap-radius-sm);
      box-shadow: 0 20px 40px -12px rgba(15, 23, 42, .35);
      padding: 1rem 1.1rem;
      width: 260px;
      display: none;
    }

    #tourTooltip.show {
      display: block;
    }

    #tourTooltip .step-count {
      font-size: .68rem;
      font-weight: 700;
      color: var(--ap-primary);
      text-transform: uppercase;
      letter-spacing: .04em;
    }

    #tourTooltip .step-title {
      font-size: .9rem;
      font-weight: 700;
      color: var(--ap-text-strong);
      margin: .3rem 0 .35rem;
    }

    #tourTooltip .step-desc {
      font-size: .8rem;
      color: var(--ap-text);
      margin-bottom: .8rem;
    }

    /* ===== Treeview ===== */
    .ap-tree {
      font-size: .85rem;
    }

    .ap-tree ul {
      list-style: none;
      margin: 0;
      padding-left: 1.35rem;
    }

    .ap-tree>ul {
      padding-left: 0;
    }

    .ap-tree li {
      position: relative;
      padding: .15rem 0;
    }

    .ap-tree-node {
      display: flex;
      align-items: center;
      gap: .4rem;
      padding: .3rem .5rem;
      border-radius: var(--ap-radius-sm);
      cursor: pointer;
      color: var(--ap-text-strong);
    }

    .ap-tree-node:hover {
      background: var(--ap-bg);
    }

    .ap-tree-toggle {
      width: 16px;
      text-align: center;
      color: var(--ap-secondary);
      font-size: .75rem;
      flex-shrink: 0;
      transition: transform .15s ease;
    }

    .ap-tree-toggle.open {
      transform: rotate(90deg);
    }

    .ap-tree-toggle.leaf {
      visibility: hidden;
    }

    .ap-tree-icon {
      color: var(--ap-primary);
      flex-shrink: 0;
    }

    .ap-tree-icon.file {
      color: var(--ap-secondary);
    }

    .ap-tree-children {
      display: none;
    }

    .ap-tree-children.open {
      display: block;
    }

    .ap-tree-node input[type="checkbox"] {
      margin-right: .2rem;
    }
