/* Bundled Assets */
/* Bundled by: me! :3 */

/* === main.css === */
:root{
    --bg: #05070a;
    --bg-2: #080b10;
    --bg-3: #0b0f14;
    --paper: #070b10;

    --ink: #e6edf3;
    --ink-2: #c5ccd4;
    --muted: #8a94a2;

    --accent: #7aa2ff;
    --accent-2: #b692ff;

    --good: #3ad38b;
    --warn: #ffd166;
    --bad: #ff6b6b;

    --edge-0: rgba(255, 255, 255, .016);
    --edge-1: rgba(255, 255, 255, .024);
    --edge-2: rgba(255, 255, 255, .04);

    --shadow:0 10px 30px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.4);

    --radius: 14px;
    --radius-lg: 18px;

    --gap: 3px;
    --left-col: 380px;
    --col-min: 280px;

    --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Inter, Roboto,
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;

    --btn-red: #ff5f57;
    --btn-yellow: #febc2e;
    --btn-green: #28c840;
}

/* Loading states / intro animation */
.js-loading .plugin {
    opacity: 0;
}

.js-loading .profile-section {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.js-loaded .plugin {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* stagger */
.js-loaded .plugin:nth-child(1) {
    animation-delay: 0s;
}

.js-loaded .plugin:nth-child(2) {
    animation-delay: 0.03s;
}

.js-loaded .plugin:nth-child(3) {
    animation-delay: 0.06s;
}

.js-loaded .plugin:nth-child(4) {
    animation-delay: 0.09s;
}

.js-loaded .plugin:nth-child(5) {
    animation-delay: 0.12s;
}

.js-loaded .plugin:nth-child(n+6) {
    animation-delay: 0.15s;
}

/* basic reset */
*{box-sizing:border-box}
html,body{height:100%;width:100%}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
    margin: 0;
    background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .015) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(var(--bg), var(--bg));
    color:var(--ink);
    overflow-x:hidden;
    font-family:var(--font);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    opacity: .9;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

*:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--accent) 45%, transparent);
    outline-offset: 2px;
}

/* status indicator */
.status-indicator {
    --s: 10px;
    display: inline-block;
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    margin-right: 6px;
    background: #666;
    border: 2px solid rgba(0, 0, 0, .25);
    vertical-align: middle;
}

.status-online {
    background: var(--good);
    box-shadow: 0 0 8px color-mix(in oklch, var(--good) 50%, transparent);
}

.status-loading {
    background: var(--warn)
}

.status-offline {
    background: var(--bad)
}

/* flatter buttons (no blur, still use original colors) */
.btn, .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--edge-1);
    background: var(--bg-3);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn:hover, .icon-btn:hover {
    background: color-mix(in oklch, var(--bg-3) 80%, var(--accent));
    border-color: var(--edge-2);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

.btn:active, .icon-btn:active {
    transform: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.icon-btn {
    width: 32px;
    height: 32px;
    padding: 0;
}

/* toast + ripple */
.toast-root {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: calc(100vw - 40px);
}

.toast {
    background: var(--paper);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transform: translateX(420px);
    transition: transform .28s ease;
    max-width: 320px;
    border: 1px solid var(--edge-1);
}
.toast.in{transform:translateX(0)}

.ripple-host{position:relative;overflow:hidden}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
    transform: scale(0);
    animation: ripple-animation .6s ease-out;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: .6
    }
    100% {
        transform: scale(1);
        opacity: 0
    }
}

/* layout: container + mosaic */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px clamp(12px, 3vw, 28px);
}

[class$="-section"]{
    background: linear-gradient(180deg,
    rgba(255, 255, 255, .012),
    color-mix(in oklab, var(--bg-3) 26%, transparent));
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--edge-0), var(--shadow);
}

/* inner padding for non-JS / fallback */
[class$="-section"] .plugin__inner {
    padding: 14px 14px 20px;
}

/* JS-enabled layout: profile on top, mosaic below, full width */
.js .container{
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap) * 2);
    align-items: stretch;
}

.js .profile-section {
    position: relative;
    width: 100%;
    align-self: flex-start;
    margin: 0 0 calc(var(--gap) * 2) 0;
}

.js .mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--col-min), 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 1px;
    row-gap: 0;
    column-gap: 12px;
    width: 100%;
    align-items: start;
    padding-bottom: 48px;
    overflow-x: clip;
}

.plugin {
    background: linear-gradient(180deg,
    rgba(255, 255, 255, .012),
    color-mix(in oklab, var(--bg-3) 26%, transparent));
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--edge-0), var(--shadow);
    position: relative;
    isolation: isolate;
    min-height: 120px;
    height: auto;
    align-self: start;
}

.plugin:hover {
    box-shadow: inset 0 0 0 1px var(--edge-1), var(--shadow);
}

/* profile card */
.profile-section {
    background: linear-gradient(180deg,
    color-mix(in oklab, var(--paper) 92%, transparent) 0%,
    var(--paper) 100%);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: inset 0 0 0 1px var(--edge-0), var(--shadow);
    margin-bottom: 20px;
    min-height: 200px;
}

.profile-content {
    gap: 14px;
    display: flex;
    align-items: center;
}

.profile-text {
    flex: 1;
    min-width: 0;
}

.profile-name {
    margin: .25rem 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.1;
}

.profile-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: .25rem 0 .5rem;
}

.profile-title, .profile-subtitle {
    flex: 0 1 auto;
    min-width: 0;
}

.profile-title {
    font-weight: 700;
    color: var(--ink-2)
}

.profile-subtitle {
    font-weight: 700;
    color: var(--accent)
}

.profile-bio {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-top: 8px;
}

.profile-image img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px var(--edge-0), var(--shadow);
}

@media (max-width: 520px) {
    .profile-titles {
        flex-direction: column;
        gap: 4px;
    }

    .profile-title, .profile-subtitle {
        width: 100%;
    }
}

.plugin__inner {
    padding: 14px 14px 20px;
    display: flow-root;
}

.plugin.is-collapsed .plugin__inner > *:not(.plugin-header) {
    display: none;
}
.plugin[data-w="2"]{grid-column:span 2}
.plugin[data-w="3"]{grid-column:span 3}

.plugin-header{
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    padding: 6px 16px 6px 54px; /* space on the left for dots */
    border-radius: 10px;
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, .05),
            rgba(0, 0, 0, .20)
    );
    box-shadow: inset 0 -1px 0 var(--edge-1);
    min-height: 30px;
}

.plugin-title {
    flex: 1;
    margin: 0;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: .02em;
    color: var(--ink-2);
}

.plugin-toolbar {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 6px;
}

.plugin-btn{
    width: 11px;
    height: 11px;
    border-radius: 50%;
    padding: 0;
    font-size: 0;
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}

.plugin-header:hover .plugin-btn,
.plugin-btn:hover,
.plugin-btn:focus-visible {
    font-size: 9px;
}
.plugin-btn[data-action="collapse"]{background:var(--btn-red)}
.plugin-btn[data-action="w-dec"]{background:var(--btn-yellow)}
.plugin-btn[data-action="w-inc"]{background:var(--btn-green)}
.plugin-btn[data-action="expand"]{background:var(--accent)}
.plugin-btn[data-action="view"]{background:var(--accent-2)}

.drag-handle{cursor:grab}

.dragging-cursor,
.plugin.dragging .drag-handle {
    cursor: grabbing
}

/* drag placeholder / overlay */
.drag-proxy {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 10000;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
}
.plugin.dragging{opacity:.35}

.plugin-placeholder {
    visibility: visible;
    opacity: .2;
    background: var(--edge-0);
    border: 2px dashed var(--edge-1);
}
.plugin-overlay{
    position: fixed;
    inset: 0;
    display: flex;
    place-items: center;
    background:rgba(4,6,9,.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition:opacity .15s ease;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.plugin-overlay.in {
    opacity: 1;
    pointer-events: auto;
}

.plugin--expanded {
    width: min(1100px, 92vw);
    max-height: 92vh;
    overflow: auto;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px var(--edge-1), var(--shadow);
    margin: auto;
}

/* status bar + tech filter */
.status-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 999999;
    width: max-content;
    max-width: calc(100% - 20px);
    margin: 0 auto;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--edge-0), var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0)
    }
    100% {
        transform: rotate(360deg)
    }
}

.tech-filter-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    border-radius: var(--radius);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--edge-1);
    z-index: 9999999;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.tech-filter-popup.show {
    opacity: 1;
    pointer-events: auto;
}

.tech-filter-popup .filter-icon {
    font-size: 16px;
    color: var(--accent);
}

.tech-filter-popup .filter-text {
    font-weight: 600;
    color: var(--ink-2);
}

.tech-filter-popup .filter-tech {
    color: var(--accent);
    font-weight: 700;
}

.tech-filter-popup .clear-filter-btn {
    padding: 4px 8px;
    font-size: 12px;
    background: var(--bad);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background .2s ease;
}

.tech-filter-popup .clear-filter-btn:hover {
    background: #dc2626;
}

