/* ── Tokens (dark interior + sage scene) ─────────────────────────────── */
:root {
    --pw-bg: #07090f;
    --pw-bg-alt: #0d111a;
    --pw-text: #e7eaf0;
    --pw-muted: #8a93a5;
    --pw-border: #1f2533;
    --pw-card: #11151f;
    --pw-card-elev: #161c27;
    --pw-accent: #4d8cff;
    --pw-accent-2: #00d4f5;
    --pw-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45);

    /* Scene (outside the laptop) */
    --scene-bg:        #4a5d4a;
    --scene-bg-deep:   #3a4d3a;
    --scene-ink:       #f5f0e6;
    --scene-ink-muted: #c5c5b5;

    /* Laptop chassis */
    --laptop-bezel:    #8b7355;
    --laptop-base:     #6b5b45;
    --laptop-keys:     #2a2a2a;
    --laptop-key-cap:  #1a1a1a;

    /* Browser chrome (cream) */
    --chrome-bg:       #e8e3d5;
    --chrome-bg-light: #f5f0e6;
    --chrome-border:   #d5d0c2;
    --chrome-ink:      #5a5a4a;
    --chrome-ink-muted:#9a9a8a;
}

html, body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--pw-text);
    background-color: var(--scene-bg);
}

body {
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(255, 255, 255, 0.04), transparent 60%),
        radial-gradient(1200px 600px at 20% 100%, rgba(0, 0, 0, 0.18), transparent 60%),
        var(--scene-bg);
    min-height: 100vh;
}

a, .btn-link {
    color: var(--pw-accent);
    text-decoration: none;
}

a:hover, .btn-link:hover {
    color: #7aa9ff;
    text-decoration: underline;
}

.btn-primary {
    color: #fff;
    background-color: var(--pw-accent);
    border-color: var(--pw-accent);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #3a76f0;
    border-color: #3a76f0;
}

.btn-outline-secondary {
    color: var(--pw-text);
    border-color: var(--pw-border);
    background: transparent;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    color: var(--pw-text);
    background-color: var(--pw-card-elev);
    border-color: var(--pw-border);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(77, 140, 255, 0.35);
}

/* Override Bootstrap defaults for dark surface */
.text-muted, .small.text-muted {
    color: var(--pw-muted) !important;
}

.form-control, .form-select {
    background-color: var(--pw-card);
    color: var(--pw-text);
    border-color: var(--pw-border);
}

.form-control:focus, .form-select:focus {
    background-color: var(--pw-card);
    color: var(--pw-text);
    border-color: var(--pw-accent);
}

.form-control::placeholder {
    color: var(--pw-muted);
    opacity: 1;
}

.form-label {
    color: var(--pw-text);
    font-weight: 500;
}

.badge.bg-light {
    background-color: var(--pw-card-elev) !important;
    color: var(--pw-muted) !important;
    border: 1px solid var(--pw-border) !important;
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    padding-top: 2rem;
    position: relative;
}

.hero-eyebrow {
    color: var(--pw-accent-2);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--pw-text);
}

.hero-lede {
    font-size: 1.125rem;
    color: var(--pw-muted);
    max-width: 36rem;
}

.hero-card {
    background: #050810;
    color: #d4dbe8;
    border: 1px solid var(--pw-border);
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.hero-card-header {
    background: #03060c;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-card-header .text-muted {
    color: #8a98ad !important;
}

.dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.hero-code {
    margin: 0;
    padding: 1.2rem;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #d4dbe8;
    background: transparent;
}

.c-key { color: #c792ea; }
.c-type { color: #82aaff; }
.c-str { color: #c3e88d; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--pw-bg-alt);
    border-top: 1px solid var(--pw-border);
    border-bottom: 1px solid var(--pw-border);
}

.section-eyebrow {
    color: var(--pw-accent-2);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin: 0 0 0.4rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--pw-text);
}

/* ── Page header ─────────────────────────────────────────────────────── */
.page-header {
    background: linear-gradient(180deg, var(--pw-bg-alt) 0%, var(--pw-bg) 100%);
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--pw-border);
}

.page-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--pw-text);
}

.page-subtitle {
    color: var(--pw-muted);
    margin-top: 0.5rem;
    max-width: 42rem;
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.highlight-card,
.project-card,
.side-card,
.form-card,
.cta-card {
    background: var(--pw-card);
    border: 1px solid var(--pw-border);
    border-radius: 0.85rem;
    padding: 1.5rem;
    box-shadow: var(--pw-shadow);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.highlight-card:hover,
.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(77, 140, 255, 0.45);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 40px rgba(77, 140, 255, 0.12);
}

.project-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.project-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
}

