/* -------------------------------------------------------------
 * Custom Stylesheet for delpercio.dev
 * Restyled to match kpscrt.com UI - Profile-Focused Edition
 * ------------------------------------------------------------- */

:root {
    --bg-base: #eeeeee;            /* Cool Matte Light Grey */
    --panel-bg: rgba(255, 255, 255, 0.45); /* See-through translucent white */
    --panel-border: #000000;       /* Ink black solid borders */
    
    --accent-orange: #ff4500;      /* TE Rescue Orange */
    --accent-yellow: #ffcc00;      /* TE Safety Yellow */
    --accent-blue: #00bbff;        /* TE Accent Blue */
    
    --text-primary: #000000;        /* Ink Black */
    --text-secondary: #666666;      /* Technical Slate Grey */
    --border-color: #cccccc;        /* Cool Grey Border */

    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition-te: all 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important; /* Zero rounded corners for clean KPSCRT style */
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* KPSCRT Background Dotted Grid */
.te-grid-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 2;
    pointer-events: none;
}

/* Red center laser axis line */
.te-laser-axis {
    position: fixed;
    top: 0; left: 50%;
    width: 1px; height: 100%;
    background: rgba(255, 69, 0, 0.08);
    z-index: 2;
    pointer-events: none;
}

/* UI Grid layout layer */
#ui-deck {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    pointer-events: none;
    display: grid;
    grid-template-columns: 310px 1fr 320px;
    grid-template-rows: 70px 1fr;
    padding: 25px;
    gap: 25px;
    transition: grid-template-columns 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

#ui-deck.journal-active, #ui-deck.composer-active {
    grid-template-columns: 310px 1fr 960px;
}

#ui-deck.wall-active {
    grid-template-columns: 310px minmax(0, 1fr) minmax(420px, 640px);
}

@media (min-width: 1200px) {
    #ui-deck.wall-active {
        grid-template-columns: 310px minmax(0, 1fr) 640px;
    }
}

#ui-deck .deck-row,
#ui-deck .panel-left,
#ui-deck .panel-right {
    pointer-events: auto;
}

/* See-through Translucent panel card system with KPSCRT border shadow */
.panel-style {
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
    transition: var(--transition-te);
}

.panel-style:hover {
    box-shadow: 7px 7px 0px var(--accent-orange);
}

/* Active interactive panel focus highlight effect */
.highlight-flash {
    animation: panel-pulse-highlight 1.6s ease-in-out;
}

@keyframes panel-pulse-highlight {
    0% {
        box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
        border-color: var(--panel-border);
    }
    25% {
        box-shadow: 9px 9px 0px var(--accent-orange);
        border-color: var(--accent-orange);
    }
    75% {
        box-shadow: 9px 9px 0px var(--accent-orange);
        border-color: var(--accent-orange);
    }
    100% {
        box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
        border-color: var(--panel-border);
    }
}

/* Top Telemetry Casing */
.top-bar {
    grid-column: 1 / 4;
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: center;
    padding: 0 25px;
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
}

.cell {
    display: flex;
    align-items: center;
}

.title-cell {
    font-family: var(--font-mono);
    gap: 12px;
}

.logo {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.version {
    font-size: 9px;
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    padding: 1px 4px;
    font-weight: 700;
}

.status-cell {
    justify-content: flex-end;
    gap: 30px;
    font-family: var(--font-mono);
    font-size: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50% !important; /* Circular LED indicator */
    background-color: var(--accent-orange);
    display: inline-block;
    box-shadow: 0 0 6px var(--accent-orange);
    animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.telemetry {
    display: flex;
    gap: 6px;
}

.telemetry .label {
    color: var(--text-secondary);
}

.telemetry .value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Mechanical Casing screws */
.screw {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #d8d8d8;
    border: 1px solid #000000;
    border-radius: 50% !important;
    z-index: 5;
}

.screw::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: #000000;
    transform: translateY(-50%) rotate(45deg);
}

.screw.top-left { top: 6px; left: 6px; }
.screw.top-right { top: 6px; right: 6px; }
.screw.bottom-left { bottom: 6px; left: 6px; }
.screw.bottom-right { bottom: 6px; right: 6px; }

/* Side Panels */
.panel-left, .panel-right {
    background: var(--panel-bg);
    border: 2px solid var(--panel-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
    transition: var(--transition-te);
}

.panel-left:hover, .panel-right:hover {
    box-shadow: 7px 7px 0px var(--accent-orange);
}

.panel-header {
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 10px;
}

.panel-header h2 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.panel-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    display: block;
}

/* Tactile Selector Buttons */
.tactile-matrix {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.key-btn {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--panel-border);
    padding: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-te);
    outline: none;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.key-btn:hover {
    background: #fafafa;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--accent-orange);
}

.key-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

.key-btn.active {
    border-color: var(--accent-orange);
    background: #ffffff;
    box-shadow: 3px 3px 0px var(--accent-orange);
}

.key-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-orange);
    margin-right: 14px;
    font-weight: 700;
    border-right: 1px solid var(--border-color);
    padding-right: 10px;
    height: 100%;
    display: flex;
    align-items: center;
}