@media (min-width: 1200px) {
    :root {
        --col-min: 300px
    }
}
@media (max-width:1200px){
    :root {
        --col-min: 260px
    }
    .plugin[data-w="3"]{grid-column:span 2}
}
@media (max-width:900px){
    :root {
        --col-min: 240px;
        --gap: 3px
    }
}
@media (max-width:780px){
    .js .container{
        gap: calc(var(--gap) * 1.2);
        padding:16px;
    }

    .js .profile-section {
        position:static;
        max-width:100%;
        margin-bottom:var(--gap);
    }

    :root {
        --col-min: 220px
    }

    .js .mosaic {
        grid-template-columns:repeat(auto-fill, minmax(var(--col-min), 1fr));
        grid-auto-rows:1px;
    }
    .plugin[data-w]{grid-column:span 1}
    .plugin__inner{padding:12px 12px 16px}
    .plugin-toolbar{display:none}

    .drag-handle {
        cursor: default;
        -webkit-user-select: auto;
        user-select: auto;
    }

    .plugin-header {
        cursor: default;
    }
}
@media (max-width:520px){
    .container{padding:12px}
    .plugin-header{padding:8px 10px;margin:0 0 8px}

    :root {
        --col-min: 160px;
        --gap: 3px
    }
}

/* light mode with original-style mapping */
@media (prefers-color-scheme: light){
    :root {
        --bg: #ffffff;
        --bg-2: #f6f8fa;
        --bg-3: #eef1f5;
        --paper: #ffffff;
        --ink: #24292f;
        --ink-2: #57606a;
        --muted: #6e7781;
        --accent: #0969da;
        --accent-2: #8250df;
        --good: #1a7f37;
        --warn: #bf8700;
        --bad: #cf222e;
        --edge-0: rgba(0, 0, 0, .08);
        --edge-1: rgba(0, 0, 0, .12);
        --edge-2: rgba(0, 0, 0, .16);
        --shadow: 0 8px 24px rgba(140, 149, 159, .15),
        0 1px 4px rgba(27, 31, 36, .1);
        --btn-red: #ff5f57;
        --btn-yellow: #febc2e;
        --btn-green: #28c840;
    }

    body {
        background: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, .02) 1px, transparent 1px) 0 0/22px 22px,
        linear-gradient(var(--bg), var(--bg));
    }

    a {
        color: var(--accent);
    }

    a:hover {
        color: color-mix(in oklch, var(--accent) 80%, black);
    }

    .btn, .icon-btn {
        background: rgba(0, 0, 0, .02);
        color: var(--ink);
        border: 1px solid var(--edge-1);
    }

    .btn:hover, .icon-btn:hover {
        background: rgba(0, 0, 0, .06);
        color: var(--ink);
    }

    .plugin {
        background: linear-gradient(180deg, rgba(0, 0, 0, .01), rgba(0, 0, 0, .02));
        box-shadow: inset 0 0 0 1px var(--edge-0), 0 2px 8px rgba(0, 0, 0, .06);
    }

    .plugin-header {
        background: linear-gradient(180deg, rgba(0, 0, 0, .02), transparent);
    }

    .profile-section {
        background: linear-gradient(180deg, var(--paper) 0%, var(--bg-2) 100%);
    }

    .toast {
        background: var(--paper);
        border: 1px solid var(--edge-1);
    }

    .status-bar {
        background: var(--paper);
        border: 1px solid var(--edge-1);
    }

    .plugin-overlay {
        background: rgba(255, 255, 255, .85);
    }
}

/* overlay scroll lock */
body.scroll-locked {
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: none;
    width: 100%;
}

/* music player – simpler, using your palette */
.custom-music-player{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: linear-gradient(135deg,
    color-mix(in oklch, var(--accent) 10%, var(--bg-3)) 0%,
    color-mix(in oklch, var(--accent-2) 8%, var(--bg-3)) 100%);
    border-radius: 10px;
    margin-top: 12px;
    border: 1px solid var(--edge-0);
}
.player-artwork-mini{
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.player-artwork-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    flex: 1;
    min-width: 0;
    margin-right: 8px;
}
.player-track-name{
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom:2px;
}
.player-artist-name{
    font-size: 12px;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-progress-container {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}
.player-progress-bar{
    width: 100%;
    height: 5px;
    background: var(--bg);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.player-progress-fill{
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius: 3px;
    width: 0%;
    transition: width .1s linear;
    position:relative;
}
.player-time{
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.player-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.player-btn{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-3);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    border: 1px solid var(--edge-0);
}
.player-btn:hover{
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}
.player-btn:active{transform:scale(.95)}

#player-play-pause{
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border: none;
}
#player-play-pause:hover{
    background: color-mix(in oklch, var(--accent) 85%, white);
}
.player-volume{
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg);
    border-radius: 2px;
    outline: none;
}
.player-volume::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition:transform .15s ease;
}
.player-volume::-webkit-slider-thumb:hover{transform:scale(1.2)}
.player-volume::-moz-range-thumb{
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition:transform .15s ease;
}
.player-volume::-moz-range-thumb:hover{transform:scale(1.2)}

.play-btn-large{
    width: 60px !important;
    height: 60px !important;
    background: var(--accent) !important;
}
.play-btn-large:hover{
    background: color-mix(in oklch, var(--accent) 85%, white) !important;
}

#lastfm-audio-element{display:none}

@media (max-width:900px){
    .custom-music-player {
        flex-wrap: wrap;
        gap: 10px;
    }

    .player-progress-container {
        order: 4;
        width: 100%;
        max-width: none;
    }
    .player-volume{width:60px}
}
@media (max-width:520px){
    .player-artwork-mini {
        width: 40px;
        height: 40px;
    }
    .player-track-name{font-size:13px}
    .player-artist-name{font-size:11px}

    .player-btn {
        width: 30px;
        height: 30px;
    }

    #player-play-pause {
        width: 34px;
        height: 34px;
    }
    .player-volume{display:none}
}

.plugin.profile-section {
    border-radius: var(--radius-lg);
    background: linear-gradient(
            180deg,
            color-mix(in oklab, var(--paper) 92%, transparent) 0%,
            var(--paper) 100%
    );
}

.profile-section .plugin__inner {
    padding: 0;
}

/* Potato mode toggle */
.status-separator {
    color: var(--muted);
    margin: 0 4px;
}

.potato-toggle {
    background: transparent;
    border: 1px solid var(--edge-1);
    border-radius: 6px;
    padding: 4px 8px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background 0.15s ease, transform 0.15s ease;
}

.potato-toggle:hover {
    background: var(--bg-3);
    transform: scale(1.1);
}

.potato-toggle.active {
    background: var(--accent);
    border-color: var(--accent);
}

/* === plugin-beatleader.css === */
.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:12px;
    margin-bottom:16px;
}

@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns:repeat(4, 1fr);
    }
}

.stat-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:6px;
    padding:16px 12px;
    border-radius:12px;
    background:rgba(255,255,255,.014);
    box-shadow:inset 0 0 0 1px var(--edge-0);
    transition:transform .15s ease, background .15s ease;
    min-height:80px;
}

.stat-item:hover{
    background:rgba(255,255,255,.024);
    transform:translateY(-1px);
}

.stat-label{
    font-weight:700;
    font-size:clamp(11px, 1vw, 13px);
    color:var(--ink-2);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
}

.stat-value{
    font-weight:800;
    font-family:var(--mono);
    font-variant-numeric:tabular-nums;
    font-size:clamp(16px, 1.5vw, 20px);
    color:var(--accent);
    white-space:nowrap;
    line-height:1;
}

@media (max-width:900px){
    .stats-grid{
        grid-template-columns:repeat(2, 1fr);
        gap:10px;
    }

    .stat-item{
        padding:12px 8px;
        min-height:70px;
    }
}

@media (max-width:520px){
    .stats-grid{
        grid-template-columns:repeat(2, 1fr);
        gap:8px;
    }

    .stat-item{
        padding:10px 6px;
        min-height:60px;
    }

    .stat-value{
        font-size:14px;
    }

    .stat-label{
        font-size:10px;
    }
}

.maps-list{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:16px;
}

.map-item{
    display:grid;
    grid-template-columns:60px 1fr;
    align-items:center;
    gap:12px;
    padding:12px;
    border-radius:12px;
    background:var(--paper);
    box-shadow:inset 0 0 0 1px var(--edge-0), var(--shadow);
    transition:transform .12s ease, box-shadow .2s ease;
    position:relative;
}

.map-item:hover{
    transform:translateY(-1px);
    box-shadow:inset 0 0 0 1px var(--edge-1), 0 4px 16px rgba(0,0,0,.2);
}

.map-item[style*="cursor: pointer"]:hover{
    background:linear-gradient(135deg, var(--paper) 0%, color-mix(in oklab, var(--paper) 95%, var(--accent)) 100%);
}

@media (min-width:520px){
    .map-item{
        grid-template-columns:64px 1fr;
        padding:14px;
    }
}

