@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Space+Mono&display=swap');

:root {
    --os2-grey: #c0c0c0;
    --os2-blue: #000080;
    --os2-blue-light: #1084d0;
    --os2-border-light: #ffffff;
    --os2-border-dark: #808080;
    --os2-border-black: #000000;
    --text-color: #000000;
}

/* SEO Optimization: Visually Hidden but readable by screen readers/bots */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body,
button,
select,
input,
textarea,
h1,
h2,
h3,
p,
span,
a {
    font-family: inherit;
    transition: font-family 0.1s ease;
}

body {
    background-color: var(--os2-grey);
    color: var(--text-color);
    font-family: "Times New Roman", Times, serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Minimal OS/2 loading strip — indeterminate, shown only during transitions */
#load-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 99999;
    background: var(--os2-grey);
    border-bottom: 1px solid var(--os2-border-black);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.15s ease;
}

#load-bar.active {
    opacity: 1;
}

#load-bar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 32%;
    background: var(--os2-blue);
    animation: load-bar-slide 1s linear infinite;
}

@keyframes load-bar-slide {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(420%); }
}

/* Background Shader */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

/* Splash Container (Full Screen Overlay) */
#splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #fff 0%, #eee 100%);
    perspective: 2000px;
    transition: background 2s ease;
    user-select: none;
    -webkit-user-select: none;
}

#splash-scene {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    pointer-events: none;
    /* Let clicks pass to blocks */
}

#splash-ring {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    /* Rotation handled by JS for smooth stop/start */
    pointer-events: auto;
}

.splash-block {
    position: absolute;
    width: 180px;
    aspect-ratio: 1;
    transform-style: preserve-3d;
    transition: opacity 1s ease-in-out, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    backface-visibility: visible;
}

.splash-block-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--os2-border-black);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1);
    filter: grayscale(100%);
    animation: blockRotate 15s infinite linear;
}

@keyframes blockRotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.splash-block.loaded {
    opacity: 1;
}

.splash-block.dimmed {
    opacity: 0;
    pointer-events: none;
}

.splash-block.selected {
    z-index: 1000;
    opacity: 1;
}

.splash-block.selected .splash-block-inner {
    background-color: #fff;
    filter: grayscale(0%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    animation: none;
    transform: none !important;
}

.splash-block:hover .splash-block-inner {
    filter: grayscale(0%);
}

.block-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 100;
    font-family: inherit;
    border: 1px solid #fff;
}

.splash-block:hover .block-tooltip {
    opacity: 1;
}

/* Info Window (Description Box) */
.splash-info-window {
    position: fixed;
    top: 60px;
    right: 10%;
    /* Moved closer to center on large screens */
    width: 320px;
    max-width: 85vw;
    /* Wider limit for mobile */
    background: var(--os2-grey);
    border: 2px solid var(--os2-border-black);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, right 0.5s ease;
}

@media (max-width: 1100px) {
    .splash-info-window {
        width: 250px;
        right: 15px;
    }

    .info-content {
        padding: 10px;
        font-size: 0.75rem;
        max-height: 200px;
        /* Shorter for smaller screens */
    }
}

@media (max-width: 768px) {
    .splash-info-window {
        width: 190px;
        right: 5px;
        top: auto;
        bottom: 5px;
        transform: none;
    }

    .info-content {
        padding: 8px;
        font-size: 0.7rem;
        max-height: 150px;
        /* Shorter for smaller screens */
    }

    .info-controls {
        padding: 5px;
        gap: 3px;
    }

    .control-group label {
        font-size: 7px;
    }
}

.splash-info-window.visible {
    opacity: 1;
    pointer-events: all;
}