.key-btn.active .key-num {
    border-color: var(--accent-orange);
}

.key-name {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    flex-grow: 1;
}

.key-url {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Tactile Channel links (Contact elements) */
.channels-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.channel-link {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-te);
    box-shadow: 1.5px 1.5px 0px rgba(0, 0, 0, 0.15);
    min-width: 0;
}

.channel-link.non-clickable {
    cursor: default;
    background: rgba(0, 0, 0, 0.02);
}

a.channel-link:hover {
    border-color: var(--panel-border);
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0px var(--accent-orange);
}

.channel-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-orange);
    flex: 0 0 auto;
}

.channel-val {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-primary);
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

/* Permanent specifications profile (Right panel styling) */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    font-size: 12.5px;
    flex-grow: 1;
}

.profile-content p strong {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Specs key-value block */
.specs-block {
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 9.5px;
}

.spec-label {
    color: var(--text-secondary);
    font-weight: 700;
}

.spec-val {
    color: var(--text-primary);
    font-weight: 700;
}

/* Center HUD Crosshair reticle overlay */
#target-hud {
    position: absolute;
    width: 130px;
    height: 130px;
    z-index: 5;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#target-hud.hidden,
#ui-deck.journal-active #target-hud,
#ui-deck.composer-active #target-hud {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.crosshair-box {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 69, 0, 0.4);
    position: relative;
    animation: spin-hud 30s linear infinite;
}

@keyframes spin-hud {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.corner {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 1.5px solid var(--accent-orange);
}

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

.hud-labels {
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.05em;
    background: #ffffff;
    border: 1px solid var(--panel-border);
    padding: 3px 6px;
    white-space: nowrap;
    animation: reverse-spin 30s linear infinite;
    box-shadow: 2px 2px 0px rgba(0,0,0,1);
}

@keyframes reverse-spin {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(-360deg); }
}

#hud-name {
    color: var(--text-primary);
    font-weight: 700;
}

#hud-status {
    color: var(--accent-orange);
    font-size: 8px;
}

/* Warp Screen Overlay */
#warp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}

/* Layout Alignment & Column Controls */
.panel-left {
    grid-column: 1;
    height: 100%;
    max-height: 100%;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.panel-right-column {
    grid-column: 3;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: 100%;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 10;
}

.directory-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
}

.directory-container::-webkit-scrollbar {
    width: 3px;
}

.directory-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
}

/* Stretch right panel to match left column */
#panel-profile {
    flex-grow: 1;
}