.map-cover{
    width:60px;
    height:60px;
    border-radius:10px;
    object-fit:cover;
    flex-shrink:0;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

@media (min-width:520px){
    .map-cover{
        width:64px;
        height:64px;
    }
}

.map-info{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.map-name{
    margin:0;
    font-weight:800;
    font-size:clamp(14px, 1.25vw, 16px);
    line-height:1.2;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--ink);
}

.map-stats{
    display:flex;
    flex-wrap:wrap;
    gap:8px 12px;
    color:var(--muted);
    font:12px/1 var(--mono);
    align-items:center;
}

.map-stats span{
    background:rgba(255,255,255,.04);
    padding:2px 6px;
    border-radius:4px;
    font-size:11px;
    font-weight:600;
    white-space:nowrap;
}

.replay-indicator{
    background:var(--accent);
    color:white;
    padding:2px 6px;
    border-radius:4px;
    font-size:11px;
    font-weight:600;
    animation:pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow{
    0%, 100%{
        opacity:1;
        box-shadow:0 0 8px color-mix(in oklch, var(--accent) 40%, transparent);
    }
    50%{
        opacity:0.8;
        box-shadow:0 0 16px color-mix(in oklch, var(--accent) 60%, transparent);
    }
}

.pepe-gif{
    vertical-align:middle;
    width:18px;
    height:18px;
    transform:translateY(-1px);
    margin-left:6px;
}

@media (max-width:520px){
    .map-stats{
        gap:4px 8px;
    }

    .map-stats span{
        font-size:10px;
        padding:1px 4px;
    }
}

.beatleader-section h4{
    margin:16px 0 8px 0;
    font-size:16px;
    font-weight:700;
    color:var(--ink-2);
    display:flex;
    align-items:center;
}

.view-profile-btn{
    margin-top:12px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 12px;
    background:var(--accent);
    color:white;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:all .15s ease;
}

.view-profile-btn:hover{
    background:color-mix(in oklch, var(--accent) 90%, black);
    transform:translateY(-1px);
}

.stat-item[data-tooltip]{
    cursor:help;
    position:relative;
}

.stat-item[data-tooltip]::before{
    content:attr(data-tooltip);
    position:absolute;
    bottom:calc(100% + 8px);
    left:50%;
    transform:translateX(-50%);
    background:var(--paper);
    color:var(--ink);
    padding:8px 12px;
    border-radius:8px;
    font-size:12px;
    font-weight:600;
    font-family:var(--mono);
    white-space:nowrap;
    box-shadow:var(--shadow), inset 0 0 0 1px var(--edge-1);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
    z-index:100;
}

.stat-item[data-tooltip]:hover::before{
    opacity:1;
    transform:translateX(-50%) translateY(-2px);
}

.stat-item[data-tooltip]::after{
    content:'';
    position:absolute;
    bottom:calc(100% + 2px);
    left:50%;
    transform:translateX(-50%);
    border:6px solid transparent;
    border-top-color:var(--paper);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
    z-index:100;
}

.stat-item[data-tooltip]:hover::after{
    opacity:1;
}

@media (max-width:780px){
    .stat-item[data-tooltip]::before{
        bottom:auto;
        top:calc(100% + 8px);
        transform:translateX(-50%);
    }

    .stat-item[data-tooltip]:hover::before{
        transform:translateX(-50%) translateY(2px);
    }

    .stat-item[data-tooltip]::after{
        bottom:auto;
        top:calc(100% + 2px);
        border-top-color:transparent;
        border-bottom-color:var(--paper);
    }
}

/* === plugin-code.css === */
.code-section .plugin-header{box-shadow:none;border:none}

.code-section .stats-overview{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:16px;
}

.code-section .stat-card{
    padding:16px 14px;
    border-radius:var(--radius);
    background:rgba(255,255,255,.014);
    box-shadow:inset 0 0 0 1px var(--edge-0);
    text-align:center;
    transition:all .15s ease;
    cursor:pointer;
    position:relative;
}

.code-section .stat-card:hover{
    background:rgba(255,255,255,.024);
    transform:translateY(-1px);
}

.code-section .stat-number{
    font-size:20px;
    font-weight:800;
    color:var(--accent);
    line-height:1;
    margin-bottom:4px;
}

.code-section .stat-label{
    font-size:12px;
    color:var(--muted);
    font-family:var(--mono);
    font-weight:600;
}

.code-section .time-summary{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    margin:0 0 16px;
}

.code-section .time-card{
    padding:14px 12px;
    border-radius:var(--radius);
    background:rgba(255,255,255,.014);
    box-shadow:inset 0 0 0 1px var(--edge-0);
    text-align:center;
    transition:all .15s ease;
    cursor:pointer;
}

.code-section .time-card:hover{
    background:rgba(255,255,255,.024);
    transform:translateY(-1px);
}

.code-section .time-value{
    font-size:18px;
    font-weight:800;
    color:var(--accent);
    display:block;
    margin-bottom:4px;
}

.code-section .time-label{
    font-size:11px;
    color:var(--muted);
    font-family:var(--mono);
    font-weight:600;
}

.section-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    background:rgba(255,255,255,.014);
    color:var(--ink);
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:all .15s ease;
    box-shadow:inset 0 0 0 1px var(--edge-0);
    border:none;
    text-align:left;
}

.section-toggle:hover{
    background:rgba(255,255,255,.024);
    transform:translateY(-1px);
}

.toggle-icon{
    font-size:12px;
    flex-shrink:0;
    transition:transform .15s ease;
}

.section-toggle[aria-expanded="true"] .toggle-icon{
    transform:rotate(90deg);
}

.section-count{
    margin-left:auto;
    font-size:11px;
    color:var(--muted);
    font-family:var(--mono);
    background:rgba(255,255,255,.04);
    padding:2px 6px;
    border-radius:4px;
}

.collapsible-content{
    overflow:hidden;
    transition:max-height .3s ease, opacity .3s ease, visibility .3s ease;
    background:rgba(255,255,255,.008);
    border-radius:var(--radius);
    margin:12px 0;
    max-height:none;
    opacity:1;
    visibility:visible;
    padding:14px;
    box-shadow:inset 0 0 0 1px var(--edge-0);
}

.collapsible-content.collapsed{
    max-height:0 !important;
    padding:0 !important;
    opacity:0;
    visibility:hidden;
    box-shadow:none;
    margin:0 !important;
}

.language-chart,
.wakatime-list,
.repo-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.language-item,
.waka-item {
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 12px;
    border-radius:10px;
    background:rgba(255,255,255,.012);
    box-shadow:inset 0 0 0 1px var(--edge-0);
    transition:all .15s ease;
}

.language-item:hover,
.waka-item:hover {
    background:rgba(255,255,255,.024);
    transform:translateX(2px);
}

.lang-info,
.waka-lang{
    min-width:120px;
    font-size:13px;
    font-weight:700;
    color:var(--ink);
}

.lang-percent{
    color:var(--muted);
    font-size:12px;
    font-family:var(--mono);
    margin-left:auto;
    font-weight:600;
}

.lang-bar,
.waka-bar{
    flex:1;
    height:6px;
    background:var(--bg-3);
    border-radius:999px;
    overflow:hidden;
    position:relative;
}

.lang-fill,
.waka-fill{
    height:100%;
    transition:width .3s ease;
    border-radius: 3px;
}

.editor-list{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
}

.editor-chip{
    padding:6px 10px;
    border-radius:12px;
    background:rgba(255,255,255,.014);
    box-shadow:inset 0 0 0 1px var(--edge-0);
    font-size:11px;
    font-family:var(--mono);
    color:var(--ink-2);
    font-weight:600;
    transition:all .15s ease;
    cursor:pointer;
}

.editor-chip:hover{
    background:var(--accent);
    color:white;
}

.repo-item{
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .012);
    box-shadow: inset 0 0 0 1px var(--edge-0);
    transition: all .15s ease;
    cursor:pointer;
    align-items: flex-start;
}

.repo-item:hover {
    background: rgba(255, 255, 255, .024);
    transform: translateX(2px);
}

.repo-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.repo-name{
    font-size: 14px;
    font-weight:700;
    color:var(--ink);
    word-break: break-word;
    line-height: 1.3;
}

.repo-lang-bar {
    display: flex;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(0, 0, 0, .15);
    gap: 0;
}

.repo-lang-bar > div {
    height: 100%;
    transition: transform .2s ease;
}

.repo-item:hover .repo-lang-bar > div {
    transform: scaleY(1.5);
}

.repo-tags{
    display:flex;
    gap:6px;
    align-items:center;
    flex-shrink:0;
}

.repo-lang,
.repo-stars{
    font-size:10px;
    padding: 3px 7px;
    border-radius:4px;
    font-weight:600;
    font-family:var(--mono);
    white-space: nowrap;
}

.repo-lang{
    background:rgba(255,255,255,.04);
    color:var(--ink-2);
}

.repo-stars{
    background:var(--accent);
    color:white;
}

.github-profile-link,
.wakatime-profile-link{
    margin-top:16px;
    text-align:center;
}

.view-github-btn,
.view-wakatime-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    background:var(--accent);
    color:white;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:all .15s ease;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.view-github-btn:hover,
