.expedition-tool { --exp-line:rgba(148,163,184,.18); color:var(--text-primary,#e2e8f0); padding-bottom:2rem; }
.exp-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin:1.5rem 0; }
.exp-heading h2 { margin:.3rem 0; font-family:Outfit,Inter,sans-serif; font-size:clamp(1.5rem,3vw,2.2rem); }
.exp-eyebrow { color:#fbbf24; font-size:.75rem; letter-spacing:.16em; font-weight:800; }
.exp-setup { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:1rem; }
.exp-panel { border:1px solid var(--exp-line); border-radius:14px; background:linear-gradient(145deg,#141b29,#0d121d); padding:1.25rem; margin-bottom:1rem; min-width:0; }
.exp-panel h3 { color:#f8fafc; font-size:1rem; margin:0 0 1rem; }
.exp-help { color:#a4b1c6; font-size:.8rem; line-height:1.6; margin:.6rem 0; }
.exp-field { display:flex; flex-direction:column; gap:.4rem; margin:.75rem 0; color:#cbd5e1; font-size:.8rem; }
.expedition-tool input:not([type=checkbox]),.expedition-tool textarea,.expedition-tool select,.expedition-page #expedition-language { width:100%; min-width:0; box-sizing:border-box; background:#090e17; border:1px solid #334155; border-radius:8px; padding:.65rem; color:#e2e8f0; font:inherit; color-scheme:dark; }
.expedition-tool input:focus,.expedition-tool select:focus,.expedition-tool textarea:focus { outline:2px solid #fbbf24; outline-offset:2px; }
.expedition-tool input[type=checkbox] { width:20px; height:20px; accent-color:#fbbf24; cursor:pointer; }
.expedition-tool input:disabled { opacity:.65; }
.expedition-tool button { white-space:normal; }
.exp-two,.exp-bottom { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.exp-actions { display:flex; flex-wrap:wrap; gap:1.5rem; margin:1rem 0; }
.exp-check { display:flex; align-items:center; gap:.6rem; font-size:.85rem; }
.exp-table-wrap { overflow-x:auto; }
.expedition-tool table { border-collapse:collapse; width:100%; font-size:.8rem; }
.expedition-tool th,.expedition-tool td { padding:.8rem .65rem; border-bottom:1px solid var(--exp-line); text-align:right; }
.expedition-tool th:first-child { text-align:left; }
.expedition-tool thead th { color:#94a3b8; font-weight:600; font-size:.7rem; }
.exp-boss-table { min-width:800px; }
.exp-boss-table th:first-child { min-width:180px; color:#e2e8f0; }
.exp-boss-table input[type=number] { width:68px; }
.exp-boss-table tbody tr:has(input[type=checkbox]:checked) { background:rgba(251,191,36,.045); }
.exp-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:.75rem; margin-bottom:1.25rem; }
.exp-metric { background:#090e17; border:1px solid var(--exp-line); border-radius:10px; padding:1rem; }
.exp-metric span { display:block; color:#94a3b8; font-size:.75rem; }
.exp-metric strong { display:block; font:700 1.65rem Outfit,Inter,sans-serif; color:#fbbf24; margin-top:.4rem; }
.exp-warning { color:#fbbf24; }
.exp-search { border-bottom:1px solid var(--exp-line); padding-bottom:1rem; margin-bottom:1rem; }
.exp-search h4 { margin:.75rem 0; color:#f8fafc; }
.exp-search-results { max-height:340px; overflow-y:auto; margin:.75rem 0; }
.exp-search-person { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.6rem; padding:.6rem .2rem; border-bottom:1px solid var(--exp-line); font-size:.8rem; }
.exp-search-person span { overflow-wrap:anywhere; }
.exp-search-person small { color:#a4b1c6; }
.expedition-tool button:disabled { opacity:.5; cursor:not-allowed; }
.exp-person { display:grid; grid-template-columns:minmax(0,1fr) 140px auto; gap:.5rem; align-items:center; margin:.6rem 0; font-size:.8rem; }
.exp-person span { overflow-wrap:anywhere; }
#exp-announcement { font: .78rem/1.6 ui-monospace,monospace; resize:vertical; margin-bottom:1rem; }
.expedition-page { max-width:1280px; margin:auto; padding:1rem 1.5rem; background:#090d14; }
.expedition-page header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem 0; }
.expedition-page #expedition-language { width:auto; }
@media(max-width:850px) { .exp-setup { grid-template-columns:1fr 1fr; }.exp-setup>section:first-child { grid-column:1/-1; }.exp-bottom { grid-template-columns:1fr; } }
@media(max-width:540px) { .exp-setup { grid-template-columns:1fr; }.exp-heading { align-items:flex-start; }.exp-metrics { grid-template-columns:1fr 1fr; }.exp-panel { padding:1rem; }.exp-person { grid-template-columns:1fr auto; }.exp-person span { grid-column:1/-1; }.expedition-page { padding:.75rem; }.exp-resource-table { min-width:470px; } }

.expedition-page a { color:#7dd3fc; }
.expedition-page header>a { color:#f8fafc; font-weight:800; text-decoration:none; letter-spacing:.04em; }
.expedition-page h1 { margin-bottom:.5rem; }
.exp-clan-suggestions { display:flex; flex-wrap:wrap; gap:.5rem; margin:.5rem 0 1rem; }
.exp-clan-suggestions button { max-width:100%; overflow-wrap:anywhere; text-align:left; }
.expedition-page footer { display:flex; flex-wrap:wrap; gap:.5rem; padding:1rem 0; font-size:.8rem; }

.exp-clan-tabs { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:.75rem; }
.exp-clan-tabs button { max-width:100%; overflow-wrap:anywhere; }
.exp-clan-tabs button[aria-pressed=true] { border-color:#fbbf24; color:#fbbf24; background:#292316; }
.exp-boss-table select { min-width:150px; max-width:230px; }
.exp-boss-table select:disabled { opacity:.45; }
.exp-clan-balance { margin:1rem 0 1.5rem; }
.exp-clan-balance h4,.exp-pending h4 { margin:.75rem 0; overflow-wrap:anywhere; }
.exp-pending { padding:1rem; border:1px solid #806827; border-radius:10px; }
.exp-pending strong { display:block; margin-top:.8rem; }

.expedition-tool thead th { font-size:.75rem; }
