#fleet-dialog {
  width: min(3200px, calc(100vw - 64px));
  max-width: calc((100vw - 64px) / var(--gui-size, 1));
  height: min(1520px, calc((100dvh - 64px) / var(--gui-size, 1)));
  max-height: calc((100dvh - 64px) / var(--gui-size, 1));
  padding: 0;
  color: #dce6ef;
  background: var(--panel, #101925);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
#fleet-screen {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
#fleet-dialog[open] {
  display: flex;
}
#fleet-dialog::backdrop {
  background: #050b14d9;
}
.sy-shell {
  --well: #0c1825;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  color: #dce6ef;
  font:
    16px Inter,
    system-ui,
    sans-serif;
}
.sy-shell button,
.sy-shell select {
  color: inherit;
  font: inherit;
}
.sy-shell button:focus-visible,
.sy-shell select:focus-visible,
.sy-shell input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.sy-shell button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
.sy-shell h2,
.sy-shell h3,
.sy-shell h4,
.sy-shell p {
  margin: 0;
}
.sy-head,
.sy-foot,
.sy-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.sy-head > div:first-child {
  min-width: 0;
}
.sy-head small,
.sy-offer small,
.sy-ship small,
.sy-detail small {
  display: block;
  color: var(--muted);
  font: 12px var(--mono);
  letter-spacing: 0.5px;
}
.sy-head h2 {
  margin-top: 4px;
  font:
    600 32px 'Barlow Condensed',
    sans-serif;
}
.sy-ledger {
  margin-left: auto;
  color: var(--gold);
  font: 14px var(--mono);
}
.sy-tabs button,
.sy-head button,
.sy-foot button,
.sy-deploy button,
.sy-detail button,
.sy-owned-detail button,
.sy-prize button {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel, #152231);
}
.sy-tabs button[aria-pressed='true'],
.sy-ship.is-active,
.sy-offer.is-active {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 13%, var(--panel));
}
.sy-content {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 2.2fr);
  flex: 1;
  min-height: 0;
}
.sy-fleet-strip {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.sy-fleet-strip > span {
  flex: 0 0 190px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--well);
}
.sy-fleet-strip > .sy-strip-command {
  flex-basis: 420px;
}
.sy-fleet-strip > .sy-strip-owned {
  flex-basis: 260px;
}
.sy-fleet-strip b,
.sy-fleet-strip small {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.sy-fleet-strip small {
  margin-top: 4px;
  color: var(--muted);
}
.sy-strip-command {
  border-color: var(--cyan) !important;
}
.sy-strip-command b,
.sy-strip-command small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}
.sy-strip-owned b {
  color: var(--gold);
}
.sy-strip-prize b {
  color: var(--muted);
}
.sy-roster,
.sy-work {
  min-width: 0;
  padding: 18px 22px;
  overflow: auto;
  scrollbar-width: thin;
}
.sy-roster {
  border-right: 1px solid var(--line);
}
.sy-roster h3,
.sy-work h3,
.sy-work h4 {
  margin-bottom: 12px;
  color: var(--muted);
  font: 13px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sy-roster-filter {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}
.sy-roster-filter input {
  width: 100%;
  padding: 8px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--well);
}
.sy-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 11px;
}
.sy-pages button {
  padding: 5px 8px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--well);
}
.sy-ship,
.sy-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-bottom: 8px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--well);
}
.sy-ship > span:last-child,
.sy-offer-main {
  min-width: 0;
}
.sy-ship b,
.sy-offer b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sy-art {
  display: grid;
  flex: 0 0 108px;
  height: 70px;
  position: relative;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--well) 84%, transparent);
}
.sy-art .rb-thumb {
  display: block;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
}
.sy-art img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sy-art .rb-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sy-deploy {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.sy-deploy legend {
  color: var(--cyan);
  font: 13px var(--mono);
}
.sy-deploy label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sy-command {
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}
.sy-command select {
  max-width: 62%;
  padding: 7px;
}
.sy-deploy p,
.sy-detail p,
.sy-owned-detail p,
.sy-work > p {
  color: var(--muted);
  line-height: 1.5;
}
.sy-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(185px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.sy-offer {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  min-height: 154px;
}
.sy-offer .sy-art {
  width: 100%;
  flex-basis: auto;
  height: clamp(62px, 6vw, 110px);
}
.sy-quote {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 6px;
  border-radius: 3px;
  background: var(--well);
  color: var(--gold);
  font: 13px var(--mono);
}
.sy-detail {
  display: grid;
  grid-template-columns: minmax(150px, 0.55fr) minmax(300px, 1.45fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--well);
}
.sy-large {
  height: 190px;
}
.sy-detail h3,
.sy-owned-detail h3 {
  margin: 6px 0 10px;
  font:
    600 30px 'Barlow Condensed',
    sans-serif;
}
.sy-detail dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 16px;
  margin: 14px 0;
}
.sy-detail dd {
  margin: 0;
  color: var(--gold);
  font-family: var(--mono);
}
.sy-refusal {
  min-height: 1.5em;
  color: var(--red) !important;
}
.sy-owned-detail {
  display: grid;
  gap: 9px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--well);
}
.sy-owned-detail h3 {
  margin: 0;
}
.sy-owned-detail button + button {
  margin-left: 8px;
}
.sy-prize {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.sy-empty {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 5px;
}
.sy-notice {
  margin: 8px 22px 0;
}
.sy-notice.is-success {
  color: var(--success);
}
.sy-notice.is-error {
  color: var(--error);
}
.sy-foot {
  justify-content: flex-end;
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.sy-status {
  flex: 1;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .sy-content {
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  }
  .sy-cards {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}
@media (max-width: 760px) {
  #fleet-dialog {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-width: none;
    max-height: none;
  }
  .sy-head,
  .sy-tabs,
  .sy-foot {
    padding: 10px;
  }
  .sy-head {
    flex-wrap: wrap;
  }
  .sy-ledger {
    margin-left: 0;
  }
  .sy-content {
    display: block;
    overflow: auto;
  }
  .sy-roster,
  .sy-work {
    overflow: visible;
    padding: 12px;
  }
  .sy-roster {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sy-cards {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
  .sy-detail {
    grid-template-columns: 1fr;
  }
}