.view-wakatime-btn:hover{
    background:color-mix(in oklch, var(--accent) 90%, black);
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.view-wakatime-btn{
    background:var(--accent-2);
}

.view-wakatime-btn:hover{
    background:color-mix(in oklch, var(--accent-2) 90%, black);
}

.no-data{
    text-align:center;
    padding:40px 20px;
    background:rgba(255,255,255,.008);
    border-radius:var(--radius);
    border:2px dashed var(--edge-1);
    color:var(--muted);
    margin:16px 0;
}

.no-data p{
    margin:0;
    font-style:italic;
}

@media (max-width:1100px){
    .code-section .stats-overview{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:780px){
    .code-section .time-summary{
        grid-template-columns:1fr;
    }

    .code-section .lang-info,
    .code-section .waka-lang{
        min-width:90px;
    }

    .stats-overview{
        grid-template-columns:repeat(2, 1fr);
        gap:10px;
    }

    .stat-card{
        padding:12px 10px;
    }

    .stat-number{
        font-size:18px;
    }
}

@media (max-width:520px){
    .stats-overview{
        grid-template-columns:1fr;
        gap:8px;
    }

    .section-toggle{
        padding:10px 12px;
        font-size:13px;
    }

    .collapsible-content{
        padding:12px;
    }

    .repo-item{
        flex-direction:column;
        gap:8px;
        align-items:flex-start;
    }

    .repo-tags{
        align-self:flex-end;
    }
}

/* === plugin-health.css === */
.health-section {
    --health-steps: #4ade80;
    --health-calories: #f97316;
    --health-workout: #8b5cf6;
    --health-sleep: #6366f1;
    --health-heart: #ef4444;
    --health-hydration: #06b6d4;
}

.health-section .plugin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.health-updated {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.health-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .014);
    box-shadow: inset 0 0 0 1px var(--edge-0);
    transition: all .2s ease;
    min-width: 0;
}

.health-card-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.health-card-icon svg {
    width: 18px;
    height: 18px;
}

.health-card--steps .health-card-icon {
    background: rgba(74, 222, 128, 0.15);
}

.health-card--steps .health-card-icon svg {
    fill: #4ade80;
}

.health-card--calories .health-card-icon {
    background: rgba(249, 115, 22, 0.15);
}

.health-card--calories .health-card-icon svg {
    fill: #f97316;
}

.health-card--workouts .health-card-icon {
    background: rgba(139, 92, 246, 0.15);
}

.health-card--workouts .health-card-icon svg {
    fill: #8b5cf6;
}

.health-card--sleep .health-card-icon {
    background: rgba(99, 102, 241, 0.15);
}

.health-card--sleep .health-card-icon svg {
    fill: #6366f1;
}

.health-card--heart .health-card-icon {
    background: rgba(239, 68, 68, 0.15);
}

.health-card--heart .health-card-icon svg {
    fill: #ef4444;
}

.health-card--hydration .health-card-icon {
    background: rgba(6, 182, 212, 0.15);
}

.health-card--hydration .health-card-icon svg {
    fill: #06b6d4;
}

.health-card-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.health-card-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.health-card-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.health-card-sub {
    font-size: 10px;
    color: var(--muted);
    font-family: var(--mono);
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.3;
}

.health-card--steps .health-card-value {
    color: var(--health-steps);
}

.health-card--calories .health-card-value {
    color: var(--health-calories);
}

.health-card--workouts .health-card-value {
    color: var(--health-workout);
}

.health-card--sleep .health-card-value {
    color: var(--health-sleep);
}

.health-card--heart .health-card-value {
    color: var(--health-heart);
}

.health-card--hydration .health-card-value {
    color: var(--health-hydration);
}

.health-last-workout {
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .1), rgba(99, 102, 241, .05));
    border: 1px solid rgba(139, 92, 246, .2);
    margin-top: 12px;
}

.last-workout-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.last-workout-icon {
    width: 18px;
    height: 18px;
    fill: #8b5cf6;
}

.last-workout-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--ink-2);
}

.last-workout-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.last-workout-type {
    font-weight: 600;
    color: var(--health-workout);
}

.last-workout-duration,
.last-workout-calories {
    color: var(--ink-2);
    font-family: var(--mono);
    font-size: 12px;
}

.last-workout-date {
    color: var(--muted);
    font-size: 11px;
    margin-left: auto;
}

.health-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid var(--edge-0);
}

.health-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--muted);
}

.source-icon {
    font-size: 14px;
}

.health-no-config {
    text-align: center;
    padding: 32px 16px;
}

.health-no-config .no-config-icon {
    width: 48px;
    height: 48px;
    color: var(--muted);
    margin: 0 auto 12px;
    opacity: .5;
}

.no-config-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    margin: 0 0 4px;
}

.no-config-hint {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

.health-card-value.updated {
    animation: health-pulse .5s ease;
}

@keyframes health-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: var(--accent);
    }
    100% {
        transform: scale(1);
    }
}

@media (prefers-color-scheme: light) {
    .health-card {
        background: rgba(0, 0, 0, .02);
        border: 1px solid var(--edge-1);
    }

    .health-card:hover {
        background: rgba(0, 0, 0, .04);
    }

    .health-last-workout {
        background: linear-gradient(135deg, rgba(139, 92, 246, .08), rgba(99, 102, 241, .04));
    }

    .health-card--steps .health-card-icon {
        background: rgba(74, 222, 128, 0.12);
    }

    .health-card--calories .health-card-icon {
        background: rgba(249, 115, 22, 0.12);
    }

    .health-card--workouts .health-card-icon {
        background: rgba(139, 92, 246, 0.12);
    }

    .health-card--sleep .health-card-icon {
        background: rgba(99, 102, 241, 0.12);
    }

    .health-card--heart .health-card-icon {
        background: rgba(239, 68, 68, 0.12);
    }

    .health-card--hydration .health-card-icon {
        background: rgba(6, 182, 212, 0.12);
    }
}

@media (max-width: 900px) {
    .health-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .health-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .health-card {
        padding: 10px;
        gap: 8px;
    }

    .health-card-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .health-card-icon svg {
        width: 16px;
        height: 16px;
    }

    .health-card-value {
        font-size: 16px;
    }

    .health-card-label {
        font-size: 10px;
    }

    .health-card-sub {
        font-size: 9px;
    }

    .last-workout-info {
        flex-direction: column;
        gap: 4px;
    }

    .last-workout-date {
        margin-left: 0;
    }
}

@media (max-width: 400px) {
    .health-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.health-heartbeat {
    --heartbeat-duration: 857ms;
    display: block;
}

.health-heartbeat.beating {
    animation: heartbeat-pulse var(--heartbeat-duration) ease-out;
}

@keyframes heartbeat-pulse {
    0% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.3);
        fill: #ff4444;
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.2);
        fill: #ff6666;
    }
    60% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.health-card-value.updated {
    animation: health-value-update 0.5s ease;
}

@keyframes health-value-update {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* === plugin-info.css === */
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}
.info-item{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.014);box-shadow:inset 0 0 0 1px var(--edge-0);min-height:42px}
.info-label{color:var(--muted);font-size:12px;font-family:var(--mono);min-width:70px;text-align:left}
.info-value{font-weight:600;text-align:right;flex:1;word-break:break-word}
.source-links{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-top:8px}

.aka-section{margin-bottom:20px}
.aka-title{margin:0 0 12px 0;font-size:14px;font-weight:700;color:var(--ink-2);padding-bottom:6px;border-bottom:1px solid var(--edge-0)}
.aka-list{display:flex;flex-wrap:wrap;gap:8px}
.aka-tag{display:inline-block;padding:4px 10px;background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));border-radius:12px;font-size:12px;font-weight:600;color:var(--ink-2);cursor:pointer;transition:all .15s ease;border:1px solid var(--edge-0);font-family:var(--mono)}
.aka-tag:hover{background:linear-gradient(135deg, var(--accent) 20%, var(--accent-2) 80%);color:white;transform:translateY(-1px);box-shadow:0 2px 8px rgba(0,0,0,.15)}
.aka-tag:active{transform:translateY(0);box-shadow:0 1px 3px rgba(0,0,0,.1)}

@media (max-width:780px){.info-grid{grid-template-columns:1fr}}
@media (max-width:520px){
    .aka-list{gap:6px}
    .aka-tag{padding:3px 8px;font-size:11px}
}

/* === plugin-lastfm.css === */
.lastfm-section{position:relative}

.lastfm-stats{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:10px 14px;background:rgba(255,255,255,.02);border-radius:10px;
    margin-bottom:14px;box-shadow:inset 0 0 0 1px var(--edge-0)
}
.scrobbles-text{font-size:13px;color:var(--ink-2);font-weight:600}

.current-track{margin-bottom:16px}
.track-main{display:flex;gap:14px;align-items:flex-start}

.track-cover-large{
    width:140px;height:140px;border-radius:14px;overflow:hidden;flex-shrink:0;
    position:relative;box-shadow:0 4px 18px rgba(0,0,0,.4), inset 0 0 0 1px rgba(255,255,255,.08);
    transition:transform .2s ease,box-shadow .3s ease
}
.track-cover-large:hover{
    transform:scale(1.02);
    box-shadow:0 8px 28px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.12)
}
.track-cover-large img{width:100%;height:100%;object-fit:cover;display:block}

.track-overlay{
    position:absolute;inset:0;background:rgba(0,0,0,.6);
    display:flex;align-items:center;justify-content:center;
    opacity:0;transition:opacity .25s ease;backdrop-filter:blur(4px)
}
.track-cover-large:hover .track-overlay{opacity:1}

