@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");

:root {
    --lt-bg: #f7f8fb;
    --lt-text: #0b0b0b;
    --lt-muted: #6b7280;
    --lt-border: rgba(15, 23, 42, 0.12);
    --lt-card: rgba(255, 255, 255, 0.86);
    --lt-card-strong: #ffffff;
    --lt-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --lt-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.06);
    --lt-radius: 14px;

    --lt-accent: #e16666;
    --lt-accent-2: #7c3aed;

    --lt-danger: #b91c1c;
    --lt-success: #047857;

    --lt-topbar-bg: rgba(255, 255, 255, 0.85);
    --lt-topbar-border: rgba(15, 23, 42, 0.10);

    --lt-pill-bg: rgba(15, 23, 42, 0.06);
    --lt-pill-border: rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

html {
    background:
        radial-gradient(1200px 800px at 20% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
        radial-gradient(1200px 800px at 100% 30%, rgba(124, 58, 237, 0.06), transparent 55%),
        var(--lt-bg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: transparent;
    color: var(--lt-text);
    overflow-x: hidden;
    min-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Bebas Neue", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

a {
    text-decoration: underline;
    color: var(--lt-accent);
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
}

.lt-hidden {
    display: none !important;
}

.lt-rel {
    position: relative;
}

.lt-mt-10 {
    margin-top: 10px;
}

.lt-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 18px 18px;
}

.lt-main {
    padding-top: 18px;
}

.lt-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--lt-topbar-bg);
    border-bottom: 1px solid var(--lt-topbar-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.lt-topbar-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
}

.lt-top-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 220px;
    max-width: 720px;
}

.lt-top-search-input {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--lt-border);
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 14px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.lt-top-search-input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lt-top-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--lt-border);
    border-radius: 14px;
    box-shadow: var(--lt-shadow);
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
}

.lt-search-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.lt-search-item:last-child {
    border-bottom: 0;
}

.lt-search-item:hover {
    background: rgba(15, 23, 42, 0.03);
}

.lt-search-item-active {
    background: rgba(37, 99, 235, 0.08);
}

.lt-search-title {
    font-weight: 650;
    font-size: 13px;
    line-height: 1.25;
}

.lt-search-sub {
    margin-top: 2px;
    font-size: 12px;
    color: var(--lt-muted);
}

.lt-wiki-results {
    top: calc(100% + 6px);
    z-index: 50;
}

.lt-submit-intro {
    margin-bottom: 14px;
}

.lt-submit-actions {
    margin-top: 14px;
}

.lt-submit-back {
    margin-left: 10px;
}

.lt-submit-view {
    margin-left: 8px;
}

/* ---------------------------
   NEW: Grey-out wiki results that are published/pending
--------------------------- */
.lt-wiki-item {
    position: relative;
}

.lt-wiki-item-disabled {
    opacity: 0.55;
}

.lt-wiki-item-disabled:hover {
    background: rgba(15, 23, 42, 0.02);
}

.lt-wiki-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.85);
    color: rgba(15, 23, 42, 0.68);
    pointer-events: none;
}

.lt-wiki-badge-published {
    border-color: rgba(4, 120, 87, 0.25);
    background: rgba(4, 120, 87, 0.10);
    color: rgba(4, 120, 87, 0.95);
}

.lt-wiki-badge-pending {
    border-color: rgba(124, 58, 237, 0.25);
    background: rgba(124, 58, 237, 0.10);
    color: rgba(124, 58, 237, 0.95);
}

.lt-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.lt-nav-link,
.lt-reset-link,
.lt-nav-sub,
.lt-nav a {
    font-size: 13px;
    color: rgba(15, 23, 42, 0.78);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.lt-nav-link:hover,
.lt-reset-link:hover,
.lt-nav a:hover {
    border-color: rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.6);
}

.lt-nav-sub {
    opacity: 0.8;
}

.lt-h1 {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
}

.lt-h2 {
    font-size: 16px;
    font-weight: 720;
    margin: 18px 0 10px 0;
}

.lt-muted {
    color: var(--lt-muted);
}

.lt-link {
    color: var(--lt-accent);
    text-decoration: none;
}

.lt-link:hover {
    text-decoration: underline;
}

.lt-card {
    background: var(--lt-card);
    border: 1px solid var(--lt-border);
    border-radius: 16px;
    box-shadow: var(--lt-shadow-soft);
    padding: 16px;
}

.lt-hr {
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    margin: 16px 0;
}

.lt-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lt-alert {
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.78);
    margin: 12px 0;
    font-size: 14px;
}

.lt-alert-success {
    border-color: rgba(4, 120, 87, 0.25);
    background: rgba(4, 120, 87, 0.08);
    color: rgba(4, 120, 87, 0.95);
}

.lt-alert-danger {
    border-color: rgba(185, 28, 28, 0.25);
    background: rgba(185, 28, 28, 0.08);
    color: rgba(185, 28, 28, 0.95);
}

.lt-form {
    margin-top: 10px;
}