/* Responsiveness */
@media (max-width: 1024px) {
    #ui-deck,
    #ui-deck.journal-active,
    #ui-deck.composer-active,
    #ui-deck.wall-active {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        overflow-y: auto;
        pointer-events: auto;
    }
    
    .panel-left {
        height: auto;
        max-height: none;
        overflow: visible;
    }
    
    .panel-right-column {
        grid-column: 1;
        height: auto;
        gap: 25px;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    
    #ui-deck .panel-left,
    #ui-deck .panel-right {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }

    .directory-container {
        flex-grow: 0;
        height: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    
    .top-bar {
        grid-column: 1;
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px 20px;
    }
    
    .status-cell {
        justify-content: space-between;
    }

    /* Mobile Journal Responsiveness Fixes */
    .journal-list {
        max-height: none !important;
        overflow-y: visible !important;
    }

    .journal-item-content {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .journal-item-image-wrapper {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
}

@media (max-width: 640px) {
    body,
    html {
        overflow: hidden;
    }

    #ui-deck,
    #ui-deck.journal-active,
    #ui-deck.composer-active,
    #ui-deck.wall-active {
        height: 100dvh;
        padding: 12px;
        gap: 14px;
    }

    .top-bar,
    #ui-deck .panel-left,
    #ui-deck .panel-right,
    .panel-right-column {
        max-width: 100%;
    }

    .panel-left,
    .panel-right {
        padding: 18px 14px;
        gap: 14px;
    }

    .directory-container {
        gap: 14px;
    }

    .channel-group {
        min-width: 0;
    }

    .channel-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 11px 10px;
    }

    .channel-val {
        width: 100%;
        text-align: left;
        line-height: 1.35;
    }

    .composer-meta-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .composer-actions,
    .admin-controls-section,
    .public-controls-section {
        flex-direction: column;
    }

    .composer-actions button,
    .admin-controls-section button,
    .public-controls-section button {
        width: 100%;
    }

    .login-card {
        width: min(100%, 340px);
    }
}

/* Layout panel display overrides */
.hidden {
    display: none !important;
}

/* Journal logs styling */
.journal-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(100vh - 280px);
    padding-right: 5px;
}

.journal-list::-webkit-scrollbar {
    width: 4px;
}

.journal-list::-webkit-scrollbar-thumb {
    background: #000000;
}

.journal-status-msg {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px 0;
}

.journal-item {
    border: 1px solid var(--panel-border);
    background: #ffffff;
    padding: 15px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    transition: var(--transition-te);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: default;
}

.journal-item:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--accent-orange);
}

.journal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 5px;
}

.journal-item-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.journal-item-date {
    font-family: var(--font-mono);
    font-size: 8.5px;
    color: var(--accent-orange);
    font-weight: 700;
}

.journal-item-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: 8px;
    background: #eaeaea;
    color: var(--text-secondary);
    padding: 1px 4px;
    font-weight: 700;
}

.journal-item-body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    white-space: normal;
    max-height: none;
    overflow-y: visible;
}

/* Expanded state fallback */
.journal-item-body.expanded {
    max-height: none !important;
    overflow-y: visible !important;
}

/* Clean, user-friendly Facebook-like text link for see more */
.read-more-btn {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
    background: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
    transition: var(--transition-te);
    display: inline-block;
    outline: none;
}

.read-more-btn:hover {
    color: #cc3700;
    text-decoration: underline;
    background: none;
}

/* Nested Markdown elements styling */
.journal-item-body h1,
.journal-item-body h2,
.journal-item-body h3,
.journal-item-body h4 {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.journal-item-body h1 { font-size: 18px; border-bottom: 1px dashed var(--border-color); padding-bottom: 5px; }
.journal-item-body h2 { font-size: 16px; }
.journal-item-body h3 { font-size: 15px; color: var(--accent-orange); }
.journal-item-body h4 { font-size: 14px; color: var(--text-secondary); }

.journal-item-body p {
    margin-bottom: 10px;
}

.journal-item-body p:last-child {
    margin-bottom: 0;
}

.journal-item-body ul, 
.journal-item-body ol {
    margin-left: 18px;
    margin-bottom: 10px;
}

.journal-item-body ul {
    list-style-type: square;
}

.journal-item-body ol {
    list-style-type: decimal;
}

.journal-item-body li {
    margin-bottom: 4px;
    padding-left: 2px;
}

.journal-item-body strong {
    font-weight: 700;
    color: var(--text-primary);
}

.journal-item-body code {
    font-family: var(--font-mono);
    font-size: 10px;
    background: #eaeaea;
    color: #000000;
    padding: 1px 3px;
    border: 1px solid var(--border-color);
}

/* Flex image layout within logs */
.journal-item-content {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.journal-item-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.journal-item-image-wrapper {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    height: 180px;
    border: 1px solid #000000;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.journal-item-image:hover {
    transform: scale(1.05);
}

/* Monospace edit log selector button */
.btn-journal-edit {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: var(--accent-orange);
    background: none;
    border: 1px solid var(--accent-orange);
    padding: 1px 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-te);
    margin-left: 10px;
}

.btn-journal-edit:hover {
    background: var(--accent-orange);
    color: #ffffff;
}

.btn-journal-delete {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 700;
    color: #cc2200;
    background: none;
    border: 1px solid #cc2200;
    padding: 1px 6px;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--transition-te);
    margin-left: 6px;
}

