/* profile.css: GitHub-profile style homepage. Primer-like neutrals, hairline borders, one green accent. */
body.gh {
    --bg: #0d1117;
    --bg-subtle: #151b23;
    --bg-inset: #010409;
    --border: #3d444d;
    --border-muted: rgba(61, 68, 77, 0.7);
    --text: #f0f6fc;
    --text-2: #d1d7e0;
    --muted: #9198a1;
    --link: #4493f8;
    --accent: #238636;
    --accent-h: #29903b;
    --accent-fg: #3fb950;
    --focus: #1f6feb;
    --g0: #151b23; --g1: #033a16; --g2: #196c2e; --g3: #2ea043; --g4: #56d364;
    --shadow: 0 8px 24px rgba(1, 4, 9, 0.5);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
    margin: 0;
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.gh.light-theme {
    --bg: #ffffff;
    --bg-subtle: #f6f8fa;
    --bg-inset: #f6f8fa;
    --border: #d1d9e0;
    --border-muted: rgba(209, 217, 224, 0.7);
    --text: #1f2328;
    --text-2: #31373d;
    --muted: #59636e;
    --link: #0969da;
    --accent: #1f883d;
    --accent-h: #1c8139;
    --accent-fg: #1a7f37;
    --focus: #0969da;
    --g0: #eff2f5; --g1: #aceebb; --g2: #4ac26b; --g3: #2da44e; --g4: #116329;
    --shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
}
body.gh *, body.gh *::before, body.gh *::after { box-sizing: border-box; }
body.gh a { color: var(--link); text-decoration: none; }
body.gh a:hover { text-decoration: underline; }
body.gh :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
body.gh img { max-width: 100%; }
.gh-num { font-variant-numeric: tabular-nums; }
.gh-muted { color: var(--muted); }
.gh-ok { color: var(--accent-fg); }
.gh-err { color: #f85149; }
.light-theme .gh-err { color: #d1242f; }
.gh-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.gh-skip:focus { left: 8px; }

/* ---------- Shell ---------- */
.gh-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) 320px;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ---------- Left sidebar ---------- */
.gh-side {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px;
    border-right: 1px solid var(--border-muted);
}
.gh-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--text) !important; font-weight: 600; letter-spacing: -0.01em; }
.gh-brand:hover { text-decoration: none !important; }
.gh-brand__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.gh-brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-side__nav { display: flex; flex-direction: column; gap: 2px; }
.gh-side__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--text-2) !important;
    font-weight: 500;
    transition: background 120ms var(--ease), color 120ms var(--ease);
}
.gh-side__link i { font-size: 18px; color: var(--muted); }
.gh-side__link:hover { background: var(--bg-subtle); text-decoration: none !important; }
.gh-side__link:active { transform: translateY(1px); }
.gh-side__link.is-active { background: var(--bg-subtle); color: var(--text) !important; font-weight: 600; box-shadow: inset 2px 0 0 var(--accent-fg); }
.gh-side__link.is-active i { color: var(--text); }
.gh-side__link .gh-count { margin-left: auto; }
.gh-side__sep { height: 1px; margin: 8px 10px; background: var(--border-muted); }
.gh-side__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--muted); font-size: 12px; }

/* ---------- Buttons ---------- */
.gh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-subtle);
    color: var(--text) !important;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: background 120ms var(--ease), border-color 120ms var(--ease), transform 120ms var(--ease);
}
.gh-btn:hover { border-color: var(--muted); text-decoration: none !important; }
.gh-btn:active { transform: translateY(1px); }
.gh-btn:disabled { opacity: 0.5; pointer-events: none; }
.gh-btn--primary { background: var(--accent); border-color: rgba(240, 246, 252, 0.1); color: #fff !important; }
.gh-btn--primary:hover { background: var(--accent-h); border-color: rgba(240, 246, 252, 0.1); }
.gh-btn--sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }
.gh-icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    transition: background 120ms var(--ease), color 120ms var(--ease);
}
.gh-icon-btn:hover { background: var(--bg-subtle); color: var(--text); }
.gh-icon-btn:active { transform: scale(0.96); }

