#timeMachineOverlay {
    position: fixed;
    inset: 0;
    z-index: 10030;
    display: none;
    overflow: hidden;
    color: #f7fbff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% 42%, rgba(13, 108, 94, .34), transparent 31%),
        radial-gradient(circle at 18% 72%, rgba(24, 62, 96, .38), transparent 34%),
        linear-gradient(180deg, #03110f 0%, #020807 56%, #010303 100%);
    isolation: isolate;
}

#timeMachineOverlay.open {
    display: block;
    animation: tm-overlay-enter .65s cubic-bezier(.2, .8, .2, 1) both;
}

#timeMachineOverlay:focus {
    outline: none;
}

#timeMachineOverlay::before,
#timeMachineOverlay::after {
    content: "";
    position: absolute;
    inset: -35%;
    z-index: -2;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(153,255,226,.62) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255,255,255,.34) 0 .8px, transparent 1.3px);
    background-size: 89px 89px, 137px 137px, 53px 53px;
    background-position: 8px 14px, 31px 61px, 19px 7px;
    transform-origin: 50% 50%;
    animation: tm-star-drift 34s linear infinite;
}

#timeMachineOverlay::after {
    z-index: -1;
    opacity: .45;
    filter: blur(.35px);
    transform: rotate(18deg) scale(1.18);
    animation-duration: 52s;
    animation-direction: reverse;
}

/* Three.js is loaded only after the Time Machine opens. This layer sits behind
   the existing Finder snapshots; the star gradients above remain the complete
   no-WebGL and reduced-capability fallback. */
.tm-webgl-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .55s ease;
    contain: strict;
}

#timeMachineOverlay.tm-webgl-active .tm-webgl-layer {
    opacity: .96;
}

#timeMachineOverlay.tm-webgl-context-lost .tm-webgl-layer {
    opacity: 0;
}

#timeMachineOverlay.tm-webgl-active.tm-webgl-context-lost::before {
    opacity: 1;
}

#timeMachineOverlay.tm-webgl-active.tm-webgl-context-lost::after {
    opacity: .45;
}

.tm-webgl-canvas {
    display: block;
    width: 100%;
    height: 100%;
    filter: saturate(1.16) contrast(1.05);
}

.tm-webgl-layer::before,
.tm-webgl-layer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tm-webgl-layer::before {
    z-index: 1;
    background:
        radial-gradient(ellipse at center, transparent 20%, rgba(0,3,4,.12) 64%, rgba(0,2,3,.72) 100%),
        linear-gradient(180deg, rgba(0,0,0,.16), transparent 22% 76%, rgba(0,0,0,.24));
}

.tm-webgl-layer::after {
    z-index: 2;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 48%, rgba(255,255,255,.7), rgba(91,235,255,.24) 7%, transparent 30%),
        repeating-radial-gradient(circle at 50% 48%, transparent 0 7%, rgba(117,244,255,.14) 7.3% 7.7%, transparent 8% 15%);
}

.tm-webgl-layer.is-temporal .tm-webgl-canvas {
    filter: saturate(1.3) contrast(1.08) hue-rotate(-4deg);
}

.tm-webgl-layer.is-warping::after {
    animation: tm-webgl-warp-pulse 1.35s cubic-bezier(.14,.73,.2,1) both;
}

#timeMachineOverlay.tm-webgl-active::before,
#timeMachineOverlay.tm-webgl-active::after {
    opacity: .16;
    transition: opacity .55s ease;
}

body.time-machine-active {
    overflow: hidden;
}

body.time-machine-active > .dock {
    opacity: 0 !important;
    transform: translateY(34px) scale(.96) !important;
    pointer-events: none !important;
}

.tm-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
}

.tm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px clamp(16px, 3vw, 42px);
    border-bottom: 1px solid rgba(174,255,229,.16);
    background: linear-gradient(180deg, rgba(2,13,11,.91), rgba(2,10,9,.56));
}

