/* ==========================================================================
   addrproxy.com - Isometric Postal Infrastructure
   Color Palette:
     Deep Sorting:       #1b2028
     Envelope Cream:     #f0e6d2
     Stamp Gold:         #c8a951
     Signal Vermillion:  #d4503a
     Routing Slate:      #5c6b73
     Relay Teal:         #2a7b6f
     Pneumatic Copper:   #b87847
     Parcel Parchment:   #e8dcc8
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.72;
    color: #f0e6d2;
    background-color: #1b2028;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Isometric Grid Background --- */
#iso-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Tube Network --- */
#tube-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

/* --- Intro Overlay --- */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1b2028;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#intro-capsule {
    opacity: 0;
    transform: translateY(-200px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

#intro-capsule.drop {
    opacity: 1;
    transform: translateY(0);
}

#intro-capsule.split {
    opacity: 0;
    transform: translateY(0) scaleY(0.3);
}

#intro-title {
    display: flex;
    gap: 0.05em;
    margin-top: 20px;
    opacity: 0;
}

#intro-title.visible {
    opacity: 1;
}

.intro-letter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #f0e6d2;
    letter-spacing: 0.12em;
    display: inline-block;
    opacity: 0;
    transform: scale(0.5) perspective(600px) rotateX(45deg);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.intro-letter.reveal {
    opacity: 1;
    transform: scale(1) perspective(600px) rotateX(0deg);
}

#intro-subtitle {
    margin-top: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #5c6b73;
    height: 1.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#intro-subtitle.visible {
    opacity: 1;
}

.subtitle-cursor {
    animation: blink 0.6s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Sidebar --- */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #1b2028;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #c8a951;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
}

#sidebar.visible {
    transform: translateX(0);
}

.sidebar-header {
    position: relative;
    padding: 30px 24px 20px;
    border-bottom: 1px solid rgba(200, 169, 81, 0.3);
    text-align: center;
}

.sidebar-logo {
    margin: 0 auto 12px;
    width: 40px;
    height: 40px;
}

.sidebar-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    color: #c8a951;
}

/* Art-deco rosettes */
.rosette {
    width: 24px;
    height: 24px;
    position: absolute;
    opacity: 0.7;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.rosette::before,
.rosette::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid #c8a951;
}

.rosette::before {
    width: 16px;
    height: 16px;
}

.rosette::after {
    width: 8px;
    height: 8px;
}

.sidebar-header .top-left { top: 8px; left: 8px; }
.sidebar-header .top-right { top: 8px; right: 8px; }
.sidebar-header .bottom-left { bottom: 8px; left: 8px; }
.sidebar-header .bottom-right { bottom: 8px; right: 8px; }

/* Sidebar nav items */
.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #5c6b73;
    transition: color 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: #d4503a;
    transition: height 0.3s linear;
}

.nav-item.active .nav-indicator {
    height: 100%;
}

.nav-item.active {
    color: #f0e6d2;
    background: rgba(200, 169, 81, 0.05);
}

.nav-item:hover {
    color: #f0e6d2;
    background: rgba(200, 169, 81, 0.08);
}

.nav-code {
    color: #c8a951;
    font-weight: 400;
    min-width: 24px;
}

.nav-label {
    letter-spacing: 0.08em;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(200, 169, 81, 0.3);
}

.routing-stamp-small {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #d4503a;
    opacity: 0.6;
    text-align: center;
    letter-spacing: 0.1em;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    text-decoration-color: rgba(212, 80, 58, 0.4);
}

/* Double-rule border for sidebar header */
.sidebar-header::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(200, 169, 81, 0.2);
    pointer-events: none;
}

/* --- Hamburger --- */
#hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: #1b2028;
    border: 1px solid #c8a951;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

#hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #c8a951;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
}

#hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Main Content --- */
#sorting-floor {
    margin-left: 280px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* --- Station (section) base --- */
.station {
    position: relative;
    padding: 80px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Station Headers --- */
.station-header {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #f0e6d2;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 40px;
}

.station-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #c8a951;
}

