.gh-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 4px 0 20px;
    overflow: visible;
}
.gh-header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 20;
}
.gh-notif-wrap { position: relative; z-index: 25; }
.gh-notif-wrap .pres-notif-bell { display: inline-flex; position: relative; }
.gh-notif-wrap .pres-notif-bell__trigger {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
}
.gh-notif-wrap .pres-notif-bell__icon-wrap { font-size: 1.2rem; }
/* Panel notifikasi: sheet mobile & dropdown desktop — lihat presensia-foundation.css */
.gh-header-gradient {
    position: absolute; inset: -20px 0 0 0; top: -20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
    border-radius: 0 0 30px 30px;
}
.gh-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
    padding-right: 4px;
}
.gh-avatar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.gh-avatar-btn:hover .gh-avatar {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.gh-avatar-btn:active { transform: scale(0.97); }
.gh-avatar-btn[aria-expanded="true"] .gh-avatar {
    border-color: #bfdbfe;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.32);
}
.gh-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gh-avatar-menu-hint {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: #1e3a5f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.22);
    border: 1.5px solid #1e3a5f;
    pointer-events: none;
}
.gh-avatar-menu-hint svg { width: 10px; height: 10px; stroke-width: 2.75; }
.gh-profile-text {
    position: relative;
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding-top: 1px;
}
.gh-greeting {
    margin: 0;
    font-size: 0.6875rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.gh-name {
    margin: 3px 0 0;
    padding: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.gh-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}
.gh-role {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gh-menu-user { position: relative; z-index: 6; flex-shrink: 0; }
.gh-user-dropdown {
    position: absolute; left: 0; top: calc(100% + 10px);
    background: #fff; border-radius: 16px; min-width: 220px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
    padding: 8px; display: none; z-index: 60; border: 1px solid #E5E7EB;
}
.gh-user-dropdown-head {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4px;
}
.gh-user-dropdown-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.gh-user-dropdown-role {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.gh-user-dropdown.open { display: block; }
.gh-user-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 12px; color: #111827;
    text-decoration: none; font-size: 14px; font-weight: 600;
    transition: all 0.2s ease;
}
.gh-user-item:hover { background: #F5F7FB; }
.gh-user-ico { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: #6b7280; }
.gh-user-ico svg { width: 18px; height: 18px; }
.gh-user-btn { width: 100%; border: none; background: transparent; cursor: pointer; text-align: left; font-family: inherit; }

.gh-card { background: #fff; border-radius: 18px; padding: 20px; margin-bottom: 16px; color: #1f2937; box-shadow: var(--ui-shadow-sm); border: 1px solid #e5e7eb; transition: all 0.2s ease; }
.gh-card:hover { box-shadow: var(--ui-shadow-md); }
.gh-section-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; margin-bottom: 10px; }
.gh-card-title-spaced { margin-bottom: 16px; }
.gh-clock-card { text-align: center; padding: 24px 20px; }
.gh-time { font-size: clamp(1.95rem, 8vw, 2.25rem); font-weight: 800; color: #0f172a; letter-spacing: -0.02em; }
.gh-date { font-size: 14px; color: #64748b; margin-top: 8px; font-weight: 500; }
.gh-pill { margin: 14px auto 0; width: fit-content; max-width: 100%; padding: 8px 16px; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 13px; font-weight: 700; border: 1px solid #dbeafe; }

.gh-menu { padding: 16px 14px; overflow: hidden; }
.gh-menu .gh-card-title { font-size: 14px; margin-bottom: 12px; }
.gh-menu-scroll {
    overflow-x: auto; overflow-y: hidden;
    display: flex; scroll-snap-type: x mandatory; gap: 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -14px; padding: 0 14px;
    touch-action: pan-x;
}
.gh-menu-scroll::-webkit-scrollbar { display: none; }
.gh-menu-page { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; min-height: 168px; }
.gh-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, auto));
    gap: 12px 8px;
    align-content: start;
    justify-items: center;
}
.gh-menu-item {
    text-decoration: none;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 0;
    width: 100%;
    max-width: 84px;
    margin: 0 auto;
    text-align: center;
}
.gh-menu-label {
    text-align: center;
    line-height: 1.25;
    min-height: 26px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    word-break: break-word;
    hyphens: auto;
}
.gh-menu-item:active { transform: scale(0.96); }
.gh-menu-item:hover .gh-menu-icon { transform: translateY(-1px); }
.gh-menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.gh-menu-icon svg { width: 18px; height: 18px; stroke-width: 2.25; }
.gh-icon-orange { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.gh-icon-blue { background: linear-gradient(135deg, #3B82F6 0%, #60a5fa 100%); }
.gh-icon-green { background: linear-gradient(135deg, #10B981 0%, #34d399 100%); }
.gh-icon-pink { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }
.gh-icon-indigo { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.gh-icon-purple { background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%); }
.gh-icon-lime { background: linear-gradient(135deg, #84cc16 0%, #a3e635 100%); }
.gh-icon-amber { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.gh-menu-dots { margin-top: 10px; display: flex; justify-content: center; gap: 6px; }
.gh-dot { width: 5px; height: 5px; border-radius: 999px; background: #E5E7EB; transition: all 0.2s ease; border: none; padding: 0; cursor: pointer; }
.gh-dot.active { width: 18px; background: #3B82F6; }

.gh-card-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.gh-attendance { padding: 20px; }
.gh-status { display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.gh-status-warn { background: rgba(245,158,11,0.15); color: #B45309; }
.gh-status-ok { background: rgba(16,185,129,0.15); color: #047857; }
.gh-status-info { background: rgba(59,130,246,0.12); color: #1d4ed8; }
.gh-status-text { word-break: break-word; }
.gh-status-text .status-on-time { color: #10B981; font-weight: 600; }
.gh-status-text .status-late { color: #F59E0B; font-weight: 600; }
.gh-status-text .status-absent,
.gh-status-text .status-early-leave { color: #EF4444; font-weight: 600; }
.gh-muted { font-size: 13px; color: #64748b; margin-bottom: 12px; line-height: 1.5; }
.gh-attendance-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; }
.gh-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #9ca3af; font-weight: 600; }
.gh-value { font-size: 16px; font-weight: 800; margin-top: 4px; color: #0f172a; word-break: break-word; }
.gh-note { font-size: 13px; color: #dc2626; width: 100%; margin-top: 10px; font-weight: 600; }

.gh-timeline { padding: 20px; }
.gh-feed-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.gh-feed-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
}
.gh-feed-tab--active { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.gh-feed-title-only { font-size: 0.9375rem; font-weight: 800; color: #0f172a; }
.gh-feed-mode-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 0.75rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    line-height: 1.5;
}
.gh-feed-card[data-feed-category] { display: none; }
.gh-feed[data-feed-view="announcements"] .gh-feed-card[data-feed-category="announcements"],
.gh-feed[data-feed-view="activity"] .gh-feed-card[data-feed-category="activity"] { display: block; }
.gh-feed { display: flex; flex-direction: column; gap: 16px; }
.gh-feed-card { background: #f8fafc; border-radius: 14px; padding: 14px; border: 1px solid #eef2f7; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.gh-feed-card:hover { box-shadow: 0 14px 28px -22px rgba(15, 23, 42, 0.22); border-color: #dbeafe; }
.gh-feed-card-eom { background: #fffbeb; border: 1px solid #fcd34d; }
.gh-feed-card:active { opacity: 0.98; }
.gh-feed-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gh-feed-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #3B82F6 0%, #8b5cf6 100%); display: flex; align-items: center; justify-content: center; }
.gh-feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gh-feed-avatar-initials { font-size: 14px; font-weight: 700; color: #fff; }
.gh-feed-meta { flex: 1; min-width: 0; }
.gh-feed-name { font-size: 14px; font-weight: 700; color: #111827; }
.gh-feed-role { font-size: 12px; color: #6b7280; margin-top: 2px; }
.gh-feed-time { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.gh-feed-body { margin-bottom: 12px; }
.gh-feed-icon { font-size: 18px; margin-bottom: 4px; }
.gh-feed-title { font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.gh-feed-content { font-size: 14px; color: #475569; line-height: 1.4; }
.gh-feed-subtitle { font-size: 13px; color: #64748b; margin-top: 6px; }
.gh-feed-detail { font-size: 12px; color: #64748b; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.gh-feed-actions { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.gh-feed-btn { background: none; border: none; font-size: 13px; color: #64748b; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-family: inherit; font-weight: 700; transition: color 0.2s; }
.gh-feed-btn:active { opacity: 0.8; }
.gh-feed-btn.active { color: #3B82F6; }
.gh-feed-btn.gh-feed-celebrate.active { color: #f59e0b; }
.gh-feed-comments { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f7; display: flex; flex-direction: column; gap: 10px; }
.gh-feed-comment-item { font-size: 13px; line-height: 1.4; }
.gh-feed-comment-author { font-weight: 700; color: #1e293b; margin-right: 6px; }
.gh-feed-comment-body { color: #475569; }
.gh-feed-comment-time { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.gh-feed-empty { text-align: center; padding: 32px 20px; color: #94a3b8; }
.gh-feed-empty-icon { margin-bottom: 12px; opacity: 0.6; }
.gh-feed-empty-icon svg { width: 34px; height: 34px; stroke-width: 1.8; }
.gh-feed-empty-text { font-size: 15px; font-weight: 600; color: #64748b; }
.gh-feed-empty-hint { font-size: 13px; margin-top: 6px; }
.gh-comment-modal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: flex-end; justify-content: center; padding: 0; }
.gh-comment-modal.open { display: flex; }
.gh-comment-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.gh-comment-modal-content { position: relative; background: #fff; width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); animation: gh-slideUp 0.25s ease; }
@keyframes gh-slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.gh-comment-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eef2f7; font-weight: 700; font-size: 16px; }
.gh-comment-modal-close { width: 36px; height: 36px; border: none; background: #f1f5f9; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: #64748b; padding: 0; display: flex; align-items: center; justify-content: center; }
.gh-comment-modal-close:hover { background: #e2e8f0; }
.gh-comment-modal-body { padding: 16px 20px 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0)); }
.gh-comment-modal-body textarea { width: 100%; padding: 12px 14px; border: 2px solid #e2e8f0; border-radius: 12px; font-size: 15px; font-family: inherit; resize: none; min-height: 80px; }
.gh-comment-modal-body textarea:focus { outline: none; border-color: #3B82F6; }
.gh-comment-modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.gh-comment-char-count { font-size: 12px; color: #94a3b8; }
.gh-comment-submit { padding: 10px 20px; background: #3B82F6; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gh-comment-submit:hover:not(:disabled) { background: #2563eb; }
.gh-comment-submit:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 640px) {
    .gh-header { gap: 10px; padding-bottom: 18px; min-height: 52px; }
    .gh-profile { gap: 10px; }
    .gh-user-dropdown { min-width: 180px; max-width: calc(100vw - 32px); }
    .gh-greeting { font-size: 0.625rem; letter-spacing: 0.05em; }
    .gh-name { font-size: 1rem; margin-top: 2px; }
    .gh-meta { margin-top: 4px; }
    .gh-role { font-size: 0.5625rem; padding: 2px 7px; }
    .gh-avatar-btn { width: 44px; height: 44px; }
    .gh-avatar { width: 44px; height: 44px; font-size: 0.875rem; }
    .gh-avatar-menu-hint { width: 16px; height: 16px; right: 0; bottom: 0; }
    .gh-avatar-menu-hint svg { width: 9px; height: 9px; }
    .gh-notif-wrap .pres-notif-bell__trigger { width: 44px; height: 44px; border-radius: 12px; }
    .gh-time { font-size: clamp(1.55rem, 7vw, 1.85rem); }
    .gh-date { font-size: 12px; }
    .gh-pill { font-size: 11px; padding: 6px 12px; }
    .gh-card-title { font-size: 14px; }
    .gh-menu-page { min-height: 158px; }
    .gh-menu-grid { gap: 10px 6px; }
    .gh-attendance-row { grid-template-columns: 1fr; gap: 12px; }
    .gh-feed-header { align-items: flex-start; }
    .gh-feed-time { display: block; margin-top: 2px; }
    .gh-feed-actions { flex-wrap: wrap; gap: 10px 16px; }
}
@media (max-width: 420px) {
    .gh-menu-icon { width: 36px; height: 36px; border-radius: 11px; }
    .gh-menu-icon svg { width: 16px; height: 16px; }
    .gh-menu-label { font-size: 9px; min-height: 24px; }
    .gh-menu-item { max-width: 76px; gap: 5px; }
    .gh-clock-card, .gh-menu, .gh-attendance, .gh-timeline { padding: 16px 14px; }
}
@media (max-width: 390px) {
    .gh-profile-text { max-width: calc(100vw - 44px - 44px - 48px); }
    .gh-name { font-size: 0.9375rem; }
    .gh-menu-grid { gap: 8px 4px; }
    .gh-menu-page { min-height: 148px; }
    .gh-pill { width: 100%; text-align: center; }
}
