#voyage-panel {
  --voy-accent:#b8cbb4;
  --voy-ground:#374a4a;
  --voy-line:#778780;
  grid-template-rows:auto minmax(0,1fr);
  color:#eae6d2;
}
#voyage-panel[data-map=survey] { --voy-ground:#354b43; --voy-accent:#bdd6a8; --voy-line:#77896f; }
#voyage-panel[data-map=smelting] { --voy-ground:#50403e; --voy-accent:#efd2a2; --voy-line:#8e7969; }
.voyage-header {
  display:flex; justify-content:space-between; align-items:center; gap:10px; padding:7px 15px;
  background:#313c3c; border-bottom:2px solid #19272a; box-shadow:inset 0 2px #60685c;
}
.voyage-header h2 { display:flex; align-items:center; gap:9px; color:#ffdf9a; font-size:clamp(20px,2.1vw,30px); }
.voyage-header h2 canvas { width:28px; height:28px; }
.voyage-header .work-jump { margin:0; text-align:right; }
#voyage-scroll { padding:clamp(9px,1.3vw,20px); background:#273333; scrollbar-gutter:stable; }
#voyage-scroll>* { width:100%; max-width:1200px; margin-inline:auto; }
#voyage-maps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
#voyage-maps button,.voyage-choices button {
  display:flex; justify-content:center; align-items:center; gap:7px; min-width:0;
  background:#323f40; border:2px solid #56655d; box-shadow:inset 0 2px #41504a;
  min-height:35px; color:#dedfcd; padding:3px 6px;
}
#voyage-maps button { font-size:clamp(16px,1.65vw,22px); }
#voyage-maps button:enabled:hover,.voyage-choices button:enabled:hover,.voyage-move:enabled:hover { background:#47584d; }
#voyage-maps button[aria-pressed=true],.voyage-choices button[aria-pressed=true] {
  color:#fff1bd; background:#495b50; border-color:#aaab83; box-shadow:inset 0 2px #6f8069,inset 0 -2px #515c4b;
}
#voyage-maps button:disabled { opacity:.58; }
.voyage-map-sheet {
  display:grid; grid-template-columns:minmax(200px,.8fr) minmax(0,1.8fr); align-items:stretch;
  margin-top:8px; overflow:hidden; border:2px solid var(--voy-line); background:var(--voy-ground);
  box-shadow:0 3px #1e282a;
}
#voyage-chart {
  grid-column:2; grid-row:1; width:100%; height:100%; min-height:0; max-height:clamp(90px,11vw,155px);
  display:block; object-fit:cover; image-rendering:pixelated; border-left:2px solid var(--voy-line);
}
.voyage-map-caption {
  grid-column:1; grid-row:1; display:flex; flex-direction:column-reverse; align-items:flex-start; justify-content:center;
  gap:5px; padding:clamp(10px,1.7vw,24px); min-width:0; box-shadow:inset 0 2px #ffffff13;
}
.voyage-map-caption h3 { font-size:clamp(23px,2.65vw,37px); line-height:1.09; color:#ffe8b5; text-shadow:2px 2px #283132; }
.voyage-map-caption span { color:var(--voy-accent); font-size:18px; }
.voyage-planning { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,5fr); gap:10px; padding-top:10px; }
.voyage-block,.voyage-log { padding:12px 15px; background:#303e3c; border:2px solid #56635b; box-shadow:inset 0 2px #465149; }
.voyage-block { height:100%; }
#voyage-panel h4 { color:#f7dfaa; font:400 clamp(17px,1.55vw,22px)/1.25 var(--display); margin:0 0 7px; }
.voyage-block p,.voyage-log p { color:#d5d7c5; line-height:1.2; font-size:18px; }
.voyage-goals { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(160px,100%),1fr)); gap:5px; list-style:none; margin:0; padding:0; }
.voyage-goals li { display:grid; grid-template-columns:1fr auto; align-items:center; column-gap:4px; padding:4px 7px; color:#e4e4ce; background:#293535; }
.voyage-goals span { font-size:17px; }
.voyage-goals strong,.voyage-stock strong { color:#ffdf9e; font-size:19px; }
.voyage-goals progress,.voyage-job progress { grid-column:1/-1; display:block; width:100%; height:7px; margin:4px 0 0; }
.voyage-goals progress::-webkit-progress-value,.voyage-job progress::-webkit-progress-value { background:#a2c394; }
.voyage-goals progress::-moz-progress-bar,.voyage-job progress::-moz-progress-bar { background:#a2c394; }
.voyage-rule { margin:7px 0 9px; }
.voyage-stock,.voyage-time { display:flex; align-items:center; gap:7px; color:#dbdec7; font-size:17px; }
.voyage-stock { border-top:1px solid #59665c; padding-top:6px; }
.voyage-stock canvas { width:19px; height:19px; }
.voyage-stock strong { margin-left:auto; }
.voyage-choices { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
.voyage-choices button { font-size:17px; padding:5px 4px; }
.voyage-choices canvas { width:19px; height:19px; }
.voyage-role-note { margin:7px 0 10px; }
.voyage-primary {
  display:block; margin-top:8px; padding:6px 14px; min-height:35px; color:#302c28; font-size:19px;
  border:2px solid #b79b68; background:#e6be7b; box-shadow:inset 0 2px #ffe3a2,inset 0 -2px #c29862,0 2px #212d2d;
}
.voyage-primary:enabled:hover { background:#f2d297; }
.voyage-time { justify-content:space-between; gap:4px 10px; flex-wrap:wrap; margin-bottom:7px; color:#c5d2bc; }
.voyage-moves { display:grid; gap:5px; }
.voyage-move {
  display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 6px; padding:5px 8px;
  min-width:0; text-align:left; border:2px solid #71806c; background:#405148;
}
.voyage-move strong { color:#ffe1a5; font-size:19px; }
.voyage-move span { color:#d9dfc8; font-size:16px; }
.voyage-move small { grid-column:1/-1; color:#d4dac7; font-size:16px; line-height:1.13; }
.voyage-move:disabled { background:#333e3c; border-color:#515e55; }
.voyage-move:disabled strong,.voyage-move:disabled span,.voyage-move:disabled small { color:#bfc2b3; }
.voyage-job { background:#283635; color:#e5d9b1; padding:5px 8px; font-size:17px; margin:0 0 7px; }
.voyage-recall,.voyage-recall-link { margin-top:8px; }
.voyage-block .voyage-shift-note { margin-top:8px; color:#c8cdbb; font-size:16px; }
.voyage-finish { border-color:#9a9974; }
.voyage-award { display:flex; gap:11px; align-items:center; margin:4px 0 10px; }
.voyage-award canvas { width:46px; height:46px; }
.voyage-award strong,.voyage-award span { display:block; }
.voyage-award strong { color:#ffe6ab; }
.voyage-award span { color:#cfddc6; font-size:17px; }
.voyage-log { margin-top:10px; }
.voyage-log header { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 9px; margin-bottom:7px; }
.voyage-log header h4 { margin:0 !important; }
.voyage-log header p { font-size:16px; }
.voyage-log ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0; padding:0; list-style:none; }
.voyage-log li { display:flex; gap:9px; align-items:center; padding:6px 9px; border:1px solid #566154; background:#2b3636; }
.voyage-log .collected { border-color:#8a906e; }
.voyage-trophy { display:grid; place-items:center; flex:0 0 42px; height:42px; background:#242f30; border:2px solid #536055; }
.voyage-trophy canvas { width:32px; height:32px; }
.voyage-log li:not(.collected) .voyage-trophy canvas { opacity:.61; filter:grayscale(.65); }
.voyage-log li strong,.voyage-log li span,.voyage-log li small { display:block; line-height:1.14; }
.voyage-log li strong { color:#e4d4ad; font-size:18px; }
.voyage-log li span,.voyage-log li small { font-size:16px; color:#c8cdbd; }
.voyage-log li.collected small { color:#bfe3aa; }
@media(max-width:790px) {
  .voyage-planning { grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:6px; }
  .voyage-block,.voyage-log { padding:9px; }
  .voyage-choices button { flex-direction:column; gap:2px; }
  .voyage-log li { padding:5px; gap:5px; }.voyage-trophy { flex-basis:32px; height:32px; }.voyage-trophy canvas { width:26px;height:26px; }
}
@media(max-width:600px) {
  .voyage-header { padding:5px 7px; gap:4px; }.voyage-header h2 { gap:4px; font-size:18px; }.voyage-header h2 canvas { width:19px; height:19px; }
  .voyage-header .work-jump { font-size:15px; }
  #voyage-scroll { padding:6px; scrollbar-gutter:auto; }
  #voyage-maps { gap:3px; } #voyage-maps button { gap:3px; font-size:16px; padding:3px 1px; }
  #voyage-maps button canvas { width:18px; height:18px; }
  .voyage-map-sheet { grid-template-columns:1fr; margin-top:6px; }
  #voyage-chart { grid-column:1; grid-row:1; height:clamp(64px,20vw,99px); border:0; }
  .voyage-map-caption { grid-column:1; grid-row:2; padding:6px 9px; gap:0; border-top:1px solid var(--voy-line); }
  .voyage-map-caption h3 { font-size:22px; }.voyage-map-caption span { font-size:15px; }
  .voyage-planning { grid-template-columns:minmax(0,1fr); padding-top:6px; }
  .voyage-choices button { flex-direction:row; gap:4px; }
  .voyage-block p { font-size:16px; }
  .voyage-log { margin-top:6px; }.voyage-log ul { grid-template-columns:1fr; gap:4px; }
  .voyage-log li { gap:9px; }.voyage-log li>div:last-child { flex:1; display:grid; grid-template-columns:1fr auto; gap:1px 5px; }
  .voyage-log li strong { grid-column:1/-1; }.voyage-log li small { text-align:right; }
}
@media(max-width:360px) {
  .voyage-header h2 i { display:none; }.voyage-choices button { flex-direction:column; gap:1px; }.voyage-move span { font-size:15px; }
  .voyage-move { grid-template-columns:minmax(0,1fr); }.voyage-log li>div:last-child { display:block; }.voyage-log li small { text-align:left; }
}
@media(max-width:410px) {
  #voyage-maps button { flex-direction:column; gap:2px; min-height:43px; font-size:15px; }
}