/* ---------- Main ---------- */
.gh-main { min-width: 0; border-right: 1px solid var(--border-muted); }
.gh-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 64px;
    padding: 0 24px;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-muted);
}
.gh-topbar__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.gh-topbar__who { display: flex; flex-direction: column; min-width: 0; margin-right: auto; line-height: 1.25; }
.gh-topbar__who strong { color: var(--text); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-topbar__who span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-topbar__theme { display: none; }
.gh-verified { color: var(--accent-fg); font-size: 0.9em; vertical-align: -1px; }

/* Contribution banner */
.gh-banner {
    position: relative;
    height: 168px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-muted);
    background: var(--bg);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.gh-graph {
    position: absolute;
    inset: 12px 12px auto auto;
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(7, 18px);
    grid-auto-columns: 9px;
    gap: 4px 5px;
    direction: rtl;          /* newest week sits on the right, older weeks clip on the left */
}
.gh-graph i { display: block; direction: ltr; border-radius: 3px; background: var(--g0); }
.gh-graph .l1 { background: var(--g1); }
.gh-graph .l2 { background: var(--g2); }
.gh-graph .l3 { background: var(--g3); }
.gh-graph .l4 { background: var(--g4); }

/* Profile header */
.gh-profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px 24px; margin-top: -84px; position: relative; }
.gh-avatar { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--border); background: var(--bg-subtle); }
.gh-name { margin: 14px 0 2px; color: var(--text); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.gh-role { margin: 0 0 12px; color: var(--muted); font-size: 17px; }
.gh-typed { color: var(--text); font-family: var(--mono); font-weight: 500; }
.gh-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent-fg); animation: gh-blink 1s steps(1) infinite; }
@keyframes gh-blink { 50% { opacity: 0; } }
.gh-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 4px 12px;
    border: 1px solid color-mix(in srgb, var(--accent-fg) 40%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-fg) 10%, transparent);
    color: var(--accent-fg) !important;
    font-size: 13px;
    font-weight: 600;
}
.gh-status:hover { text-decoration: none !important; background: color-mix(in srgb, var(--accent-fg) 16%, transparent); }
.gh-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-fg) 25%, transparent); }
.gh-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.gh-meta li { display: inline-flex; align-items: center; gap: 6px; }
.gh-meta strong { color: var(--text-2); font-weight: 600; }
.gh-meta i { font-size: 16px; }
.gh-meta__sep { color: var(--border); }
.gh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 640px; margin: 12px 0 18px; padding: 0; list-style: none; }
.gh-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
}
.gh-chips i { color: var(--muted); }
.gh-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Tabs */
.gh-tabs {
    position: sticky;
    top: 64px;
    z-index: 25;
    display: flex;
    gap: 4px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-muted);
}
.gh-tabs::-webkit-scrollbar { display: none; }
.gh-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    color: var(--text-2) !important;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: border-color 120ms var(--ease), color 120ms var(--ease);
}
.gh-tab i { color: var(--muted); font-size: 16px; }
.gh-tab:hover { text-decoration: none !important; border-bottom-color: var(--border); }
.gh-tab.is-active { color: var(--text) !important; font-weight: 600; border-bottom-color: #fd8c73; }
.gh-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 20%, transparent);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* Sections & boxes */
.gh-section { padding: 24px; scroll-margin-top: 120px; }
.gh-section + .gh-section { border-top: 1px solid var(--border-muted); }
.gh-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gh-section__head .gh-h2 { margin: 0; }
.gh-h2 { margin: 24px 0 12px; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.gh-section > .gh-h2:first-child { margin-top: 0; }
.gh-box { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; }
.gh-box__head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border-muted); background: var(--bg-subtle); border-radius: 8px 8px 0 0; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.gh-box__head strong { color: var(--text); }
.gh-readme__body { padding: 20px 24px 24px; }
.gh-readme__body h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-muted); color: var(--text); font-size: 22px; letter-spacing: -0.02em; line-height: 1.3; }
.gh-readme__body p { margin: 0 0 14px; }
.gh-readme__body strong { color: var(--text); }
.gh-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin: 18px 0 0; background: var(--border-muted); border: 1px solid var(--border-muted); border-radius: 6px; overflow: hidden; }
.gh-facts div { padding: 10px 12px; background: var(--bg); }
.gh-facts dt { color: var(--muted); font-size: 12px; }
.gh-facts dd { margin: 2px 0 0; color: var(--text); font-weight: 600; font-size: 14px; }
.gh-facts dd.is-ok { color: var(--accent-fg); }

.gh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gh-card { padding: 16px; }
.gh-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--text); font-size: 15px; font-weight: 600; }
.gh-card h3 i { color: var(--accent-fg); font-size: 18px; }
.gh-card p { margin: 0; color: var(--muted); font-size: 14px; }

.gh-skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; padding: 16px; }
.gh-skill { display: grid; grid-template-columns: minmax(0, 1fr) 90px 40px; align-items: center; gap: 10px; font-size: 14px; }
.gh-skill > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gh-skill .gh-num { color: var(--muted); text-align: right; font-size: 13px; }
.gh-bar { height: 8px; border-radius: 999px; background: var(--g0); overflow: hidden; }
.gh-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent-fg); transition: width 600ms var(--ease); }