/* --- Hero Station --- */
.station-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 40px;
}

.station-hero .station-inner {
    display: flex;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-building-container {
    flex: 1;
    min-width: 0;
}

.hero-building {
    width: 100%;
    height: auto;
    max-width: 600px;
}

.hero-text {
    flex: 0 0 380px;
    max-width: 380px;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.72;
    color: #e8dcc8;
    margin-bottom: 30px;
}

/* Building floor animation */
.building-floor {
    transition: opacity 0.5s ease;
}

/* Envelope animations */
.envelope-intake {
    animation: envelopeIntake 12s linear infinite;
}

@keyframes envelopeIntake {
    0% { transform: translateX(-40px); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateX(60px); opacity: 1; }
    60% { opacity: 0; }
    100% { transform: translateX(120px); opacity: 0; }
}

.label-strip rect {
    animation: labelFloat 8s ease-in-out infinite;
}

.label-strip rect:nth-child(2) { animation-delay: -2.5s; }
.label-strip rect:nth-child(3) { animation-delay: -5s; }

@keyframes labelFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
    50% { transform: translateY(-15px) rotate(5deg); opacity: 0.3; }
}

.label-apply rect {
    animation: labelDescend 8s ease-in-out infinite;
}

.label-apply rect:nth-child(2) { animation-delay: -4s; }

@keyframes labelDescend {
    0%, 100% { transform: translateY(-10px); opacity: 0.3; }
    50% { transform: translateY(8px); opacity: 0.9; }
}

.envelope-dispatch rect {
    animation: envelopeDispatch 10s ease-in-out infinite;
}

.envelope-dispatch rect:nth-child(2) { animation-delay: -5s; }

@keyframes envelopeDispatch {
    0% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-30px) translateX(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0.7; }
}

/* --- Routing Codes --- */
.routing-code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    color: #5c6b73;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
    text-decoration-color: rgba(92, 107, 115, 0.4);
    cursor: default;
    position: relative;
    display: inline-block;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.routing-code:hover {
    color: #d4503a;
    text-decoration-color: rgba(212, 80, 58, 0.4);
}

/* Routing code tooltip */
.routing-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1b2028;
    border: 1px solid #c8a951;
    padding: 10px 14px;
    border-radius: 2px;
    pointer-events: none;
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out, filter 0.25s ease-out;
    white-space: nowrap;
    z-index: 100;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #f0e6d2;
}

.routing-code:hover .routing-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: blur(0);
}

.routing-code-inline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #5c6b73;
    letter-spacing: 0.05em;
}

/* --- Station Cards --- */
.station-card {
    padding: 80px 60px;
}

.card-wrapper {
    position: relative;
    background: rgba(27, 32, 40, 0.85);
    border: 1px solid rgba(200, 169, 81, 0.3);
    padding: 50px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 4px 4px 0 #5c6b73, 2px 2px 0 rgba(92, 107, 115, 0.5);
    /* Card-flip animation prep */
    transform-origin: center top;
    opacity: 0;
    transform: perspective(800px) rotateX(-90deg) scaleY(0.01);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.card-wrapper.revealed {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) scaleY(1);
}

/* Card inner content fade-in */
.card-wrapper > *:not(.rosette) {
    opacity: 0;
    transition: opacity 0.4s ease 0.5s;
}

.card-wrapper.revealed > *:not(.rosette) {
    opacity: 1;
}

/* Rosettes on cards */
.card-wrapper .rosette {
    z-index: 5;
}

.corner-tl { top: 8px; left: 8px; }
.corner-tr { top: 8px; right: 8px; }
.corner-bl { bottom: 8px; left: 8px; }
.corner-br { bottom: 8px; right: 8px; }

/* Double-rule card border */
.card-wrapper::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(200, 169, 81, 0.15);
    pointer-events: none;
}

/* --- Flowchart (Station 2) --- */
.flowchart {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 200px;
}

.flow-icon {
    margin-bottom: 16px;
}