.play-btn{
    width:56px;height:56px;border-radius:50%;border:none;
    background:rgba(122,162,255,.95);color:#fff;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:transform .2s ease,background .2s ease,box-shadow .3s ease;
    box-shadow:0 4px 16px rgba(122,162,255,.4);padding-left:4px
}
.play-btn:hover{
    transform:scale(1.08);background:var(--accent);
    box-shadow:0 6px 24px rgba(122,162,255,.6)
}
.play-btn:active{transform:scale(.95)}

.track-info{flex:1;min-width:0}
.track-status{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.status-text{font-size:13px;color:var(--muted);font-weight:600}
.track-status.now-playing .status-text{color:var(--good)}

.track-title{
    font-size:clamp(16px,3.5vw,20px);font-weight:800;color:var(--ink);
    margin-bottom:4px;line-height:1.2;word-wrap:break-word
}
.track-artist{font-size:14px;color:var(--ink-2);margin-bottom:3px;font-weight:600}
.track-album{font-size:13px;color:var(--muted);margin-bottom:10px}

.track-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.track-actions .btn{padding:6px 12px;font-size:12px;display:inline-flex;align-items:center;gap:6px}

.recent-tracks{margin-top:18px}
.recent-tracks h4{
    font-size:15px;font-weight:700;margin:0 0 10px;color:var(--ink);
    display:flex;align-items:center;gap:8px
}
.recent-tracks-list{display:flex;flex-direction:column;gap:8px}

.recent-track-item{
    display:flex;align-items:center;gap:10px;padding:8px 10px;
    border-radius:10px;background:rgba(255,255,255,.02);
    transition:background .2s ease,transform .15s ease;cursor:pointer;
    box-shadow:inset 0 0 0 1px var(--edge-0)
}
.recent-track-item:hover{
    background:rgba(255,255,255,.05);transform:translateX(2px)
}

.recent-track-cover{
    width:44px;height:44px;border-radius:8px;overflow:hidden;flex-shrink:0;
    box-shadow:0 2px 8px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.08)
}
.recent-track-cover img{width:100%;height:100%;object-fit:cover}

.recent-track-info{flex:1;min-width:0;margin-right:8px}
.recent-track-name{
    font-size:13px;font-weight:700;color:var(--ink);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px
}
.recent-track-artist{
    font-size:12px;color:var(--ink-2);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.recent-track-time{
    font-size:11px;color:var(--muted);flex-shrink:0;
    font-variant-numeric:tabular-nums
}

.custom-music-player{
    display:flex;align-items:center;gap:12px;padding:12px;
    background:linear-gradient(135deg, rgba(122,162,255,.08) 0%, rgba(182,146,255,.06) 100%);
    border-radius:14px;margin-top:12px;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.06), 0 4px 16px rgba(0,0,0,.2);
    backdrop-filter:blur(8px)
}

.player-artwork-mini{
    width:48px;height:48px;border-radius:8px;overflow:hidden;flex-shrink:0;
    box-shadow:0 2px 8px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.1)
}
.player-artwork-mini img{width:100%;height:100%;object-fit:cover}

.player-info{flex:1;min-width:0;margin-right:8px}
.player-track-name{
    font-weight:700;font-size:14px;color:var(--ink);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px
}
.player-artist-name{
    font-size:12px;color:var(--ink-2);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}

.player-progress-container{flex:1;min-width:120px;max-width:200px}
.player-progress-bar{
    width:100%;height:6px;background:rgba(0,0,0,.25);border-radius:3px;
    position:relative;cursor:pointer;overflow:hidden;
    box-shadow:inset 0 1px 3px rgba(0,0,0,.3)
}
.player-progress-fill{
    height:100%;background:linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    border-radius:3px;width:0%;transition:width .1s linear;
    box-shadow:0 0 8px rgba(122,162,255,.4);position:relative
}
.player-progress-fill::after{
    content:'';position:absolute;right:0;top:0;bottom:0;width:8px;
    background:radial-gradient(circle, rgba(255,255,255,.6), transparent);
    border-radius:50%
}

.player-time{
    display:flex;justify-content:space-between;margin-top:4px;
    font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums
}

.player-controls{display:flex;gap:8px;align-items:center}
.player-btn{
    width:36px;height:36px;border-radius:50%;border:none;
    background:rgba(255,255,255,.08);color:var(--ink);cursor:pointer;
    display:flex;align-items:center;justify-content:center;
    transition:background .2s ease,transform .15s ease,box-shadow .2s ease;
    box-shadow:0 2px 6px rgba(0,0,0,.2)
}
.player-btn:hover{
    background:rgba(255,255,255,.14);transform:scale(1.05);
    box-shadow:0 4px 12px rgba(0,0,0,.3)
}
.player-btn:active{transform:scale(.95)}

#player-play-pause{
    width:42px;height:42px;background:var(--accent);
    box-shadow:0 4px 12px rgba(122,162,255,.3)
}
#player-play-pause:hover{
    background:color-mix(in oklab, var(--accent) 90%, white);
    box-shadow:0 6px 18px rgba(122,162,255,.4)
}

.player-volume{
    width:80px;height:4px;-webkit-appearance:none;appearance:none;
    background:rgba(0,0,0,.25);border-radius:2px;outline:none;
    box-shadow:inset 0 1px 2px rgba(0,0,0,.3)
}
.player-volume::-webkit-slider-thumb{
    -webkit-appearance:none;appearance:none;width:14px;height:14px;
    background:var(--accent);border-radius:50%;cursor:pointer;
    box-shadow:0 2px 4px rgba(0,0,0,.3);transition:transform .15s ease
}
.player-volume::-webkit-slider-thumb:hover{transform:scale(1.2)}
.player-volume::-moz-range-thumb{
    width:14px;height:14px;background:var(--accent);border-radius:50%;
    cursor:pointer;border:none;box-shadow:0 2px 4px rgba(0,0,0,.3);
    transition:transform .15s ease
}
.player-volume::-moz-range-thumb:hover{transform:scale(1.2)}

.play-btn-large{
    width:64px !important;height:64px !important;
    background:rgba(122,162,255,.95) !important;backdrop-filter:blur(8px)
}
.play-btn-large:hover{
    background:var(--accent) !important;
    box-shadow:0 8px 24px rgba(122,162,255,.5) !important
}

#lastfm-audio-element{display:none}

@media (max-width:900px){
    .track-main{flex-direction:column;align-items:center;text-align:center}
    .track-cover-large{width:180px;height:180px}
    .custom-music-player{flex-wrap:wrap;gap:10px}
    .player-progress-container{order:4;width:100%;max-width:none}
    .player-volume{width:60px}
}

@media (max-width:680px){
    .track-cover-large{width:140px;height:140px}
}

@media (max-width:520px){
    .track-main{gap:12px}
    .track-cover-large{width:120px;height:120px}
    .track-title{font-size:16px}
    .player-artwork-mini{width:40px;height:40px}
    .player-track-name{font-size:13px}
    .player-artist-name{font-size:11px}
    .player-btn{width:32px;height:32px}
    #player-play-pause{width:36px;height:36px}
    .player-volume{display:none}
}

/* === plugin-meme.css === */
.meme-section .plugin-header{box-shadow:none;border:none}
.meme-content{padding:6px}

/* Smooth size changes and prevent scroll anchoring nudge */
.meme-section{overflow-anchor: none;}
.meme-content{transition:min-height .25s ease}

.meme-image,.meme-gif{border-radius:14px;overflow:hidden;background:var(--paper);box-shadow:inset 0 0 0 1px var(--edge-0)}
.meme-image img,.meme-gif img{display:block;width:100%;height:auto;transition:opacity .2s ease, filter .2s ease}
.meme-caption{margin:.6rem 0 0;color:var(--ink-2);text-align:center}

/* keep toolbar tidy around narrow widths */
.meme-section .plugin-toolbar{gap:6px;flex-wrap:nowrap;overflow:hidden}

.meme-refresh-btn {
    transition: all 0.2s ease;
}

.meme-refresh-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.meme-refresh-btn svg {
    display: block;
}