/* Filters + repo cards */
.gh-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-filter {
    min-height: 30px;
    padding: 3px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms var(--ease), border-color 120ms var(--ease);
}
.gh-filter:hover { background: var(--bg-subtle); }
.gh-filter:active { transform: translateY(1px); }
.gh-filter.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.gh-repo { display: flex; flex-direction: column; gap: 8px; padding: 16px; transition: border-color 120ms var(--ease); }
.gh-repo:hover { border-color: var(--muted); }
.gh-repo.hidden { display: none; }
.gh-repo__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gh-repo__icon { color: var(--muted); font-size: 16px; }
.gh-repo__name { color: var(--link) !important; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
span.gh-repo__name { color: var(--text) !important; }
.gh-repo p { flex: 1; margin: 0; color: var(--muted); font-size: 13.5px; }
.gh-repo__foot { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 12.5px; }
.gh-repo__foot span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.gh-lang { width: 12px; height: 12px; border-radius: 50%; background: var(--c); border: 1px solid rgba(255, 255, 255, 0.15); }
.gh-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    padding: 0 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted) !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
}
.gh-label--ok { color: var(--accent-fg) !important; border-color: color-mix(in srgb, var(--accent-fg) 40%, transparent); }

/* Timeline */
.gh-timeline { position: relative; margin: 0; padding: 0 0 0 24px; list-style: none; }
.gh-timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-muted); }
.gh-timeline__item { position: relative; padding: 0 0 22px; }
.gh-timeline__item::before { content: ''; position: absolute; left: -23px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-fg); }
.gh-timeline__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.gh-timeline__head h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; }
.gh-timeline__head .gh-num { color: var(--muted); font-size: 13px; }
.gh-timeline__org { margin: 2px 0 6px !important; color: var(--text-2); font-size: 14px; font-weight: 500; }
.gh-timeline__item p { margin: 0; color: var(--muted); font-size: 14px; }

/* List boxes */
.gh-list { overflow: hidden; }
.gh-list__title { margin: 0; padding: 12px 16px 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.gh-list__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-2) !important;
    border-top: 1px solid var(--border-muted);
    transition: background 120ms var(--ease);
}
.gh-list .gh-list__row:first-child { border-top: 0; }
.gh-list__title + .gh-list__row { border-top: 0; }
a.gh-list__row:hover { background: var(--bg-subtle); text-decoration: none !important; }
.gh-list__row > i:first-child { flex: none; color: var(--muted); font-size: 18px; }
.gh-list__row > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gh-list__row strong { color: var(--text); font-size: 14px; font-weight: 600; }
.gh-list__row div span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.gh-post div span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
.gh-post__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; font-size: 12.5px; }
.gh-post__meta .gh-label { margin-left: 0; }
.gh-link { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }

/* Quotes */
.gh-quote { margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.gh-quote__stars { color: #e3b341; font-size: 14px; }
.gh-quote blockquote { margin: 0; color: var(--text-2); font-size: 14.5px; }
.gh-quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.gh-quote figcaption img, .gh-quote__initial { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gh-quote__initial { display: grid; place-items: center; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.gh-quote figcaption > span { display: flex; flex-direction: column; }
.gh-quote figcaption strong { color: var(--text); }

/* Contact */
.gh-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.gh-form { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.gh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gh-form label { display: flex; flex-direction: column; gap: 6px; color: var(--text); font-size: 14px; font-weight: 600; }
.gh-form input, .gh-form textarea, .gh-newsletter input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-inset);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
.gh-form textarea { resize: vertical; min-height: 120px; }
.gh-form input:focus, .gh-form textarea:focus, .gh-newsletter input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.gh-form .gh-btn { align-self: flex-start; }
.gh-hp { position: absolute; left: -9999px; }
.gh-flash { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid; border-radius: 6px; font-size: 14px; }
.gh-flash--ok { color: var(--accent-fg); border-color: color-mix(in srgb, var(--accent-fg) 40%, transparent); background: color-mix(in srgb, var(--accent-fg) 8%, transparent); }
.gh-flash--err { color: #f85149; border-color: rgba(248, 81, 73, 0.4); background: rgba(248, 81, 73, 0.08); }

/* Footer */
.gh-footer { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-top: 1px solid var(--border-muted); font-size: 13px; }
.gh-newsletter { display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.gh-newsletter label { color: var(--text); font-weight: 600; font-size: 14px; }
.gh-newsletter div { display: flex; gap: 8px; }
.gh-newsletter p { margin: 0; }
.gh-footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.gh-footer__links a { color: var(--muted) !important; }
.gh-footer__links a:hover { color: var(--link) !important; }
.gh-footer > p { margin: 0; }

/* ---------- Right column ---------- */
.gh-aside { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 16px; padding: 16px; max-height: 100vh; overflow-y: auto; }
.gh-callout { padding: 16px; border-color: color-mix(in srgb, var(--accent-fg) 35%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent-fg) 7%, var(--bg)), var(--bg)); }
.gh-callout__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--text); font-weight: 600; font-size: 14px; }
.gh-callout p:not(.gh-callout__title) { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.gh-mini { display: block; padding: 14px 16px; }
.gh-mini p { margin: 0; }
.gh-mini__label { color: var(--muted); font-size: 12px; }
.gh-mini__value { color: var(--text); font-weight: 600; font-size: 14px; margin-top: 2px !important; }
.gh-mini__clock { margin-top: 6px !important; color: var(--text); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.gh-mini__clock span { font-size: 12px; font-weight: 500; }
.gh-mini--link { color: inherit !important; transition: border-color 120ms var(--ease); }
.gh-mini--link:hover { border-color: var(--muted); text-decoration: none !important; }

/* ---------- Shared bits reused from script.js ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 100;
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text);
    font-size: 18px; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity 140ms var(--ease), transform 140ms var(--ease), background 120ms var(--ease);
}
.to-top.visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--bg-subtle); }
body.has-sc .to-top { bottom: 96px; }
#toastContainer { position: fixed; left: 50%; bottom: 24px; z-index: 10001; display: flex; flex-direction: column; gap: 8px; transform: translateX(-50%); }
.toast-pill { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.toast-pill.toast-show { opacity: 1; transform: none; }
.toast-pill i { color: var(--accent-fg); }
.mobile-app-dock { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
    .gh-shell { grid-template-columns: 76px minmax(0, 1fr); }
    .gh-aside { display: none; }
    .gh-main { border-right: 0; }
    .gh-side { align-items: center; padding: 16px 8px; }
    .gh-brand__name, .gh-side__link span, .gh-side__foot span, .gh-side__link .gh-count { display: none; }
    .gh-brand { padding: 6px; }
    .gh-side__link { justify-content: center; width: 44px; height: 40px; padding: 0; }
    .gh-side__sep { width: 32px; margin: 8px auto; }
    .gh-side__foot { justify-content: center; padding: 0; }
}
@media (max-width: 860px) {
    .gh-grid, .gh-skills, .gh-contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    body.gh { padding-bottom: 92px; }
    .gh-shell { grid-template-columns: minmax(0, 1fr); }
    .gh-side { display: none; }
    .gh-topbar { padding: 0 12px; height: 60px; }
    .gh-topbar__theme { display: inline-grid; }
    .gh-topbar .gh-btn--primary { padding: 6px 12px; }
    .gh-tabs { top: 60px; padding: 0 8px; }
    .gh-banner { height: 132px; }
    .gh-graph { grid-template-rows: repeat(7, 14px); grid-auto-columns: 8px; gap: 3px 4px; }
    .gh-profile { margin-top: -64px; padding: 0 16px 20px; }
    .gh-avatar { width: 108px; height: 108px; }
    .gh-name { font-size: 24px; }
    .gh-section { padding: 20px 16px; }
    .gh-readme__body { padding: 16px; }
    .gh-form__row { grid-template-columns: 1fr; }
    .gh-post__meta { display: none; }
    .gh-skill { grid-template-columns: minmax(0, 1fr) 70px 36px; }
    .to-top { right: 16px; bottom: 100px; }
    body.has-sc .to-top { bottom: 164px; }
    .mobile-app-dock {
        position: fixed; left: 50%; bottom: 12px; z-index: 9990; transform: translateX(-50%);
        display: flex; justify-content: space-around; align-items: center;
        width: calc(100% - 24px); max-width: 440px; padding: 6px 8px;
        background: color-mix(in srgb, var(--bg) 88%, transparent);
        backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
        border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
    }
    .mobile-dock__item {
        position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
        min-width: 56px; padding: 6px 4px; border-radius: 8px;
        color: var(--muted) !important; font-size: 11px; font-weight: 500;
    }
    .mobile-dock__item i { font-size: 20px; }
    .mobile-dock__item:hover { text-decoration: none !important; color: var(--text) !important; }
    .mobile-dock__item.active { color: var(--accent-fg) !important; background: color-mix(in srgb, var(--accent-fg) 10%, transparent); }
    .dock-badge { position: absolute; top: 2px; right: 10px; min-width: 16px; padding: 0 4px; border-radius: 999px; background: #da3633; color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .gh-caret { animation: none; }
    .gh-bar > span, .to-top, .toast-pill { transition: none; }
}
