﻿
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

html, body {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

.touch-link.active-rows-btn {
    background: #e8f1ff;
    border: 1px solid #b9d0ff;
    color: #1f4fbf;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
}

.eb-landing-hero {
    text-align: center;
    margin-top: 24px;
    margin-bottom: 32px;
    padding-top: 16px;
}

.eb-landing-logo {
    height: 82px;
    width: auto;
    margin-bottom: 12px;
}

.eb-landing-title {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
}

.eb-landing-subtitle {
    margin-top: 6px;
    color: #666;
    font-size: 18px;
    line-height: 1.35;
}

.eb-landing-tagline {
    margin-top: 12px;
    color: #999;
    font-size: 12px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.eb-page-title {
    margin-top: 8px;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .eb-landing-hero {
        margin-top: 8px;
        margin-bottom: 22px;
        padding-top: 4px;
    }

    .eb-landing-logo {
        height: 72px;
        margin-bottom: 10px;
    }

    .eb-landing-title {
        font-size: 36px;
    }

    .eb-landing-subtitle {
        font-size: 16px;
    }

    .eb-landing-tagline {
        font-size: 11px;
        letter-spacing: 1.4px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .eb-landing-title {
        font-size: 32px;
    }

    .eb-landing-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 600px) {

    .eb-wrap {
        height: 72vh;
        padding: 0 20px;
    }

    .eb-logo {
        height: 78px !important;
        margin-bottom: 22px !important;
    }

    .eb-title {
        font-size: 34px !important;
    }

    .eb-tagline {
        font-size: 17px !important;
        letter-spacing: 2px;
        margin-top: 16px !important;
    }

    .eb-subtitle {
        font-size: 15px !important;
        margin-top: 10px !important;
    }

    .eb-button {
        font-size: 15px !important;
        padding: 14px 28px !important;
        width: 78%;
        max-width: 320px;
    }
}

.eb-breadcrumb {
    margin-bottom: 10px;
    font-size: 13px;
    color: #777;
}

    .eb-breadcrumb a {
        color: #555;
        text-decoration: none;
    }

        .eb-breadcrumb a:hover {
            text-decoration: underline;
        }

.eb-breadcrumb-sep {
    margin: 0 6px;
    color: #aaa;
}

.matrix-pill {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #8b0000 0%, #ff2b2b 100%);
    box-shadow: inset 0 0 2px rgba(255,255,255,0.6), 0 0 3px rgba(255,0,0,0.6);
}


.table-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-list li::marker {
    content: "";
}

.table-list li::before {
    content: none !important;
}


.position-relative {
    position: relative;
}

.eb-hit-inspect {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    border: 0;
    background: transparent;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 18px;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    opacity: 0.85;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.eb-hit-inspect:hover {
    opacity: 1;
}

.touch-link {
    display: block;
}

.touch-sub {
    margin-top: 6px;
    color: #888;
    font-size: 12px;
    padding-top: 4px;
    word-break: break-word;
    pointer-events: none; /* keep taps on the parent link */
}

.eb-search-overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1048;
}

.eb-search-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55vh;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 1049;
    transform: translateY(100%);
    transition: transform 180ms ease-out;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
}

.eb-search-panel.open {
    transform: translateY(0);
}

.eb-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.eb-search-title {
    font-weight: 600;
}

.eb-search-body {
    padding: 12px;
    overflow: auto;
    height: calc(55vh - 52px);
}

.eb-search-meta {
    font-size: 12px;
    color: #666;
}

.eb-search-results .eb-col {
    margin-top: 10px;
}

.eb-search-results .eb-col-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.eb-search-hit {
    padding: 6px 8px;
    padding-right: 44px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #fafafa;
    font-size: 14px;
    word-break: break-word;
}

.pill-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    outline: none; /* remove default focus ring */
    box-shadow: none; /* remove button shadow */
    -webkit-tap-highlight-color: transparent; /* mobile tap fix */
}

    .pill-btn:hover,
    .pill-btn:focus,
    .pill-btn:active {
        background: transparent;
        outline: none;
        box-shadow: none;
    }

 
#inspector-pane {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,.15);
    transition: right .25s ease;
    z-index: 9999;
    overflow: hidden; /* important */
}

    #inspector-pane.open {
        right: 0;
    }

#inspector-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.inspector-body {
    flex: 1 1 auto;
    min-height: 0; /* critical */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(260px + env(safe-area-inset-bottom));
}

.inspector-header {
    flex: 0 0 auto;
}

.inspector-content {
    height: 100vh; /* fallback */
    height: 100dvh; /* FIX for mobile */
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f3f3;
    color: #333;
    font-size: 18px;
    line-height: 32px;
    cursor: pointer;
    z-index: 10000;
}

.close-btn:hover {
    background: #e6e6e6;
}

body {
    margin: 0;
}

.body-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(160px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .body-content {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .body-content {
        max-width: 1240px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

.eb-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 14px 0;
    margin-bottom: 10px;
}

.eb-app-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

    .eb-app-brand-wrap:hover {
        text-decoration: none;
        color: inherit;
        opacity: 0.9;
    }

.eb-app-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.eb-app-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.eb-app-sub {
    font-size: 12px;
    color: #777;
    line-height: 1.2;
}

input,
select,
textarea {
    max-width: 100%;
}

/* --- Touch-friendly UI --- */

.meta-line {
    color: #666;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.touch-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.touch-item {
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden; /* makes the link fill rounded corners nicely */
}

@media (min-width: 1024px) {
    a.touch-link {
        padding: 18px 20px;
    }

    .touch-item {
        margin: 14px 0;
    }

    .touch-title {
        font-size: 20px;
    }
}

/* Make the whole card tappable */
a.touch-link {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
}

    /* desktop hover */
    a.touch-link:hover {
        background: #f2f2f2;
    }

    /* touch/active feedback */
    a.touch-link:active {
        background: #eaeaea;
    }

/* make the text look like an app item, not a classic link */
.touch-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.touch-sub {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
    word-break: break-word;
}

/* ============================= */
/* Scope Summary Bar (GLOBAL)   */
/* ============================= */

.scope-summary-bar {
    display: flex;
    gap: 40px;
    padding: 16px 20px;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.scope-metric .label {
    font-size: 12px;
    color: #666;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scope-metric .value {
    font-size: 20px;
    font-weight: 600;
}

.scope-note {
    margin-top: -8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #666;
}



/* ===================================== */
/* Optional: slightly roomier on mobile  */
/* ===================================== */

@media (max-width: 600px) {

    .body-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    a.touch-link {
        padding: 16px;
    }

    .touch-title {
        font-size: 19px;
    }

    /* Scope summary responsive */
    .scope-summary-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    #inspector-pane {
        width: 100vw;
        right: -100vw;
        box-shadow: none;
    }

        #inspector-pane.open {
            right: 0;
        }

    .close-btn {
        top: 10px;
        right: 10px;
    }
}


/* Tablet inspector scroll fix */
@media (max-width: 768px) {
    .inspector-content {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