.tm-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.tm-brand-icon,
.tm-spotlight-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border: 1px solid rgba(161,255,226,.5);
    border-radius: 50%;
    color: #b8ffe9;
    font-size: 25px;
    line-height: 1;
    background: rgba(21,124,101,.28);
    box-shadow: inset 0 0 18px rgba(112,255,214,.15), 0 0 20px rgba(54,255,202,.14);
}

.tm-brand-copy {
    min-width: 0;
}

.tm-brand-title {
    overflow: hidden;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 650;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-brand-subtitle {
    margin-top: 2px;
    color: rgba(227,255,247,.58);
    font-size: 12px;
}

.tm-exit,
.tm-nav-button,
.tm-open-project,
.tm-destination-button,
.tm-return-button {
    min-height: 36px;
    border: 1px solid rgba(191,255,236,.27);
    border-radius: 10px;
    color: #f4fffb;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 8px 24px rgba(0,0,0,.2);
    cursor: pointer;
}

.tm-exit {
    padding: 0 15px;
}

.tm-exit:hover,
.tm-nav-button:hover,
.tm-open-project:hover,
.tm-destination-button:hover,
.tm-return-button:hover {
    border-color: rgba(184,255,233,.6);
    background: linear-gradient(180deg, rgba(132,255,217,.24), rgba(31,139,111,.18));
}

.tm-exit:focus-visible,
.tm-nav-button:focus-visible,
.tm-open-project:focus-visible,
.tm-destination-button:focus-visible,
.tm-return-button:focus-visible,
.tm-year-button:focus-visible,
.tm-destination-input:focus-visible,
.tm-range:focus-visible {
    outline: 2px solid #8dffdc;
    outline-offset: 3px;
}

.tm-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 0;
}

.tm-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    perspective: 1250px;
    perspective-origin: 50% 46%;
}

.tm-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5%;
    width: min(720px, 70vw);
    height: 26%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(72,255,199,.13), transparent 66%);
    filter: blur(15px);
    transform: translateX(-50%);
    pointer-events: none;
}

.tm-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(780px, calc(100vw - 190px));
    height: min(590px, calc(100vh - 210px));
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(220,255,245,.26);
    border-radius: 17px;
    color: #17201e;
    background: rgba(243,247,246,.96);
    box-shadow: 0 34px 90px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.22) inset;
    transform: translate3d(calc(-50% + var(--tm-x, 0px)), calc(-50% + var(--tm-y, 0px)), var(--tm-z, 0px)) scale(var(--tm-scale, 1));
    opacity: var(--tm-opacity, 1);
    transition: transform .62s cubic-bezier(.2,.74,.18,1), opacity .46s ease, filter .46s ease;
    transform-style: preserve-3d;
}

.tm-frame:not(.active) {
    filter: saturate(.62) brightness(.56);
    pointer-events: none;
}

.tm-frame-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(0,0,0,.12);
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(228,234,232,.96));
}

.tm-traffic {
    display: flex;
    gap: 7px;
    flex: 0 0 auto;
}

.tm-traffic span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.13);
}