.flow-connector {
    display: flex;
    align-items: center;
    padding-top: 30px;
}

.flow-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #c8a951;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 4px;
}

.flow-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: #f0e6d2;
    display: block;
    margin-bottom: 8px;
}

.flow-desc {
    font-size: 0.85rem;
    color: #e8dcc8;
    line-height: 1.6;
}

/* --- Vault (Station 3) --- */
.vault-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.vault-illustration {
    flex: 0 0 300px;
}

.vault-svg {
    width: 100%;
    height: auto;
}

/* Vault door animations */
.vault-door-3 {
    animation: vaultPulse3 6s ease-in-out infinite;
}

.vault-door-2 {
    animation: vaultPulse2 6s ease-in-out infinite 1s;
}

.vault-door-1 {
    animation: vaultPulse1 6s ease-in-out infinite 2s;
}

@keyframes vaultPulse3 {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.02); }
}

@keyframes vaultPulse2 {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.01); }
}

@keyframes vaultPulse1 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.vault-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.vault-guarantee {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.guarantee-icon {
    flex: 0 0 24px;
    margin-top: 2px;
}

.vault-guarantee h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: #c8a951;
    margin-bottom: 6px;
}

.vault-guarantee p {
    font-size: 0.9rem;
    color: #e8dcc8;
    line-height: 1.65;
}

/* --- Trace Routes (Station 4) --- */
.trace-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.trace-map {
    position: relative;
    background: rgba(27, 32, 40, 0.5);
    border: 1px solid rgba(200, 169, 81, 0.15);
    padding: 20px;
    overflow: hidden;
}

.trace-svg {
    display: block;
}

/* Relay node hover */
.relay-node {
    cursor: default;
    transition: transform 0.2s ease;
}

.relay-node:hover polygon {
    fill: #c8a951;
    transition: fill 0.2s ease;
}

/* Route path draw animation */
.route-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.8s ease;
}

.route-path.drawn {
    stroke-dashoffset: 0;
}

/* Trace capsule */
.trace-capsule {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trace-capsule.active {
    opacity: 1;
}

/* Trace log */
.trace-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    padding: 16px 20px;
    background: rgba(27, 32, 40, 0.6);
    border: 1px solid rgba(200, 169, 81, 0.1);
}