.lt-form-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.lt-label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin: 8px 0 6px 0;
    color: rgba(15, 23, 42, 0.85);
}

.lt-input,
.lt-select,
.lt-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lt-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    font-size: 14px;
}

.lt-select {
    height: 40px;
}

.lt-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.35;
}

.lt-input:focus,
.lt-select:focus,
.lt-textarea:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: rgba(37, 99, 235, 0.12);
    color: rgba(15, 23, 42, 0.92);
    cursor: pointer;
    font-weight: 650;
    font-size: 14px;
}

.lt-btn:hover {
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.40);
}

.lt-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lt-btn-ghost {
    border-color: rgba(15, 23, 42, 0.16);
    background: rgba(255, 255, 255, 0.60);
}

.lt-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.78);
}

.lt-btn-small {
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 11px;
}

.lt-hp {
    position: absolute;
    left: -99999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lt-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.lt-item {
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.60);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.lt-item-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.lt-table {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.70);
}

.lt-table-row {
    display: grid;
    grid-template-columns: 110px 1fr 220px;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.lt-table-row:last-child {
    border-bottom: 0;
}

.lt-table-head {
    background: rgba(15, 23, 42, 0.03);
    font-weight: 750;
    color: rgba(15, 23, 42, 0.78);
}

.lt-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.lt-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.lt-modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1140px, calc(100vw - 28px));
    max-height: min(82vh, 740px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.lt-modal-inner {
    padding: 18px;
}

.lt-modal-title {
    font-size: 40px;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
}

.lt-modal-summary {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.lt-modal-summary a {
    display: inline;
    white-space: nowrap;
    margin-left: 0;
    font-style: italic;
}

.lt-modal-section-title {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 800;
    color: rgba(15, 23, 42, 0.86);
}

.lt-connected-hint {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.62);
}

.lt-conn-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
}

.lt-topics-mt {
    margin-top: 18px;
}

.lt-topic-pills {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lt-topic-pill {
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.20);
    background: rgba(37, 99, 235, 0.10);
    color: rgba(15, 23, 42, 0.86);
    font-size: 12px;
    font-weight: 750;
    padding: 7px 10px;
    cursor: pointer;
}

.lt-topic-pill:hover {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(37, 99, 235, 0.30);
}

.lt-topic-pill-static {
    cursor: default;
}

.lt-wiki-attribution {
    margin-top: 12px;
    font-size: 12px;
}

.lt-top-search-results::-webkit-scrollbar,
.lt-modal-panel::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.lt-top-search-results::-webkit-scrollbar-thumb,
.lt-modal-panel::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.7);
}

.lt-top-search-results::-webkit-scrollbar-thumb:hover,
.lt-modal-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.26);
}

.lt-main-clean {
    min-height: 100vh;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.lt-home-center {
    width: 100%;
    padding: 20px;
}

.lt-home-inner {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: calc(100vh - 40px);
    min-height: 520px;
}

.lt-home-search-block {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 560px;
}

.lt-home-hero {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 16px);
    transform: translateX(-50%);
    width: 100%;
}

.lt-home-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.lt-home-logo {
    width: 70px;
    height: auto;
    display: block;
}

.lt-home-tagline {
    font-family: "Bebas Neue", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    font-size: 42px;
    line-height: 1.05;
    color: rgba(15, 23, 42, 0.88);
    margin: 0;
}

.lt-home-search-input {
    width: 100%;
    padding: 16px 18px;
    font-size: 16px;
    border-radius: 16px;
    border: 1px solid var(--lt-border);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    box-shadow: var(--lt-shadow-soft);
}

.lt-home-search-input::placeholder {
    color: var(--lt-muted);
}

.lt-home-search-input:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.lt-home-search-results {
    top: calc(100% + 10px);
}

.lt-home-count {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.35);
}

.lt-conn-wrap {
    position: relative;
    width: 100%;
    height: 560px;
    min-height: 560px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.70);
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.lt-conn-wrap.lt-conn-panning {
    cursor: grabbing;
}

.lt-conn-zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

.lt-conn-zoom-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.90);
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: rgba(15, 23, 42, 0.80);
}

.lt-conn-zoom-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(15, 23, 42, 0.20);
}

@media (max-width: 900px) {
    .lt-topbar-inner {
        flex-wrap: wrap;
    }

    .lt-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .lt-top-search {
        max-width: none;
        width: 100%;
    }

    .lt-list {
        grid-template-columns: 1fr;
    }

    .lt-table-row {
        grid-template-columns: 1fr;
    }

    .lt-actions {
        justify-content: flex-start;
    }

    .lt-conn-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .lt-home-center {
        padding: 18px;
        padding-left: calc(18px + env(safe-area-inset-left));
        padding-right: calc(18px + env(safe-area-inset-right));
        padding-top: calc(18px + env(safe-area-inset-top));
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .lt-home-inner {
        height: calc(100vh - 36px);
        min-height: 480px;
    }

    .lt-home-tagline {
        white-space: nowrap;
        font-size: clamp(22px, 7.2vw, 32px);
        letter-spacing: 0.01em;
    }
}