.tm-traffic span:nth-child(1) { background: #ff5f57; }
.tm-traffic span:nth-child(2) { background: #febc2e; }
.tm-traffic span:nth-child(3) { background: #28c840; }

.tm-frame-heading {
    min-width: 0;
    flex: 1;
    text-align: center;
}

.tm-frame-title {
    overflow: hidden;
    color: #18201e;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-frame-subtitle {
    margin-top: 2px;
    color: #66706d;
    font-size: 11px;
}

.tm-year-badge {
    min-width: 62px;
    padding: 5px 9px;
    border: 1px solid rgba(24,107,87,.18);
    border-radius: 999px;
    color: #176f5b;
    font-size: 12px;
    font-weight: 750;
    text-align: center;
    background: rgba(47,191,153,.11);
}

.tm-frame-body {
    min-height: 0;
    overflow: auto;
    padding: clamp(14px, 2vw, 22px);
    background:
        linear-gradient(135deg, rgba(255,255,255,.72), rgba(234,240,238,.86)),
        radial-gradient(circle at 70% 10%, rgba(35,183,145,.09), transparent 38%);
}

.tm-era-copy {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.tm-era-title {
    color: #15201d;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 720;
    letter-spacing: -.04em;
}

.tm-era-summary {
    max-width: 430px;
    margin-top: 5px;
    color: #58635f;
    font-size: 13px;
    line-height: 1.45;
}

.tm-count {
    flex: 0 0 auto;
    color: #6a7571;
    font-size: 11px;
    white-space: nowrap;
}

.tm-project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tm-project-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    color: #17201e;
    text-align: left;
    background: rgba(255,255,255,.8);
    box-shadow: 0 7px 20px rgba(21,47,40,.08);
}

button.tm-project-card {
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.tm-project-card:hover {
    border-color: rgba(18,145,112,.42);
    box-shadow: 0 12px 26px rgba(21,93,73,.15);
    transform: translateY(-2px);
}

.tm-project-card:focus-visible {
    outline: 3px solid #20a982;
    outline-offset: 2px;
}

.tm-project-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: linear-gradient(135deg, #253d37, #14221f);
}

.tm-project-copy {
    display: block;
    padding: 10px 11px 11px;
}

.tm-project-title {
    display: block;
    overflow: hidden;
    color: #19211f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-project-role {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #64706c;
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-frame-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 14px;
    border-top: 1px solid rgba(0,0,0,.1);
    color: #65706c;
    font-size: 11px;
    background: rgba(232,237,235,.96);
}

.tm-frame-footer strong {
    color: #26332f;
}

html[data-theme="light"] #timeMachineOverlay .tm-frame {
    color-scheme: light;
}

/* The archived Finder windows inherit the desktop's active appearance. The
   surrounding time tunnel stays cinematic, while the work surface itself
   remains recognizably the same light or dark macOS environment. */
html[data-theme="dark"] #timeMachineOverlay .tm-frame {
    color-scheme: dark;
    border-color: rgba(255,255,255,.18);
    color: #f5f5f7;
    background: rgba(29,29,32,.97);
    box-shadow: 0 34px 90px rgba(0,0,0,.72), 0 0 0 1px rgba(255,255,255,.08) inset;
}

html[data-theme="dark"] #timeMachineOverlay .tm-frame-header {
    border-bottom-color: rgba(255,255,255,.1);
    background: linear-gradient(180deg, rgba(62,62,66,.98), rgba(39,39,43,.97));
}

html[data-theme="dark"] #timeMachineOverlay .tm-frame-title,
html[data-theme="dark"] #timeMachineOverlay .tm-era-title,
html[data-theme="dark"] #timeMachineOverlay .tm-project-title,
html[data-theme="dark"] #timeMachineOverlay .tm-frame-footer strong {
    color: #f5f5f7;
}

html[data-theme="dark"] #timeMachineOverlay .tm-frame-subtitle,
html[data-theme="dark"] #timeMachineOverlay .tm-era-summary,
html[data-theme="dark"] #timeMachineOverlay .tm-count,
html[data-theme="dark"] #timeMachineOverlay .tm-project-role,
html[data-theme="dark"] #timeMachineOverlay .tm-frame-footer {
    color: rgba(235,235,245,.62);
}

html[data-theme="dark"] #timeMachineOverlay .tm-year-badge {
    border-color: rgba(99,239,196,.28);
    color: #8dffdc;
    background: rgba(51,184,145,.14);
}

html[data-theme="dark"] #timeMachineOverlay .tm-frame-body {
    background:
        linear-gradient(135deg, rgba(31,31,35,.96), rgba(22,23,26,.97)),
        radial-gradient(circle at 70% 10%, rgba(35,183,145,.1), transparent 38%);
}

html[data-theme="dark"] #timeMachineOverlay .tm-project-card {
    border-color: rgba(255,255,255,.1);
    color: #f5f5f7;
    background: rgba(50,50,55,.92);
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