.meme-refresh-btn .loading {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.meme-refresh-btn:not(:disabled):hover {
    transform: translateY(-1px) scale(1.05);
}

.meme-refresh-btn:not(:disabled):active {
    transform: translateY(0) scale(0.95);
}

/* === plugin-neofetch.css === */
.neofetch-section h3{margin:0}

.machine-buttons{
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0px 0 14px;
    flex-wrap: wrap
}
.machine-btn{
    padding:8px 14px;border:none;border-radius:12px;background:var(--paper);color:var(--ink);
    font-size:13px;font-weight:700;cursor:pointer;
    transition:transform .15s ease,background .2s ease,box-shadow .2s ease;
    text-decoration:none;display:inline-flex;align-items:center;gap:6px;
    box-shadow:inset 0 0 0 1px var(--edge-0)
}
.machine-btn:hover{background:var(--bg-3);transform:translateY(-1px)}
.machine-btn[data-active="true"],.machine-btn.active{
    background:var(--accent);color:#fff;box-shadow:0 2px 12px rgba(0,0,0,.25)
}

.neofetch-outputs{margin-top:4px}
.neofetch-output{display:none}
.neofetch-output:first-child{display:block}

.terminal{
    --neo-scale: 1;
    background: #0c0c0c;
    border-radius:12px;
    color: #cccccc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 4px 24px rgba(0, 0, 0, .6),
    0 1px 6px rgba(0, 0, 0, .4);
    overflow:hidden;
    width:100%;
    position:relative;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.terminal::before{
    content:'';
    position:absolute;
    top:0;left:0;right:0;
    height:1px;
    background:linear-gradient(90deg,
    transparent 0%,
    rgba(122,162,255,.2) 50%,
    transparent 100%);
    opacity:.6;
}

.terminal-header{
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #1a1a1a;
    backdrop-filter:blur(4px);
}

.terminal-header .light{
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow:0 0 4px currentColor, inset 0 1px 2px rgba(255,255,255,.3);
    position:relative;
}

.terminal-header .light::after{
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent);
}

.terminal-header .light.red {
    background: #ff5f56;
    color: #ff5f56
}

.terminal-header .light.yellow {
    background: #ffbd2e;
    color: #ffbd2e
}

.terminal-header .light.green {
    background: #27c93f;
    color: #27c93f
}

.terminal-body{
    position: relative;
    padding: 16px;
    overflow: auto;
    background: #0c0c0c;
}

.terminal-body::before{
    content:'';position:absolute;inset:0;
    background:
            radial-gradient(ellipse at top, rgba(122,162,255,.03), transparent 60%),
            radial-gradient(ellipse at bottom, rgba(182,146,255,.02), transparent 60%);
    pointer-events:none;
}

.neofetch-pre{
    margin: 0;
    white-space: pre;
    overflow: visible;
    word-wrap: normal;
    overflow-wrap: normal;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Monaco', var(--mono);
    font-size: 13px;
    line-height: 1.4;
    color: #cccccc;
    transform-origin: left top;
    transform: scale(var(--neo-scale));
    position: relative;
    z-index: 1;
    text-shadow: 0 0 1px rgba(204, 204, 204, .3);
}

.color-palette{
    margin-top: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px;
    background: #1a1a1a;
    border-radius:8px;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4);
}
.color-block{
    width: 28px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow:
            inset 0 1px 2px rgba(255,255,255,.1),
            0 1px 3px rgba(0, 0, 0, .4);
    flex-shrink:0;
    position:relative;
    overflow:hidden;
}
.color-block::after{
    content: '';
    position: absolute;
    inset: 0;
    background:linear-gradient(135deg, rgba(255,255,255,.2) 0%, transparent 50%);
}

@media (max-width:1400px){ .neofetch-pre{font-size:11px} }
@media (max-width:1200px){ .neofetch-pre{font-size:10.5px} }
@media (max-width:900px) { .neofetch-pre{font-size:10px} }
@media (max-width:680px) {
    .neofetch-pre{font-size:9.5px}
    .machine-btn{padding:6px 10px;font-size:12px}
    .color-block{width:24px;height:16px}
}
@media (max-width:420px){
    .neofetch-pre{font-size:9px;line-height:1.22}
    .color-block{width:20px;height:14px}
}

.plugin--expanded .neofetch-pre{transform:scale(1);font-size:13.5px}

/* === plugin-personal.css === */
.personal-section {
    background: linear-gradient(180deg, rgba(255,255,255,.012), color-mix(in oklab, var(--bg-3) 26%, transparent));
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px var(--edge-0), var(--shadow);
}

.personal-section .plugin__inner {
    padding: 14px 14px 20px;
}

.personal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.personal-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.personal-category {
    margin-bottom: 24px;
}

.personal-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--edge-1);
    text-transform: capitalize;
}

.personal-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.personal-item {
    background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid var(--edge-0);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.personal-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    border-color: var(--edge-1);
}

.personal-image {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--edge-0);
}

.personal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.personal-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.personal-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.personal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.personal-text {
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.personal-text p {
    margin: 0 0 8px 0;
}

.personal-text p:last-child {
    margin-bottom: 0;
}

.personal-text h1,
.personal-text h2,
.personal-text h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin: 12px 0 8px 0;
}

.personal-text h1:first-child,
.personal-text h2:first-child,
.personal-text h3:first-child {
    margin-top: 0;
}

.personal-text ul {
    margin: 8px 0;
    padding-left: 20px;
}

.personal-text li {
    margin: 4px 0;
}

.personal-text code {
    background: rgba(255,255,255,.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
}

.personal-text pre {
    background: var(--bg-2);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
    border: 1px solid var(--edge-0);
}

.personal-text pre code {
    background: none;
    padding: 0;
}

.personal-text a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.personal-text a:hover {
    border-bottom-color: var(--accent);
}

.personal-text strong {
    color: var(--ink);
    font-weight: 700;
}

.personal-text em {
    font-style: italic;
    color: var(--ink-2);
}

@media (max-width: 900px) {
    .personal-grid,
    .personal-items {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 12px;
    }

    .personal-image {
        height: 140px;
    }
}

@media (max-width: 520px) {
    .personal-grid,
    .personal-items {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .personal-item {
        padding: 12px;
    }

    .personal-image {
        height: 180px;
    }

    .personal-title {
        font-size: 14px;
    }

    .personal-text {
        font-size: 13px;
    }
}

/* === plugin-places.css === */
.places-section .plugin-header {
    box-shadow: none;
    border: none;
}

.places-map-container {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-2);
    box-shadow: inset 0 0 0 1px var(--edge-0);
}

.places-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-2);
    z-index: 10;
    transition: opacity .3s ease;
}

.map-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.map-loading span {
    font-size: 13px;
    color: var(--muted);
}

.map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1000;
}

.map-control-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    transition: all .15s ease;
}

.map-control-btn:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.map-control-btn.active {
    background: var(--accent);
    color: white;
}

.place-popup {
    min-width: 180px;
    max-width: 260px;
}

.place-popup-content {
    padding: 4px 0;
}

.place-popup-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.place-popup-location {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.place-popup-description {
    font-size: 13px;
    color: var(--ink-2);
    line-height: 1.4;
    margin-bottom: 8px;
}

.place-popup-date {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--mono);
}

.place-popup-category {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-left: 8px;
}

.plugin--expanded .places-map-container {
    height: 600px;
}

.plugin-overlay .places-map-container {
    height: calc(80vh - 100px);
    min-height: 500px;
}

.leaflet-popup-content-wrapper {
    background: var(--paper) !important;
    border-radius: 12px !important;
    box-shadow: var(--shadow) !important;
    border: 1px solid var(--edge-1) !important;
}

.leaflet-popup-content {
    margin: 12px 14px !important;
    color: var(--ink) !important;
}

.leaflet-popup-tip {
    background: var(--paper) !important;
    border: 1px solid var(--edge-1) !important;
    border-top: none !important;
    border-left: none !important;
}

.leaflet-container {
    font-family: var(--font) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: var(--paper) !important;
    color: var(--ink) !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-2) !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, .6) !important;
    color: rgba(255, 255, 255, .7) !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
    border-radius: 4px 0 0 0 !important;
}

.leaflet-control-attribution a {
    color: var(--accent) !important;
}

@media (max-width: 780px) {
    .places-map-container {
        height: 260px;
    }

    .map-control-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 520px) {
    .places-map-container {
        height: 220px;
    }
}

@media (prefers-color-scheme: light) {
    .places-map-container {
        background: #f0f0f0;
    }

    .map-control-btn {
        background: white;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    }

    .leaflet-popup-content-wrapper {
        background: white !important;
    }

    .leaflet-popup-tip {
        background: white !important;
    }

    .leaflet-control-attribution {
        background: rgba(255, 255, 255, .8) !important;
        color: rgba(0, 0, 0, .6) !important;
    }
}

/* === plugin-profile.css === */
.profile-titles {
    display: flex;
    flex-direction: column; /* title on one line, subtitle on next */
    gap: 4px;
    margin: .25rem 0 .5rem;
}

/* title line */
.profile-title {
    font-weight: 700;
}

.profile-title-web {
    color: var(--accent-2);
}

.profile-title-rest {
    color: var(--ink-2);
}

/* DevSecOps line – single word with colored segments */
.profile-subtitle {
    font-weight: 700;
    display: inline-block; /* no flex, so no gaps added */
}

.subtitle-dev {
    color: var(--accent);
}

.subtitle-sec {
    color: var(--good);
}

.subtitle-ops {
    color: var(--warn);
}


/* === plugin-projects.css === */
.projects-section{grid-column:1 / -1;margin-top:40px}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;margin-top:16px}
.project-card{border-radius:14px;background:var(--paper);box-shadow:inset 0 0 0 1px var(--edge-0), var(--shadow);transition:all .2s ease}
.project-content{padding:14px}
.project-title{margin:.2rem 0 0;font-size:1.1rem}
.project-description{margin:.3rem 0 .6rem;color:var(--ink-2)}
.project-links{display:flex;gap:8px;flex-wrap:wrap}
.project-link{display:inline-flex;align-items:center;gap:.4rem;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.014);box-shadow:inset 0 0 0 1px var(--edge-0)}
.project-tech{margin-top:.6rem;display:flex;gap:6px;flex-wrap:wrap}
.tech-tag{padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.014);font:600 11px/1 var(--mono);box-shadow:inset 0 0 0 1px var(--edge-0);cursor:pointer;transition:all .2s ease}
.tech-tag:hover{background:var(--accent);color:#fff}


/* === plugin-services.css === */
.services-section .plugin-header {
    border: none !important;
    box-shadow: none !important;
    align-items: center;
}

.services-header { display: flex; gap: 12px; }

.services-header__meta {
    display: flex; align-items: center; gap: 10px; margin-left: auto;
    font-size: 12px; color: var(--muted);
}

.services-updated {
    padding: 4px 8px; border-radius: 999px;
    background: rgba(255,255,255,.04); border: 1px solid var(--edge-0);
    font-weight: 700;
}
.services-section[data-stale="true"] .services-updated {
    color: var(--warn);
    box-shadow: 0 0 0 2px color-mix(in oklab, var(--warn) 20%, transparent) inset;
}

.services-legend { display: none; }
@media (min-width: 680px) {
    .services-legend { display: flex; align-items: center; gap: 8px; }
}
.legend-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 8px; border-radius: 999px; font-weight: 700;
    color: var(--ink-2); background: rgba(255,255,255,.03); border: 1px solid var(--edge-0);
}