.btn-journal-delete:hover {
    background: #cc2200;
    color: #ffffff;
}

.btn-journal-delete:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Admin composer layout */
.composer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    flex-grow: 1;
}

.composer-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.te-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-orange);
}

.te-input {
    width: 100%;
    border: 1px solid var(--panel-border);
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-primary);
    background: #ffffff;
    outline: none;
    transition: var(--transition-te);
    box-shadow: 1.5px 1.5px 0px rgba(0, 0, 0, 0.1);
}

.te-input:focus {
    border-color: var(--accent-orange);
    box-shadow: 2px 2px 0px var(--accent-orange);
}

.te-textarea {
    resize: none;
    font-family: var(--font-mono);
    line-height: 1.5;
}

.composer-actions, .admin-controls-section, .public-controls-section {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-te-orange, .btn-te-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10px;
    cursor: pointer;
    border: 1px solid var(--panel-border);
    transition: var(--transition-te);
    outline: none;
    text-transform: uppercase;
}

.btn-te-orange {
    background: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.btn-te-orange:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
}

.btn-te-orange:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px rgba(0, 0, 0, 1);
}

.btn-te-black {
    background: #000000;
    color: #ffffff;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.btn-te-black:hover {
    background: #111111;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px var(--accent-orange);
}

/* Admin auth login screen overlay */
.admin-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.login-card {
    width: 320px;
    padding: 25px;
    background: #eeeeee;
    border: 2px solid var(--panel-border);
    box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tactile Channels - Collapsible Accordion Headers */
.channel-group-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    border-bottom: 1px dashed var(--border-color);
    padding: 6px 0 4px;
    margin-top: 12px;
    margin-bottom: 0;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-te);
}

.channel-group-header:hover .channel-group-label {
    color: var(--accent-orange);
}

.channel-group-header[aria-expanded="true"] {
    border-bottom-color: var(--accent-orange);
}

.channel-group-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    transition: color 0.12s ease;
}

.channel-group-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.12s ease;
    display: inline-block;
    line-height: 1;
}

.channel-group-header[aria-expanded="true"] .channel-group-arrow {
    transform: rotate(0deg);
    color: var(--accent-orange);
}

.channel-group-header[aria-expanded="false"] .channel-group-arrow {
    transform: rotate(-90deg);
}

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.2s ease,
                margin 0.2s ease;
    opacity: 1;
    margin-top: 8px;
}

.channels-list.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

/* --- Message Wall / Guestbook Styling --- */
.message-composer-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafafa;
    border: 1px solid var(--panel-border);
    padding: 15px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
    margin-bottom: 1.5rem;
}

#panel-wall {
    min-height: 0;
}

#panel-wall:not(.hidden) {
    height: 100%;
    width: 100%;
}

#panel-wall .message-composer-box {
    flex: 0 0 auto;
}

#panel-wall #wall-messages-container {
    min-height: 0;
}



/* Meta Grid */
.composer-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 640px) {
    .composer-meta-grid {
        grid-template-columns: 1fr;
    }
}

.meta-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: var(--accent-orange);
}



/* Wall entries customization */
.wall-badge-private {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 800;
    color: #ffffff;
    background: #cc2200;
    padding: 2px 6px;
    margin-bottom: 5px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.wall-badge-public {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: 800;
    color: #ffffff;
    background: #0088cc;
    padding: 2px 6px;
    margin-bottom: 5px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.wall-message-body {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    word-break: break-word;
}

.wall-message-body p {
    margin-bottom: 8px;
}

.wall-message-body p:last-child {
    margin-bottom: 0;
}

.wall-message-body a {
    color: var(--accent-orange);
    text-decoration: underline;
}

.wall-message-body code {
    font-family: var(--font-mono);
    font-size: 10px;
    background: #eaeaea;
    color: #000000;
    padding: 1px 3px;
    border: 1px solid var(--border-color);
}