html[data-theme="dark"] #timeMachineOverlay .tm-project-card:hover {
    border-color: rgba(99,239,196,.5);
    box-shadow: 0 12px 28px rgba(0,0,0,.38), 0 0 22px rgba(32,169,130,.08);
}

html[data-theme="dark"] #timeMachineOverlay .tm-frame-footer {
    border-top-color: rgba(255,255,255,.1);
    background: rgba(38,38,42,.97);
}

.tm-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;
    padding: 20px 14px 20px 8px;
}

.tm-timeline::before {
    content: "";
    position: absolute;
    top: 8%;
    bottom: 8%;
    left: 29px;
    width: 1px;
    background: linear-gradient(transparent, rgba(167,255,229,.42) 15% 85%, transparent);
}

.tm-year-button {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 5px 7px;
    border: 0;
    border-radius: 9px;
    color: rgba(226,255,247,.62);
    font: inherit;
    font-size: 11px;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.tm-year-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border: 1px solid rgba(193,255,237,.65);
    border-radius: 50%;
    background: #102b24;
    box-shadow: 0 0 0 3px rgba(2,14,11,.9);
}

.tm-year-button:hover,
.tm-year-button.active {
    color: #f6fffc;
    background: rgba(122,255,215,.1);
}

.tm-year-button.active .tm-year-dot {
    background: #87ffdb;
    box-shadow: 0 0 0 3px rgba(2,14,11,.9), 0 0 15px #58f7c6;
}

.tm-controls {
    display: grid;
    grid-template-columns: auto minmax(160px, 1fr) auto minmax(240px, auto);
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 10px clamp(16px, 3vw, 42px);
    border-top: 1px solid rgba(174,255,229,.16);
    background: linear-gradient(180deg, rgba(2,10,9,.5), rgba(2,11,9,.94));
}

.tm-nav-group {
    display: flex;
    gap: 7px;
}

.tm-nav-button {
    width: 38px;
    padding: 0;
    font-size: 19px;
}

.tm-range-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.tm-range {
    width: 100%;
    accent-color: #63efc4;
}

.tm-position {
    min-width: 64px;
    color: rgba(226,255,247,.65);
    font-size: 11px;
    text-align: right;
}