.log-entry {
    display: flex;
    gap: 16px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.log-entry.visible {
    opacity: 1;
    transform: translateX(0);
}

.log-time {
    color: #5c6b73;
    min-width: 70px;
}

.log-action {
    color: #c8a951;
    min-width: 140px;
}

.log-node {
    color: #d4503a;
}

/* --- Stamps --- */
.stamp {
    position: absolute;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: #d4503a;
    opacity: 0.6;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    border: 2px solid #d4503a;
    cursor: pointer;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    transform-style: preserve-3d;
    z-index: 10;
    /* SVG turbulence distressed effect simulated with box-shadow */
    filter: url(#stamp-distress);
}

.stamp::before {
    content: attr(data-back);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2a7b6f;
    color: #f0e6d2;
    font-size: 0.6rem;
    line-height: 1.4;
    padding: 8px 10px;
    white-space: pre-line;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    border: 2px solid #2a7b6f;
}

.stamp:hover {
    opacity: 1;
    transform: rotate(0deg) !important;
}

.stamp.flipped {
    transform: rotateY(180deg) !important;
    opacity: 1;
}

.stamp-1 {
    top: 15%;
    right: 5%;
    transform: rotate(8deg);
}

.stamp-2 {
    bottom: 20%;
    right: 12%;
    transform: rotate(-5deg);
}

.stamp-3 {
    top: 10%;
    right: 4%;
    transform: rotate(12deg);
}

.stamp-4 {
    bottom: 15%;
    left: 3%;
    transform: rotate(-8deg);
}

/* --- Footer Station --- */
.station-footer {
    padding: 60px 40px 40px;
    min-height: auto;
    background: linear-gradient(180deg, #1b2028 0%, #161b22 100%);
    border-top: 1px solid rgba(200, 169, 81, 0.2);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.cityscape {
    margin-bottom: 40px;
    overflow: hidden;
}

.cityscape-svg {
    display: block;
    opacity: 0;
    transition: opacity 1s ease;
}

.cityscape-svg.visible {
    opacity: 1;
}

.city-elements > g {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.city-elements.animate > g {
    opacity: 1;
    transform: translateY(0);
}

.city-elements.animate > g:nth-child(1) { transition-delay: 0.1s; }
.city-elements.animate > g:nth-child(2) { transition-delay: 0.25s; }
.city-elements.animate > g:nth-child(3) { transition-delay: 0.4s; }
.city-elements.animate > g:nth-child(4) { transition-delay: 0.55s; }
.city-elements.animate > g:nth-child(5) { transition-delay: 0.7s; }
.city-elements.animate > g:nth-child(6) { transition-delay: 0.85s; }

.footer-text {
    text-align: center;
}

.footer-brand {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.2em;
    color: #c8a951;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #5c6b73;
    margin-bottom: 20px;
}

.footer-codes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-codes .routing-code-inline {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    text-decoration-color: rgba(92, 107, 115, 0.3);
}

/* --- Rosette pulse on intersection --- */
.rosette.pulse {
    transform: scale(1.08);
    opacity: 1;
}

/* --- Responsive: Tablet (sidebar collapses to icon strip) --- */
@media (max-width: 1024px) {
    #sidebar {
        width: 56px;
    }

    #sidebar.visible {
        transform: translateX(0);
    }

    .sidebar-header {
        padding: 16px 8px 12px;
    }

    .sidebar-header::before {
        display: none;
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-header .rosette {
        display: none;
    }

    .sidebar-logo {
        margin-bottom: 0;
    }

    .nav-item {
        padding: 14px 0;
        justify-content: center;
        gap: 0;
    }

    .nav-label {
        display: none;
    }

    .nav-code {
        font-size: 0.7rem;
    }

    .sidebar-footer {
        display: none;
    }

    #sorting-floor {
        margin-left: 56px;
    }

    .station {
        padding: 60px 40px;
    }

    .station-hero .station-inner {
        flex-direction: column;
        gap: 40px;
    }

    .hero-text {
        flex: none;
        max-width: 100%;
    }

    .vault-content {
        flex-direction: column;
    }

    .vault-illustration {
        flex: none;
    }
}

/* --- Responsive: Mobile (sidebar becomes hamburger menu) --- */
@media (max-width: 768px) {
    #sidebar {
        width: 280px;
        transform: translateX(-100%);
        z-index: 1002;
    }

    #sidebar.mobile-open {
        transform: translateX(0);
    }

    .sidebar-title {
        display: block;
    }

    .sidebar-header .rosette {
        display: block;
    }

    .nav-item {
        padding: 14px 24px;
        justify-content: flex-start;
        gap: 12px;
    }

    .nav-label {
        display: inline;
    }

    .sidebar-footer {
        display: block;
    }

    .sidebar-header::before {
        display: block;
    }

    #hamburger {
        display: flex;
    }

    #sorting-floor {
        margin-left: 0;
    }

    .station {
        padding: 40px 20px;
    }

    .station-hero {
        padding-top: 80px;
    }

    .station-hero .station-inner {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        flex: none;
        max-width: 100%;
    }

    .station-card {
        padding: 40px 16px;
    }

    .card-wrapper {
        padding: 30px 20px;
    }

    .flowchart {
        flex-direction: column;
        align-items: center;
    }

    .flow-connector {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .vault-content {
        flex-direction: column;
    }

    .vault-illustration {
        flex: none;
        max-width: 220px;
        margin: 0 auto;
    }

    .trace-log {
        font-size: 0.65rem;
    }

    .log-action {
        min-width: 100px;
    }

    .footer-codes {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .stamp {
        display: none;
    }
}

/* --- SVG Distress Filter (stamp effect) --- */
/* Applied via inline SVG filter in HTML or fallback */