.info-header {
    background: #444;
    background: linear-gradient(180deg, #666 0%, #000 100%);
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-btn-group {
    display: flex;
    gap: 4px;
}

.info-header-btn {
    background: var(--os2-grey);
    border: 1px solid;
    border-color: var(--os2-border-light) var(--os2-border-dark) var(--os2-border-dark) var(--os2-border-light);
    font-size: 9px;
    padding: 0 4px;
    cursor: pointer;
    line-height: normal;
}

.info-content {
    background: #fff;
    margin: 4px;
    padding: 15px;
    border: 1px inset var(--os2-border-dark);
    font-size: 0.8rem;
    max-height: 300px;
    overflow-y: auto;
    color: #000;
}

.rich-text {
    line-height: 1.45;
}

.rich-text p {
    margin: 0 0 10px 0;
}

.info-content .rich-text,
.case-dossier .rich-text {
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.info-content .rich-text {
    font-size: 0.8rem;
}

.rich-link,
.case-link {
    color: var(--os2-blue);
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    margin-top: 6px;
    overflow-wrap: anywhere;
    text-decoration: underline;
}

.info-controls {
    background: var(--os2-grey);
    border-top: 1px solid var(--os2-border-dark);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.control-group label {
    display: block;
    font-size: 9px;
    font-weight: bold;
    color: #444;
}

.os2-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #fff;
    border: 1px inset var(--os2-border-dark);
    outline: none;
}

.os2-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 12px;
    background: var(--os2-grey);
    border: 1px solid;
    border-color: var(--os2-border-light) var(--os2-border-dark) var(--os2-border-dark) var(--os2-border-light);
    cursor: pointer;
}

.os2-slider::-moz-range-thumb {
    width: 20px;
    height: 12px;
    background: var(--os2-grey);
    border: 1px solid;
    border-color: var(--os2-border-light) var(--os2-border-dark) var(--os2-border-dark) var(--os2-border-light);
    cursor: pointer;
}

.info-close {
    background: var(--os2-grey);
    border: 1px solid;
    border-color: var(--os2-border-light) var(--os2-border-dark) var(--os2-border-dark) var(--os2-border-light);
    width: 14px;
    height: 14px;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keyboard Hints Tooltip */
.kb-hint {
    position: relative;
    cursor: help;
    text-decoration: underline dotted;
    font-size: 9px;
    color: var(--os2-blue-light);
}

.kb-tooltip {
    visibility: hidden;
    width: 180px;
    background-color: #000;
    color: #fff;
    text-align: left;
    padding: 10px;
    border: 1px solid #fff;
    position: absolute;
    z-index: 3000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-family: monospace;
    font-size: 10px;
    line-height: 1.4;
    pointer-events: none;
}

.kb-hint:hover .kb-tooltip {
    visibility: visible;
    opacity: 1;
}

#splash-center-text {
    position: absolute;
    text-align: center;
    font-weight: 900;
    font-size: clamp(30px, 6vw, 80px);
    line-height: 0.9;
    letter-spacing: 1px;
    color: #000;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 2;
    font-family: "Times New Roman", Times, serif;
    user-select: none;
}

/* Navigation Control Panel (Retro Dropdown) */
.nav-control-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.nav-control-panel label {
    display: none;
}

#system-nav {
    background: #fff;
    border: 1px solid #000;
    padding: 2px 5px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    min-width: 250px;
    box-shadow: inset 1px 1px 1px #888;
}

/* System Controls (Top Right) */
.system-controls {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 2000;
    display: flex;
    gap: 10px;
}

.os2-btn {
    background: var(--os2-grey);
    border: 2px solid;
    border-color: var(--os2-border-light) var(--os2-border-dark) var(--os2-border-dark) var(--os2-border-light);
    padding: 4px 12px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.os2-btn:active {
    border-color: var(--os2-border-dark) var(--os2-border-light) var(--os2-border-light) var(--os2-border-dark);
    transform: translate(1px, 1px);
    box-shadow: none;
}

/* Window Manager & OS/2 Windows */
#window-manager {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    /* Ensure windows are above splash */
}

.os2-window {
    position: absolute;
    background: var(--os2-grey);
    border: 2px solid var(--os2-border-black);
    width: 400px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    transition: transform 0.2s ease-out;
}

.window-header {
    background: #444;
    background: linear-gradient(180deg, #666 0%, #000 100%);
    color: #fff;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--os2-border-dark);
    gap: 8px;
}

.window-title {
    font-size: 11px;
    font-weight: bold;
    text-shadow: 1px 1px #000;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-controls {
    display: flex;
    flex-shrink: 0;
    gap: 1px;
}

.win-btn {
    width: 16px;
    height: 14px;
    background: var(--os2-grey);
    border: 1px solid;
    border-color: var(--os2-border-light) var(--os2-border-dark) var(--os2-border-dark) var(--os2-border-light);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.window-content {
    flex-grow: 1;
    background: #fff;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Minimised: rolled up into its own title bar (OS/2 "shade"). */
.os2-window.minimized {
    min-height: 0;
    height: auto;
}

.os2-window.minimized .window-content {
    display: none;
}

.os2-window.minimized .window-header {
    border-bottom: none;
}

/* Maximised: fills the window manager. */
.os2-window.maximized {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    box-shadow: none;
}

.os2-window.maximized .window-content {
    max-height: none;
}

/* Terminal Styles */
.terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    line-height: 1.2;
    background: #000;
    color: #ffffff;
    padding: 10px;
}

.terminal-input-row {
    display: flex;
    background: #000;
    color: #ffffff;
    padding: 2px 10px 5px 10px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    flex-grow: 1;
    margin-left: 5px;
}

.terminal-prompt {
    color: #ffffff;
}

/* Hidden Mirror Device */
.mirror-device-window {
    width: min(760px, calc(100vw - 80px));
}

.mirror-device-window .window-content {
    background: var(--os2-grey);
    overflow: hidden;
}

.mirror-device {
    background: var(--os2-grey);
    color: #000;
    min-height: 360px;
    padding: 8px;
    position: relative;
}

.mirror-video-probe {
    height: 120px;
    left: -10000px;
    opacity: 1;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: scaleX(-1);
    width: 160px;
}

.mirror-boot,
.mirror-stage {
    background: #fff;
    border: 1px inset var(--os2-border-dark);
    box-sizing: border-box;
}

.mirror-boot {
    min-height: 330px;
    padding: 22px;
}

.mirror-boot strong {
    border-bottom: 2px solid #000;
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.82rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    text-transform: uppercase;
}

.mirror-boot p {
    font-size: 0.9rem;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.mirror-privacy {
    background: #efefef;
    border: 1px dotted #777;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem !important;
    padding: 9px;
    text-transform: uppercase;
}

.mirror-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 12px 0;
}

.mirror-status,
.mirror-readout {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.mirror-status {
    color: var(--os2-blue);
}

.mirror-stage {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px;
}

.mirror-canvas {
    aspect-ratio: 4 / 3;
    background: #f4f4f4;
    border: 1px solid #000;
    display: block;
    image-rendering: crisp-edges;
    max-height: min(62vh, 560px);
    width: 100%;
}

.mirror-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 6px;
}

.mirror-toolbar .os2-btn {
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    min-width: 0;
    overflow: hidden;
    padding: 5px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mirror-mode-btn.is-active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.mirror-readout {
    background: #000;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 6px;
}

.mirror-readout span {
    background: var(--os2-grey);
    color: #000;
    padding: 5px 7px;
}

/* Content specific styling */
.client-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.75rem;
}

.client-list span {
    display: block;
    border-bottom: 1px dotted #ccc;
    padding: 2px 0;
}

.entry {
    border-bottom: 1px dotted #ccc;
    padding: 5px 0;
}

.entry-year {
    font-weight: bold;
    color: var(--os2-blue);
    margin-right: 10px;
}

.exhibition-list {
    color: #000;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 8px;
}

.exhibition-section + .exhibition-section {
    margin-top: 12px;
}

.exhibition-section-title {
    background: #000;
    color: #fff;
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 0;
    margin-bottom: 6px;
    padding: 3px 6px;
}

.exhibition-card {
    background: #fff;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
    margin-bottom: 10px;
    padding: 8px;
}

.exhibition-card-upcoming,
.exhibition-card-current {
    background: #f6f6f6;
}

.exhibition-card-current {
    border-color: var(--os2-blue);
}

.exhibition-card-head {
    align-items: center;
    border-bottom: 1px dotted #808080;
    display: flex;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 7px;
    padding-bottom: 5px;
}

.exhibition-status {
    background: var(--os2-blue);
    color: #fff;
    font-weight: bold;
    padding: 1px 5px;
}

.exhibition-date {
    font-weight: bold;
    text-align: right;
}

.exhibition-card h3 {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1;
    margin: 0 0 8px;
}

.exhibition-meta {
    border: 1px solid #000;
    display: grid;
    margin-bottom: 8px;
}

.exhibition-meta div {
    display: grid;
    gap: 8px;
    grid-template-columns: 64px 1fr;
}

.exhibition-meta div + div {
    border-top: 1px dotted #999;
}

.exhibition-meta span,
.exhibition-meta strong {
    padding: 4px 6px;
}

.exhibition-meta span {
    background: var(--os2-grey);
    border-right: 1px solid #000;
    font-weight: bold;
}

.exhibition-meta strong {
    font-weight: normal;
}

.exhibition-schedule {
    border: 1px solid #000;
    display: grid;
    font-size: 0.68rem;
    margin-bottom: 7px;
}

.exhibition-schedule div {
    align-items: stretch;
    display: grid;
    grid-template-columns: 76px 78px 1fr;
}

.exhibition-schedule div + div {
    border-top: 1px dotted #999;
}

.exhibition-schedule span,
.exhibition-schedule strong,
.exhibition-schedule em {
    padding: 3px 5px;
}

.exhibition-schedule span {
    background: #000;
    color: #fff;
    font-weight: bold;
}

.exhibition-schedule strong {
    border-right: 1px dotted #999;
    font-weight: bold;
}

.exhibition-schedule em {
    font-style: normal;
}

.exhibition-note {
    background: #efefef;
    border: 1px dotted #808080;
    font-size: 0.66rem;
    margin-bottom: 8px;
    padding: 4px 6px;
}

.exhibition-card p {
    line-height: 1.35;
    margin: 0;
}

/* Contact Brief */
.brief-contact-window {
    width: min(680px, calc(100vw - 80px));
}

.brief-contact {
    box-sizing: border-box;
    color: #000;
    padding: 18px;
}

.brief-contact-head {
    border-bottom: 2px solid #000;
    margin-bottom: 14px;
    padding-bottom: 10px;
}

.brief-contact-head h3 {
    font-size: 1.5rem;
    line-height: 1;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.brief-contact-head p {
    font-size: 0.9rem;
    line-height: 1.35;
    margin: 0;
}

.brief-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.brief-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.brief-form label span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
    background: #fff;
    border: 1px inset var(--os2-border-dark);
    border-radius: 0;
    box-sizing: border-box;
    color: #000;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 7px;
    width: 100%;
}

.brief-form textarea {
    line-height: 1.35;
    resize: vertical;
}

.brief-privacy {
    background: #f2f2f2;
    border: 1px dotted #777;
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 18px 1fr;
    gap: 8px !important;
    padding: 10px;
    width: 100%;
}

.brief-privacy input {
    margin: 2px 0 0 0;
    width: auto;
}

.brief-privacy span {
    font-family: "Times New Roman", Times, serif !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
    line-height: 1.3;
    text-transform: none !important;
}

.brief-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.brief-actions span {
    color: #555;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: bold;
}

.brief-footer {
    border-top: 1px dotted #000;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 16px;
    padding-top: 12px;
}

.brief-footer a {
    color: var(--os2-blue);
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
}

.legal-note-btn {
    background: none;
    border: 0;
    color: var(--os2-blue);
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    padding: 0;
    text-decoration: underline;
}

.privacy-notice {
    color: #000;
    padding: 16px;
}

.privacy-notice h3 {
    border-bottom: 2px solid #000;
    font-size: 1.3rem;
    line-height: 1;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    text-transform: uppercase;
}

.privacy-notice p {
    font-size: 0.86rem;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

/* --- Away Notice dialog ---------------------------------------------------- */
.away-notice-window {
    width: min(420px, calc(100vw - 32px));
    min-height: 0;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.away-notice {
    color: #000;
    padding: 16px;
}

.away-notice-status {
    display: inline-block;
    margin-bottom: 12px;
    padding: 2px 6px;
    background: var(--os2-blue, #000080);
    color: #fff;
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.away-notice h3 {
    border-bottom: 2px solid #000;
    font-size: 1.3rem;
    line-height: 1;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    text-transform: uppercase;
}

.away-notice p {
    font-size: 0.86rem;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.away-notice-hint {
    padding: 8px 10px;
    border: 1px dotted #808080;
    background: #d4d4d4;
    font-style: italic;
}

.away-notice-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.listmonk-form {
    margin-top: 16px;
}

.newsletter-panel {
    background: #f2f2f2;
    border: 1px dotted #777;
    box-sizing: border-box;
    padding: 12px;
}

.newsletter-head {
    align-items: baseline;
    border-bottom: 1px dotted #000;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.newsletter-head span {
    color: #555;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    font-weight: bold;
}

.newsletter-head strong {
    font-size: 1rem;
    line-height: 1;
    text-transform: uppercase;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: end;
    gap: 10px;
    margin-bottom: 10px;
}

.newsletter-grid label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.newsletter-grid label span,
.newsletter-list span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.newsletter-grid input {
    background: #fff;
    border: 1px inset var(--os2-border-dark);
    border-radius: 0;
    box-sizing: border-box;
    color: #000;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 7px;
    width: 100%;
}

.newsletter-grid .os2-btn {
    min-height: 31px;
    white-space: nowrap;
}

.newsletter-list {
    align-items: start;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    margin-bottom: 0;
}

.newsletter-list input {
    margin: 1px 0 0 0;
}

.newsletter-list span {
    line-height: 1.3;
    text-transform: none;
}

/* Client View Index */
body.client-view-active #splash-ring {
    opacity: 0.28;
}

body.client-view-active #splash-center-text {
    opacity: 0.18;
}

.client-view-index {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(1120px, calc(100vw - 80px));
    max-height: min(720px, calc(100vh - 120px));
    transform: translate(-50%, -45%);
    z-index: 850;
    pointer-events: all;
    color: #000;
}

.client-view-window {
    background: var(--os2-grey);
    border: 2px solid var(--os2-border-black);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.client-view-header {
    background: linear-gradient(180deg, #666 0%, #000 100%);
    border-bottom: 2px solid var(--os2-border-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    text-shadow: 1px 1px #000;
}

.client-view-toolbar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #000;
    border-bottom: 1px solid #000;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
}

.client-view-toolbar span {
    background: var(--os2-grey);
    padding: 5px 8px;
}

.client-view-copy {
    background: #fff;
    border: 1px inset var(--os2-border-dark);
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin: 8px;
    padding: 14px 16px;
    font-size: 0.82rem;
    line-height: 1.25;
}

.client-view-copy strong {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
}

.client-table-wrap {
    background: #fff;
    border: 1px inset var(--os2-border-dark);
    margin: 0 8px 8px 8px;
    overflow: auto;
}

.client-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    table-layout: fixed;
}

.client-table th {
    position: sticky;
    top: 0;
    background: #000;
    color: #fff;
    text-align: left;
    padding: 5px 6px;
    z-index: 1;
}

.client-table th:nth-child(1) {
    width: 78px;
}

.client-table th:nth-child(2) {
    width: 88px;
}

.client-table th:nth-child(4) {
    width: 118px;
}

.client-table td {
    border-bottom: 1px dotted #aaa;
    padding: 10px 8px;
    vertical-align: middle;
}

.client-table tr:hover td {
    background: #e8e8e8;
}

.case-id {
    color: var(--os2-blue);
    font-weight: bold;
    white-space: nowrap;
}

.case-thumb-cell {
    width: 88px;
}

.case-thumb {
    width: 64px;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border: 1px solid #000;
    filter: grayscale(100%);
    transition: filter 0.2s ease;
}

.client-table tr:hover .case-thumb {
    filter: grayscale(0%);
}

.case-title {
    min-width: 0;
    padding-right: 22px !important;
}

.case-title strong,
.case-title span {
    display: block;
}

.case-title strong {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.1rem;
    line-height: 1.05;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.case-title span {
    color: #444;
    font-size: 10px;
    line-height: 1.3;
    margin-top: 6px;
    max-width: 760px;
}

.case-link {
    font-size: 10px;
}

.case-title small {
    color: #000;
    display: block;
    font-size: 9px;
    line-height: 1.3;
    margin-top: 8px;
}

.case-actions {
    text-align: right;
    white-space: nowrap;
}

.index-btn {
    background: var(--os2-grey);
    border: 1px solid;
    border-color: var(--os2-border-light) var(--os2-border-dark) var(--os2-border-dark) var(--os2-border-light);
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    font-size: 9px;
    font-weight: bold;
    padding: 4px 8px;
}

.index-btn:active {
    border-color: var(--os2-border-dark) var(--os2-border-light) var(--os2-border-light) var(--os2-border-dark);
}

.case-dossier {
    color: #000;
    padding: 14px;
}

.case-dossier-window {
    width: min(760px, calc(100vw - 80px));
}

.case-hero {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border: 1px solid #000;
    filter: grayscale(100%);
    margin-bottom: 12px;
    transition: filter 0.25s ease;
}

.case-hero:hover {
    filter: grayscale(0%);
}

.case-meta-grid {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 1px;
    background: #000;
    border: 1px solid #000;
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    margin-bottom: 14px;
}

.case-meta-grid span,
.case-meta-grid strong {
    background: #fff;
    padding: 5px 7px;
}

.case-meta-grid span {
    color: #555;
}

.case-dossier h3 {
    border-bottom: 2px solid #000;
    font-size: 1.4rem;
    line-height: 1;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.case-dossier p {
    font-size: 0.88rem;
    line-height: 1.35;
}

/* Orientation Warning */
#orientation-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: #000;
    color: #fff;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.warning-box {
    border: 4px solid #f00;
    padding: 30px;
    box-sizing: border-box;
    max-width: min(400px, 100%);
}

.icon-rotate {
    font-size: 4rem;
    margin-top: 20px;
    animation: rotate 2s infinite linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    #splash-center-text {
        font-size: 2rem;
        width: 90%;
    }

    .nav-control-panel {
        transform: translate(-50%, 100px);
    }

    #system-nav {
        min-width: 200px;
        font-size: 0.8rem;
    }

    .os2-window {
        width: 95%;
        height: auto;
        left: 2.5% !important;
        top: 2.5% !important;
        max-height: 90vh;
    }

    .window-content {
        max-height: 60vh;
    }

    .client-view-index {
        width: 95vw;
        max-height: 78vh;
        transform: translate(-50%, -43%);
    }

    .client-view-toolbar {
        grid-template-columns: 1fr;
    }

    .client-view-copy {
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 0.75rem;
    }

    .client-table {
        min-width: 760px;
    }

    .case-dossier-window {
        width: 95%;
    }

    .mirror-device-window {
        width: 95%;
    }

    .mirror-device {
        min-height: auto;
    }

    .mirror-boot {
        min-height: 260px;
        padding: 16px;
    }

    .mirror-readout {
        grid-template-columns: 1fr;
    }

    .mirror-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brief-contact-window {
        width: 95%;
    }

    .brief-grid {
        grid-template-columns: 1fr;
    }

    .brief-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .brief-footer {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .newsletter-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
    }
}

@media (orientation: portrait) and (max-width: 600px) {
    #orientation-warning {
        display: flex;
    }
}

/* BSOD Overlay */
#bsod-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000080;
    /* OS/2 Blue */
    color: #ffffff;
    z-index: 10001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    font-family: "Courier New", Courier, monospace;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
}

.bsod-header {
    background: #ffffff;
    color: #000080;
    padding: 2px 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.bsod-code {
    font-weight: bold;
    margin-bottom: 20px;
}

.bsod-instructions {
    max-width: 600px;
}