.read-more {
    color: var(--pw-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 120ms ease;
}

.project-card-link:hover .read-more {
    gap: 0.6rem;
}

.highlight-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, var(--pw-accent-2) 0%, var(--pw-accent) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--pw-card) 0%, #182236 100%);
}

/* ── Chips ───────────────────────────────────────────────────────────── */
.tech-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tech-chip {
    background: rgba(77, 140, 255, 0.08);
    color: #cfdcff;
    border: 1px solid rgba(77, 140, 255, 0.25);
    border-radius: 999px;
    padding: 0.18rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 500;
}

/* ── About / skills ──────────────────────────────────────────────────── */
.skill-group + .skill-group {
    margin-top: 1.1rem;
}

.skill-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pw-muted);
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.value-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-list li {
    padding: 0.5rem 0;
    border-top: 1px solid var(--pw-border);
    color: var(--pw-text);
}

.value-list li:first-child {
    border-top: none;
}

/* ── Resume timeline ─────────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 2px;
    background: var(--pw-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

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

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.45rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--pw-bg);
    border: 3px solid var(--pw-accent);
    box-shadow: 0 0 0 3px rgba(77, 140, 255, 0.15);
}

.timeline-content .company {
    color: var(--pw-accent);
    font-weight: 600;
    margin: 0;
}

/* ── Project search ──────────────────────────────────────────────────── */
.project-search {
    max-width: 22rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--pw-card);
    border: 1px dashed var(--pw-border);
    border-radius: 0.85rem;
    color: var(--pw-muted);
}

.empty-state i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ── Project detail ──────────────────────────────────────────────────── */
.back-link {
    color: var(--pw-muted);
    font-size: 0.9rem;
    text-decoration: none;
}

.back-link:hover {
    color: var(--pw-accent);
    text-decoration: none;
}

.media-frame {
    border-radius: 0.85rem;
    overflow: hidden;
    border: 1px solid var(--pw-border);
    background: var(--pw-bg-alt);
}

.media-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pw-muted);
    background:
        repeating-linear-gradient(
            45deg,
            var(--pw-bg-alt),
            var(--pw-bg-alt) 12px,
            #141a26 12px,
            #141a26 24px
        );
}

.media-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.4rem;
    opacity: 0.6;
}

.gallery-thumb {
    border: 1px solid var(--pw-border);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    width: 100%;
}

.detail-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    column-gap: 1rem;
    row-gap: 0.55rem;
    font-size: 0.92rem;
}

.detail-list dt {
    color: var(--pw-muted);
    font-weight: 500;
}

.detail-list dd {
    margin: 0;
    color: var(--pw-text);
}

/* ── Contact ─────────────────────────────────────────────────────────── */
.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 0;
}

.contact-list li i {
    color: var(--pw-accent);
    width: 1.25rem;
    text-align: center;
}

.contact-list li a {
    color: var(--pw-text);
}

.contact-list li a:hover {
    color: var(--pw-accent);
}

.coursework-list li {
    padding: 0.4rem 0;
    border-top: 1px solid var(--pw-border);
    color: var(--pw-text);
    font-size: 0.92rem;
}

.coursework-list li:first-child {
    border-top: none;
}

.snapshot-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pw-accent-2);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

/* ── Git graph timeline (SVG-based) ──────────────────────────────────── */
.git-graph-box {
    background: #1e1e1e;
    border: 1px solid var(--pw-border);
    border-radius: 0.6rem;
    overflow: hidden;
    box-shadow: var(--pw-shadow);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, 'Segoe UI', monospace;
}

.git-graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 0.9rem;
    background: #161616;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.72rem;
}

.gh-title {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.gh-meta {
    color: #808080;
}

.git-graph-body {
    position: relative;
}

.git-graph-svg {
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}

.git-graph-rows {
    position: relative;
    z-index: 1;
}

.git-graph-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.9rem;
    cursor: pointer;
    transition: background-color 100ms ease;
    outline: none;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    border-left: 2px solid transparent;
}

.git-graph-row:hover,
.git-graph-row:focus-visible,
.git-graph-row.is-selected {
    background-color: rgba(77, 140, 255, 0.06);
}

.git-graph-row.is-selected {
    background-color: rgba(77, 140, 255, 0.12);
    border-left-color: var(--pw-accent);
}

.gr-title {
    color: #e6e6e6;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.gr-author {
    color: #808080;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.gr-badge {
    margin-left: auto;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.68rem;
    padding: 0.1rem 0.5rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid;
}

