/* =========================================================
   IGISZA DESKTOP
   Main desktop appearance
========================================================= */

/* 
    :root {
    --desktop-bg: #dce5df;
    --desktop-ink: #263b38;
    --desktop-muted: #687b75;
    --desktop-accent: #447c73;
    --desktop-line: #c6d2cc;
    --window-bg: #fbfcf9;
    --window-title-bg: #e9efea;
    --window-shadow: 0 14px 38px rgba(29, 52, 45, 0.19);
    --desktop-font: 'cmono', monospace;
}
*/

:root {
    /* Light turquoise desktop */
    --desktop-bg: #dceff0;
    --desktop-ink: #253e43;
    --desktop-muted: #6a8589;
    --desktop-accent: #4d9ca4;
    --desktop-line: #c6dfe1;

    /* Window surfaces */
    --window-bg: #fbfdfc;
    --window-title-bg: #e8f4f5;
    --window-shadow: 0 14px 38px rgba(32, 69, 74, 0.18);

    /* Typography — unchanged */
    --desktop-font: 'cmono', monospace;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

/* =========================================================
   DESKTOP WALLPAPER
========================================================= */

body.desktop-page {
    min-height: 100vh;
    margin: 0;

    color: var(--desktop-ink);
    font-family: var(--desktop-font);

    background-color: var(--desktop-bg);

    background-image:
        linear-gradient(
           /* rgba(220, 229, 223, 0.80),
            rgba(220, 229, 223, 0.80)*/
            rgba(220, 239, 240, 0.80),
            rgba(220, 239, 240, 0.80)
        ),
        url("background-map.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    overflow-x: hidden;
}


/* =========================================================
   SYSTEM BAR
========================================================= */

.desktop-systembar {
    position: relative;
    z-index: 1000;

    min-height: 52px;
    padding: 10px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(248, 251, 252, 0.88);
    border-bottom: 1px solid rgba(93, 114, 120, 0.22);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.desktop-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--desktop-ink);
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 0.025em;
}

.desktop-brand img {
    display: block;
    width: auto;
    height: 27px;
    max-width: 100px;
    object-fit: contain;
}

.systembar-context,
.systembar-status {
    color: var(--desktop-muted);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.systembar-status {
    text-align: right;
}


/* =========================================================
   DESKTOP WORKSPACE
========================================================= */

.desktop-workspace {
    position: relative;

    min-height: calc(100vh - 52px);

    padding: 30px 26px 100px;

    isolation: isolate;
}


/* =========================================================
   DESKTOP ICONS
========================================================= */

.desktop-icons {
    position: absolute;
    top: 30px;
    left: 24px;

    z-index: 2;

    width: 190px;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 18px 10px;
}

.desktop-icon {
    appearance: none;
    -webkit-appearance: none;

    min-width: 0;
    min-height: 88px;
    padding: 8px 4px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;

    color: var(--desktop-ink);
    text-align: center;
    text-decoration: none;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;

    cursor: pointer;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(75, 117, 101, 0.25);
    transform: translateY(-2px);
}

.desktop-icon-symbol {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(250, 252, 248, 0.9);
    border: 1px solid rgba(68, 124, 115, 0.28);
    border-radius: 10px;

    box-shadow: 0 3px 8px rgba(36, 69, 58, 0.08);

    color: var(--desktop-accent);
    font-size: 1.25rem;
}

.geohere-symbol {
    font-size: 2rem !important;
    line-height: 1;
}
.projects-symbol {
    font-size: 1.4rem !important;
    line-height: 1;
}
.observations-symbol,
.maps-symbol{
    font-size: 1.7rem !important;
    line-height: 1;
}

/* =========================================================
   RECYCLE BIN ICON — CYLINDRICAL BIN
========================================================= */

.desktop-icon-symbol.recycle-bin-symbol {
    position: relative;
    isolation: isolate;
    overflow: visible;

    width: 48px;
    height: 40px;
    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--desktop-accent);
    background:
        repeating-linear-gradient(
            90deg,
            rgba(68, 124, 115, 0.06) 0 3px,
            transparent 3px 10px
        ),
        linear-gradient(
            90deg,
            #e2ebe4,
            #fbfcf9 25%,
            #f1f5f0 75%,
            #dce7df
        );

    border: 1px solid rgba(68, 124, 115, 0.4);
    border-radius: 4px 4px 9px 9px / 3px 3px 7px 7px;
    box-shadow: 0 3px 8px rgba(36, 69, 58, 0.09);
}

/* Curved rim */
.desktop-icon-symbol.recycle-bin-symbol::before {
    content: "";
    position: absolute;
    z-index: 2;

    top: -4px;
    left: -2px;

    width: calc(100% + 4px);
    height: 9px;

    background: #f8fbf7;
    border: 1px solid rgba(68, 124, 115, 0.45);
    border-radius: 50%;
}

/* Disable the folder tab */
.desktop-icon-symbol.recycle-bin-symbol::after {
    content: none;
}

/* Recycle symbol */
.recycle-bin-mark {
    position: relative;
    z-index: 3;

    display: block;
    color: var(--desktop-accent);
    font-family: 'cmono', monospace;
    font-size: 1.4rem;
    line-height: 1;
}

/* Hover effect */
.desktop-icon:hover .desktop-icon-symbol.recycle-bin-symbol {
    border-color: var(--desktop-accent);
    box-shadow: 0 4px 10px rgba(36, 69, 58, 0.14);
}

/* =========================================================
   RECYCLE BIN SHORTCUT — DESKTOP
========================================================= */

.recycle-bin-shortcut {
    position: absolute;
    top: 30px;
    right: 24px;
    z-index: 3;

    width: 96px;
    min-height: 88px;
}

/* =========================================================
   RECYCLE BIN — MOBILE
========================================================= */

@media (max-width: 760px) {
    .desktop-icon-symbol.recycle-bin-symbol {
        width: 44px;
        height: 36px;
        flex-basis: 36px;
    }

    .recycle-bin-mark {
        font-size: 1.2rem;
    }

    .recycle-bin-shortcut {
        position: relative;
        top: auto;
        right: auto;

        width: 76px;
        min-height: 70px;
        margin: 0 0 18px auto;
    }
}
.desktop-icon-label {
    max-width: 100%;

    padding: 3px 5px;

    font-size: 0.68rem;
    line-height: 1.35;

    overflow-wrap: anywhere;
}


/* =========================================================
   DESKTOP WINDOWS
========================================================= */

.desktop-window {
    position: absolute;

    display: none;
    flex-direction: column;

    min-width: 0;
    min-height: 0;

    color: var(--desktop-ink);
    background: var(--window-bg);

    border: 1px solid rgba(77, 103, 91, 0.38);
    border-radius: 8px;

    box-shadow: var(--window-shadow);

    overflow: hidden;

    max-width: calc(100% - 245px);
    max-height: calc(100vh - 145px);
}

.desktop-window.is-open {
    display: flex;
}

.desktop-window.is-dragging {
    opacity: 0.97;
    box-shadow: 0 20px 48px rgba(29, 52, 45, 0.27);
}


/* Initial positions */

.window-about {
    top: 34px;
    left: clamp(215px, 23vw, 330px);

    width: 530px;
    max-height: calc(100vh - 145px);

    z-index: 4;
}

.window-worklog {
    top: 115px;
    right: 32px;

    width: 375px;
    max-height: calc(100vh - 205px);

    z-index: 5;
}

.window-contact {
    top: 20%;
    left: 41%;

    width: 440px;
    max-height: 65vh;

    z-index: 6;
}

/* =====================================
   GEOHERE EXPLORER WINDOW
===================================== */

.window-geohere {
    left: clamp(205px, 18vw, 300px);
    width: min(900px, calc(100vw - 260px));
    max-width: none;
    max-height: calc(100vh - 130px);
}

.geohere-window-body {
    min-height: 0;
}

/* Two-pane explorer */
.geohere-explorer {
    display: grid;
    grid-template-columns: minmax(170px, 0.85fr) minmax(0, 1.8fr);
    height: min(380px, 45vh);
    min-height: 280px;
    margin: 20px 0;

    border: 1px solid var(--desktop-line, #c6d1d2);
    background: var(--window-bg, #f9fcfc);
    border-radius: 4px;
    overflow: hidden;
}

/* Left file list */
.geohere-file-list {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 8px;
    overflow-y: auto;

    background: rgba(239, 244, 244, 0.9);
    border-right: 1px solid var(--desktop-line, #c6d2d1);
}

.geohere-file {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 9px 7px;

    color: var(--desktop-ink, #263b38);
    text-align: left;
    font-family: var(--desktop-font, 'cmono', monospace);
    font-size: 0.65rem;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;

    cursor: pointer;
}

.geohere-file:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--desktop-line, #c6d2cc);
}

.geohere-file.is-selected {
    background: #dce8e9;
    border-color: #a8c1c4;
}

.geohere-file-type {
    flex: 0 0 auto;
    padding: 3px 4px;

    color: white;
    /*background: #668b7c;*/
    background:#609ca4;
    border-radius: 2px;

    font-size: 0.5rem;
}

.geohere-file-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Right preview pane */
.geohere-preview-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 10px;
    background: var(--window-bg, #f9fcfc);
}

.geohere-preview-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;

    min-width: 0;
    min-height: 0;
    padding: 5px;

    background: #ecf1f1;
    border: 1px solid #d9e0e0;
    border-radius: 3px;

    cursor: zoom-in;
    overflow: hidden;
}

.geohere-preview-zoom img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;

    object-fit: contain;
}

.geohere-preview-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    padding: 9px 2px 1px;

    color: var(--desktop-muted, #687b7a);
    font-size: 0.62rem;
    overflow-wrap: anywhere;
}

.geohere-preview-hint {
    font-size: 0.5rem;
    letter-spacing: 0.04em;
}

/* =====================================
   ENLARGED PREVIEW
===================================== */

.geohere-lightbox {
    width: min(94vw, 1300px);
    max-width: 94vw;
    max-height: 92vh;
    padding: 0;

    color: var(--desktop-ink, #263b38);
    background: var(--window-bg, #f9fcfc);
    border: 1px solid var(--desktop-line, #c6d2d2);
    border-radius: 4px;
    overflow: hidden;

    box-shadow: 0 20px 60px rgba(29, 50, 52, 0.3);
}

.geohere-lightbox::backdrop {
    background: rgba(24, 35, 37, 0.78);
    backdrop-filter: blur(4px);
}

.geohere-lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 10px 7px 14px;

    background: var(--window-title-bg, #e9efef);
    border-bottom: 1px solid var(--desktop-line, #c6d0d2);

    font-size: 0.7rem;
    overflow-wrap: anywhere;
}

.geohere-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;

    max-height: calc(92vh - 45px);
    padding: 12px;
    overflow: auto;
    background: #ecf1f1;
}

#geohere-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(92vh - 80px);
    object-fit: contain;
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 760px) {
    .window-geohere {
        width: 100%;
        max-width: none;
        max-height: none;
    }

    .geohere-explorer {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(260px, 1fr);
        height: auto;
        min-height: 0;
    }

    .geohere-file-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;

        max-height: 135px;
        padding: 6px;

        border-right: 0;
        border-bottom: 1px solid var(--desktop-line, #c6cfd2);
    }

    .geohere-file {
        align-items: flex-start;
        padding: 7px 5px;
    }

    .geohere-preview-pane {
        height: 300px;
        padding: 8px;
    }

    .geohere-preview-caption {
        font-size: 0.58rem;
    }

    .geohere-lightbox {
        width: 96vw;
        max-width: 96vw;
    }
}

@media (max-width: 380px) {
    .geohere-file-list {
        grid-template-columns: minmax(0, 1fr);
        max-height: 150px;
    }

    .geohere-preview-pane {
        height: 250px;
    }
}

/* =========================================================
   RECYCLE BIN EXPLORER
========================================================= */

.window-recycle {
    top: 13%;
    left: clamp(210px, 30vw, 390px);

    width: min(570px, calc(100vw - 260px));
    max-width: none;
    max-height: calc(100vh - 150px);
    z-index: 8;
}

.recycle-window-body {
    min-height: 0;
}

.recycle-intro {
    margin-bottom: 20px;
    color: var(--desktop-muted);
}

/* File list */
.recycle-file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Each archived file */
.recycle-file {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    min-width: 0;
    padding: 12px;

    background: rgba(241, 246, 246, 0.85);
    border: 1px solid var(--desktop-line);
    border-radius: 4px;
}

/* Compact file-type label */
.recycle-file-type {
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: #fff;
    background: #668b75;
    border-radius: 3px;

    font-family: var(--desktop-font);
    font-size: 0.58rem;
    font-weight: bold;
}

.recycle-file-type.type-html {
    background: #8f897c;
}

.recycle-file-type.type-image {
    background: #b1516f;
}

/* File name and description */
.recycle-file-info {
    flex: 1 1 auto;
    min-width: 0;
}

.recycle-file-info h3 {
    margin: 0 0 3px;
    font-size: 0.76rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.recycle-file-info p {
    margin: 5px 0 0;
    font-size: 0.69rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.recycle-file-info .recycle-file-meta {
    margin-top: 0;
    color: var(--desktop-muted);
    font-size: 0.59rem;
}

.recycle-footer-note {
    margin: 18px 0 0;
    padding-top: 12px;

    color: var(--desktop-muted);
    border-top: 1px solid var(--desktop-line);

    font-size: 0.65rem !important;
    font-style: italic;
}

/* Mobile: use your existing stacked-window layout */
@media (max-width: 760px) {
    .window-recycle {
        width: 100%;
        max-width: none;
        max-height: none;
    }

    .recycle-file {
        gap: 10px;
        padding: 10px;
    }

    .recycle-file-type {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 0.52rem;
    }

    .recycle-file-info h3 {
        font-size: 0.7rem;
    }

    .recycle-file-info p {
        font-size: 0.66rem;
    }
}

/* Clickable archived file rows */

.recycle-file-button {
    width: 100%;
    color: var(--desktop-ink);
    font-family: var(--desktop-font);
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.recycle-file-button:hover {
    background: #edf1f3;
    border-color: var(--desktop-accent);
}

.recycle-file-button:focus-visible {
    outline: 2px solid var(--desktop-accent);
    outline-offset: 2px;
}

.recycle-file-info {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.recycle-file-name,
.recycle-file-meta,
.recycle-file-description {
    display: block;
    overflow-wrap: anywhere;
}

.recycle-file-name {
    margin-bottom: 3px;
    font-size: 0.76rem;
    font-weight: bold;
    line-height: 1.5;
}

.recycle-file-meta {
    color: var(--desktop-muted);
    font-size: 0.59rem;
}

.recycle-file-description {
    margin-top: 5px;
    font-size: 0.69rem;
    line-height: 1.65;
}

/* Archived file preview windows */

.window-recycle-preview {
    top: 15%;
    left: clamp(220px, 31vw, 400px);

    width: min(610px, calc(100vw - 270px));
    max-width: none;
    max-height: calc(100vh - 145px);

    z-index: 30;
}

.recycle-preview-body {
    min-height: 0;
    overflow-y: auto;
}

.recycle-source-preview {
    max-width: 100%;
    max-height: 44vh;
    margin: 14px 0 0;
    padding: 13px;

    overflow: auto;
    white-space: pre;

    color: #263b38;
    background: #eff2f3;
    border: 1px solid var(--desktop-line);

    font-family: monospace;
    font-size: 0.7rem;
    line-height: 1.6;
}

.recycle-map-figure {
    margin: 15px 0 0;
    padding: 10px;

    background: #eff3f3;
    border: 1px solid var(--desktop-line);
}

.recycle-map-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 55vh;

    object-fit: contain;
}

.recycle-map-figure figcaption {
    margin-top: 8px;
    color: var(--desktop-muted);
    font-size: 0.65rem;
}

@media (max-width: 760px) {
    .window-recycle-preview {
        position: relative !important;
        inset: auto !important;

        width: 100%;
        max-width: none;
        max-height: none;
        margin: 0 0 15px;
    }

    .recycle-source-preview {
        max-height: 40vh;
        font-size: 0.65rem;
    }

    .recycle-map-image {
        max-height: 45vh;
    }
}
/* =========================================================
   WINDOW TITLE BAR
========================================================= */

.window-titlebar {
    flex: 0 0 auto;

    min-height: 42px;
    padding: 7px 10px 7px 13px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    background: var(--window-title-bg);
    border-bottom: 1px solid var(--desktop-line);

    user-select: none;
}

.window-title {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 0.75rem;
    font-weight: bold;

    overflow-wrap: anywhere;
}

.file-type {
    flex: 0 0 auto;

    padding: 4px 5px;

    color: #fff;
    background: #09556a;
    /*background: #66838b;*/
    border-radius: 3px;

    font-size: 0.54rem;
    letter-spacing: 0.04em;
}

.folder-type {
    background: #51b191;
}

.window-controls {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 5px;
}

.window-close {
    width: 27px;
    height: 27px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;

    color: var(--desktop-ink);
    font-size: 1.3rem;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.window-close:hover {
    background: #f3d9d4;
    border-color: #dfb7af;
}


/* =========================================================
   WINDOW BODY
========================================================= */

.window-body {
    min-height: 0;
    padding: 24px 27px;

    overflow-y: auto;
    overscroll-behavior: contain;

    scrollbar-width: thin;
    scrollbar-color: #b8c4c8 #f0f3f4;
}

.window-body::-webkit-scrollbar {
    width: 8px;
}

.window-body::-webkit-scrollbar-track {
    background: #f0f3f4;
}

.window-body::-webkit-scrollbar-thumb {
    background: #b8c6c8;
    border-radius: 4px;
}

.window-eyebrow {
    margin: 0 0 12px;

    color: var(--desktop-muted);

    font-size: 0.62rem;
    line-height: 1.5;
    letter-spacing: 0.12em;
}

.window-body h1,
.window-body h2,
.window-body h3,
.window-body p {
    overflow-wrap: anywhere;
}

.window-body h1 {
    margin: 0 0 14px;

    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: normal;
    line-height: 1.25;
}

.window-body h2 {
    margin: 24px 0 9px;

    font-size: 1rem;
    font-weight: bold;
}

.window-body p {
    font-size: 0.8rem;
    line-height: 1.8;
}

.window-body hr {
    margin: 22px 0;

    border: 0;
    border-top: 1px solid var(--desktop-line);
}

.about-lead {
    max-width: 48ch;

    color: var(--desktop-accent);
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
}

.about-window-signature {
    margin-top: 28px;
    padding-top: 14px;

    border-top: 1px solid var(--desktop-line);

    color: var(--desktop-muted);
    font-size: 0.7rem;
    letter-spacing: 0.025em;
}


/* =========================================================
   WORK LOG
========================================================= */

/* Keep the HTML wrapper  */
.worklog-content-wrap {
    display: contents;
}

/* Work Log content and scrolling */
.worklog-body {
    min-height: 0;
    padding: 21px 22px;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.worklog-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 8px;
}

.worklog-heading h2 {
    margin: 0;

    font-size: 1.05rem;
    font-weight: normal;
    line-height: 1.5;
}

.worklog-heading .window-eyebrow {
    margin-bottom: 5px;
}

.worklog-status {
    flex: 0 0 auto;

    margin-top: 4px;
    padding: 5px 7px;

    /*color: #356c5a;*/
    color:#35777e;
    /*background: #e4f0e8;*/
    background:#e3f2f3;
    /*border: 1px solid #c7dfcf;*/
    border: 1px solid #c5e1e4;
    border-radius: 3px;

    font-size: 0.53rem;
    letter-spacing: 0.06em;
}

.worklog-entry {
    margin-top: 20px;
    padding-top: 16px;

    border-top: 1px solid var(--desktop-line);
}

.worklog-entry time {
    display: block;
    margin-bottom: 8px;

    color: var(--desktop-muted);
    font-size: 0.59rem;
    letter-spacing: 0.08em;
}

.worklog-entry h3 {
    margin: 0 0 6px;

    font-size: 0.82rem;
    line-height: 1.5;
}

.worklog-entry p {
    margin: 0 0 10px;

    font-size: 0.74rem;
    line-height: 1.7;
}

.worklog-category {
    display: inline-block;
    padding: 4px 6px;

    /*color: #557f85*/
    color: #fbfeff;
    /*background: #edf7f7;*/
    background: #09646a;
    border-radius: 3px;

    font-size: 0.54rem;
    letter-spacing: 0.06em;
}

.worklog-todo {
    margin-top: 24px;
    padding: 15px;

    /*background: #f3f6f1;*/
    background: #f0f7f7;
    /*border: 1px solid #dbe4dc;*/
    border: 1px solid #d5e9ea;
    border-radius: 5px;
}

.worklog-todo h3 {
    margin: 0 0 12px;

    font-size: 0.8rem;
}

.worklog-todo ul {
    display: grid;
    gap: 11px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.worklog-todo li {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    font-size: 0.69rem;
    line-height: 1.6;
}

.worklog-todo li.is-complete {
    color: var(--desktop-muted);
}

.worklog-todo li.is-complete .todo-marker {
    color: var(--desktop-accent);
    font-weight: bold;
}

    .worklog-todo li.is-complete > span:last-child {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--desktop-muted);
}

.todo-marker {
    flex: 0 0 auto;

    color: var(--desktop-accent);
    font-size: 1rem;
}

.worklog-footer {
    margin: 18px 0 0;

    color: var(--desktop-muted);
    font-size: 0.62rem !important;
}


/* =========================================================
   CONTACT.TXT
========================================================= */

.contact-window-body pre {
    margin: 14px 0 0;

    font-family: var(--desktop-font);
    font-size: 0.74rem;
    line-height: 2;

    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.contact-window-body pre a {
    color: var(--desktop-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   GEOHERE PREVIEW
========================================================= */

.geohere-window-body h2 {
    margin-top: 8px;
    font-size: 1.6rem;
    font-weight: normal;
}

.geohere-preview-placeholder {
    min-height: 100px;
    margin-top: 20px;
    padding: 18px;

    display: flex;
    align-items: center;
    gap: 13px;

    background: #eef4f4;
    border: 1px dashed #b9c5c8;
    border-radius: 5px;

    color: var(--desktop-muted);
    font-size: 0.7rem;
    line-height: 1.6;
}

.preview-file-icon {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    background: #7b979b;
    border-radius: 5px;

    font-size: 0.67rem;
}

.geohere-status {
    margin-top: 17px;

    color: #9a7540;
    font-size: 0.61rem !important;
    letter-spacing: 0.08em;
}


/* =========================================================
   BOTTOM DOCK
========================================================= */

.desktop-dock {
    position: fixed;
    left: 50%;
    bottom: 17px;

    z-index: 900;

    transform: translateX(-50%);

    max-width: calc(100vw - 24px);
    padding: 8px 10px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    background: rgba(247, 252, 252, 0.83);
    border: 1px solid rgba(91, 112, 122, 0.26);
    border-radius: 13px;

    box-shadow: 0 8px 28px rgba(35, 54, 58, 0.15);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.desktop-dock > a,
.desktop-dock > button {
    appearance: none;
    -webkit-appearance: none;

    flex: 0 0 auto;

    width: 40px;
    height: 40px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--desktop-accent);
    text-decoration: none;
    font-size: 1.25rem;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(68, 124, 115, 0.13);
    border-radius: 8px;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.desktop-dock > a:hover,
.desktop-dock > button:hover {
    transform: translateY(-4px);

    background: #ffffff;
    box-shadow: 0 4px 9px rgba(34, 58, 61, 0.12);
}

.desktop-dock .dock-home {
    color: #ffffff;
    background: var(--desktop-accent);

    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: -0.04em;
}

.dock-divider {
    flex: 0 0 auto;

    width: 1px;
    height: 27px;
    margin: 0 2px;

    background: #cbd3d5;
}


/* =========================================================
   FOOTER
========================================================= */

.desktop-footer {
    min-height: 36px;
    padding: 6px 25px 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    color: var(--desktop-muted);

    font-size: 0.88rem;
    letter-spacing: 0.025em;

    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.9),
         1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px  1px 0 rgba(255, 255, 255, 0.9),
         1px  1px 0 rgba(255, 255, 255, 0.9),
         0 0 5px rgba(255, 255, 255, 0.8);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) and (min-width: 761px) {

    .desktop-icons {
        left: 14px;
        width: 168px;
        gap: 12px 6px;
    }

    .desktop-window {
        max-width: calc(100% - 205px);
    }

    .window-about {
        left: 195px;
        width: min(480px, calc(100vw - 225px));
    }

    .window-worklog {
        right: 17px;
        width: min(345px, calc(100vw - 220px));
    }

    .window-body {
        padding: 21px;
    }

    .worklog-body {
        padding: 18px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    body.desktop-page {
        overflow-x: hidden;
    }

    .desktop-systembar {
        min-height: 48px;
        padding: 9px 14px;
        gap: 10px;
    }

    .desktop-brand {
        gap: 7px;
        font-size: 0.82rem;
    }

    .desktop-brand img {
        height: 23px;
        max-width: 75px;
    }

    .systembar-context {
        display: none;
    }

    .systembar-status {
        font-size: 0.53rem;
        letter-spacing: 0.04em;
    }


    /* Mobile workspace */

    .desktop-workspace {
        min-height: calc(100vh - 48px);
        padding: 17px 12px 20px;
    }


    /* Icons become a compact touch-friendly grid */

    .desktop-icons {
        position: relative;
        inset: auto;

        width: 100%;
        margin-bottom: 21px;

        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .desktop-icon {
        min-height: 82px;
        padding: 8px 2px;
        gap: 6px;
    }

    .desktop-icon-symbol {
        width: 37px;
        height: 37px;
        border-radius: 9px;
        font-size: 1.05rem;
    }

    .desktop-icon-label {
        font-size: 0.6rem;
        line-height: 1.35;
    }


    /* Windows become readable stacked panels */

    .desktop-window,
    .window-about,
    .window-worklog,
    .window-contact,
    .window-geohere {
        position: relative !important;

        inset: auto !important;

        width: 100%;
        max-width: none;

        height: auto;
        max-height: none;

        margin: 0 0 15px;

        transform: none !important;

        border-radius: 7px;
    }

    .desktop-window {
        display: none;
    }

    .desktop-window.is-open {
        display: flex;
    }

    .window-titlebar {
        min-height: 42px;
    }

    .window-body {
        max-height: 58vh;
        padding: 20px;
        overflow-y: auto;
    }

    .window-body h1 {
        font-size: 1.55rem;
    }

    .window-body p {
        font-size: 0.77rem;
    }

    .about-lead {
        font-size: 0.85rem !important;
    }

    .worklog-body {
        padding: 18px;
    }

    .window-contact .window-body,
    .window-geohere .window-body {
        max-height: 65vh;
    }


    /* The dock stays accessible at the bottom */

    .desktop-dock {
        bottom: 9px;

        width: max-content;
        max-width: calc(100vw - 16px);

        gap: 4px;
        padding: 6px;

        border-radius: 11px;
    }

    .desktop-dock > a,
    .desktop-dock > button {
        width: 35px;
        height: 36px;

        font-size: 1.05rem;
    }

    .dock-divider {
        height: 23px;
        margin: 0 1px;
    }


    /* Footer */

    .desktop-footer {
        padding: 0 14px 78px;

        flex-direction: column;
        align-items: flex-start;
        gap: 6px;

        font-size: 0.55rem;
        line-height: 1.6;
    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .desktop-icons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .desktop-icon-label {
        font-size: 0.58rem;
    }

    .desktop-dock > a,
    .desktop-dock > button {
        width: 31px;
        height: 33px;
        font-size: 0.95rem;
    }

    .desktop-dock {
        gap: 3px;
    }

    .window-body {
        padding: 16px;
    }

}

/* =========================================================
   
   ========================================================= */

/* Desktop shortcuts */
.desktop-icon {
    border-radius: 4px;
}

.desktop-icon-symbol {
    border-radius: 6px;
}

/* Main application windows: slightly squarer, still modern */
.desktop-window {
    border-radius: 4px;
}

/* Small labels and controls */
.file-type,
.worklog-status,
.worklog-category {
    border-radius: 2px;
}

.window-close {
    border-radius: 3px;
}

/* Content cards / preview areas */
.worklog-todo,
.geohere-preview-placeholder,
.preview-file-icon {
    border-radius: 4px;
}

.window-body::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

/* Keep the original floating, translucent dock; support text-labelled shortcuts */
.desktop-dock {
    position: fixed;
    left: 50%;
    bottom: 17px;
    z-index: 1000;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;

    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 8px 10px;

    background: rgba(247, 251, 252, 0.83);
    border: 1px solid rgba(91, 116, 122, 0.26);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(35, 49, 58, 0.15);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.desktop-dock .dock-item {
    appearance: none;
    -webkit-appearance: none;

    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    width: auto;
    min-width: 0;
    height: 40px;
    padding: 0 11px;

    color: var(--desktop-accent);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(68, 124, 115, 0.18);
    border-radius: 5px;
    box-shadow: none;

    font-family: var(--desktop-font);
    font-size: 0.72rem;
    font-weight: normal;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.desktop-dock .dock-item:hover {
    color: var(--desktop-ink);
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 9px rgba(34, 61, 49, 0.10);
}

.desktop-dock .dock-item:active {
    transform: translateY(0);
    box-shadow: none;
}

.desktop-dock .dock-item:focus-visible {
    outline: 2px solid var(--desktop-accent);
    outline-offset: 2px;
}

.desktop-dock .dock-home {
    gap: 8px;
    color: #fff;
    background: var(--desktop-accent);
    border-color: var(--desktop-accent);
    font-weight: bold;
}

.desktop-dock .dock-home:hover {
    color: #fff;
    background: #37606a;
}

.desktop-dock .dock-home img {
    display: block;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.desktop-dock .dock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    font-size: 1.4rem;
    line-height: 1;
    
}

/* Responsive dock: retain the same colours and a compact modern shape */
@media (max-width: 760px) {
    .desktop-dock {
        left: 50%;
        bottom: 9px;
        width: max-content;
        max-width: calc(100vw - 16px);
        flex-wrap: nowrap;
        gap: 4px;
        padding: 6px;
        border-radius: 7px;
    }

    .desktop-dock .dock-item {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        height: 36px;
        gap: 6px;
        padding: 0 8px;
        font-size: 0.65rem;
    }

    .desktop-dock .dock-home img {
        width: 20px;
        height: 20px;
    }

    .desktop-dock .dock-icon {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
        font-size: 1rem;
    }
}

@media (max-width: 380px) {
    .desktop-dock {
        gap: 3px;
        padding: 5px;
    }

    .desktop-dock .dock-item {
        gap: 4px;
        padding: 0 6px;
        font-size: 0.59rem;
    }
}

/* =========================================
   PORTFOLIO PREVIEW WINDOW
========================================= */

.desktop-window.window-portfolio {
    position: absolute;
    top: 18px;
    left: max(210px, calc((100vw - 800px) / 2));

    width: min(800px, calc(100vw - 245px));
    height: min(800px, calc(100vh - 130px));

    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;

    display: none;
    flex-direction: column;
    overflow: hidden;
}

.desktop-window.window-portfolio.is-open {
    display: flex;
}

/* Container below the title bar */
.desktop-window.window-portfolio .portfolio-window-content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;

    width: 100%;
    height: 0;
    min-width: 0;
    min-height: 0;

    padding: 0;
    overflow: hidden;
}

/* Desktop: 70% preview */
.desktop-window.window-portfolio #portfolio-frame {
    display: block;
    flex: 0 0 auto;

    width: 142.857%;
    height: 142.857%;
    max-width: none;
    min-width: 0;
    min-height: 0;

    border: 0;
    background: #fff;

    transform: scale(0.7);
    transform-origin: top left;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) and (min-width: 761px) {
    .desktop-window.window-portfolio {
        top: 12px;
        left: 12px;

        width: calc(100% - 24px);
        height: calc(100vh - 125px);
    }
}

/* =========================================
   MOBILE — USE NATIVE RESPONSIVE PAGE
========================================= */

@media (max-width: 760px) {
    .desktop-window.window-portfolio {
        position: relative !important;
        inset: auto !important;

        width: 100%;
        height: 72vh;
        min-height: 360px;

        max-width: none;
        max-height: none;

        margin: 0 0 18px;
        padding: 0;
        overflow: hidden;

        transform: none !important;
    }

    .desktop-window.window-portfolio.is-open {
        display: flex;
    }

    .desktop-window.window-portfolio > .window-titlebar {
        flex: 0 0 auto;
    }

    .desktop-window.window-portfolio .portfolio-window-content {
        flex: 1 1 0;
        width: 100%;
        height: 0;
        min-height: 0;

        padding: 0;
        overflow: hidden;
    }

    .desktop-window.window-portfolio #portfolio-frame {
        flex: 1 1 auto;

        width: 100% !important;
        height: 100% !important;

        min-width: 0;
        min-height: 0;

        transform: none !important;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .desktop-window.window-portfolio {
        height: 68vh;
        min-height: 340px;
    }
}

/* =========================================
   WIDER FOLDER-SHAPED DESKTOP ICONS
========================================= */

.desktop-icon-symbol {
    position: relative;
    overflow: visible;

    width: 58px;
    height: 38px;
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--desktop-accent);
    background: rgba(250, 252, 248, 0.94);
    border: 1px solid rgba(68, 124, 115, 0.38);
    border-radius: 3px;

    box-shadow: 0 2px 5px rgba(36, 69, 58, 0.07);
}

/* Folder tab */
.desktop-icon-symbol::before {
    content: "";
    position: absolute;

    top: -7px;
    left: 5px;

    width: 25px;
    height: 8px;

    background: rgba(250, 252, 248, 0.97);
    border: 1px solid rgba(68, 124, 115, 0.38);
    border-bottom: none;
    border-radius: 3px 3px 0 0;
}

/* Subtle hover */
.desktop-icon:hover .desktop-icon-symbol {
    background: #ffffff;
    border-color: var(--desktop-accent);
    box-shadow: 0 3px 8px rgba(36, 69, 58, 0.13);
}

.desktop-icon:hover .desktop-icon-symbol::before {
    background: #ffffff;
    border-color: var(--desktop-accent);
}

/* Keep the folder proportions on mobile */
@media (max-width: 760px) {
    .desktop-icon-symbol {
        width: 52px;
        height: 35px;
        flex-basis: 35px;
    }

    .desktop-icon-symbol::before {
        top: -6px;
        left: 4px;
        width: 22px;
        height: 7px;
    }
}