/* Public Target Loot navigation. */
.tl-recruitment { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; margin: 18px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.tl-recruitment h2 { font-size: 15px; margin: 0 0 6px; }
.tl-recruitment p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.target-loot-page .tl-recruitment-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent2); font-size: 13px; text-decoration: none; }
.tl-recruitment-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 650px) { .tl-recruitment { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; } }
.loot-tools-menu { position: relative; }
.pt-site-theme .loot-tools-toggle {
    display: flex; align-items: center; gap: 8px; list-style: none;
    min-height: 36px; padding: 8px 12px; cursor: pointer;
    border: 1px solid transparent; border-radius: 5px;
    background: transparent; color: var(--muted); font-size: 13px; font-weight: 500;
}
.loot-tools-toggle::-webkit-details-marker { display: none; }
.loot-tools-toggle::after {
    content: ''; width: 6px; height: 6px; margin-top: -3px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.pt-site-theme .loot-tools-toggle:hover,
.pt-site-theme .loot-tools-menu[open] .loot-tools-toggle {
    color: var(--accent); background: var(--accent-soft); border-color: #f39a3c30;
}
.loot-tools-menu[open] .loot-tools-toggle::after { margin-top: 3px; transform: rotate(225deg); }
.loot-tools-panel {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 50;
    width: 200px; max-width: calc(100vw - 32px); padding: 6px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
    box-shadow: 0 12px 28px #0005;
}
.pt-site-theme .loot-tools-panel .admin-link { display: flex; width: 100%; min-height: 40px; align-items: center; }
.target-loot-page .footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 16px; }
.target-loot-page .team-login-link { color: var(--muted); padding: 8px 4px; min-height: 36px; }
.target-loot-page .team-login-link:hover { color: var(--accent); }

/* Voluntary community support, shared by the public Escalation and Global views. */
.target-loot-page .tl-support {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 24px;
    margin-top: 22px; padding: 16px 0;
    border-top: 1px solid var(--line);
}
.target-loot-page .tl-support-copy { min-width: 0; }
.target-loot-page .tl-support-copy h2 {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 7px;
    color: var(--text); font: 500 14px/1.5 system-ui, sans-serif;
    letter-spacing: 0;
}
.target-loot-page .tl-support-copy p {
    margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.6;
    overflow-wrap: anywhere;
}
.target-loot-page .tl-support-copy p:last-child { margin-bottom: 0; }
.target-loot-page .tl-support-icon { flex: 0 0 16px; color: var(--accent); }
.target-loot-page .tl-support-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 38px; padding: 8px 12px;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--accent-soft, #f39a3c13); color: var(--accent2);
    font-size: 12px; font-weight: 500; line-height: 1.5;
    text-decoration: none; white-space: nowrap;
}
.target-loot-page .tl-support-link:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 650px) {
    .target-loot-page .tl-support { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px 0; }
    .target-loot-page .tl-support-link { justify-self: start; min-height: 44px; }
}
@media (max-width: 650px) {
    .loot-tools-panel { left: 0; right: auto; }
    .pt-site-theme .loot-tools-toggle { font-size: 11px; padding: 6px 8px; }
}

/* Shared approved Discord-card visual language. Scoped away from admin/global tables. */
.tl-overview { container: loot-overview / inline-size; margin-top: 16px; }
.tl-overview-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; table-layout: fixed; }
.tl-overview-table th { padding: 0 20px 2px; text-align: left; color: #a7b8bc; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tl-overview-table th:nth-child(1) { width: 35%; }
.tl-overview-table th:nth-child(2) { width: 38%; }
.tl-overview-table th:nth-child(3) { width: 27%; }
.tl-overview-table td { padding: 18px 20px; background: #121a25; color: #e8eef0; vertical-align: middle; border: 0; }
.tl-overview-table td:first-child { border-radius: 12px 0 0 12px; }
.tl-overview-table td:last-child { border-radius: 0 12px 12px 0; padding-left: 0; }
.tl-overview-table tbody tr:hover td { background: #18212d; }
.tl-overview-table .priority-row td { background: #30281b; box-shadow: inset 0 1px #ffd56a, inset 0 -1px #ffd56a; }
.tl-overview-table .priority-row td:first-child { border-left: 4px solid #ffd56a; }
.tl-mission, .tl-loot { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 16px; line-height: 1.4; }
.tl-mission > span, .tl-loot > span:not(.loot-icon):not(.priority-mark) { min-width: 0; overflow-wrap: anywhere; }
.tl-faction-icon { width: 28px; height: 28px; object-fit: contain; flex: 0 0 28px; }
.tl-loot > img, .tl-loot .loot-icon { width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }
.tl-loot .loot-icon { display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; box-shadow: none; }
.tl-loot .loot-icon img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; }
.tl-loot .loot-icon.fallback { color: #a7b8bc; font-size: 12px; }
.tl-loot .priority-mark { display: inline-grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; background: #ffd56a; color: #211706; font-weight: 800; }
.tl-history { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 14px; border-left: 1px solid #334151; padding-left: 18px; min-width: 0; }
.tl-history > div { min-width: 0; }
.tl-history span { display: block; color: #a7b8bc; font-size: 11px; font-weight: 400; line-height: 1.4; text-transform: uppercase; }
.tl-history strong { display: block; margin-top: 3px; color: #fff; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.35; overflow-wrap: anywhere; }
.tl-history strong.tl-last-seen { color: #79c8e8; }
.tl-history-note { margin: 8px 0 0; color: #a7b8bc; font-size: 12px; line-height: 1.6; }
.tl-vendor-heading { margin: 28px 0 0; color: #fff; font-size: 22px; }
.tl-vendor-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,510px),1fr)); gap: 14px; }
.tl-vendor-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,1.4fr); gap: 18px; align-items: center; background: #121a25; border-radius: 12px; padding: 20px; min-width: 0; }
.tl-cache-type { display: block; color: #a7b8bc; font-size: 13px; line-height: 1.4; margin-bottom: 13px; }
.tl-vendor-card .tl-loot { font-size: 20px; }
.tl-vendor-card .tl-history { align-self: stretch; align-items: stretch; }
.tl-vendor-card .tl-history > div { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.tl-vendor-card .tl-history strong { margin: 0 0 2px; }
@container loot-overview (max-width: 820px) {
    .tl-overview-table, .tl-overview-table tbody { display: block; width: 100%; }
    .tl-overview-table thead { display: none; }
    .tl-overview-table tbody { display: grid; gap: 12px; }
    .tl-overview-table tr { display: block; background: #121a25; border-radius: 12px; padding: 16px; }
    .tl-overview-table td { display: block; padding: 0; background: transparent !important; border-radius: 0 !important; }
    .tl-overview-table td + td { margin-top: 14px; }
    .tl-overview-table td:last-child { padding: 0; }
    .tl-overview-table td:nth-child(2)::before { content: 'Target loot'; display: block; color: #a7b8bc; font-size: 11px; text-transform: uppercase; margin-bottom: 6px; }
    .tl-overview-table .priority-row { box-shadow: inset 4px 0 #ffd56a; background: #30281b; }
    .tl-overview-table .priority-row td { border: 0; box-shadow: none; }
    .tl-overview-table .tl-history { border-left: 0; border-top: 1px solid #334151; padding: 13px 0 0; }
}
@container loot-overview (max-width: 520px) {
    .tl-vendor-card { grid-template-columns: minmax(0,1fr); gap: 16px; padding: 18px; }
    .tl-vendor-card .tl-history { border-left: 0; border-top: 1px solid #334151; padding: 14px 0 0; }
    .tl-vendor-card .tl-history > div { gap: 3px; }
}