.services-grid {
    --min: 240px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min), 1fr));
    gap: 12px; margin-bottom: 16px;
}
.services-section.is-compact .services-grid { --min: 220px; gap: 10px; }

/* Full-card link overlay */
.card-overlay {
    position: absolute; inset: 0; border-radius: inherit; z-index: 1; opacity: 0;
}

/* Card */
.service-item {
    position: relative;
    padding: 12px 14px;
    border-radius: 14px;
    background:
            linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.01)),
            radial-gradient(120% 100% at 0% 0%, rgba(122,162,255,.06), transparent 40%) border-box;
    box-shadow: inset 0 0 0 1px var(--edge-0);
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, background .2s ease;
    cursor: pointer; overflow: hidden; isolation: isolate;
}

.service-item::before {
    content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
    background: var(--muted); opacity: .35;
    transition: opacity .2s ease, background .2s ease, box-shadow .2s ease;
}
.service-item[data-status="online"]::before {
    background: var(--good); opacity: 1;
    box-shadow: 0 0 10px color-mix(in oklab, var(--good) 40%, transparent);
}
.service-item[data-status="offline"]::before {
    background: var(--bad); opacity: 1;
    box-shadow: 0 0 10px color-mix(in oklab, var(--bad) 40%, transparent);
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px var(--edge-1), 0 6px 22px rgba(0,0,0,.28);
    background:
            linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.016)),
            radial-gradient(120% 100% at 0% 0%, rgba(122,162,255,.08), transparent 42%) border-box;
}

/* Header */
.service-head {
    display: grid; grid-template-columns: 22px 1fr;
    gap: 10px; align-items: center; margin-bottom: 6px;
}
.service-icon { width: 20px; height: 20px; font-size: 16px; line-height: 1; text-align: center; filter: grayscale(.2); }
.service-item[data-status="online"] .service-icon { filter: none; }

.service-id { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.service-title, .service-title-link {
    color: var(--ink); font-weight: 800; font-size: 14px; text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s ease;
}
.service-title-link { cursor: default; }
.service-item:hover .service-title, .service-item:hover .service-title-link { color: var(--accent); }

/* Status chip — no heartbeat */
.service-statuschip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
    background: rgba(255,255,255,.03); border: 1px solid var(--edge-0); line-height: 1;
}
.service-statuschip .status-label { color: var(--ink-2); letter-spacing: .2px; }
.status-dot {
    --s: 10px; width: var(--s); height: var(--s); border-radius: 50%;
    background: #888; border: 2px solid rgba(0,0,0,.25);
}
.status-online { background: var(--good) !important; }
.status-offline { background: var(--bad) !important; }

/* Description */
.service-description {
    color: var(--ink-2); font-size: 12px; margin-bottom: 8px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Stats */
.service-stats {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-family: var(--mono);
}
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; color: var(--muted);
    padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.03); border: 1px solid var(--edge-0);
}
.chip-rt { color: var(--good); }
.chip-code[data-code^="2"] { color: var(--good); }
.chip-code[data-code^="3"] { color: var(--warn); }
.chip-code[data-code^="4"], .chip-code[data-code^="5"] { color: var(--bad); }
.chip-last { color: var(--ink-2); }

/* Keep skeleton shimmer (not the heartbeat) */
.chip-skeleton { position: relative; color: transparent !important; }
.chip-skeleton::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.12) 40%, rgba(255,255,255,.06) 80%);
    background-size: 200% 100%; animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Summary */
.services-summary {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; padding: 14px; border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
    box-shadow: inset 0 0 0 1px var(--edge-0);
}
.summary-item {
    display: grid; place-items: center; gap: 4px; padding: 10px; border-radius: 10px;
    background: rgba(255,255,255,.02); transition: background .2s ease, transform .12s ease;
}
.summary-item:hover { background: rgba(255,255,255,.04); transform: translateY(-1px); }
.summary-label { font-size: 10px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.summary-count { font-size: 20px; font-weight: 900; font-family: var(--mono); line-height: 1; }
.online-count { color: var(--good); text-shadow: 0 0 12px rgba(58,211,139,.25); }
.offline-count { color: var(--bad); text-shadow: 0 0 12px rgba(255,107,107,.25); }
.total-count { color: var(--accent); text-shadow: 0 0 12px rgba(122,162,255,.25); }

/* No services */
.no-services { text-align: center; padding: 32px 20px; color: var(--muted); }
.no-services p { margin: 6px 0; font-size: 13px; }

/* Responsive */
@media (max-width: 1200px) { .services-grid { --min: 220px; gap: 10px; } }
@media (max-width: 900px)  { .services-grid { --min: 200px; gap: 8px; } .services-summary { gap: 10px; padding: 12px; } .summary-count { font-size: 18px; } }
@media (max-width: 780px)  { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .service-item { padding: 10px 12px; } .service-description { -webkit-line-clamp: 1; } }
@media (max-width: 520px)  { .services-grid { grid-template-columns: 1fr; gap: 8px; } .services-summary { gap: 8px; padding: 10px; } .summary-item { padding: 6px; } .summary-count { font-size: 16px; } }

/* Screen-reader only helper */
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}



/* === plugin-social.css === */
.social-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 2px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    color: var(--ink-2);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .06));
    box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
    color: var(--accent);
}

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.85;
    transition: filter .2s ease, opacity .2s ease;
}

.social-link:hover img {
    opacity: 1;
}

/* Dark theme - keep icons as-is (they're designed for dark) */
@media (prefers-color-scheme: dark) {
    .social-link img {
        filter: none;
    }
}

@media (prefers-color-scheme: light) {
    .social-link {
        background: linear-gradient(135deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .02));
        border: 1px solid var(--edge-1);
        box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    }

    .social-link:hover {
        background: linear-gradient(135deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .04));
        box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
    }

    .social-link:hover img {
        opacity: 0.9;
    }
}

/* === plugin-steam.css === */
.steam-section{
    margin-top:16px;
}

.steam-section .plugin-header{
    border:none !important;
    box-shadow:none !important;
}

.current-game{
    background:var(--paper);
    border-radius:14px;
    padding:16px;
    margin:12px 0;
    box-shadow:inset 0 0 0 1px var(--edge-0), var(--shadow);
}

.current-game-header{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
}

.current-game-status{
    font-weight:700;
    font-size:13px;
    color:var(--good);
}