.tm-live {
    overflow: hidden;
    color: rgba(226,255,247,.64);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-destination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

.tm-destination-label {
    color: rgba(226,255,247,.58);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tm-destination-input {
    width: 74px;
    height: 36px;
    padding: 0 9px;
    border: 1px solid rgba(167,255,229,.3);
    border-radius: 9px;
    color: #aaffdf;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 750;
    text-align: center;
    background: rgba(0,0,0,.34);
}

.tm-destination-button,
.tm-return-button,
.tm-open-project {
    padding: 0 12px;
}

.tm-temporal-scene {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    text-align: center;
}

.tm-temporal-scene::before,
.tm-temporal-scene::after {
    content: "";
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(33,190,255,.0) 0 8deg, rgba(107,225,255,.18) 9deg 10deg, rgba(255,133,46,.0) 11deg 18deg);
    animation: tm-temporal-spin 2.2s cubic-bezier(.22,.72,.2,1) both;
}

.tm-temporal-scene::after {
    inset: 12%;
    background: radial-gradient(circle, rgba(255,255,255,.95), rgba(75,213,255,.35) 16%, rgba(255,111,30,.2) 35%, transparent 66%);
    animation: tm-temporal-pulse 2.4s ease-out both;
}

.tm-temporal-card {
    position: relative;
    z-index: 2;
    width: min(520px, calc(100vw - 72px));
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(169,236,255,.46);
    border-radius: 20px;
    background: rgba(3,15,18,.88);
    box-shadow: 0 30px 90px rgba(0,0,0,.58), 0 0 60px rgba(50,208,255,.2);
}

.tm-temporal-kicker {
    color: #7ce7ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tm-temporal-year {
    margin-top: 8px;
    color: #ffb34e;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(48px, 10vw, 86px);
    font-weight: 850;
    letter-spacing: -.07em;
    line-height: .96;
    text-shadow: 0 0 24px rgba(255,126,36,.38);
}

.tm-speed {
    display: inline-flex;
    margin-top: 15px;
    padding: 6px 10px;
    border: 1px solid rgba(255,191,95,.35);
    border-radius: 7px;
    color: #ffc46d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: rgba(255,129,29,.09);
}

.tm-flux-core {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 22px auto 16px;
    filter: drop-shadow(0 0 13px rgba(104,230,255,.58));
}

.tm-flux-arm {
    position: absolute;
    top: 43px;
    left: 42px;
    width: 45px;
    height: 7px;
    border-radius: 8px;
    background: linear-gradient(90deg, #fff, #7ee9ff 62%, transparent);
    transform-origin: 4px 3px;
}

.tm-flux-arm:nth-child(1) { transform: rotate(-90deg); }
.tm-flux-arm:nth-child(2) { transform: rotate(30deg); }
.tm-flux-arm:nth-child(3) { transform: rotate(150deg); }

.tm-temporal-copy {
    color: rgba(232,250,255,.75);
    font-size: 13px;
    line-height: 1.55;
}

.tm-return-button {
    margin-top: 18px;
}

@keyframes tm-overlay-enter {
    from { opacity: 0; transform: scale(1.025); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tm-star-drift {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.08); }
}

@keyframes tm-temporal-spin {
    0% { opacity: 0; transform: rotate(0deg) scale(.15); }
    45% { opacity: 1; }
    100% { opacity: .18; transform: rotate(250deg) scale(1.7); }
}

@keyframes tm-temporal-pulse {
    0% { opacity: 0; transform: scale(.1); }
    35% { opacity: 1; }
    100% { opacity: .2; transform: scale(1.4); }
}

@keyframes tm-webgl-warp-pulse {
    0% { opacity: 0; transform: scale(.42); }
    24% { opacity: .92; }
    100% { opacity: 0; transform: scale(1.55); }
}

@media (max-width: 820px) {
    #timeMachineOverlay { inset: 0; }
    .tm-header { min-height: 58px; padding: 9px 12px; }
    .tm-brand-subtitle { display: none; }
    .tm-main { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; }
    .tm-frame {
        width: calc(100vw - 28px);
        height: min(570px, calc(100vh - 226px));
        min-height: 330px;
    }
    .tm-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-timeline {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 5px 12px 9px;
    }
    .tm-timeline::before { display: none; }
    .tm-year-button { width: auto; min-width: 66px; }
    .tm-controls {
        grid-template-columns: auto minmax(0,1fr);
        gap: 8px;
        min-height: 94px;
        padding: 8px 12px;
    }
    .tm-live {
        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;
        clip-path: inset(50%) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    .tm-destination { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 520px) {
    .tm-brand-icon { width: 32px; height: 32px; font-size: 21px; }
    .tm-brand-title { font-size: 16px; }
    .tm-exit { padding: 0 10px; }
    .tm-frame { height: calc(100vh - 242px); min-height: 320px; }
    .tm-frame-header { min-height: 50px; padding: 8px 10px; }
    .tm-frame-subtitle { display: none; }
    .tm-frame-body { padding: 12px; }
    .tm-era-copy { display: block; }
    .tm-count { margin-top: 5px; }
    .tm-project-grid { gap: 8px; }
    .tm-project-copy { padding: 8px; }
    .tm-frame-footer { padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    #timeMachineOverlay.open,
    #timeMachineOverlay::before,
    #timeMachineOverlay::after,
    .tm-temporal-scene::before,
    .tm-temporal-scene::after {
        animation: none !important;
    }
    .tm-frame,
    .tm-project-card,
    body.time-machine-active > .dock {
        transition: none !important;
    }
    .tm-webgl-layer {
        transition: none !important;
    }
    .tm-webgl-layer::after {
        animation: none !important;
        display: none;
    }
}