/* Category color tokens (used for badges + snapshot labels) */
.cat-education   { --cat: #f97316; }
.cat-achievement { --cat: #f97316; }
.cat-work        { --cat: #facc15; }
.cat-campus      { --cat: #ec4899; }
.cat-leadership  { --cat: #ec4899; }

.gr-badge.cat-education,
.gr-badge.cat-achievement,
.gr-badge.cat-work,
.gr-badge.cat-campus,
.gr-badge.cat-leadership {
    color: var(--cat);
    border-color: color-mix(in srgb, var(--cat) 40%, transparent);
    background: color-mix(in srgb, var(--cat) 12%, transparent);
}

.snapshot-label.cat-education,
.snapshot-label.cat-achievement,
.snapshot-label.cat-work,
.snapshot-label.cat-campus,
.snapshot-label.cat-leadership {
    color: var(--cat);
}

/* Detail panel */
.git-detail-sticky {
    position: sticky;
    top: 5rem;
}

.git-detail {
    background: var(--pw-card);
    border: 1px solid var(--pw-border);
    border-radius: 0.85rem;
    padding: 1.5rem;
    box-shadow: var(--pw-shadow);
    transition: border-color 150ms ease;
}

.git-detail:hover {
    border-color: rgba(77, 140, 255, 0.4);
}

.g-date-detail {
    color: var(--pw-accent);
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-weight: 500;
}

/* ── Validation ──────────────────────────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #ff5470;
}

.validation-message {
    color: #ff7088;
    font-size: 0.85rem;
}

/* ── Error boundary ──────────────────────────────────────────────────── */
.blazor-error-boundary {
    background: #5c1010;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  Scene — laptop on a desk                                            ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.scene {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2rem 1.5rem;
    position: relative;
    overflow-x: clip;
}

.scene-header {
    flex: 0 0 320px;
    max-width: 320px;
    color: var(--scene-ink);
    text-align: center;
    margin: 0;
    align-self: flex-start;
    padding-top: 0;
}

.scene-title {
    white-space: nowrap;
}

.scene-eyebrow {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    color: var(--scene-ink-muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
    text-transform: lowercase;
}

.scene-title {
    color: var(--scene-ink);
    font-size: clamp(1.4rem, 1.9vw, 1.9rem);
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.scene-footer {
    padding: 1.6rem 1rem;
    text-align: center;
    border-top: 1px solid var(--pw-border);
    margin-top: 4rem;
    color: var(--pw-muted);
}

.scene-footer .text-muted {
    color: var(--pw-muted) !important;
}

/* Fullscreen toggle (floats in top-right of the scene) ─────────────────── */
.site-fullscreen-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: var(--scene-ink, #e8e8e8);
    border-radius: 0.5rem;
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.site-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.site-fullscreen-btn:focus-visible {
    outline: 2px solid var(--pw-accent, #4d8cff);
    outline-offset: 2px;
}

/* Laptop frame (SVG illustration + HTML overlay) ───────────────────────── */
.laptop-frame {
    position: relative;
    width: 100%;
    max-width: 1400px;
    aspect-ratio: 680 / 430;
    margin: 0 auto;
    z-index: 5;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

.laptop-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Overlay positioned over the SVG's cream screen rectangle.
   Screen rect in viewBox (-285 -115 680 430): x=-187.6, y=-94.2, w=484.6, h=302.6
   → left 14.32%, top 4.84%, width 71.26%, height 70.37% */
.laptop-screen-overlay {
    position: absolute;
    left: 14.32%;
    top: 4.84%;
    width: 71.26%;
    height: 70.37%;
    display: flex;
    flex-direction: column;
    background: var(--pw-bg);
    overflow: hidden;
    z-index: 2;
}

/* Browser viewport ─────────────────────────────────────────────────────── */
.browser-viewport {
    flex: 1;
    background: var(--pw-bg);
    color: var(--pw-text);
    overflow-y: auto;
    overflow-x: hidden;
    /* hide scrollbar but keep scrollability */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.browser-viewport::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  Browser chrome (tabs + URL bar)                                     ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

.browser-chrome {
    background: var(--chrome-bg);
    border-bottom: 1px solid var(--chrome-border);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    user-select: none;
}

/* Title bar = traffic lights + tab strip */
.browser-titlebar {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem 0;
    background: var(--chrome-bg);
}

.tl-dots {
    display: flex;
    gap: 0.45rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}

.tl {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.tl-r { background: #e74c3c; }
.tl-y { background: #f39c12; }
.tl-g { background: #2ecc71; }

.browser-tabs {
    display: flex;
    align-items: flex-end;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.browser-tabs::-webkit-scrollbar { display: none; }

.browser-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem 0.5rem;
    border-radius: 0.45rem 0.45rem 0 0;
    background: var(--chrome-border);
    color: var(--chrome-ink-muted);
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 0.15rem;
    min-width: 100px;
    max-width: 200px;
    position: relative;
    flex: 0 0 auto;
    transition: background 100ms ease, color 100ms ease;
}

.browser-tab:hover {
    background: #ddd8ca;
    color: var(--chrome-ink);
    text-decoration: none;
}

.browser-tab.is-active {
    background: var(--pw-bg);
    color: var(--scene-ink);
    border-color: var(--chrome-border);
    z-index: 1;
    margin-bottom: -1px;
}

.browser-tab.is-active::after {
    /* extend active tab visually into the URL bar */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--pw-bg);
}

.tab-favicon {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 0.15rem;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.tab-close {
    color: var(--chrome-ink-muted);
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.6;
    flex-shrink: 0;
}

.browser-tab:hover .tab-close { opacity: 1; }

.tab-newtab {
    color: var(--chrome-ink-muted);
    padding: 0.35rem 0.7rem 0.5rem;
    font-size: 1rem;
    cursor: default;
    line-height: 1;
    flex-shrink: 0;
}

/* URL bar */
.browser-urlbar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    background: var(--chrome-bg);
    border-top: 1px solid var(--chrome-border);
    font-size: 0.8rem;
    color: var(--chrome-ink);
}

.urlbar-controls,
.urlbar-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
}

.ub-btn {
    color: var(--chrome-ink-muted);
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
}

.ub-btn.ub-disabled {
    opacity: 0.4;
}

.urlbar-input {
    flex: 1;
    background: var(--chrome-bg-light);
    border: 1px solid var(--chrome-border);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.75rem;
    color: var(--chrome-ink);
    overflow: hidden;
    white-space: nowrap;
}

.ub-lock {
    color: #4a8a4a;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.ub-host {
    color: var(--chrome-ink);
}

.ub-path {
    color: var(--chrome-ink-muted);
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  Desk decorations (pinned to viewport)                               ║
   ╚══════════════════════════════════════════════════════════════════════╝ */

/* Coffee mug ───────────────────────────────────────────────────────────── */
.desk-mug {
    position: fixed;
    right: clamp(1.5rem, 6vw, 5rem);
    bottom: 9rem;
    width: 90px;
    z-index: 4;
}

.mug-body {
    position: relative;
    width: 80px;
    height: 96px;
    background: linear-gradient(180deg, #e55039 0%, #c1392f 100%);
    border-radius: 0 0 12px 12px;
    margin: 0 auto;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
}

.mug-rim {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 14px;
    background: #c9a227;
    border-radius: 50%;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.mug-handle {
    position: absolute;
    right: -22px;
    top: 18px;
    width: 24px;
    height: 44px;
    border: 6px solid #e55039;
    border-left: none;
    border-radius: 0 24px 24px 0;
}

.mug-saucer {
    width: 96px;
    height: 10px;
    background: #f5f0e6;
    border-radius: 50%;
    margin: -4px auto 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.mug-steam {
    position: absolute;
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    pointer-events: none;
}

.steam {
    display: block;
    width: 3px;
    height: 20px;
    background: rgba(245, 240, 230, 0.5);
    border-radius: 3px;
    animation: steam 2.4s ease-in-out infinite;
}

.steam.s1 { animation-delay: 0s; }
.steam.s2 { animation-delay: 0.4s; height: 28px; }
.steam.s3 { animation-delay: 0.8s; height: 18px; }

@keyframes steam {
    0%   { opacity: 0; transform: translateY(10px) scaleY(0.6); }
    25%  { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-18px) scaleY(1); }
}

/* Monster can ──────────────────────────────────────────────────────────── */
.desk-can {
    position: fixed;
    right: clamp(1rem, 3vw, 3rem);
    bottom: 4rem;
    width: clamp(120px, 11vw, 180px);
    z-index: 4;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45));
    pointer-events: none;
}

.monster-can-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ╔══════════════════════════════════════════════════════════════════════╗
   ║  Mobile fallback — hide the scene chrome, keep the content readable  ║
   ╚══════════════════════════════════════════════════════════════════════╝ */
@media (max-width: 1200px) {
    .scene-header {
        display: none;
    }
    .scene {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .scene {
        padding: 0;
    }
    .scene-header {
        display: none;
    }
    .laptop-frame {
        max-width: 100%;
        aspect-ratio: auto;
        filter: none;
        min-height: 100vh;
    }
    .laptop-svg {
        display: none;
    }
    .laptop-screen-overlay {
        position: static;
        width: 100%;
        height: auto;
        min-height: 100vh;
    }
    .desk-mug,
    .desk-can {
        display: none;
    }
    .browser-viewport {
        overflow: visible;
        min-height: 100vh;
    }
    .browser-titlebar {
        padding: 0.4rem 0.6rem 0;
    }
    .tl-dots { display: none; }
    .browser-tab {
        min-width: auto;
        padding: 0.4rem 0.6rem;
        font-size: 0.72rem;
    }
    .tab-close { display: none; }
    .browser-urlbar { display: none; }
}