.current-game-cover{
    width:100%;
    border-radius:10px;
    overflow:hidden;
    margin-bottom:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.game-cover-image{
    width:100%;
    height:auto;
    display:block;
    object-fit:cover;
}

.current-game-info{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.current-game-name{
    font-weight:800;
    font-size:18px;
    color:var(--ink);
    line-height:1.2;
}

.current-game-actions{
    display:flex;
    gap:8px;
}

.player-status{
    background:var(--paper);
    border-radius:12px;
    padding:14px;
    margin:12px 0;
    box-shadow:inset 0 0 0 1px var(--edge-0);
}

.status-info{
    display:flex;
    align-items:center;
    gap:8px;
}

.games-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.game-item{
    display:flex;
    gap:14px;
    padding:14px;
    border-radius:12px;
    background:var(--paper);
    box-shadow:inset 0 0 0 1px var(--edge-0), var(--shadow);
    transition:all .15s ease;
    cursor:pointer;
    position:relative;
}

.game-item:hover{
    transform:translateY(-2px);
    box-shadow:inset 0 0 0 1px var(--edge-1), 0 8px 24px rgba(0,0,0,.3);
}

.game-icon{
    width:60px;
    height:60px;
    border-radius:10px;
    object-fit:cover;
    flex-shrink:0;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.game-info{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:6px;
    min-width:0;
}

.game-name{
    font-weight:800;
    font-size:16px;
    word-break:break-word;
    color:var(--ink);
    line-height:1.2;
}

.game-stats{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    color:var(--muted);
    font:12px/1 var(--mono);
    align-items:center;
}

.game-stats span{
    background:rgba(255,255,255,.04);
    padding:3px 7px;
    border-radius:5px;
    font-weight:600;
    white-space:nowrap;
}

.game-actions{
    display:flex;
    flex-direction:column;
    gap:8px;
    align-self:center;
    opacity:0;
    transition:opacity .15s ease;
}

.game-item:hover .game-actions{
    opacity:1;
}

.view-steam-btn{
    padding:6px 10px;
    background:var(--accent);
    color:white;
    border:none;
    border-radius:6px;
    font-size:11px;
    font-weight:600;
    cursor:pointer;
    transition:all .15s ease;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    white-space:nowrap;
}

.view-steam-btn:hover{
    background:color-mix(in oklch, var(--accent) 90%, black);
    transform:translateY(-1px);
}

.steam-profile-link{
    margin-top:16px;
    text-align:center;
}

.view-profile-btn{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:10px 16px;
    background:linear-gradient(135deg, #171a21, #1b2838);
    color:#66c0f4;
    border:1px solid #2a475e;
    border-radius:8px;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
    transition:all .15s ease;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}

.view-profile-btn:hover{
    background:linear-gradient(135deg, #1b2838, #2a475e);
    border-color:#66c0f4;
    transform:translateY(-1px);
    box-shadow:0 4px 12px rgba(0,0,0,.25);
}

.no-games{
    text-align:center;
    padding:40px 20px;
    color:var(--muted);
}

@media (max-width:780px){
    .current-game-name{
        font-size:16px;
    }

    .game-item{
        padding:12px;
        gap:12px;
    }

    .game-icon{
        width:50px;
        height:50px;
    }

    .game-actions{
        opacity:1;
        position:static;
        align-self:flex-start;
    }

    .game-name{
        font-size:15px;
    }
}

@media (max-width:520px){
    .game-item{
        flex-direction:column;
        text-align:center;
        gap:10px;
    }

    .game-icon{
        align-self:center;
        width:48px;
        height:48px;
    }

    .game-actions{
        align-self:center;
        flex-direction:row;
    }

    .game-stats{
        justify-content:center;
        gap:8px;
    }
}

/* === plugin-tech.css === */
.tech-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(50px,1fr));gap:8px}

.tech-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .014);
    box-shadow: inset 0 0 0 1px var(--edge-0);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all .2s ease;
    overflow: hidden;
}

.tech-item:hover {
    background: rgba(255, 255, 255, .024);
    box-shadow: inset 0 0 0 1px var(--edge-1), var(--shadow);
    transform: translateY(-2px);
}

.tech-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}

.tech-item .tech-name {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--paper);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: all .2s ease;
    z-index: 10;
    border: 1px solid var(--edge-1);
    color: var(--ink);
}

.tech-item:hover .tech-name {
    opacity: 1;
    bottom: -35px;
}

.tech-item.filtered {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(122, 162, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .2);
    transform: scale(1.05);
}

.tech-item.filtered img {
    filter: brightness(1.3) contrast(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}

@media (prefers-color-scheme: light) {
    .tech-item {
        background: rgba(0, 0, 0, .04);
        border: 1px solid var(--edge-1);
    }

    .tech-item:hover {
        background: rgba(0, 0, 0, .08);
    }

    .tech-item img {
        filter: none;
    }

    .tech-item .tech-name {
        background: var(--paper);
        color: var(--ink);
        border-color: var(--edge-1);
    }

    .tech-item.filtered {
        background: var(--accent);
        color: #fff;
        box-shadow: 0 0 0 2px rgba(9, 105, 218, .3), inset 0 0 0 1px rgba(255, 255, 255, .3);
    }

    .tech-item.filtered img {
        filter: brightness(10) drop-shadow(0 2px 4px rgba(0, 0, 0, .2));
    }
}

/* === plugin-visitors.css === */
.visitors-section{background:linear-gradient(135deg, var(--paper) 0%, var(--bg-2) 100%);border-radius:var(--radius);padding:16px;box-shadow:inset 0 0 0 1px var(--edge-0), var(--shadow);overflow:hidden}
.visitors-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:16px;margin-top:8px}
.visitor-stat{text-align:center;padding:12px 8px;border-radius:10px;background:rgba(255,255,255,.02);box-shadow:inset 0 0 0 1px var(--edge-0);transition:transform .15s ease, background .15s ease}
.visitor-stat:hover{background:rgba(255,255,255,.04);transform:translateY(-1px)}
.visitor-number{font-size:20px;font-weight:800;color:var(--accent);line-height:1}
.visitor-label{font-size:11px;color:var(--muted);margin-top:4px;font-family:var(--mono);text-transform:uppercase;letter-spacing:.5px}
.visitor-uptime{font-size:14px;font-weight:700;color:var(--ink-2)}

.visitor-stat[data-tooltip]{
    cursor:help;
    position:relative;
}

.visitor-stat[data-tooltip]::before{
    content:attr(data-tooltip);
    position:absolute;
    bottom:calc(100% + 8px);
    left:50%;
    transform:translateX(-50%);
    background:var(--paper);
    color:var(--ink);
    padding:8px 12px;
    border-radius:8px;
    font-size:12px;
    font-weight:600;
    font-family:var(--mono);
    white-space:nowrap;
    box-shadow:var(--shadow), inset 0 0 0 1px var(--edge-1);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease, transform .2s ease;
    z-index:100;
}

.visitor-stat[data-tooltip]:hover::before{
    opacity:1;
    transform:translateX(-50%) translateY(-2px);
}

.visitor-stat[data-tooltip]::after{
    content:'';
    position:absolute;
    bottom:calc(100% + 2px);
    left:50%;
    transform:translateX(-50%);
    border:6px solid transparent;
    border-top-color:var(--paper);
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease;
    z-index:100;
}

.visitor-stat[data-tooltip]:hover::after{
    opacity:1;
}

/* === plugin-webring.css === */
.webring-section .plugin-header{
    box-shadow:none;
    border:none;
}

.webring-nav{
    display:flex;
    align-items:center;
    justify-content:center;     /* center the trio */
    flex-wrap:nowrap;           /* always one row */
    width:100%;
    min-height:0;
    gap:clamp(6px, 0.8vw, 10px);/* tighter spacing */
    padding:0;                  /* no background padding strip */
    background:transparent;
    box-shadow:none;
    overflow:hidden;            /* hide tiny overflow on super small screens */
}

.webring-prev,
.webring-home,
.webring-next{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0.55em;

    height:clamp(32px, 2.6vw, 46px);
    padding:0 clamp(10px, 1.6vw, 18px);

    border-radius:12px;
    border:1px solid var(--edge-0);
    background:linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    box-shadow:0 1px 3px rgba(0,0,0,.15);

    color:var(--ink);
    font-weight:700;
    font-size:clamp(12px, 0.95vw, 16px);
    line-height:1;

    white-space:nowrap;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;

    text-decoration:none;
    cursor:pointer;
    user-select:none;

    transition:
            transform .15s ease,
            box-shadow .2s ease,
            background .2s ease,
            opacity .2s ease;
}

.webring-prev:hover,
.webring-home:hover,
.webring-next:hover{
    transform:translateY(-1px);
    box-shadow:0 3px 12px rgba(0,0,0,.25);
}

.webring-prev:active,
.webring-home:active,
.webring-next:active{
    transform:none;
}

.webring-home{
    background:linear-gradient(135deg, var(--accent) 0%, color-mix(in oklch, var(--accent) 85%, black) 100%);
    color:#fff;
    border-color:transparent;
    font-weight:800;
    letter-spacing:.1px;
}

.webring-prev,
.webring-next{ flex:1 1 0; max-width:33%; }
.webring-home{ flex:0 0 auto; min-width:clamp(56px, 6vw, 120px); }

.webring-text{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    min-width:0;
}

.webring-prev img,
.webring-home img,
.webring-next img,
.webring-prev svg,
.webring-home svg,
.webring-next svg{
    width:clamp(14px, 1.2vw, 18px);
    height:clamp(14px, 1.2vw, 18px);
    flex-shrink:0;
    object-fit:contain;
}
/* Make the pills a touch larger on very wide screens */
@media (min-width: 1440px){
    .webring-nav{ gap:clamp(8px, 0.7vw, 14px); }
    .webring-prev,
    .webring-home,
    .webring-next{
        height:clamp(40px, 2.4vw, 50px);
        font-size:clamp(13px, 0.9vw, 17px);
        padding:0 clamp(12px, 1.8vw, 20px);
    }
}

@media (max-width: 900px){
    .webring-prev,
    .webring-home,
    .webring-next{
        height:38px;
        font-size:13px;
        padding:0 12px;
    }
}

@media (max-width: 520px){
    .webring-nav{ gap:6px; }
    .webring-prev,
    .webring-next{ padding:0 10px; height:34px; font-size:12px; }
    .webring-home{ padding:0 12px; height:34px; min-width:52px; }
}

/* Ultra-narrow: hide prev/next text to keep one line, show arrows */
@media (max-width: 380px){
    .webring-prev .webring-text,
    .webring-next .webring-text{ display:none; }
    .webring-prev::after{ content:"←"; font-weight:900; }
    .webring-next::after{ content:"→"; font-weight:900; }
}

@media (prefers-color-scheme: light) {
    .webring-prev,
    .webring-next {
        background: linear-gradient(135deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .02));
        border-color: var(--edge-1);
        color: var(--ink);
    }

    .webring-prev:hover,
    .webring-next:hover {
        background: linear-gradient(135deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .04));
        color: var(--accent);
    }

    .webring-home {
        background: linear-gradient(135deg, var(--accent) 0%, color-mix(in oklch, var(--accent) 85%, black) 100%);
        color: #fff;
    }
}
